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

Function MakeActions

tests/enemyai.cpp:230–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230static std::vector<lcf::rpg::EnemyAction> MakeActions(std::initializer_list<ActionParams> ilist) {
231 std::vector<lcf::rpg::EnemyAction> actions;
232 for (auto& il: ilist) {
233 actions.push_back({});
234 actions.back().rating = il.rating;
235 actions.back().kind = il.kind;
236 actions.back().basic = il.basic;
237 }
238 return actions;
239}
240
241static void testActionType(int start, int end, Game_BattleAlgorithm::Type type_compat, Game_BattleAlgorithm::Type type_improved, Game_Enemy& source) {
242 for (int rng = start; rng < end; ++rng) {

Callers 1

enemyai.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected