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

Method CommandShowBattleAnimation

src/game_interpreter_map.cpp:699–719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

697}
698
699bool Game_Interpreter_Map::CommandShowBattleAnimation(lcf::rpg::EventCommand const& com) { // code 11210
700 int animation_id = com.parameters[0];
701 int evt_id = com.parameters[1];
702 bool waiting_battle_anim = com.parameters[2] > 0;
703 bool global = com.parameters[3] > 0;
704
705 Game_Character* chara = GetCharacter(evt_id, "ShowBattleAnimation");
706 if (chara == NULL)
707 return true;
708
709 if (evt_id == Game_Character::CharThisEvent)
710 evt_id = GetThisEventId();
711
712 int frames = Main_Data::game_screen->ShowBattleAnimation(animation_id, evt_id, global);
713
714 if (waiting_battle_anim) {
715 _state.wait_time = frames;
716 }
717
718 return true;
719}
720
721bool Game_Interpreter_Map::CommandFlashSprite(lcf::rpg::EventCommand const& com) { // code 11320
722 int event_id = ValueOrVariableBitfield(com, 7, 0, 0);

Callers

nothing calls this directly

Calls 1

ShowBattleAnimationMethod · 0.45

Tested by

no test coverage detected