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

Function MakeActor

tests/autobattle.cpp:16–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16decltype(auto) MakeActor(int id, int hp, int sp, int atk, int def, int spi, int agi) {
17 auto actor = Game_Actor(id);
18 actor.SetBaseMaxHp(hp);
19 actor.SetHp(actor.GetMaxHp());
20 actor.SetBaseMaxSp(sp);
21 actor.SetSp(actor.GetMaxSp());
22 actor.SetBaseAtk(atk);
23 actor.SetBaseDef(def);
24 actor.SetBaseSpi(spi);
25 actor.SetBaseAgi(agi);
26 return actor;
27}
28
29TEST_SUITE_BEGIN("Autobattle");
30

Callers 1

autobattle.cppFile · 0.70

Calls 11

SetBaseMaxHpMethod · 0.80
GetMaxHpMethod · 0.80
SetBaseMaxSpMethod · 0.80
GetMaxSpMethod · 0.80
SetBaseAtkMethod · 0.80
SetBaseDefMethod · 0.80
SetBaseSpiMethod · 0.80
SetBaseAgiMethod · 0.80
Game_ActorClass · 0.50
SetHpMethod · 0.45
SetSpMethod · 0.45

Tested by

no test coverage detected