Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DirectiveHaul

Hauling directive: spawns hauler creeps to move large amounts of resourecs from a location (e.g. draining a storage)

Hierarchy

Index

Constructors

constructor

Properties

Private _drops

_drops: object

Type declaration

  • [resourceType: string]: Resource[]

Private _store

_store: StoreDefinition

colony

colony: Colony

memory

memory: DirectiveHaulMemory

name

name: string

overlords

overlords: object

Type declaration

pos

pos: RoomPosition

ref

ref: string

requiredRCL

requiredRCL: number

room

room: Room | undefined

Static color

color: 6 = COLOR_YELLOW

Static directiveName

directiveName: string = "haul"

Static secondaryColor

secondaryColor: 3 = COLOR_BLUE

Accessors

drops

  • get drops(): object

flag

  • get flag(): Flag

hasDrops

  • get hasDrops(): boolean

print

  • get print(): string

store

  • get store(): StoreDefinition

storeStructure

  • get storeStructure(): StructureStorage | StructureTerminal | StructureNuker | undefined

targetedBy

  • get targetedBy(): string[]

totalResources

  • get totalResources(): number
  • Total amount of resources remaining to be transported; cached into memory in case room loses visibility

    Returns number

Methods

alert

init

  • init(): void

refresh

  • refresh(): void

remove

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

run

  • run(): void

setColor

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

setPosition

  • setPosition(pos: RoomPosition): number

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