|
Arcade Shooter
|
Represents timing and framing values for texture animations. More...
#include <Animation.h>
Public Member Functions | |
| virtual void | Update (const GameTime *pGameTime) |
| Updates the animation. More... | |
| virtual bool | Load (const std::string &path, ResourceManager *pManager) |
| Load the desired animation into memory. More... | |
| virtual bool | IsCloneable () const |
| Used to determine if the animation is cloneable. More... | |
| virtual Resource * | Clone () |
| Used to create a clone of the animation. More... | |
| virtual Region * | GetCurrentFrame () |
| Gets a pointer to the current frame. More... | |
| virtual Region * | GetFrame (const int index) |
| Gets a pointer to the indexed frame. More... | |
| virtual Texture * | GetTexture () const |
| Gets a pointer to the texture of the animation. More... | |
| virtual void | SetTexture (Texture *pTexture) |
| Sets the texture of the animation. More... | |
| virtual void | SetCurrentFrame (const unsigned int index) |
| Sets the current frame of the animation. More... | |
| virtual bool | IsPlaying () const |
| Determines if the animation is playing. More... | |
| virtual void | Play () |
| Starts or resumes the animation. | |
| virtual void | Pause () |
| Pauses the animation. | |
| virtual void | Stop () |
| Stops the animation. | |
| virtual void | SetLoopCount (uint16_t loops=-1) |
| Sets how many times the animation will run before it stops. More... | |
Public Member Functions inherited from KatanaEngine::Resource | |
| unsigned short | GetResourceID () const |
| Gets the ID of the resource. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from KatanaEngine::Resource | |
| void | Split (const std::string &line, const char delimeter, std::vector< std::string > &elements) |
| Splits a string into a vector of strings. More... | |
| void | ParseComments (std::string &line) |
| Removes c-style, single-line comments from a line of text. More... | |
| void | TrimLine (std::string &line) |
| Removes white-space at the front and end of a line of text. More... | |
| ResourceManager * | GetResourceManager () |
| Gets a pointer to the ResourceManager that was used to load the resource. More... | |
Represents timing and framing values for texture animations.
|
virtual |
Used to create a clone of the animation.
Reimplemented from KatanaEngine::Resource.
|
inlinevirtual |
Gets a pointer to the current frame.
|
inlinevirtual |
Gets a pointer to the indexed frame.
|
inlinevirtual |
Gets a pointer to the texture of the animation.
|
inlinevirtual |
Used to determine if the animation is cloneable.
Implements KatanaEngine::Resource.
|
inlinevirtual |
Determines if the animation is playing.
|
virtual |
Load the desired animation into memory.
| path | The path to the desired animation. |
| pManager | A pointer to the resource manager that will manage the animation. |
Implements KatanaEngine::Resource.
|
virtual |
Sets the current frame of the animation.
| index | The index of the frame to set as the current frame. |
|
inlinevirtual |
Sets how many times the animation will run before it stops.
| loops | The number of loops to play. Setting loops to -1 will make the animation loop infinitely. |
|
inlinevirtual |
Sets the texture of the animation.
| pTexture | A pointer to the texture resource. |
|
virtual |
Updates the animation.
| pGameTime | Timing values including time since last update. |
1.8.13