33 int _currentFrame, _startFrame, _frameDelay;
36 static const int HIT_FRAMES;
37 static const int EXPLODE_FRAMES;
38 static const int BULLET_FRAMES;
40 Explosion(
Position _position,
int startFrame,
int frameDelay = 0,
bool big =
false,
bool hit =
false);
bool isBig() const
Checks if this is a real explosion.
Definition: Explosion.cpp:96
Position getPosition() const
Gets the current position in voxel space.
Definition: Explosion.cpp:76
int getCurrentFrame() const
Gets the current frame.
Definition: Explosion.cpp:85
Explosion(Position _position, int startFrame, int frameDelay=0, bool big=false, bool hit=false)
Creates a new Explosion.
Definition: Explosion.cpp:34
A class that represents an explosion animation.
Definition: Explosion.h:29
bool isHit() const
Checks if this is a melee or psi hit.
Definition: Explosion.cpp:105
Easy handling of X-Y-Z coordinates.
Definition: Position.h:28
~Explosion()
Cleans up the Explosion.
Definition: Explosion.cpp:42
bool animate()
Moves the Explosion on one frame.
Definition: Explosion.cpp:51
Definition: BaseInfoState.cpp:40