Implemented and fixed all code required to run at least a single turn.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
21
src/Battling/Models/BattleParty.hpp
Normal file
21
src/Battling/Models/BattleParty.hpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef CREATURELIB_BATTLEPARTY_HPP
|
||||
#define CREATURELIB_BATTLEPARTY_HPP
|
||||
|
||||
#include "CreatureIndex.hpp"
|
||||
#include "CreatureParty.hpp"
|
||||
|
||||
namespace CreatureLib::Battling {
|
||||
class BattleParty {
|
||||
CreatureParty* _party;
|
||||
std::vector<CreatureIndex> _responsibleIndices;
|
||||
|
||||
public:
|
||||
BattleParty(CreatureParty* party, std::vector<CreatureIndex> responsibleIndices)
|
||||
: _party(party), _responsibleIndices(responsibleIndices) {}
|
||||
|
||||
CreatureParty* GetParty() { return _party; }
|
||||
std::vector<CreatureIndex>& GetResponsibleIndices() { return _responsibleIndices; }
|
||||
};
|
||||
}
|
||||
|
||||
#endif // CREATURELIB_BATTLEPARTY_HPP
|
||||
Reference in New Issue
Block a user