In the tutorial I'm seeing: Game.HOSTILE_CREEPS
var targets = creep.room.find(Game.HOSTILE_CREEPS);
No where in the docs do I see anything that tells me this is possible. Where would I find out more about these constants?
In the tutorial I'm seeing: Game.HOSTILE_CREEPS
var targets = creep.room.find(Game.HOSTILE_CREEPS);
No where in the docs do I see anything that tells me this is possible. Where would I find out more about these constants?
If you look at the docs: http://screeps.com/docs/Room.php#find
You'll see a little button with three dots in it, click it and it will show the list of constants. A lot of the functions have this additional info.
Try the doc for the find(...) function on the page for room
I would say those are pretty self explanatory
The documents got updated, check below Game.php#notify in the docs. As of posting these are the constants:
Result codes
Room.find() constants
Direction constants
Body parts