1 #ifndef GAME_OBJECT_HPP 2 #define GAME_OBJECT_HPP 26 virtual void Render(SDL_Renderer* ren) = 0;
int getPosX() const
Gets the x position of this GameObject.
Definition: GameObject.cpp:6
void Enable()
Enables this GameObject.
Definition: GameObject.cpp:16
int x
The x coordinate of the center of this GameObject.
Definition: GameObject.hpp:69
bool IsActive() const
Gets whether this GameObject is active.
Definition: GameObject.cpp:18
int scaleW
The total width of this GameObject.
Definition: GameObject.hpp:75
virtual void Update()=0
Updates this GameObject.
GameObject(int posX, int posY, int width, int height)
Constructs a GameObject.
Definition: GameObject.cpp:3
A GameObject class.
Definition: GameObject.hpp:10
int getScaleH() const
Gets the total height of this GameObject.
Definition: GameObject.cpp:12
int y
The x coordinate of the center of this GameObject.
Definition: GameObject.hpp:72
bool active
Whether or not this GameObject is active.
Definition: GameObject.hpp:81
virtual void Render(SDL_Renderer *ren)=0
Renders this GameObject.
int getPosY() const
Gets the y position of this GameObject.
Definition: GameObject.cpp:8
int scaleH
The total height of this GameObject.
Definition: GameObject.hpp:78
int getScaleW() const
Gets the total width of this GameObject.
Definition: GameObject.cpp:10
void Disable()
Disables this GameObject.
Definition: GameObject.cpp:14