blob: 1bb0405e334ff53b84a64737b5c4079e8d0df685 (
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 "dna.hpp"
class Entity
{
public:
void Place();
int getType(){return type;};
virtual bool getGender(void){};
virtual int getAmount(void){};
SDL_Rect getRect(){return rect;};
virtual void eat(int bite){};
virtual void impregnate(Dna D){};
protected:
int type;
int gender;
bool pregnate;
SDL_Rect rect;
SDL_Renderer* renderer;
};
#endif
|