issues
search
robotopia-x
/
todo
:warning: DEPRECATED - projects will be now tracked on organization level
https://github.com/orgs/robotopia-x/projects/2
The Unlicense
1
stars
0
forks
source link
Implement resource collection
#41
Closed
paulsonnentag
closed
7 years ago
paulsonnentag
commented
7 years ago
4 story points
Global resource actions:
[x] add resources object to global game state. We need to store how much resources each team has
[x]
add 'addResources' action
add resources to team storage
[x]
add 'removeResources' action
remove resources from team storage
[x]
add helper function to check if resources are available
Collector component:
[x] store whether or not the robot is currently carrying resources
[x]
add 'takeResource' action:
if bot is near resource => set carrying resource flag to true
[x]
add 'depositResource' action:
if carrying resource flag is true and bot near base => add resource for team, clear carrying resource flag
4 story points
Global resource actions:
Collector component: