#include <tactics.h>
|
void | createTacticsGroups (State *state, std::vector< uint8_t > &inBaseArea) |
|
void | collectMapNodesCoveredByGroups (State *state) |
|
void | assignUnits (State *state, std::unordered_set< Unit * > &wasInAGroup, std::vector< Unit * > leftoverWorkers, std::vector< std::shared_ptr< Task >> &tasks) |
|
TacticsFightScores | combatSimFightPrediction (State *state, TacticsGroup &g, std::unordered_map< Unit *, int > &nmyInStaticDefenceRange, std::unordered_map< Unit *, int > &nmyAlmostInStaticDefenceRange) |
|
Unit * | getBestEnemyTarget (State *state, TacticsGroup &g, Unit *u, std::unordered_map< Unit *, int > &meleeTargetCount, std::unordered_map< Unit *, int > &lastTargetInRange, bool &anySpiderMinesNearby) |
|
bool | shouldRunFromHiddenTarget (TacticsGroup &g, Unit *u, Unit *target) |
|
Position | idleGroupTargetPos (State *state, Unit *u, std::vector< uint8_t > &inBaseArea) |
|
Position | findRunPos (State *state, Unit *u, std::vector< uint16_t > &fleeScore) |
|
Position | scoutGroupTargetPos (State *state, TacticsGroup &g, Unit *u, std::unordered_map< Unit *, std::pair< int, Position >> &scoutTarget, std::ranlux24 &rngEngine) |
|
Position | searchAndDestroyGroupTargetPos (State *state, Unit *u, std::unordered_map< Unit *, std::pair< int, Position >> &searchAndDestroyTarget, std::ranlux24 &rngEngine) |
|
void cherrypi::TacticsState::assignUnits |
( |
State * |
state, |
|
|
std::unordered_set< Unit * > & |
wasInAGroup, |
|
|
std::vector< Unit * > |
leftoverWorkers, |
|
|
std::vector< std::shared_ptr< Task >> & |
tasks |
|
) |
| |
void cherrypi::TacticsState::collectMapNodesCoveredByGroups |
( |
State * |
state | ) |
|
TacticsFightScores cherrypi::TacticsState::combatSimFightPrediction |
( |
State * |
state, |
|
|
TacticsGroup & |
g, |
|
|
std::unordered_map< Unit *, int > & |
nmyInStaticDefenceRange, |
|
|
std::unordered_map< Unit *, int > & |
nmyAlmostInStaticDefenceRange |
|
) |
| |
void cherrypi::TacticsState::createTacticsGroups |
( |
State * |
state, |
|
|
std::vector< uint8_t > & |
inBaseArea |
|
) |
| |
Position cherrypi::TacticsState::findRunPos |
( |
State * |
state, |
|
|
Unit * |
u, |
|
|
std::vector< uint16_t > & |
fleeScore |
|
) |
| |
Unit * cherrypi::TacticsState::getBestEnemyTarget |
( |
State * |
state, |
|
|
TacticsGroup & |
g, |
|
|
Unit * |
u, |
|
|
std::unordered_map< Unit *, int > & |
meleeTargetCount, |
|
|
std::unordered_map< Unit *, int > & |
lastTargetInRange, |
|
|
bool & |
anySpiderMinesNearby |
|
) |
| |
Position cherrypi::TacticsState::idleGroupTargetPos |
( |
State * |
state, |
|
|
Unit * |
u, |
|
|
std::vector< uint8_t > & |
inBaseArea |
|
) |
| |
Position cherrypi::TacticsState::searchAndDestroyGroupTargetPos |
( |
State * |
state, |
|
|
Unit * |
u, |
|
|
std::unordered_map< Unit *, std::pair< int, Position >> & |
searchAndDestroyTarget, |
|
|
std::ranlux24 & |
rngEngine |
|
) |
| |
bool cherrypi::TacticsState::shouldRunFromHiddenTarget |
( |
TacticsGroup & |
g, |
|
|
Unit * |
u, |
|
|
Unit * |
target |
|
) |
| |
std::unordered_map<Unit*, TacticsGroup*> cherrypi::TacticsState::hardAssignedUnits_ |
float cherrypi::TacticsState::insideGroupDistance_ = 4 * 16 |
std::vector<TacticsGroup*> cherrypi::TacticsState::nodeGroupEdgeTracker_ |
Initial value:= std::vector<TacticsGroup*>(
std::vector<TacticsMapNode> cherrypi::TacticsState::nodeInsideGroupTracker_ |
Initial value:=
std::vector<TacticsMapNode>(
std::unordered_map<Unit*, TacticsGroup*> cherrypi::TacticsState::softAssignedUnits_ |
int cherrypi::TacticsState::srcUpcId_ |
std::vector<uint8_t> cherrypi::TacticsState::tileSpotTakenTracker_ |
std::vector<uint8_t> cherrypi::TacticsState::tileVisitTracker_ |
uint8_t cherrypi::TacticsState::visitNumber_ = 0 |
The documentation for this struct was generated from the following files:
- src/modules/tactics.h
- src/modules/tactics.cpp