diff options
author | tom <tombarrett@siu.edu> | 2017-02-12 05:59:12 -0600 |
---|---|---|
committer | tom <tombarrett@siu.edu> | 2017-02-12 05:59:12 -0600 |
commit | aa5c31be6ec6a688e8d3a66c770ba99be8e060c9 (patch) | |
tree | 702a7154031cb9c96d0e7fd495868418433bb842 /inc/dna.hpp | |
parent | 60b53e09cca0bdb4cddff76457e990ee33c42b2f (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.hpp | 21 |
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 |