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

Method IsActorInParty

src/game_party.cpp:500–502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

498}
499
500bool Game_Party::IsActorInParty(int actor_id) {
501 return std::find(data.party.begin(), data.party.end(), actor_id) != data.party.end();
502}
503
504int Game_Party::GetActorPositionInParty(int actor_id) {
505 std::vector<short>::iterator it = std::find(data.party.begin(), data.party.end(), actor_id);

Callers 4

IsInPartyMethod · 0.80
CommandEnableComboMethod · 0.80
AreConditionsMetMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected