diff options
author | tom <tom@explorer> | 2015-05-01 14:42:07 -0500 |
---|---|---|
committer | tom <tom@explorer> | 2015-05-01 14:42:07 -0500 |
commit | 467a25d8db798e8b590773bb0b89eac36537b87a (patch) | |
tree | e2297efc4bdf900abfacd3e85eaee7445c34a0f3 /src/creature.cpp~ | |
parent | 386279f378d49f6dddb276fbfde92fe1444b6ea1 (diff) |
removed temp and made compilable
Diffstat (limited to 'src/creature.cpp~')
-rw-r--r-- | src/creature.cpp~ | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/src/creature.cpp~ b/src/creature.cpp~ deleted file mode 100644 index 15b6577..0000000 --- a/src/creature.cpp~ +++ /dev/null @@ -1,47 +0,0 @@ -#include "creature.h" - -Creature::Creature(Window m, std::string s) -{ - texture = loadTexture(s, m); - renderer = m.getRenderer(); - x=y=500; - - //For the test resource - xT=yT=300; -} - -void Creature::Behavior() -{ - //Detection - - //Priorities - - //Action - this->Action(); -} - -void Creature::Action() -{ - //if(isclose) - // eat//reproduce//etc; - - if(x==xT) - { - if(y<yT) - y++; - else - y--; - } - else if(y==yT) - { - if(x<xT) - x++; - else - x--; - } - else - { - - - } -} |