2019-12-29 14:29:52 +00:00
|
|
|
#include "TestLibrary.hpp"
|
2020-01-02 17:02:40 +00:00
|
|
|
PkmnLib::Battling::BattleLibrary* TestLibrary::_library = nullptr;
|
2020-01-05 14:18:30 +00:00
|
|
|
PkmnLib::Library::SpeciesLibrary* TestLibrary::BuildSpeciesLibrary() {
|
|
|
|
auto lib = new PkmnLib::Library::SpeciesLibrary();
|
2020-02-15 18:04:06 +00:00
|
|
|
lib->Insert("testSpecies",
|
2020-01-22 09:33:10 +00:00
|
|
|
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));
|
2020-02-15 18:04:06 +00:00
|
|
|
lib->Insert("testSpecies2",
|
2020-01-22 09:33:10 +00:00
|
|
|
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));
|
2020-02-15 18:04:06 +00:00
|
|
|
lib->Insert("statTestSpecies1",
|
2020-01-22 09:33:10 +00:00
|
|
|
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));
|
2020-02-15 18:04:06 +00:00
|
|
|
lib->Insert("testSpecies3",
|
2020-02-01 15:56:09 +00:00
|
|
|
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));
|
|
|
|
|
2020-01-05 14:18:30 +00:00
|
|
|
|
|
|
|
return lib;
|
|
|
|
}
|
2020-01-18 13:35:08 +00:00
|
|
|
PkmnLib::Library::MoveLibrary* TestLibrary::BuildMoveLibrary() {
|
|
|
|
auto lib = new PkmnLib::Library::MoveLibrary();
|
2020-02-15 18:04:06 +00:00
|
|
|
lib->Insert("testMove",
|
2020-01-22 09:33:10 +00:00
|
|
|
new PkmnLib::Library::MoveData("testMove", 0, PkmnLib::Library::MoveCategory::Physical, 50, 100, 20,
|
|
|
|
CreatureLib::Library::AttackTarget::Adjacent, 0, {}));
|
2020-02-15 18:04:06 +00:00
|
|
|
lib->Insert("testMove2",
|
2020-02-02 12:57:41 +00:00
|
|
|
new PkmnLib::Library::MoveData("testMove2", 0, PkmnLib::Library::MoveCategory::Special, 30, 100, 10,
|
|
|
|
CreatureLib::Library::AttackTarget::Adjacent, 0, {}));
|
2020-01-22 09:33:10 +00:00
|
|
|
return lib;
|
|
|
|
}
|
|
|
|
PkmnLib::Library::ItemLibrary* TestLibrary::BuildItemLibrary() {
|
|
|
|
auto lib = new PkmnLib::Library::ItemLibrary();
|
2020-02-15 18:04:06 +00:00
|
|
|
lib->Insert("testItem", new PkmnLib::Library::Item("testItem", CreatureLib::Library::ItemCategory::MiscItem,
|
2020-02-13 10:13:27 +00:00
|
|
|
CreatureLib::Library::BattleItemCategory::None, 0, {}, 0));
|
2020-01-18 13:35:08 +00:00
|
|
|
return lib;
|
|
|
|
}
|