Cleaned up Events, added events on species and variant changes.
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
2020-08-14 13:52:22 +02:00
parent c484c376c3
commit 64b08d4ff0
21 changed files with 249 additions and 121 deletions

View File

@@ -0,0 +1,16 @@
#ifndef CREATURELIB_FAINTEVENT_HPP
#define CREATURELIB_FAINTEVENT_HPP
#include "EventData.hpp"
namespace CreatureLib::Battling {
class FaintEvent : public EventData {
ArbUt::BorrowedPtr<Creature> _creature;
public:
FaintEvent(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 // CREATURELIB_FAINTEVENT_HPP