blob: 540e7b94d43d52b30fba59a3a66c1c8fbe6a3a3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef entity_h
#define entity_h
#include "window.hpp"
#include "location.hpp"
class Entity
{
public:
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) {};
protected:
Location L;
int height, width; //Dimensions of image on window
int degrees = 0;
int type = 0;
SDL_Texture* texture;
SDL_Renderer* renderer;
};
#endif
|