pguth66 / screeps-pguth66

My Screeps code
Apache License 2.0
0 stars 1 forks source link

automate road creation #13

Open pguth66 opened 6 years ago

pguth66 commented 6 years ago

do a pathfind with --nocreeps, drop construction sites for roads the whole way from/to: source to spawn source to controller source to storage source to terminal mineral to terminal

pguth66 commented 6 years ago

add new method to Room prototype: drawRoad(pos,pos) will do the above between the two pos's

pguth66 commented 6 years ago

then have a method that calls that for the various paths (if the things exist) call it buildRoomRoads have it run every so often, and on change of RCL

pguth66 commented 6 years ago

drawRoad and buildRoomRoads done in 8176eaa5a14ddafde2dd19156490d784f27b301f

now need to figure out a state machine or something for doing this at the right time