The Game Engine
1
Main Page
Related Pages
Classes
Files
File List
File Members
Actor.cpp
Go to the documentation of this file.
1
#include "
Actor.h
"
2
#include "
Game.h
"
3
//the beggining
4
Actor::Actor
(
Animation
*anim):
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
}
Actor.cpp
Generated on Tue Apr 16 2013 02:32:41 for The Game Engine by
1.8.3.1