| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- #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;
- }
|