A site of a structure which is currently under construction. A construction site can be created using the 'Construct' button at the left of the game field or the
Room.createConstructionSite
method.
To build a structure on the construction site, give a worker creep some amount of energy and perform
Creep.build
action.
You can remove enemy construction sites by moving a creep on it.
Applied effects, an array of objects with the following properties:
parameter | type | description |
---|---|---|
effect
|
number |
Effect ID of the applied effect. Can be either natural effect ID or Power ID. |
level
optional |
number |
Power level of the applied effect. Absent if the effect is not a Power effect. |
ticksRemaining
|
number |
How many ticks will the effect last. |
An object representing the position of this object in the room.
The link to the Room object. May be undefined in case if an object is a flag or a construction site and is placed in a room that is not visible to you.
A unique object identificator. You can use
Game.getObjectById
method to retrieve an object instance by its
id
.
Whether this is your own construction site.
An object with the structure’s owner info containing the following properties:
parameter | type | description |
---|---|---|
username
|
string |
The name of the owner user. |
The current construction progress.
The total construction progress needed for the structure to be built.
One of the
STRUCTURE_*
constants.
Remove the construction site.
One of the following codes:
constant | value | description |
---|---|---|
OK
|
0 |
The operation has been scheduled successfully. |
ERR_NOT_OWNER
|
-1 |
You are not the owner of this construction site, and it's not in your room. |