Planeshift
|
This structure tracks assigned quests. More...
#include <pscharquestmgr.h>
Public Member Functions | |
csWeakRef< psQuest > & | GetQuest () |
Since "quest" member can be nulled without notice, this accessor function attempts to refresh it if NULL. | |
bool | IsCompleted () |
Checks if the quest(/step) assignment is marked as complete. | |
void | SetQuest (psQuest *q) |
Public Attributes | |
PID | assigner_id |
Character id of player who assigned quest to this player. This is used to make sure you cannot get two quests from the same guy at the same time. | |
unsigned int | completionOrder |
In case this questassignment was completed it will contain the order of completion. | |
bool | dirty |
Dirty flag determines minimal save on exit. | |
int | last_response |
To avoid losing a chain of responses in a quest, last responses are stored per assigned quest. | |
PID | last_response_from_npc_pid |
To avoid losing a chain of responses in a quest, last responses are stored per assigned quest. | |
unsigned long | lockout_end |
When a quest is completed, often it cannot immediately be repeated. This indicate the time when it can be started again. | |
char | status |
This status determines whether the quest was assigned, completed, or is marked for deletion. | |
Protected Attributes | |
csWeakRef< psQuest > | quest |
Weak pointer to the underlying quest relevant here. | |
int | quest_id |
Quest ID saved in case quest gets nulled out from us. |
This structure tracks assigned quests.
Definition at line 48 of file pscharquestmgr.h.
csWeakRef<psQuest>& QuestAssignment::GetQuest | ( | ) |
Since "quest" member can be nulled without notice, this accessor function attempts to refresh it if NULL.
bool QuestAssignment::IsCompleted | ( | ) |
Checks if the quest(/step) assignment is marked as complete.
void QuestAssignment::SetQuest | ( | psQuest * | q | ) |
Character id of player who assigned quest to this player. This is used to make sure you cannot get two quests from the same guy at the same time.
Definition at line 51 of file pscharquestmgr.h.
In case this questassignment was completed it will contain the order of completion.
Definition at line 64 of file pscharquestmgr.h.
Dirty flag determines minimal save on exit.
Definition at line 55 of file pscharquestmgr.h.
To avoid losing a chain of responses in a quest, last responses are stored per assigned quest.
Definition at line 59 of file pscharquestmgr.h.
To avoid losing a chain of responses in a quest, last responses are stored per assigned quest.
Definition at line 61 of file pscharquestmgr.h.
When a quest is completed, often it cannot immediately be repeated. This indicate the time when it can be started again.
Definition at line 57 of file pscharquestmgr.h.
csWeakRef<psQuest> QuestAssignment::quest [protected] |
Weak pointer to the underlying quest relevant here.
Definition at line 83 of file pscharquestmgr.h.
int QuestAssignment::quest_id [protected] |
Quest ID saved in case quest gets nulled out from us.
Definition at line 80 of file pscharquestmgr.h.
This status determines whether the quest was assigned, completed, or is marked for deletion.
Definition at line 53 of file pscharquestmgr.h.