-
Notifications
You must be signed in to change notification settings - Fork 0
/
map
65 lines (58 loc) · 1.39 KB
/
map
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
63
64
65
main
SELF-EXPLANATORY
entities
Classes:
Point
stores x, y
CSCStudent (gatherer)
stores name, resource limit, point, resource count
//store resource that it's aimed at
CampusMarket (generator)
stores name, rate of generation, position
MonsterEnergy (resource)
stores name, position
TO WRITE:
Obstacle
model (this is the world model)
Grid Handling
Class Grid (grid creation) (2-d list)
set_cell
get_cell
resetGrid
isValidPosition
Entity Handling
initialEntities
placeEntities
spawnResources //messy yo
returnCopiesOf //rewrite to handle full list
updateEntities //rewrite to handle full list
view
Functions:
draw (drawing grid to world)
TO WRITE:
Handling window size
Handling viewpoint
Screen blit for all images
controller
Input Handling
Keyboard
If pressed 1
if pressed 2
NEED TO WRITE:
if pressed S (save)
arrow keys (viewport)
Mouse
lclick for spawn
NEED TO WRITE:
rclick for remove entities
Determine Entity Movement
Update Entity Placement
determineNewGatherePosition
determineNearest //clean up
determineFarthest //clean up
TO WRITE:
Save/Retrieval
Save world to file
Retrieve world from file
Do we want to create a new function that separates out the resources for processing?
e.g creates a new list, with references to ONLY the resources.