forked from chrehall68/SGAI-Outbreak
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconstants.py
41 lines (34 loc) · 813 Bytes
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import enum
import pygame
import os
pygame.mixer.init()
ROWS = 6
COLUMNS = 6
BORDER = 150 # Number of pixels to offset grid to the top-left side
CELL_DIMENSIONS = (100, 100) # Number of pixels (x,y) for each cell
SELF_PLAY = True # whether or not a human will be playing
KILL_SOUND = pygame.mixer.Sound(os.path.join('Assets', 'Kill sound.mp3'))
class Action(enum.Enum):
move = 1
bite = 2
heal = 3
kill = 4
class Direction(enum.Enum):
self = 0
up = 1
down = 2
left = 3
right = 4
class Role(enum.Enum):
government = 0
zombie = 1
class Result(enum.Enum):
invalid = 0
success = 1
failure = 2
reverse_dir = {
Direction.up: Direction.down,
Direction.down: Direction.up,
Direction.left: Direction.right,
Direction.right: Direction.left
}