-
Notifications
You must be signed in to change notification settings - Fork 105
/
RoomObject.js
38 lines (36 loc) · 1.02 KB
/
RoomObject.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
/**
* Any object with a position in a room.
* Almost all game objects prototypes are derived from RoomObject.
* @class
*
* @see {@link http://support.screeps.com/hc/en-us/articles/208435305-RoomObject}
*/
RoomObject = function() { };
RoomObject.prototype =
{
/**
* Applied effects, an array of objects
*
* @see {@link https://docs.screeps.com/api/#RoomObject.effects}
*
* @type {Array<{effect:number, level:number, ticksRemaining:number}>}
*/
effects: null,
/**
* An object representing the position of this object in the room.
*
* @see {@link http://support.screeps.com/hc/en-us/articles/208435305-RoomObject#pos}
*
* @type {RoomPosition}
*/
pos: null,
/**
* The link to the Room object.
* May be undefined in case if an object is a flag and is placed in a room that is not visible to you.
*
* @see {@link http://support.screeps.com/hc/en-us/articles/208435305-RoomObject#room}
*
* @type {Room}
*/
room: null
};