summaryrefslogtreecommitdiff
path: root/inc/entity.hpp
diff options
context:
space:
mode:
authortom <tom@apollo>2017-01-10 09:49:32 -0600
committertom <tom@apollo>2017-01-10 09:49:32 -0600
commitf6f6d81c5634f659693914b7b74efcdd39ba5d4f (patch)
tree5b51e9b82ae36c648e212cc9c95fb8233dc181c1 /inc/entity.hpp
parent20717aeb1b12a7179e7b29c3c8880f18b360a1c8 (diff)
-Replaced images with colored rectangles
-Removed various functions and variables pertaining to such images -Started migrating all uses of Location to SDL_Rect (I would preferably completly remove Location.hpp) -Scaled down resolution to 1080x640 (I would like to make these global constants)
Diffstat (limited to 'inc/entity.hpp')
-rw-r--r--inc/entity.hpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/inc/entity.hpp b/inc/entity.hpp
index 540e7b9..62c14d4 100644
--- a/inc/entity.hpp
+++ b/inc/entity.hpp
@@ -7,19 +7,21 @@
class Entity
{
public:
+ void Init(Window m);
+ void Init(Window m, Location z);
void Place();
- SDL_Texture* loadTexture(std::string path, Window main);
- Location getLocation(){return L;};
+
int getType(){return type;};
- virtual void eat(void) {};
- virtual int getAmount(void) {};
+ Location getLocation(){return L;};
+ SDL_Rect getRect(){return rect;};
+
+ virtual void eat(void){};
+ virtual int getAmount(void){};
protected:
- Location L;
- int height, width; //Dimensions of image on window
- int degrees = 0;
int type = 0;
- SDL_Texture* texture;
+ SDL_Rect rect;
+ Location L;
SDL_Renderer* renderer;
};