All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
18 lines
647 B
C++
18 lines
647 B
C++
#ifndef CREATURELIB_ATTACKUSEEVENT_HPP
|
|
#define CREATURELIB_ATTACKUSEEVENT_HPP
|
|
#include "../../Models/ExecutingAttack.hpp"
|
|
#include "EventData.hpp"
|
|
|
|
namespace CreatureLib::Battling {
|
|
class AttackUseEvent final : public EventData {
|
|
ArbUt::BorrowedPtr<ExecutingAttack> _attack;
|
|
|
|
public:
|
|
AttackUseEvent(const ArbUt::BorrowedPtr<ExecutingAttack>& attack) noexcept : _attack(attack) {}
|
|
EventDataKind GetKind() const noexcept override { return EventDataKind ::AttackUse; }
|
|
const ArbUt::BorrowedPtr<ExecutingAttack>& GetAttack() const noexcept { return _attack; }
|
|
};
|
|
}
|
|
|
|
#endif // CREATURELIB_ATTACKUSEEVENT_HPP
|