Initial work on attack fail handling.
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
2021-03-27 12:30:12 +01:00
parent 6ef8edc2df
commit 46307fe71f
5 changed files with 64 additions and 34 deletions

View File

@@ -0,0 +1,16 @@
#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