#include <AnimationManager.h>
Public Methods | |
AnimationManager () | |
Initializes all the textures by calling loadAllGraphics. | |
~AnimationManager () | |
Destructor. | |
bool | loadAllGraphics () |
Uses vectors to load all the graphics needed for the game, this should only need to be called in the constructor, but if something causes the graphics too be lost, we can restore them with this method. | |
AnimationFrames * | getCharacterAnimationFrames (int direction) |
Used to return the different animation frames for the character, currently tthere are 4 different sets, 1 for each direction and the direction sent should be a constant which is defined in Isobomb.h. | |
AnimationFrames * | getBombAnimationFrames (int direction) |
Returns the bomb animation. | |
AnimationFrames * | getBombFeetAnimationFrames (int direction) |
Returns the bombfeet animation. | |
AnimationFrames * | getExplosionAnimationFrames () |
Returns the explosion animation. | |
AnimationFrames * | getHitPointTexture () |
Returns the powerup graphic for hit points. | |
AnimationFrames * | getHomingBombTexture () |
Returns the powerup graphic for homing bombs. | |
AnimationFrames * | getBombPowerUpTexture () |
Returns the powerup graphic for number of bombs you can throw. | |
AnimationFrames * | getPowerPowerUpTexture () |
Returns the powerup graphic for increasing max power. | |
AnimationFrames * | getRadiusPowerUpTexture () |
Returns the powerup graphic for increasing blast radius. | |
AnimationFrames * | getSpeedPowerUpTexture () |
Returns the powerup graphic for increasing speed. |
It is used by retrieving a pointer to different sets of animations and then those are set to the current animation, in the animation class. All you have to do to change the animation for the character, is update the pointer to the fames for a different animation.
|
Initializes all the textures by calling loadAllGraphics. The separate function is there in case the graphics ever need to be reloaded. |
|
Destructor.
|
|
Returns the bomb animation.
|
|
Returns the bombfeet animation.
|
|
Returns the powerup graphic for number of bombs you can throw.
|
|
Used to return the different animation frames for the character, currently tthere are 4 different sets, 1 for each direction and the direction sent should be a constant which is defined in Isobomb.h.
|
|
Returns the explosion animation.
|
|
Returns the powerup graphic for hit points.
|
|
Returns the powerup graphic for homing bombs.
|
|
Returns the powerup graphic for increasing max power.
|
|
Returns the powerup graphic for increasing blast radius.
|
|
Returns the powerup graphic for increasing speed.
|
|
Uses vectors to load all the graphics needed for the game, this should only need to be called in the constructor, but if something causes the graphics too be lost, we can restore them with this method.
|