diff options
author | majortom6 <tombarrett@siu.edu> | 2017-02-19 08:06:37 -0600 |
---|---|---|
committer | Tom Barrett <tombarrett@siu.edu> | 2017-03-07 13:23:41 -0600 |
commit | 2cc21176467d4501adb7bfb9ee03eb9a2a7d14f2 (patch) | |
tree | e12ceac7024bdc697f1ed4adc1a1ece4a82489fc /src/dna.cpp | |
parent | 74c6854fd8dcbaee736ac0421805ff1e03c4a1e2 (diff) |
-removed all references to sdl_rect and location and now everything now uses our own class rectangle
-standardization of tab spaces to 8 is now in effect
-refractoring of graphicsobjects.hpp
Diffstat (limited to 'src/dna.cpp')
-rw-r--r-- | src/dna.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dna.cpp b/src/dna.cpp index 1145276..bc51fd9 100644 --- a/src/dna.cpp +++ b/src/dna.cpp @@ -1,6 +1,6 @@ #include "dna.hpp" -Dna::Dna() +DNA::DNA() { maxHealth = CREATURE_MAX_HEALTH; speed = CREATURE_SPEED; @@ -13,9 +13,9 @@ Dna::Dna() sizeMax = CREATURE_SIZE_MAX; } -Dna Dna::combine(Dna D) +DNA DNA::combine(DNA D) { - Dna N; + DNA N; N.maxHealth = (this->maxHealth + D.maxHealth)/2; N.speed = (this->speed + D.speed)/2; |