summaryrefslogtreecommitdiff
path: root/inc/dna.hpp
diff options
context:
space:
mode:
authortom <tombarrett@siu.edu>2017-02-12 08:42:55 -0600
committertom <tombarrett@siu.edu>2017-02-12 08:42:55 -0600
commit60bc5dcb19a983e8ae335ba89f860c59473303fb (patch)
tree6f232f9db0d71678ce593a765b88f4934976ed83 /inc/dna.hpp
parent1da46794f74ebd8f445fcd70cbe0420eadb648e4 (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/dna.hpp')
-rw-r--r--inc/dna.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/dna.hpp b/inc/dna.hpp
index 4924e15..cd76731 100644
--- a/inc/dna.hpp
+++ b/inc/dna.hpp
@@ -7,6 +7,7 @@ class Dna
{
public:
Dna();
+ Dna combine(Dna D);
int maxHealth;
int speed;
int reach;