summaryrefslogtreecommitdiff
path: root/inc/entity.hpp
blob: c47ef00d1e9896fe03159e9df1e7666846f08662 (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
29
30
31
32
33
#ifndef entity_h
#define entity_h

#include <SDL2/SDL.h>

#include "dna.hpp"
#include "opengl/graphicsdata.hpp"
#include "rectangle.hpp"

class Entity
{
        public:
                void            Place(); 
                
                virtual void    eat(int bite){};
                virtual void    impregnate(DNA D){};

                int             getType(){return type;};
                virtual bool    getGender(void){};
                virtual int     getAmount(void){}; 
                Rectangle       getRectangle(){return L;};
                GraphicsData    getGFXD(){return gfxData;};


        protected:
                int             type;
                int             gender;
                bool            pregnate;
                Rectangle       L;
                GraphicsData    gfxData;
};

#endif