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

Function GetEnemyTargetNames

src/scene_battle_rpg2k.cpp:90–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90static std::vector<std::string> GetEnemyTargetNames() {
91 std::vector<std::string> commands;
92
93 std::vector<Game_Battler*> enemies;
94 Main_Data::game_enemyparty->GetActiveBattlers(enemies);
95
96 for (auto& enemy: enemies) {
97 commands.push_back(ToString(enemy->GetName()));
98 }
99
100 return commands;
101}
102
103void Scene_Battle_Rpg2k::CreateBattleTargetWindow() {
104 auto commands = GetEnemyTargetNames();

Callers 2

RefreshTargetWindowMethod · 0.70

Calls 2

GetActiveBattlersMethod · 0.80
GetNameMethod · 0.45

Tested by

no test coverage detected