diff options
author | majortom6 <tombarrett@siu.edu> | 2017-03-03 15:18:22 -0600 |
---|---|---|
committer | Tom Barrett <tombarrett@siu.edu> | 2017-03-07 13:23:42 -0600 |
commit | dfda3f2a5e555d3173359134f4994bcd12d129f8 (patch) | |
tree | adc9d75f1e28332b8c5208fdb3c4685667816dda /src/organism.cpp | |
parent | 3c78d411760beb9332e7282e4ec49a199998c67d (diff) |
-removed the Graphics Data class
-replaced with already implemented Rectangle, and put color and side variables in dna (can potentially remove the side variable if it does nothing important)
Diffstat (limited to 'src/organism.cpp')
-rw-r--r-- | src/organism.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/organism.cpp b/src/organism.cpp index 27f6f8a..ee9f849 100644 --- a/src/organism.cpp +++ b/src/organism.cpp @@ -18,15 +18,6 @@ Organism::Organism(Rectangle r, DNA d) pregnate = false; hasTarget = false; wander = false; - - if(myDNA.type == CREATURE_TYPE){ - if(gender) - gfxData = GraphicsData(rect.x, rect.y, 1, 0, 0, CREATURE_SIDES); - else - gfxData = GraphicsData(rect.x, rect.y, 0, 0, 1, CREATURE_SIDES); - } - else - gfxData = GraphicsData(rect.x, rect.y, 0, 1, 0, RESOURCE_SIDES); } void Organism::Behavior() @@ -100,7 +91,6 @@ void Organism::checkTarget() hasTarget = false; } - void Organism::Action() { if(hasTarget){ @@ -185,9 +175,3 @@ void Organism::takeBite(int bite) { health-=bite; } - -void Organism::Place() -{ - gfxData.x = rect.x; - gfxData.y = rect.y; -} |