-
Notifications
You must be signed in to change notification settings - Fork 105
/
Nuke.js
41 lines (38 loc) · 1 KB
/
Nuke.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
* A nuke landing position.
* This object cannot be removed or modified.
* You can find incoming nukes in the room using the FIND_NUKES constant.
* @class
* @extends {RoomObject}
*
* @see {@link http://support.screeps.com/hc/en-us/articles/208488525-Nuke}
*/
Nuke = function() { };
Nuke.prototype =
{
/**
* A unique object identificator.
* You can use Game.getObjectById method to retrieve an object instance by its id.
*
* @see {@link http://support.screeps.com/hc/en-us/articles/208488525-Nuke#id}
*
* @type {string}
*/
id: "",
/**
* The name of the room where this nuke has been launched from.
*
* @see {@link http://support.screeps.com/hc/en-us/articles/208488525-Nuke#launchRoomName}
*
* @type {string}
*/
launchRoomName: "",
/**
* The remaining landing time.
*
* @see {@link http://support.screeps.com/hc/en-us/articles/208488525-Nuke#timeToLand}
*
* @type {number}
*/
timeToLand: 0
};