summaryrefslogtreecommitdiff
path: root/src/creature.cpp
diff options
context:
space:
mode:
authortom <tom@explorer>2015-05-01 14:42:07 -0500
committertom <tom@explorer>2015-05-01 14:42:07 -0500
commit467a25d8db798e8b590773bb0b89eac36537b87a (patch)
treee2297efc4bdf900abfacd3e85eaee7445c34a0f3 /src/creature.cpp
parent386279f378d49f6dddb276fbfde92fe1444b6ea1 (diff)
removed temp and made compilable
Diffstat (limited to 'src/creature.cpp')
-rw-r--r--src/creature.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/creature.cpp b/src/creature.cpp
index 437837d..207d3bd 100644
--- a/src/creature.cpp
+++ b/src/creature.cpp
@@ -13,9 +13,9 @@ Creature::Creature(Window m, std::string s)
void Creature::Behavior()
{
//Detection
-
+
//Priorities
-
+
//Action
this->Action();
}
@@ -26,7 +26,7 @@ void Creature::Action()
// eat//reproduce//etc;
if(x==xT)
- {
+ {
if(y<yT)
y++;
else
@@ -42,7 +42,6 @@ void Creature::Action()
else
{
srand(time(NULL));
- z = rand%1;
- if(
+ int z = rand()%1;
}
}