![]() |
Meteor2D
dev internal
Meteor is a lightweight 2D game engine.
|
This class holds the relationship between SpriteSheets and Animation name. Needs to be created using the loadMap function. More...
#include <animationmap.h>

Public Member Functions | |
| MSpriteSheet * | getAnim (std::string name) |
| get the sprite-sheet for animation to play | |
| MSpriteSheet * | getDefault () |
| get the default spritesheet for animation | |
Public Member Functions inherited from meteor::MEntity | |
| virtual bool | equals (MEntity *other) |
| Checks equality between two entities. | |
| std::string | getName () |
| void | setName (std::string name) |
| Sets name of entity. | |
| virtual std::string | toString () |
| Get this object as a string. | |
Static Public Member Functions | |
| static MAnimationMap * | loadMap (std::string fileName) |
| Loads an AnimationMap from a file. | |
Additional Inherited Members | |
Protected Attributes inherited from meteor::MEntity | |
| std::string | name |
This class holds the relationship between SpriteSheets and Animation name. Needs to be created using the loadMap function.
| MSpriteSheet * meteor::MAnimationMap::getAnim | ( | std::string | name | ) |
get the sprite-sheet for animation to play
| name | Animation clip name. |
| MSpriteSheet * meteor::MAnimationMap::getDefault | ( | ) |
get the default spritesheet for animation
|
static |
Loads an AnimationMap from a file.
| fileName | relative path to file. evaluated to resS\anim\<fileName> |