Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreepSetup

The CreepSetup class contains methods for flexibly generating creep body arrays when needed for spawning

Hierarchy

  • CreepSetup

Index

Constructors

Properties

Methods

Constructors

constructor

  • new CreepSetup(roleName: string, bodySetup?: object): CreepSetup

Properties

bodySetup

bodySetup: bodySetup

role

role: string

Methods

generateBody

  • generateBody(availableEnergy: number): BodyPartConstant[]

getBodyPotential

  • getBodyPotential(partType: BodyPartConstant, colony: Colony): number

Generated using TypeDoc