9 Scene::Scene(const Image
& background
) :
10 background_(background
),
14 void Scene::setBackground(const Image
& background
) {
15 background_
= background
;
18 void Scene::addAnimation(const Animation
& animation
) {
19 animations_
.push_back(animation
);
22 void Scene::addActor(const Actor
& actor
) {
23 actors_
.push_back(actor
);
26 void Scene::draw(SDL_Surface
*dest
, uint32_t ticks
)
28 background_
.draw(dest
);
30 // draw the animations
31 for (list
<Animation
>::iterator iter
= animations_
.begin();
32 iter
!= animations_
.end();
34 Animation
& animation
= *iter
;
37 animation
.step(ticks
);
41 for (list
<Actor
>::iterator iter
= actors_
.begin();
42 iter
!= actors_
.end();