diff options
author | tom <tombarrett@siu.edu> | 2017-02-12 05:59:12 -0600 |
---|---|---|
committer | tom <tombarrett@siu.edu> | 2017-02-12 05:59:12 -0600 |
commit | aa5c31be6ec6a688e8d3a66c770ba99be8e060c9 (patch) | |
tree | 702a7154031cb9c96d0e7fd495868418433bb842 /inc/constants.hpp | |
parent | 60b53e09cca0bdb4cddff76457e990ee33c42b2f (diff) |
-minor constant changes
-implemented dna structure, which carries the creatures attributes suchas speed and reach
-currently a child inherits 100% the same dna as the mother
-removed sing namespace std
Diffstat (limited to 'inc/constants.hpp')
-rw-r--r-- | inc/constants.hpp | 44 |
1 files changed, 21 insertions, 23 deletions
diff --git a/inc/constants.hpp b/inc/constants.hpp index 5ec55b2..fd3413b 100644 --- a/inc/constants.hpp +++ b/inc/constants.hpp @@ -1,31 +1,29 @@ #ifndef constants_h #define constants_h -const int CREATURES = 10; -const int RESOURCES = 100; -const int MINIMUM_RESOURCES = 80; -const int WINDOW_X = 500; -const int WINDOW_Y = 500; +const int CREATURES = 10; +const int RESOURCES = 100; +const int MINIMUM_RESOURCES = 80; +const int WINDOW_X = 500; +const int WINDOW_Y = 500; -const int CREATURE_TYPE = 1; -const int RESOURCE_TYPE = 2; +const int CREATURE_TYPE = 1; +const int RESOURCE_TYPE = 2; -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 = 10; -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 CREATURE_MAX_HEALTH = 1000; +const int CREATURE_SPEED = 1; +const int CREATURE_REACH = 5; +const int CREATURE_BEST_SENSE = 100; +const int CREATURE_BITE = 10; +const int CREATURE_AMOUNT_TO_GROW = 50; +const int CREATURE_EXP_PREG_TIME = 100; +const int CREATURE_EXP_AGE = 1000000; +const int CREATURE_SIZE_MAX = 10; -const int RESOURCE_SIZE_START = 1; -const int RESOURCE_SIZE_MAX = 4; -const int RESOURCE_AMOUNT_START = 100; -const int RESOURCE_AMOUNT_MAX = 200; -const int RESOURCE_GROW = 1; +const int RESOURCE_SIZE_START = 1; +const int RESOURCE_SIZE_MAX = 4; +const int RESOURCE_AMOUNT_START = 100; +const int RESOURCE_AMOUNT_MAX = 200; +const int RESOURCE_GROW = 1; #endif |