From 7394b069537ed7a490a343381d62862eb22abdcf Mon Sep 17 00:00:00 2001 From: majortom6 Date: Sun, 26 Feb 2017 11:14:31 -0600 Subject: -REMOVED ENTITY, RESOURCE, AND CREATURE ! -replaced them all with one class, organism (always subject to change) -the dna type now is what differs creatures and resources -removed dead constants -may be a rogue segfault -also weird artifacts start showing if running long --- inc/dna.hpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'inc/dna.hpp') diff --git a/inc/dna.hpp b/inc/dna.hpp index b549c27..8c4effa 100644 --- a/inc/dna.hpp +++ b/inc/dna.hpp @@ -1,25 +1,28 @@ #ifndef dna_h #define dna_h +#include + #include "constants.hpp" #include "functions.hpp" class DNA { public: - DNA(); + DNA(){}; + DNA(std::string s); DNA combine(DNA D); + int type; int maxHealth; - int reach; int bestSense; int bite; - int amountToGrow; int expectedPregnancyTime; int expectedAge; - int sizeMax; + int growAmount; + float reach; float speed; float mutationPercent; float mutationChance; -- cgit v1.2.3