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

Method GetWeapons

src/game_actor.cpp:1506–1517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1504}
1505
1506std::array<const lcf::rpg::Item*, 2> Game_Actor::GetWeapons(Game_Battler::Weapon weapon) const {
1507 std::array<const lcf::rpg::Item*, 2> w = {{}};
1508 int i = 0;
1509 if (weapon == Game_Battler::WeaponPrimary || weapon == Game_Battler::WeaponAll) {
1510 w[i] = GetWeapon();
1511 if (w[i]) { ++i; }
1512 }
1513 if (weapon == Game_Battler::WeaponSecondary || weapon == Game_Battler::WeaponAll) {
1514 w[i] = Get2ndWeapon();
1515 }
1516 return w;
1517}
1518
1519
1520void Game_Actor::UpdateBattle() {

Callers 6

GetAnimationIdMethod · 0.80
vExecuteMethod · 0.80
GetCBAMovementMethod · 0.80
GetCBAAfterimageMethod · 0.80
GetWeaponDataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected