AnimatedSprite Class Reference
A sprite that contains animation data.
More...
#include <Graphics/AnimatedSprite.h>
Inherits Sprite.
List of all members.
Detailed Description
A sprite that contains animation data.
Member Function Documentation
Draws a spacific frame of an animation.
- Parameters:
-
void AnimatedSprite::DrawFrame |
( |
const Animation & |
anim, |
|
|
uint |
frameNumber | |
|
) |
| | const |
Draws a spacific frame of an animation.
- Parameters:
-
[in] | anim | the animation to draw from. |
[in] | frameNumber | the index to the frame to draw from the animation. |
void AnimatedSprite::DrawFrame |
( |
uint |
animationNumber, |
|
|
uint |
frameNumber | |
|
) |
| | const |
Draws a spacific frame of an animation.
- Parameters:
-
[in] | animationNumber | the index to the animation to draw from use. |
[in] | frameNumber | the index to the frame to draw from the animation. |
int AnimatedSprite::FindAnimation |
( |
const char * |
name |
) |
const |
Finds an animation by name.
- Parameters:
-
[in] | name | the name of the animation to find. |
- Returns:
- The index to the first animation with the given name, returns -1 if the animation dosn't exist.
Gets a spacific Animation.
- Parameters:
-
- Returns:
- The specified animation.
uint AnimatedSprite::GetNumberOfAnimations |
( |
|
) |
const |
Gets the number of animations the loaded sprite has.
- Returns:
- The number of animations in the Loaded sprite.
bool AnimatedSprite::LoadAnimatedSprite |
( |
const char * |
file |
) |
|
Loads The animated sprite data from the specified file.
- Parameters:
-
[in] | file | the file containing the animation data, assumed to be relitive to the 'Animations' data paths. |
- Returns:
- True if the animated sprite was loaded, false otherwise.
The documentation for this class was generated from the following files: