Module screeps::constants

source ·
Expand description

Constants, most copied from the game constants.

Last updated on 2020-12-13, at commit e4589666113334bb1f967b9a5540b642141b6dab.

Currently missing:

  • OBSTACLE_OBJECT_TYPES
  • WORLD_WIDTH / WORLD_HEIGHT (deprecated in Screeps)
  • POWER_INFO

Re-exports

Modules

Structs

Enums

  • Returned values from ResourceType::boost representing the effect of boosting a creep with the given resource.
  • Translates COLOR_* and COLORS_ALL constants.
  • Translates the DENSITY_* constants.
  • Translates direction constants.
  • Translates effect types on room objects, which can include both PWR_* and EFFECT_* constants.
  • Translates non-OK return codes.
  • Type used for when the game returns a direction to an exit.
  • Translates SUBSCRIPTION_TOKEN and INTERSHARD_RESOURCES constants.
  • Translates all resource types that can be used on the market.
  • Translates the EFFECT_* constants, which are natural effect types
  • Translates ORDER_* constants.
  • Translates body part type and BODYPARTS_ALL constants
  • Translates the POWER_CLASS constants, which are classes of power creeps
  • Translates the PWR_* constants, which are types of powers used by power creeps
  • Translates RESOURCES_ALL constant, representing all possible in-game (non-intershard) resources.
  • Translates STRUCTURE_* constants.
  • Translates TERRAIN_* constants.

Constants

Functions