Renamed Target class to CreatureIndex
This commit is contained in:
21
src/Battling/Models/CreatureIndex.hpp
Normal file
21
src/Battling/Models/CreatureIndex.hpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef CREATURELIB_CREATUREINDEX_HPP
|
||||
#define CREATURELIB_CREATUREINDEX_HPP
|
||||
|
||||
#include <cstdint>
|
||||
#include "Creature.hpp"
|
||||
|
||||
namespace CreatureLib::Battling {
|
||||
class CreatureIndex {
|
||||
uint8_t _side;
|
||||
uint8_t _creature;
|
||||
|
||||
public:
|
||||
CreatureIndex(uint8_t side, uint8_t creature) : _side(side), _creature(creature) {}
|
||||
|
||||
uint8_t GetSideIndex() const { return _side; }
|
||||
|
||||
uint8_t GetCreatureIndex() const { return _creature; }
|
||||
};
|
||||
}
|
||||
|
||||
#endif // CREATURELIB_CREATUREINDEX_HPP
|
||||
Reference in New Issue
Block a user