MCPcopy Create free account
hub / github.com/EasyRPG/Player / MakeAttack

Function MakeAttack

src/enemyai.cpp:44–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42#endif
43
44static std::shared_ptr<Game_BattleAlgorithm::AlgorithmBase> MakeAttack(Game_Enemy& enemy, int hits) {
45 return std::make_shared<Game_BattleAlgorithm::Normal>(&enemy, Main_Data::game_party->GetRandomActiveBattler(), hits);
46}
47
48static std::shared_ptr<Game_BattleAlgorithm::AlgorithmBase> MakeAttackAllies(Game_Enemy& enemy, int hits) {
49 return std::make_shared<Game_BattleAlgorithm::Normal>(&enemy, Main_Data::game_enemyparty->GetRandomActiveBattler(), hits);

Callers 2

MakeBasicActionFunction · 0.85
SetStateRestrictedActionFunction · 0.85

Calls 1

Tested by

no test coverage detected