2019-11-02 12:57:43 +00:00
|
|
|
#ifndef CREATURELIB_TARGET_HPP
|
|
|
|
#define CREATURELIB_TARGET_HPP
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
#include "Creature.hpp"
|
|
|
|
|
|
|
|
namespace CreatureLib::Battling {
|
|
|
|
class Target {
|
|
|
|
uint8_t _side;
|
|
|
|
uint8_t _creature;
|
2019-11-28 11:55:22 +00:00
|
|
|
|
2019-11-02 12:57:43 +00:00
|
|
|
public:
|
2019-11-28 11:55:22 +00:00
|
|
|
Target(uint8_t side, uint8_t creature) : _side(side), _creature(creature) {}
|
2019-11-02 12:57:43 +00:00
|
|
|
|
2019-11-28 11:55:22 +00:00
|
|
|
uint8_t GetSideIndex() const { return _side; }
|
2019-11-02 12:57:43 +00:00
|
|
|
|
2019-11-28 11:55:22 +00:00
|
|
|
uint8_t GetCreatureIndex() const { return _creature; }
|
2019-11-02 12:57:43 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2019-11-28 11:55:22 +00:00
|
|
|
#endif // CREATURELIB_TARGET_HPP
|