Implements outlines for ItemLibrary, MoveLibrary and implements NatureLibrary.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#ifndef PKMNLIB_TESTLIBRARY_HPP
|
||||
#define PKMNLIB_TESTLIBRARY_HPP
|
||||
|
||||
#include "../../src/Library/Moves/MoveLibrary.hpp"
|
||||
#include "../../src/Library/PokemonLibrary.hpp"
|
||||
class TestLibrary {
|
||||
private:
|
||||
@@ -16,8 +17,8 @@ public:
|
||||
|
||||
static PkmnLib::Library::PokemonLibrary* BuildLibrary() {
|
||||
return new PkmnLib::Library::PokemonLibrary(CreatureLib::Library::LibrarySettings(100, 4),
|
||||
BuildSpeciesLibrary(), BuildAttackLibrary(), BuildItemLibrary(),
|
||||
BuildGrowthRateLibrary(), BuildTypeLibrary());
|
||||
BuildSpeciesLibrary(), BuildMoveLibrary(), BuildItemLibrary(),
|
||||
BuildGrowthRateLibrary(), BuildTypeLibrary(), BuildNatureLibrary());
|
||||
}
|
||||
|
||||
static PkmnLib::Library::SpeciesLibrary* BuildSpeciesLibrary() {
|
||||
@@ -25,13 +26,13 @@ public:
|
||||
return lib;
|
||||
}
|
||||
|
||||
static CreatureLib::Library::AttackLibrary* BuildAttackLibrary() {
|
||||
auto lib = new CreatureLib::Library::AttackLibrary();
|
||||
static PkmnLib::Library::MoveLibrary* BuildMoveLibrary() {
|
||||
auto lib = new PkmnLib::Library::MoveLibrary();
|
||||
return lib;
|
||||
}
|
||||
|
||||
static CreatureLib::Library::ItemLibrary* BuildItemLibrary() {
|
||||
auto lib = new CreatureLib::Library::ItemLibrary();
|
||||
static PkmnLib::Library::ItemLibrary* BuildItemLibrary() {
|
||||
auto lib = new PkmnLib::Library::ItemLibrary();
|
||||
return lib;
|
||||
}
|
||||
|
||||
@@ -44,6 +45,12 @@ public:
|
||||
auto lib = new CreatureLib::Library::TypeLibrary();
|
||||
return lib;
|
||||
}
|
||||
|
||||
static PkmnLib::Library::NatureLibrary* BuildNatureLibrary() {
|
||||
auto lib = new PkmnLib::Library::NatureLibrary();
|
||||
return lib;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#endif // PKMNLIB_TESTLIBRARY_HPP
|
||||
|
||||
Reference in New Issue
Block a user