57 lines
3.4 KiB
C++
57 lines
3.4 KiB
C++
#include "TestLibrary.hpp"
|
|
PkmnLib::Battling::BattleLibrary* TestLibrary::_library = nullptr;
|
|
PkmnLib::Library::SpeciesLibrary* TestLibrary::BuildSpeciesLibrary() {
|
|
auto lib = new PkmnLib::Library::SpeciesLibrary();
|
|
lib->LoadSpecies("testSpecies",
|
|
new PkmnLib::Library::PokemonSpecies(
|
|
1, "testSpecies",
|
|
new PkmnLib::Library::PokemonForme(
|
|
"default", 1.0f, 1.0f, 100, {0},
|
|
CreatureLib::Core::StatisticSet<uint16_t>(100, 100, 100, 100, 100, 100), {"testAbility"},
|
|
{"testHiddenAbility"}, new CreatureLib::Library::LearnableAttacks(100)),
|
|
0.5f, "testGrowthRate", 100, 100));
|
|
lib->LoadSpecies("testSpecies2",
|
|
new PkmnLib::Library::PokemonSpecies(
|
|
2, "testSpecies2",
|
|
new PkmnLib::Library::PokemonForme(
|
|
"default", 1.0f, 1.0f, 100, {0},
|
|
CreatureLib::Core::StatisticSet<uint16_t>(100, 100, 100, 100, 100, 100), {"testAbility"},
|
|
{"testHiddenAbility"}, new CreatureLib::Library::LearnableAttacks(100)),
|
|
0.5f, "testGrowthRate", 100, 100));
|
|
lib->LoadSpecies("statTestSpecies1",
|
|
new PkmnLib::Library::PokemonSpecies(
|
|
3, "statTestSpecies1",
|
|
new PkmnLib::Library::PokemonForme(
|
|
"default", 1.0f, 1.0f, 100, {0},
|
|
CreatureLib::Core::StatisticSet<uint16_t>(100, 100, 100, 100, 100, 100), {"testAbility"},
|
|
{"testHiddenAbility"}, new CreatureLib::Library::LearnableAttacks(100)),
|
|
0.5f, "testGrowthRate", 100, 100));
|
|
lib->LoadSpecies("testSpecies3",
|
|
new PkmnLib::Library::PokemonSpecies(
|
|
2, "testSpecies3",
|
|
new PkmnLib::Library::PokemonForme(
|
|
"default", 1.0f, 1.0f, 100, {0, 4},
|
|
CreatureLib::Core::StatisticSet<uint16_t>(100, 100, 100, 100, 100, 100), {"testAbility"},
|
|
{"testHiddenAbility"}, new CreatureLib::Library::LearnableAttacks(100)),
|
|
0.5f, "testGrowthRate", 100, 100));
|
|
|
|
|
|
return lib;
|
|
}
|
|
PkmnLib::Library::MoveLibrary* TestLibrary::BuildMoveLibrary() {
|
|
auto lib = new PkmnLib::Library::MoveLibrary();
|
|
lib->LoadMove("testMove",
|
|
new PkmnLib::Library::MoveData("testMove", 0, PkmnLib::Library::MoveCategory::Physical, 50, 100, 20,
|
|
CreatureLib::Library::AttackTarget::Adjacent, 0, {}));
|
|
lib->LoadMove("testMove2",
|
|
new PkmnLib::Library::MoveData("testMove2", 0, PkmnLib::Library::MoveCategory::Special, 30, 100, 10,
|
|
CreatureLib::Library::AttackTarget::Adjacent, 0, {}));
|
|
return lib;
|
|
}
|
|
PkmnLib::Library::ItemLibrary* TestLibrary::BuildItemLibrary() {
|
|
auto lib = new PkmnLib::Library::ItemLibrary();
|
|
lib->LoadItem("testItem", new PkmnLib::Library::Item("testItem", CreatureLib::Library::ItemCategory::MiscItem,
|
|
CreatureLib::Library::BattleItemCategory::None, 0, {}));
|
|
return lib;
|
|
}
|