The Game Engine  1
Actor.cpp
Go to the documentation of this file.
1 #include "Actor.h"
2 #include "Game.h"
3 //the beggining
5  Frame(0),
6  CurrentAnimation(0)
7 {
8  Animations.push_back(anim);
9 }
10 
11 Actor::Actor(std::vector<Animation*> anims):
12  Frame(0),
13  CurrentAnimation(0)
14 {
15  Animations = anims;
16 }
17 
18 Actor::Actor(std::vector<string> anims):
19  Frame(0),
20  CurrentAnimation(0)
21 {
22  for(unsigned int i=0; i<anims.size(); i++)
23  Animations.push_back(Game::game()->getAnimation(anims[i]));
24 }