Search
Preparing search index...
The search index is not available
Overmind
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
DirectiveGuard
Class DirectiveGuard
NPC defense directive for outpost rooms with invaders
Hierarchy
Directive
DirectiveGuard
Index
Constructors
constructor
Properties
colony
memory
name
overlords
pos
ref
requiredRCL
room
color
directive
Name
secondary
Color
Accessors
flag
print
Methods
alert
init
refresh
remove
run
set
Color
set
Position
spawn
Moar
Overlords
visuals
create
create
IfNot
Present
filter
find
is
Present
Constructors
constructor
new
Directive
Guard
(
flag
:
Flag
)
:
DirectiveGuard
Parameters
flag:
Flag
Returns
DirectiveGuard
Properties
colony
colony
:
Colony
memory
memory
:
DirectiveGuardMemory
name
name
:
string
overlords
overlords
:
object
Type declaration
[
name:
string
]:
Overlord
pos
pos
:
RoomPosition
ref
ref
:
string
requiredRCL
requiredRCL
:
number
room
room
:
Room
|
undefined
Static
color
color
:
3
= COLOR_BLUE
Static
directive
Name
directive
Name
:
string
= "guard"
Static
secondary
Color
secondary
Color
:
3
= COLOR_BLUE
Accessors
flag
get
flag
(
)
:
Flag
Returns
Flag
print
get
print
(
)
:
string
Returns
string
Methods
alert
alert
(
message
:
string
, priority
?:
NotifierPriority
)
:
void
Parameters
message:
string
Default value
priority:
NotifierPriority
= NotifierPriority.Normal
Returns
void
init
init
(
)
:
void
Returns
void
refresh
refresh
(
)
:
void
Returns
void
remove
remove
(
force
?:
boolean
)
:
number
|
undefined
Parameters
Default value
force:
boolean
= false
Returns
number
|
undefined
run
run
(
)
:
void
Returns
void
set
Color
set
Color
(
color
:
ColorConstant
, secondaryColor
?:
ColorConstant
)
:
number
Parameters
color:
ColorConstant
Optional
secondaryColor:
ColorConstant
Returns
number
set
Position
set
Position
(
pos
:
RoomPosition
)
:
number
Parameters
pos:
RoomPosition
Returns
number
spawn
Moar
Overlords
spawn
Moar
Overlords
(
)
:
void
Returns
void
visuals
visuals
(
)
:
void
Returns
void
Static
create
create
(
pos
:
RoomPosition
, opts
?:
DirectiveCreationOptions
)
:
number
|
string
Parameters
pos:
RoomPosition
Default value
opts:
DirectiveCreationOptions
= {}
Returns
number
|
string
Static
create
IfNot
Present
create
IfNot
Present
(
pos
:
RoomPosition
, scope
:
"room"
|
"pos"
, opts
?:
DirectiveCreationOptions
)
:
number
|
string
|
undefined
Parameters
pos:
RoomPosition
scope:
"room"
|
"pos"
Default value
opts:
DirectiveCreationOptions
= {}
Returns
number
|
string
|
undefined
Static
filter
filter
(
flag
:
Flag
)
:
boolean
Parameters
flag:
Flag
Returns
boolean
Static
find
find
(
flags
:
Flag
[]
)
:
Directive
[]
Parameters
flags:
Flag
[]
Returns
Directive
[]
Static
is
Present
is
Present
(
pos
:
RoomPosition
, scope
:
"room"
|
"pos"
)
:
boolean
Parameters
pos:
RoomPosition
scope:
"room"
|
"pos"
Returns
boolean
Globals
Directive
Guard
constructor
colony
memory
name
overlords
pos
ref
requiredRCL
room
color
directive
Name
secondary
Color
flag
print
alert
init
refresh
remove
run
set
Color
set
Position
spawn
Moar
Overlords
visuals
create
create
IfNot
Present
filter
find
is
Present
Generated using
TypeDoc
NPC defense directive for outpost rooms with invaders