Adds a couple of helper functions for battles to run turns, prettify outputs.
This commit is contained in:
parent
9b27ad72f1
commit
9dafa51e9d
|
@ -38,7 +38,7 @@ public:
|
||||||
auto scriptResolver = PkmnLib::Battling::BattleLibrary::CreateScriptResolver();
|
auto scriptResolver = PkmnLib::Battling::BattleLibrary::CreateScriptResolver();
|
||||||
|
|
||||||
auto battleLib = new PkmnLib::Battling::BattleLibrary(
|
auto battleLib = new PkmnLib::Battling::BattleLibrary(
|
||||||
staticLibrary, new PkmnLib::Battling::StatCalculator(), new PkmnLib::Battling::DamageLibrary(),
|
staticLibrary, new PkmnLib::Battling::StatCalculator(), new PkmnLib::Battling::DamageLibrary(false),
|
||||||
new PkmnLib::Battling::ExperienceLibrary(), scriptResolver, new PkmnLib::Battling::MiscLibrary(GetTime));
|
new PkmnLib::Battling::ExperienceLibrary(), scriptResolver, new PkmnLib::Battling::MiscLibrary(GetTime));
|
||||||
|
|
||||||
scriptResolver->Initialize(battleLib);
|
scriptResolver->Initialize(battleLib);
|
||||||
|
|
Loading…
Reference in New Issue