Where can I find a list of the constants for the Game
object like Game.HOSTILE_CREEPS
, Game.MOVE
and Game.ATTACK
?
I cannot find it on http://screeps.com/docs/
They can be found at the game docs (bottom of the page)
Constants
Result Codes
Game.OK
0 Game.ERR_NOT_OWNER
-1 Game.ERR_NO_PATH
-2Game.ERR_NAME_EXISTS
-3 Game.ERR_BUSY
-4 Game.ERR_NOT_FOUND
-5Game.ERR_NOT_ENOUGH_ENERGY
-6 Game.ERR_INVALID_TARGET
-7Game.ERR_FULL
-8 Game.ERR_NOT_IN_RANGE
-9 Game.ERR_INVALID_ARGS
-10Game.ERR_TIRED
-11 Game.ERR_NO_BODYPART
-12Game.ERR_NOT_ENOUGH_EXTENSIONS
-13Room.find() constants
Game.CREEPS
1Game.MY_CREEPS
2Game.HOSTILE_CREEPS
3Game.SOURCES_ACTIVE
4Game.SOURCES
5Game.DROPPED_ENERGY
6Game.STRUCTURES
7Game.MY_STRUCTURES
8Game.HOSTILE_STRUCTURES
9Game.FLAGS
10Game.CONSTRUCTION_SITES
11Game.MY_SPAWNS
12Game.HOSTILE_SPAWNS
13Game.EXIT_TOP
14Game.EXIT_RIGHT
15Game.EXIT_BOTTOM
16Game.EXIT_LEFT
17Directions
Game.TOP
1Game.TOP_RIGHT
2Game.RIGHT
3Game.BOTTOM_RIGHT
4Game.BOTTOM
5Game.BOTTOM_LEFT
6Game.LEFT
7Game.TOP_LEFT
8Body Parts
Game.MOVE
"move"Game.WORK
"work"Game.CARRY
"carry"Game.ATTACK
"attack"Game.RANGED_ATTACK
"ranged_attack"Game.TOUGH
"tough"Game.HEAL
"heal"Structure Types
Game.STRUCTURE_EXTENSION
"extension"Game.STRUCTURE_RAMPART
"rampart"Game.STRUCTURE_ROAD
"road"Game.STRUCTURE_SPAWN
"spawn"Game.STRUCTURE_WALL
"constructedWall"Colors
Game.COLOR_RED
"red"Game.COLOR_PURPLE
"purple"Game.COLOR_BLUE
"blue"Game.COLOR_CYAN
"cyan"Game.COLOR_GREEN
"green"Game.COLOR_YELLOW
"yellow"Game.COLOR_ORANGE
"orange"Game.COLOR_BROWN
"brown"Game.COLOR_GREY
"grey"Game.COLOR_WHITE
"white"Room Modes
Game.MODE_SIMULATION
"simulation"Game.MODE_SURVIVAL
"survival"Game.MODE_WORLD
"world"If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With