summaryrefslogtreecommitdiff
path: root/inc/dna.hpp
diff options
context:
space:
mode:
authormajortom6 <tombarrett@siu.edu>2017-02-26 11:14:31 -0600
committerTom Barrett <tombarrett@siu.edu>2017-03-07 13:23:42 -0600
commit7394b069537ed7a490a343381d62862eb22abdcf (patch)
treec8bff4f88cf962ec4148a2e133bf959035feedb7 /inc/dna.hpp
parente54170cfb8c0fb99ecdc3b1e57e832dec58ee76e (diff)
-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
Diffstat (limited to 'inc/dna.hpp')
-rw-r--r--inc/dna.hpp11
1 files changed, 7 insertions, 4 deletions
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 <string>
+
#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;