#ifndef CREATURELIB_HEALEVENT_HPP #define CREATURELIB_HEALEVENT_HPP #include "EventData.hpp" namespace CreatureLib::Battling { class HealEvent final : public EventData { ArbUt::BorrowedPtr _creature; uint32_t _originalHealth; uint32_t _newHealth; public: HealEvent(ArbUt::BorrowedPtr c, uint32_t oHealth, uint32_t newHealth) noexcept : _creature(c), _originalHealth(oHealth), _newHealth(newHealth) {} EventDataKind GetKind() const noexcept override { return EventDataKind ::Heal; } const ArbUt::BorrowedPtr& GetCreature() const noexcept { return _creature; } uint32_t GetOriginalHealth() const noexcept { return _originalHealth; } uint32_t GetNewHealth() const noexcept { return _newHealth; } }; } #endif // CREATURELIB_HEALEVENT_HPP