summaryrefslogtreecommitdiff
path: root/inc/dna.hpp
diff options
context:
space:
mode:
authortom <tombarrett@siu.edu>2017-02-12 05:59:12 -0600
committertom <tombarrett@siu.edu>2017-02-12 05:59:12 -0600
commitaa5c31be6ec6a688e8d3a66c770ba99be8e060c9 (patch)
tree702a7154031cb9c96d0e7fd495868418433bb842 /inc/dna.hpp
parent60b53e09cca0bdb4cddff76457e990ee33c42b2f (diff)
-minor constant changes
-implemented dna structure, which carries the creatures attributes suchas speed and reach -currently a child inherits 100% the same dna as the mother -removed sing namespace std
Diffstat (limited to 'inc/dna.hpp')
-rw-r--r--inc/dna.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/inc/dna.hpp b/inc/dna.hpp
new file mode 100644
index 0000000..4924e15
--- /dev/null
+++ b/inc/dna.hpp
@@ -0,0 +1,21 @@
+#ifndef dna_h
+#define dna_h
+
+#include "constants.hpp"
+
+class Dna
+{
+ public:
+ Dna();
+ int maxHealth;
+ int speed;
+ int reach;
+ int bestSense;
+ int bite;
+ int amountToGrow;
+ int expectedPregnancyTime;
+ int expectedAge;
+ int sizeMax;
+};
+
+#endif