From 60bc5dcb19a983e8ae335ba89f860c59473303fb Mon Sep 17 00:00:00 2001 From: tom Date: Sun, 12 Feb 2017 08:42:55 -0600 Subject: -added DNA combining, currently it just takes the average of the mother and father -there maybe a random segfault, further investigation is needed --- inc/entity.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'inc/entity.hpp') 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){}; -- cgit v1.2.3