Screeps Wiki
(Update api)
Tags: Visual edit apiedit
(→‎Properties: Add ticksToDecay for ramparts)
Tags: Visual edit apiedit
Line 23: Line 23:
 
* room
 
* room
 
* structureType
 
* structureType
  +
* ticksToDecay (only available for ramparts)
 
* ticksToDowngrade (only available for controllers)
 
* ticksToDowngrade (only available for controllers)
 
* ticksToLive (only available for walls)
 
* ticksToLive (only available for walls)

Revision as of 13:06, 25 July 2015

A structure is a game object that represents the structures extensions, links, roads, ramparts, spawns and constructed walls.

Api

Methods

  • destroy()
  • notifyWhenAttacked(enabled)
  • transferEnergy() (only available for extensions and links)

Properties

  • coolDown (only available for links)
  • energy (only available for extensions and links)
  • energyCapacity (only available for extensions and links)
  • hits
  • hitsMax
  • id
  • level (only available for controllers)
  • my
  • owner
  • pos
  • progress (only available for controllers)
  • progressTotal (only available for controllers)
  • room
  • structureType
  • ticksToDecay (only available for ramparts)
  • ticksToDowngrade (only available for controllers)
  • ticksToLive (only available for walls)
  • ticksToSpawn (only available for keeper lairs)

References