The total amount of hit points of the structure.
A unique object identifier. You can use Game.getObjectById method to retrieve an object instance by its id.
An object representing the position of this object in the room.
If you can get an instance of a Structure, you can see it. If you can see the Structure, you can see the room it's in.
One of the STRUCTURE_* constants.
Destroy this structure immediately.
Check whether this structure can be used. If the room controller level is not enough, then this method will return false, and the structure will be highlighted with red in the game.
Toggle auto notification when the structure is under attack. The notification will be sent to your account email. Turned on by default.
Whether to enable notification or disable.
Generated using TypeDoc
The current amount of hit points of the structure.