diff options
author | Nikolas <nikolas@boutalas.com> | 2024-10-27 12:52:55 +0200 |
---|---|---|
committer | Nikolas <nikolas@boutalas.com> | 2024-10-27 12:52:55 +0200 |
commit | 43394c8a8908442982e3a7e25975c31b3c952923 (patch) | |
tree | 2facd563e29f48fe3b0653ac5c113998940b4d5e /src/gameobject.h |
Diffstat (limited to 'src/gameobject.h')
-rw-r--r-- | src/gameobject.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/gameobject.h b/src/gameobject.h new file mode 100644 index 0000000..fe317df --- /dev/null +++ b/src/gameobject.h @@ -0,0 +1,36 @@ +#pragma once + +#include <string> + +using namespace std; + +class GameObject { + + float pos_x, pos_y, size_x, size_y, orientation; + bool terminate; + string texture; + +public: + + GameObject(float pos_x, float pos_y, float size_x, float size_y, float orientation, string texture); + virtual ~GameObject(); + + virtual void update(); + virtual void draw(); + + float getPosX(); + float getPosY(); + float getSizeX(); + float getSizeY(); + float getOrientation(); + float getRadius(); + bool getTerminate(); + string getTexture(); + + void setPosX(float pos_x); + void setPosY(float pos_y); + void setTerminate(bool terminate); + + virtual bool collidable(); + +};
\ No newline at end of file |