Screeps Wiki
(→‎Properties: Add map property)
Tags: Visual edit apiedit
(→‎Methods: Update api)
Tags: Visual edit apiedit
Line 6: Line 6:
 
* getObjectById(id)
 
* getObjectById(id)
 
* getRoom(name) '''<u>Deprecated, soon to be removed</u>'''
 
* getRoom(name) '''<u>Deprecated, soon to be removed</u>'''
* getUsedCpu(callback
+
* getUsedCpu() 
 
* notify(message)
 
* notify(message)
   

Revision as of 16:52, 26 May 2015

The game object used in the screeps simulator is a globally accessible object which generally contains general gameplay information.

API

Methods

  • getObjectById(id)
  • getRoom(name) Deprecated, soon to be removed
  • getUsedCpu() 
  • notify(message)

Properties

  • cpuLimit
  • creeps
  • flags
  • map
  • rooms
  • spawns
  • structures
  • time

Constants

Still accessible for now but deprecated. Constants are moved to globals scope.

References