diff options
author | tom <tombarrett@siu.edu> | 2017-01-19 13:33:46 -0600 |
---|---|---|
committer | tom <tombarrett@siu.edu> | 2017-01-19 13:33:46 -0600 |
commit | 11c5d147b845d4323f2e94c1ac47b6001420d8e6 (patch) | |
tree | eafc67bb6844dc14b56ad5d8eadf6d200b78e0d1 /inc/constants.hpp | |
parent | 0c2335f4a717e53c2456e49407dfbbd0ffa20f06 (diff) |
-added entity growing
-added bite functionality for creature/resource
-added gender (next largest feature is reproduction)
-refractored creature setTarget function to make more sense
-added constants for starting size of entity and max size of entity
-refractored list to make make much more sense
-added constants for types
Diffstat (limited to 'inc/constants.hpp')
-rw-r--r-- | inc/constants.hpp | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/inc/constants.hpp b/inc/constants.hpp index 08f548e..45ff0e7 100644 --- a/inc/constants.hpp +++ b/inc/constants.hpp @@ -1,20 +1,29 @@ #ifndef constants_h #define constants_h -const int CREATURES = 10; -const int RESOURCES = 100; -const int MINIMUM_RESOURCES = 90; -const int WINDOW_X = 1080; -const int WINDOW_Y = 640; +const int CREATURES = 10; +const int RESOURCES = 100; +const int MINIMUM_RESOURCES = 90; +const int WINDOW_X = 1080; +const int WINDOW_Y = 640; -const int CREATURE_START_HEALTH = 500; -const int CREATURE_MAX_HEALTH = 1000; -const int CREATURE_BEST_SENSE = 100; -const int CREATURE_SPEED = 1; -const int CREATURE_REACH = 5; -const int CREATURE_SIZE = 10; +const int CREATURE_TYPE = 1; +const int RESOURCE_TYPE = 2; -const int RESOURCE_SIZE = 5; -const int RESOURCE_AMOUNT = 100; +const int CREATURE_START_HEALTH = 500; +const int CREATURE_MAX_HEALTH = 1000; +const int CREATURE_BEST_SENSE = 100; +const int CREATURE_SPEED = 1; +const int CREATURE_REACH = 5; +const int CREATURE_SIZE_MAX = 20; +const int CREATURE_SIZE_START = 10; +const int CREATURE_BITE = 10; +const int CREATURE_AMOUNT_TO_GROW = 50; + +const int RESOURCE_SIZE_START = 5; +const int RESOURCE_SIZE_MAX = 10; +const int RESOURCE_AMOUNT_START = 100; +const int RESOURCE_AMOUNT_MAX = 200; +const int RESOURCE_GROW = 1; #endif |