Files
CreatureLib/src/Battling/EventHooks/Events/FailEvent.hpp
Deukhoofd 46307fe71f
All checks were successful
continuous-integration/drone/push Build is passing
Initial work on attack fail handling.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-03-27 12:30:12 +01:00

17 lines
508 B
C++

#ifndef FAILEVENT_HPP
#define FAILEVENT_HPP
#include "EventData.hpp"
namespace CreatureLib::Battling {
class FailEvent final : public EventData {
ArbUt::BorrowedPtr<Creature> _creature;
public:
FailEvent(ArbUt::BorrowedPtr<Creature> c) noexcept : _creature(c) {}
EventDataKind GetKind() const noexcept override { return EventDataKind ::Faint; }
const ArbUt::BorrowedPtr<Creature>& GetCreature() const noexcept { return _creature; }
};
}
#endif // FAILEVENT_HPP