PkmnLib/src/Battling/Pokemon/PokemonParty.hpp

21 lines
771 B
C++
Raw Normal View History

2020-02-17 15:05:03 +00:00
#ifndef PKMNLIB_POKEMONPARTY_HPP
#define PKMNLIB_POKEMONPARTY_HPP
#include <CreatureLib/Battling/Models/CreatureParty.hpp>
#include "Pokemon.hpp"
namespace PkmnLib::Battling {
class PokemonParty : public CreatureLib::Battling::CreatureParty {
public:
2020-05-27 15:40:26 +00:00
PokemonParty(ArbUt::List<CreatureLib::Battling::Creature*> party)
2020-02-17 15:05:03 +00:00
: CreatureLib::Battling::CreatureParty(std::move(party)) {}
PokemonParty(std::initializer_list<CreatureLib::Battling::Creature*> party)
: CreatureLib::Battling::CreatureParty(party) {}
2020-12-28 14:11:06 +00:00
ArbUt::OptionalBorrowedPtr<Pokemon> GetAtIndex(int index) const {
return CreatureLib::Battling::CreatureParty::GetAtIndex(index).As<Pokemon>();
2020-02-17 15:05:03 +00:00
}
};
}
#endif // PKMNLIB_POKEMONPARTY_HPP