2016-08-04 00:22:20 +02:00
|
|
|
local constants = {}
|
|
|
|
|
2016-08-07 05:38:47 +02:00
|
|
|
constants.MAGIC_MAXIMUM_NUMBER = 1e99 -- used in loops trying to find the lowest score
|
|
|
|
|
2016-08-04 00:22:20 +02:00
|
|
|
constants.MAX_PHEROMONE = 7000
|
2016-08-07 05:38:47 +02:00
|
|
|
constants.BASE_PHEROMONE_PRODUCTION = 35
|
|
|
|
constants.DIFFUSION_AMOUNT = 0.02
|
2016-08-08 03:35:36 +02:00
|
|
|
constants.DEATH_DIFFUSION_AMOUNT = 0.01
|
2016-08-04 00:22:20 +02:00
|
|
|
constants.CHUNK_SIZE = 32
|
2016-08-07 05:38:47 +02:00
|
|
|
constants.HALF_CHUNK_SIZE = constants.CHUNK_SIZE / 2
|
2016-08-04 00:22:20 +02:00
|
|
|
constants.NORTH_SOUTH = true
|
|
|
|
constants.EAST_WEST = false
|
|
|
|
|
|
|
|
constants.DEATH_PHEROMONE = 1
|
2016-08-07 05:38:47 +02:00
|
|
|
constants.ENEMY_BASE_PHEROMONE = 2
|
2016-08-04 00:22:20 +02:00
|
|
|
constants.PLAYER_PHEROMONE = 3
|
|
|
|
|
2016-08-07 05:38:47 +02:00
|
|
|
constants.SQUAD_RETREATING = 1
|
|
|
|
constants.SQUAD_GUARDING = 2
|
|
|
|
constants.SQUAD_SIEGE = 3
|
|
|
|
constants.SQUAD_HUNTING = 4
|
|
|
|
constants.SQUAD_SUICIDE = 5
|
|
|
|
constants.SQUAD_ATTACKING = 6
|
|
|
|
constants.SQUAD_BURROWING = 7
|
|
|
|
constants.SQUAD_SCOUTING = 8
|
|
|
|
|
2016-08-04 00:22:20 +02:00
|
|
|
return constants
|