summaryrefslogtreecommitdiff
path: root/src/entity.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/entity.h')
-rw-r--r--src/entity.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/entity.h b/src/entity.h
new file mode 100644
index 0000000..1d1f876
--- /dev/null
+++ b/src/entity.h
@@ -0,0 +1,21 @@
+#ifndef entity_h
+#define entity_h
+
+#include "window.h"
+
+class Entity
+{
+ public:
+ Entity(Window m, std::string s);
+ void Place();
+ SDL_Texture* loadTexture(std::string path, Window main);
+
+ protected:
+ int x, y;
+ int height, width;
+ int degrees = 0;
+ SDL_Texture* texture;
+ SDL_Renderer* renderer;
+};
+
+#endif