Meteor2D  dev internal
Meteor is a lightweight 2D game engine.
Loading...
Searching...
No Matches
animationmap.h
1#pragma once
2#include <map>
3#include <2d/spritesheet.h>
4namespace meteor {
5
10 class MAnimationMap : public MEntity {
11 public:
18 MSpriteSheet* getAnim(std::string name);
24
30 static MAnimationMap* loadMap(std::string fileName);
31 private:
32 std::map<std::string, MSpriteSheet*> animMapping;
33 };
34}
This class holds the relationship between SpriteSheets and Animation name. Needs to be created using ...
Definition animationmap.h:10
MSpriteSheet * getDefault()
get the default spritesheet for animation
static MAnimationMap * loadMap(std::string fileName)
Loads an AnimationMap from a file.
MSpriteSheet * getAnim(std::string name)
get the sprite-sheet for animation to play
An Entity is the base class for all data and behaviour oriented objects in meteor....
Definition entity.h:9
This class holds the Rects within a texture that form an Animation.
Definition spritesheet.h:9