-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsettings.py
More file actions
62 lines (57 loc) · 3.22 KB
/
settings.py
File metadata and controls
62 lines (57 loc) · 3.22 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import pathlib
MAP_HEIGHT = 6
MAP_WIDTH = 6
TILE_PROPERTY_CHANNEL = 0
UNIT_TYPE_CHANNEL = 1
UNIT_STATE_CHANNEL = 2
UNIT_TEAM_CHANNEL = 3
UNIT_HEALTH_CHANNEL = 4
CHANNEL_ATTRIBUTES = {0: {"channel name": "tile property",
"description": """
What 'property' is on the tile, such as a resource type (forest, animal, etc.).
Needed for the V0 example because a tile can either have nothing on it, or a
city.
""",
"possible values": {0: "nothing",
1: "team 1 city",
2: "team 2 city"}},
1: {"channel name": "unit type",
"description": """
The kind of unit that is on the tile (warrior, rider, etc.). Even though V0
will feature warriors as the only unit, this channel is necessary to
highlight the *absence* of a unit.
""",
"possible values": {0: "no unit",
1: "warrior"}},
2: {"channel name": "unit state",
"description": """
What 'state' that unit is currently in. Examples include unit being able to
move/attack, being able to just attack, or being able to just move. This will
mostly be necessary for V0 to distinguish between units that have already moved
in this turn, or those that can still move.
""",
"possible values": {0: "unit has not taken action",
1: "unit has moved, but can still attack",
2: "unit can no longer take action"}},
3: {"channel name": "unit team",
"description": """
What team the unit is on. In V0 there will only be two possible teams. This is
separate from the concept of a 'tribe', which is absent in V0.
""",
"possible values": {0: "no team",
1: "team 1",
2: "team 2"}},
4: {"channel name": "unit health",
"description": """
How much health the unit has remaining. This is an int value (instead of a
category). The maximum possible health value in V0 would be 15 (for a veteran
warrior), and the minimum would be 1.
""",
"possible values": {0: "no unit",
1-15: "unit health value"}}
}
## OTHER THINGS THAT NEED TO BE TRACKED FOR THE GAME STATE:
# - Current player team (0/1)
# - Number of Stars
# - Number of units (0-2)
BASE_DIR = str(pathlib.Path(__file__).parent.resolve())