1 #ifndef DENGINE_SPRITESHEET_H     2 #define DENGINE_SPRITESHEET_H     6 #include "../System/Game.h"     7 #include "../System/Time.h"     8 #include "../System/Component.h"    54         void SetCurrentAnimation(std::string name);
    66         void RegisterAnimation(std::string name, 
int x, 
int y, 
int w, 
int h, 
int frames);
    73         void DeregisterAnimation(std::string name);
    81         bool HasAnimation(std::string name);
    86         void Render() 
override;
    91         void Pause(
bool pause);
    96         std::string currentAnimation = 
"";
    97         bool isPaused = 
false;
   100 #endif //DENGINE_SPRITESHEET_H A base object for a game The gameobject can be considered the most basic building block of a game...
Definition: GameObject.h:19
SDL_Texture * sheet
Definition: SpriteSheet.h:95
Animation from a spritesheet. 
Definition: SpriteSheet.h:18
std::map< std::string, Animation > animationCollection
Definition: SpriteSheet.h:94
Pause Screen. 
Definition: GameStates.h:17
SDL_Rect rect
Definition: SpriteSheet.h:24
Animation()
Definition: SpriteSheet.h:20
Gameobject component that asssists in adding additional functionality. 
Definition: Component.h:14
Animation(SDL_Rect rect, int frames)
Definition: SpriteSheet.h:22
A SpriteSheet. 
Definition: SpriteSheet.h:33
The namespace containing the engine's code. 
Definition: Collider.h:9
int frames
Definition: SpriteSheet.h:25