MCPcopy
hub / github.com/FreezingMoon/AncientBeast / getStrategyFor

Method getStrategyFor

src/bot.ts:171–173  ·  view source on GitHub ↗

Returns the unit-specific strategy for the given creature, if one exists.

(creature: Creature)

Source from the content-addressed store, hash-verified

169
170 /** Returns the unit-specific strategy for the given creature, if one exists. */
171 getStrategyFor(creature: Creature): UnitBotStrategy | undefined {
172 return unitStrategies[creature.type as string];
173 }
174
175 handleCreatureSignal(message: string, payload?: { creature?: Creature }) {
176 if (message === 'activate') {

Callers 7

getPreferredXMethod · 0.95
scoreMoveHexMethod · 0.95
scoreAbilityHexMethod · 0.95
isRetreatingMethod · 0.95
tryMovementAbilityMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected