summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Scene.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/Scene.cpp')
-rw-r--r--Stars45/Scene.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/Stars45/Scene.cpp b/Stars45/Scene.cpp
index b9b3167..556f04e 100644
--- a/Stars45/Scene.cpp
+++ b/Stars45/Scene.cpp
@@ -49,7 +49,7 @@ Scene::Scene()
{ }
Scene::~Scene()
-{
+{
background.destroy();
foreground.destroy();
graphics.destroy();
@@ -62,10 +62,10 @@ Scene::~Scene()
void
Scene::AddBackground(Graphic* g)
-{
+{
if (g) {
if (!background.contains(g))
- background.append(g);
+ background.append(g);
g->SetScene(this);
}
@@ -84,10 +84,10 @@ Scene::DelBackground(Graphic* g)
void
Scene::AddForeground(Graphic* g)
-{
+{
if (g) {
if (!foreground.contains(g))
- foreground.append(g);
+ foreground.append(g);
g->SetScene(this);
}
@@ -106,10 +106,10 @@ Scene::DelForeground(Graphic* g)
void
Scene::AddGraphic(Graphic* g)
-{
+{
if (g) {
if (!graphics.contains(g))
- graphics.append(g);
+ graphics.append(g);
g->SetScene(this);
}
@@ -132,10 +132,10 @@ Scene::DelGraphic(Graphic* g)
void
Scene::AddSprite(Graphic* g)
-{
+{
if (g) {
if (!sprites.contains(g))
- sprites.append(g);
+ sprites.append(g);
g->SetScene(this);
}
@@ -183,7 +183,7 @@ Scene::Collect()
if (g->Life() == 0) {
delete iter.removeItem();
}
- }
+ }
iter.attach(sprites);
@@ -192,7 +192,7 @@ Scene::Collect()
if (g->Life() == 0) {
delete iter.removeItem();
}
- }
+ }
ListIter<Light> iter1 = lights;
@@ -201,7 +201,7 @@ Scene::Collect()
if (l->Life() == 0) {
delete iter1.removeItem();
}
- }
+ }
}