""" Contains program configuration """

from os import path

GAME_PATH = path.dirname(__file__)
WORLD_PATH = path.join(GAME_PATH, 'map/Map1.txt')
WORLD_BG_PATH = path.join(GAME_PATH, 'map/Map1.bmp')
BACKGROUND_PATH = path.join(GAME_PATH, 'res/bg.jpg')

TIME_SCALE = 2
WORLD_SCALE = 1 # meters per cell
WORLD_TREES_PER_CELL = 5
WORLD_ORE_COUNT = 50
HAS_FOG = True

TILE_SIZE = 16

FPS = 60
WINDOW_CAPTION = "Blorf 3.0"
WINDOW_WIDTH = 750
WINDOW_HEIGHT = 750
CAMERA_SPEED = 10 * TILE_SIZE
CAMERA_SHIFT = 5

COL_BG = (0, 0, 0)
COL_GROUND = (76, 108, 36)
COL_ROCK = (90, 77, 65)
COL_WATER = (156, 211, 219)
COL_SWAMP = (80, 102, 53)
COL_TREE = (200, 180, 50)
COL_ORE = (70, 50, 50)

COL_CAMP = (106, 128, 36)
COL_KILN = (76, 98, 6)

COL_UNIT = (255, 255, 0)
COL_LOGGER = (125, 125, 255)
COL_FETCHER = (255, 125, 255)
COL_BUILDER = (255, 125, 0)
COL_SCOUT = (255, 0, 255)
COL_TRAINING = (200, 255, 255)
COL_KILNER = (125, 255, 0)

INIT_UNITS = 50
INIT_SCOUT = 5
INIT_LOGGER = 10

TARGET_KILN = 3

UNIT_SPEED = 1
UNIT_SPEED_SCOUT = 2
UNIT_SCOUT_RANGE = 5

BUILD_CAMP_RANGE = 5
BUILD_KILN_LOGS = 10
BUILD_KILN_TIME = 10
BUILD_KILN_DELAY = 60

COAL_PRODUCE_LOGS = 2

TIME_TRAIN_SCOUT = 60
TIME_TRAIN_BUILDER = 120
TIME_TRAIN_KILNER = 120
TIME_CHOP_TREE = 30
TIME_PRODUCE_COAL = 20

MAX_DIJKSTRA_SCOUT_DIST = 30
MAX_PATH_WAIT_RANDOM = 30
MAX_PATH_FAIL_TIME = 10
