Module screeps::game

source ·
Expand description

The main interface to objects in the Screeps game world.

This contains all functionality from the Game object in Screeps. That generally means all state which is true this tick throughout the world.

Safety

All returned game objects must be used only during the tick they are retreived or resolved. They are considered “stale” on subsequent ticks, and the behavior of stale game objects is undefined.

Screeps documentation

Modules

  • Information about, and functions to manage, your code’s resource utilization
  • Global Control Level information.
  • Global Power Level information.
  • Game map related functionality.
  • Access the in-game market to buy or sell resources.
  • Information about the current shard.

Functions