diff options
author | tom <tombarrett@siu.edu> | 2017-02-12 08:42:55 -0600 |
---|---|---|
committer | tom <tombarrett@siu.edu> | 2017-02-12 08:42:55 -0600 |
commit | 60bc5dcb19a983e8ae335ba89f860c59473303fb (patch) | |
tree | 6f232f9db0d71678ce593a765b88f4934976ed83 /inc/entity.hpp | |
parent | 1da46794f74ebd8f445fcd70cbe0420eadb648e4 (diff) |
-added DNA combining, currently it just takes the average of the mother and father
-there maybe a random segfault, further investigation is needed
Diffstat (limited to 'inc/entity.hpp')
-rw-r--r-- | inc/entity.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/entity.hpp b/inc/entity.hpp index a7b7f58..0eb8f60 100644 --- a/inc/entity.hpp +++ b/inc/entity.hpp @@ -2,6 +2,7 @@ #define entity_h #include "window.hpp" +#include "dna.hpp" class Entity { @@ -12,7 +13,7 @@ class Entity SDL_Rect getRect(){return rect;}; virtual void eat(int bite){}; - virtual void impregnate(void){}; + virtual void impregnate(Dna D){}; virtual bool getGender(void){}; virtual int getAmount(void){}; |