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

Method ProcessBattleActionAnimation

src/scene_battle_rpg2k3.cpp:2492–2511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2490}
2491
2492Scene_Battle_Rpg2k3::BattleActionReturn Scene_Battle_Rpg2k3::ProcessBattleActionAnimation(Game_BattleAlgorithm::AlgorithmBase* action) {
2493 const auto anim_id = action->GetAnimationId(0);
2494 if (anim_id) {
2495 action->PlayAnimation(anim_id, false, -1, CheckAnimFlip(action->GetSource()));
2496 }
2497 if (action->GetStartSe()) {
2498 Main_Data::game_system->SePlay(*action->GetStartSe());
2499 }
2500
2501 if (action->GetCBAMovement() != lcf::rpg::BattlerAnimationItemSkill::Movement_none) {
2502 cba_direction_back = true;
2503 }
2504
2505 if (action->ReflectTargets()) {
2506 SetBattleActionState(BattleActionState_AnimationReflect);
2507 } else {
2508 SetBattleActionState(BattleActionState_Execute);
2509 }
2510 return BattleActionReturn::eContinue;
2511}
2512
2513Scene_Battle_Rpg2k3::BattleActionReturn Scene_Battle_Rpg2k3::ProcessBattleActionAnimationReflect(Game_BattleAlgorithm::AlgorithmBase* action) {
2514 const auto anim_id = action->GetAnimationId(0);

Callers

nothing calls this directly

Calls 7

PlayAnimationMethod · 0.80
GetSourceMethod · 0.80
GetStartSeMethod · 0.80
SePlayMethod · 0.80
GetCBAMovementMethod · 0.80
ReflectTargetsMethod · 0.80
GetAnimationIdMethod · 0.60

Tested by

no test coverage detected