summaryrefslogtreecommitdiff
path: root/src/gameobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gameobject.h')
-rw-r--r--src/gameobject.h36
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