summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authortom <tombarrett@siu.edu>2017-02-07 13:18:44 -0600
committertom <tombarrett@siu.edu>2017-02-07 13:18:44 -0600
commitba6b1fa8fdc3a0856a720695dd40efadc6e5889c (patch)
treedf79363310177145c4e940b144e0fe204d5a0ddf /inc
parent3e0bec85d3428d683fea5d0f08c8e287989ba372 (diff)
-added aging
-added speed increasing, but right now it is on arrow keys due to sdl errors with + and -, eventually the arrow keys will be used to pan the camera, and speed will be done with a graphic and the + and - keys
Diffstat (limited to 'inc')
-rw-r--r--inc/constants.hpp3
-rw-r--r--inc/creature.hpp2
2 files changed, 4 insertions, 1 deletions
diff --git a/inc/constants.hpp b/inc/constants.hpp
index fd00fb1..5ec55b2 100644
--- a/inc/constants.hpp
+++ b/inc/constants.hpp
@@ -3,7 +3,7 @@
const int CREATURES = 10;
const int RESOURCES = 100;
-const int MINIMUM_RESOURCES = 70;
+const int MINIMUM_RESOURCES = 80;
const int WINDOW_X = 500;
const int WINDOW_Y = 500;
@@ -20,6 +20,7 @@ const int CREATURE_SIZE_START = 5;
const int CREATURE_BITE = 10;
const int CREATURE_AMOUNT_TO_GROW = 50;
const int CREATURE_EXPECTED_PREGNANCY_TIME = 100;
+const int CREATURE_EXPECTED_AGE = 100000;
const int RESOURCE_SIZE_START = 1;
const int RESOURCE_SIZE_MAX = 4;
diff --git a/inc/creature.hpp b/inc/creature.hpp
index 79ec4c3..1676be0 100644
--- a/inc/creature.hpp
+++ b/inc/creature.hpp
@@ -42,6 +42,8 @@ class Creature: public Entity
int amountToGrow;
int pregnancyTime;
int expectedPregnancyTime;
+ int age;
+ int expectedAge;
bool hungry;
bool pregnancyReady;