blob: 62c14d4555de6c7a1c8b21d97dd037f446a5fa7d (
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
27
28
|
#ifndef entity_h
#define entity_h
#include "window.hpp"
#include "location.hpp"
class Entity
{
public:
void Init(Window m);
void Init(Window m, Location z);
void Place();
int getType(){return type;};
Location getLocation(){return L;};
SDL_Rect getRect(){return rect;};
virtual void eat(void){};
virtual int getAmount(void){};
protected:
int type = 0;
SDL_Rect rect;
Location L;
SDL_Renderer* renderer;
};
#endif
|