Returns the unit-specific strategy for the given creature, if one exists.
(creature: Creature)
| 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') { |
no outgoing calls
no test coverage detected