#include "QuestEvent.h" QuestEvent::QuestEvent(Entity* actingEntity) : ReferenceCounter(), actingEntity(actingEntity) {} QuestEvent::~QuestEvent() { if (actingEntity) { actingEntity->release(); } } Entity* QuestEvent::zActingEntity() const { return actingEntity; } QuestEventOpenDialog::QuestEventOpenDialog( Entity* actingEntity, Framework::Text dialogId) : QuestEvent(actingEntity), dialogId(dialogId) {} const Framework::Text& QuestEventOpenDialog::getDialogId() const { return dialogId; } QuestEventBlockBreak::QuestEventBlockBreak( Entity* actingEntity, int blockTypeId, int usedItemTypeId) : QuestEvent(actingEntity), blockTypeId(blockTypeId), usedItemTypeId(usedItemTypeId) {} int QuestEventBlockBreak::getBlockTypeId() const { return blockTypeId; } int QuestEventBlockBreak::getUsedItemTypeId() const { return usedItemTypeId; } QuestEventBlockPlace::QuestEventBlockPlace( Entity* actingEntity, int blockTypeId) : QuestEvent(actingEntity), blockTypeId(blockTypeId) {} int QuestEventBlockPlace::getBlockTypeId() const { return blockTypeId; } QuestEventBlockInteract::QuestEventBlockInteract( Entity* actingEntity, int blockTypeId, int usedItemTypeId) : QuestEvent(actingEntity), blockTypeId(blockTypeId), usedItemTypeId(usedItemTypeId) {} int QuestEventBlockInteract::getBlockTypeId() const { return blockTypeId; } int QuestEventBlockInteract::getUsedItemTypeId() const { return usedItemTypeId; } QuestEventTimeUpdate::QuestEventTimeUpdate() : QuestEvent(0) {} QuestEventItemPickup::QuestEventItemPickup( Entity* actingEntity, int itemTypeId, int amount) : QuestEvent(actingEntity), itemTypeId(itemTypeId), amount(amount) {} int QuestEventItemPickup::getItemTypeId() const { return itemTypeId; } int QuestEventItemPickup::getAmount() const { return amount; }