#include <AnimatedSprite.h>
Inheritance diagram for AnimatedSprite:
Public Member Functions | |
AnimatedSprite (std::string filename, List *spriteInfo) | |
AnimatedSprite (AnimatedSprite *sprite) | |
~AnimatedSprite () | |
Sprite * | instance () |
virtual void | update () |
virtual void | draw (int x, int y, bool origin=LEVEL) |
virtual void | reset () |
Protected Attributes | |
std::vector< Sprite * > | _createdSprites |
std::vector< SpriteTime > | _sprites |
int | _index |
int | _time |
int | _totalTime |
bool | _loop |
Definition at line 14 of file AnimatedSprite.h.
|
Definition at line 17 of file AnimatedSprite.cpp. References Sprite::_filename, List::empty(), List::firstList(), Sprite::loadSprite(), List::rest(), and SpriteTime::s. Referenced by instance(). |
|
Definition at line 62 of file AnimatedSprite.cpp. References _loop, _sprites, and _totalTime. |
|
Definition at line 70 of file AnimatedSprite.cpp. References _createdSprites. |
|
Reimplemented from Sprite. Definition at line 95 of file AnimatedSprite.cpp. |
|
Reimplemented from Sprite. Definition at line 100 of file AnimatedSprite.cpp. References _createdSprites, and AnimatedSprite(). |
|
Reimplemented from Sprite. Definition at line 27 of file AnimatedSprite.h. |
|
Reimplemented from Sprite. Definition at line 76 of file AnimatedSprite.cpp. References _index, _loop, _sprites, _time, and _totalTime. |
|
Definition at line 30 of file AnimatedSprite.h. Referenced by instance(), and ~AnimatedSprite(). |
|
Definition at line 32 of file AnimatedSprite.h. |
|
Definition at line 35 of file AnimatedSprite.h. Referenced by AnimatedSprite(), and update(). |
|
Definition at line 31 of file AnimatedSprite.h. Referenced by AnimatedSprite(), draw(), and update(). |
|
Definition at line 33 of file AnimatedSprite.h. |
|
Definition at line 34 of file AnimatedSprite.h. Referenced by AnimatedSprite(), and update(). |