Module screeps::game::map

source ·
Expand description

Game map related functionality.

Screeps documentation

Structs

Enums

Functions

  • Get an object with information about the exits from a given room, with JsString versions of direction integers as keys and JsString room names as values.
  • Get the exit direction from a given room leading toward a destination room, with an optional FindRouteOptions parameter allowing control over the costs to enter rooms.
  • Get the route from a given room leading toward a destination room, with an optional FindRouteOptions parameter allowing control over the costs to enter rooms.
  • Get the distance used for range calculations between two rooms, optionally setting continuous to true to consider the world borders to wrap around, which is used for terminal calculations.
  • Get the status of a given room, determining whether it’s in a special area or currently inaccessible.
  • Get the RoomTerrain object for any room, even one you don’t have vision in.
  • Get the size of the world map.