Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DefenseDirective

Hierarchy

Index

Constructors

constructor

Properties

colony

colony: Colony

memory

memory: FlagMemory

name

name: string

overlord

overlord: CombatOverlord

overlords

overlords: __type

pos

pos: RoomPosition

ref

ref: string

requiredRCL

requiredRCL: number

room

room: Room | undefined

Static color

color: ColorConstant

Static directiveName

directiveName: string

Static secondaryColor

secondaryColor: ColorConstant

Accessors

flag

  • get flag(): Flag

print

  • get print(): string

Methods

alert

Abstract init

  • init(): void

refresh

  • refresh(): void

remove

  • remove(force?: boolean): number | undefined

Abstract run

  • run(): void

setColor

  • setColor(color: ColorConstant, secondaryColor?: ColorConstant): number

setPosition

  • setPosition(pos: RoomPosition): number

Abstract spawnMoarOverlords

  • spawnMoarOverlords(): void

visuals

  • visuals(): void

Static create

  • create(pos: RoomPosition, opts?: DirectiveCreationOptions): number | string

Static createIfNotPresent

  • createIfNotPresent(pos: RoomPosition, scope: "room" | "pos", opts?: DirectiveCreationOptions): number | string | undefined

Static filter

  • filter(flag: Flag): boolean

Static find

Static isPresent

  • isPresent(pos: RoomPosition, scope: "room" | "pos"): boolean

Generated using TypeDoc