Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

AnimationManager Class Reference

The animationManager loads all the textures that are going to be used for animations in the game. More...

#include <AnimationManager.h>

List of all members.

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.

AnimationFramesgetCharacterAnimationFrames (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.

AnimationFramesgetBombAnimationFrames (int direction)
 Returns the bomb animation.

AnimationFramesgetBombFeetAnimationFrames (int direction)
 Returns the bombfeet animation.

AnimationFramesgetExplosionAnimationFrames ()
 Returns the explosion animation.

AnimationFramesgetHitPointTexture ()
 Returns the powerup graphic for hit points.

AnimationFramesgetHomingBombTexture ()
 Returns the powerup graphic for homing bombs.

AnimationFramesgetBombPowerUpTexture ()
 Returns the powerup graphic for number of bombs you can throw.

AnimationFramesgetPowerPowerUpTexture ()
 Returns the powerup graphic for increasing max power.

AnimationFramesgetRadiusPowerUpTexture ()
 Returns the powerup graphic for increasing blast radius.

AnimationFramesgetSpeedPowerUpTexture ()
 Returns the powerup graphic for increasing speed.


Detailed Description

The animationManager loads all the textures that are going to be used for animations in the game.

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.


Constructor & Destructor Documentation

AnimationManager::AnimationManager  
 

Initializes all the textures by calling loadAllGraphics.

The separate function is there in case the graphics ever need to be reloaded.

AnimationManager::~AnimationManager  
 

Destructor.


Member Function Documentation

AnimationFrames * AnimationManager::getBombAnimationFrames int    direction
 

Returns the bomb animation.

Parameters:
direction  A constant value from Isobomb.h
Returns:
A pointer to the animation frames

AnimationFrames * AnimationManager::getBombFeetAnimationFrames int    direction
 

Returns the bombfeet animation.

Parameters:
direction  A constant value from Isobomb.h
Returns:
A pointer to the animation frames

AnimationFrames * AnimationManager::getBombPowerUpTexture  
 

Returns the powerup graphic for number of bombs you can throw.

AnimationFrames * AnimationManager::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.

Parameters:
direction  A constant value from Isobomb.h
Returns:
A pointer to the animation frames

AnimationFrames * AnimationManager::getExplosionAnimationFrames  
 

Returns the explosion animation.

AnimationFrames * AnimationManager::getHitPointTexture  
 

Returns the powerup graphic for hit points.

AnimationFrames * AnimationManager::getHomingBombTexture  
 

Returns the powerup graphic for homing bombs.

AnimationFrames * AnimationManager::getPowerPowerUpTexture  
 

Returns the powerup graphic for increasing max power.

AnimationFrames * AnimationManager::getRadiusPowerUpTexture  
 

Returns the powerup graphic for increasing blast radius.

AnimationFrames * AnimationManager::getSpeedPowerUpTexture  
 

Returns the powerup graphic for increasing speed.

bool AnimationManager::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.

Returns:
true if successful


The documentation for this class was generated from the following files:
Generated on Tue Mar 4 02:29:26 2003 for SuperIsoBomb by doxygen1.2.18