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

Method AttackSelected

src/scene_battle.cpp:402–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400}
401
402void Scene_Battle::AttackSelected() {
403 Main_Data::game_system->SePlay(Main_Data::game_system->GetSystemSE(Main_Data::game_system->SFX_Decision));
404
405 if (active_actor->HasAttackAll()) {
406 active_actor->SetBattleAlgorithm(std::make_shared<Game_BattleAlgorithm::Normal>(active_actor, Main_Data::game_enemyparty.get()));
407 ActionSelectedCallback(active_actor);
408 } else {
409 SetState(State_SelectEnemyTarget);
410 }
411}
412
413void Scene_Battle::DefendSelected() {
414 Main_Data::game_system->SePlay(Main_Data::game_system->GetSystemSE(Main_Data::game_system->SFX_Decision));

Callers

nothing calls this directly

Calls 4

SePlayMethod · 0.80
SetBattleAlgorithmMethod · 0.80
HasAttackAllMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected