From aa5c31be6ec6a688e8d3a66c770ba99be8e060c9 Mon Sep 17 00:00:00 2001 From: tom Date: Sun, 12 Feb 2017 05:59:12 -0600 Subject: -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 --- inc/dna.hpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 inc/dna.hpp (limited to 'inc/dna.hpp') 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 -- cgit v1.2.3