ManaPlus
|
#include <tileanimation.h>
Public Member Functions | |
TileAnimation (Animation *const ani) | |
~TileAnimation () | |
bool | update (const int ticks) |
void | addAffectedTile (MapLayer *const layer, const int index) |
Private Attributes | |
TilePairVector | mAffected |
SimpleAnimation * | mAnimation |
Image * | mLastImage |
Animation cycle of a tile image which changes the map accordingly.
Definition at line 44 of file tileanimation.h.
|
explicit |
Definition at line 35 of file tileanimation.cpp.
TileAnimation::~TileAnimation | ( | ) |
Definition at line 42 of file tileanimation.cpp.
References delete2, and mAnimation.
|
inline |
Definition at line 55 of file tileanimation.h.
References mAffected.
Referenced by MapReader::readBase64Layer(), MapReader::readCsvLayer(), and MapReader::readLayer().
bool TileAnimation::update | ( | const int | ticks | ) |
Definition at line 47 of file tileanimation.cpp.
References FOR_EACH, SimpleAnimation::getCurrentImage(), mAffected, mAnimation, mLastImage, and SimpleAnimation::update().
|
private |
Definition at line 59 of file tileanimation.h.
Referenced by addAffectedTile(), and update().
|
private |
Definition at line 60 of file tileanimation.h.
Referenced by update(), and ~TileAnimation().
|
private |
Definition at line 61 of file tileanimation.h.
Referenced by update().