QuestEvent.cpp 502 B

123456789101112131415161718192021222324252627
  1. #include "QuestEvent.h"
  2. QuestEvent::QuestEvent(Entity* actingEntity)
  3. : ReferenceCounter(),
  4. actingEntity(actingEntity)
  5. {}
  6. QuestEvent::~QuestEvent()
  7. {
  8. actingEntity->release();
  9. }
  10. Entity* QuestEvent::zActingEntity() const
  11. {
  12. return actingEntity;
  13. }
  14. QuestEventOpenDialog::QuestEventOpenDialog(Entity* actingEntity,
  15. Framework::Text dialogId)
  16. : QuestEvent(actingEntity),
  17. dialogId(dialogId)
  18. {}
  19. const Framework::Text& QuestEventOpenDialog::getDialogId() const
  20. {
  21. return dialogId;
  22. }