Difference between revisions of "OwnedStructure"

From Screeps Wiki
Jump to navigation Jump to search
(Created page with "{{stub}} OwnedStructure is an in-game class representing a Structure that has a player name associated with it. It is used in an inheritance chain with such Structures, a...")
 
(categorized)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
{{stub}}
 
{{stub}}
  +
[[Category:In-Game Objects]]
   
 
OwnedStructure is an in-game class representing a [[Structure]] that has a player name associated with it. It is used in an inheritance chain with such Structures, and inherits from [[Structure]] and [[RoomPosition]] itself.
 
OwnedStructure is an in-game class representing a [[Structure]] that has a player name associated with it. It is used in an inheritance chain with such Structures, and inherits from [[Structure]] and [[RoomPosition]] itself.
Line 6: Line 7:
   
 
<code>Game.structures</code> only includes OwnedStructures that are associated with your player name.
 
<code>Game.structures</code> only includes OwnedStructures that are associated with your player name.
  +
[[Category:Game Knowledge]]

Latest revision as of 12:26, 28 October 2020

This article is a stub. You can help Screeps Wiki by editing to add more information.

OwnedStructure is an in-game class representing a Structure that has a player name associated with it. It is used in an inheritance chain with such Structures, and inherits from Structure and RoomPosition itself.

All structures in the game, with the exception of Roads, Containers and Constructed Walls inherit from this class.

Game.structures only includes OwnedStructures that are associated with your player name.