Property | Type | Description | |
---|---|---|---|
NUM_QUEST_IDS | int |
Method | Description | |
---|---|---|
addQuestState ( QuestID id, QuestState state ) : void |
Adds the given state(s) to the quest with the given ID (keeping any old states)
|
|
getQuestState ( QuestID id ) : QuestState |
Returns the state(s) of the given quests. Check what states are active using bitwise operations (&).
|
|
getQuestStateSave ( ) : QuestState[] |
Used for saving purposes only
|
|
isQuestAccepted ( QuestID id ) : bool | ||
isQuestAvailable ( QuestID id ) : bool | ||
isQuestComplete ( QuestID id ) : bool | ||
isQuestStateActive ( QuestID id, QuestState state ) : bool |
Checks a given quest for the given quest state(s)
|
|
isQuestStateInactive ( QuestID id, QuestState state ) : bool |
Checks a given quest for whether the given state(s) is switched off
|
|
loadQuestStateSave ( QuestState loadableTriggers ) : void |
Used for loading in quest states when restoring a saved game
|
|
overwriteQuestState ( QuestID id, QuestState state ) : void |
Sets the quest with the given ID to a given state (overwrites any old states!)
|
|
removeQuestState ( QuestID id, QuestState state ) : void |
Removes the given state(s) from the quest with the given ID (keeping other states)
|
|
setQuestAccepted ( QuestID id ) : void | ||
setQuestAvailable ( QuestID id ) : void | ||
setQuestComplete ( QuestID id ) : void |
Method | Description | |
---|---|---|
nullCheck ( ) : void | ||
pushEvent ( |
public static addQuestState ( QuestID id, QuestState state ) : void | ||
id | QuestID | The particular quest |
state | QuestState | The state(s) to add |
return | void |
public static getQuestState ( QuestID id ) : QuestState | ||
id | QuestID | The particular quest |
return | QuestState |
public static getQuestStateSave ( ) : QuestState[] | ||
return | QuestState[] |
public static isQuestAccepted ( QuestID id ) : bool | ||
id | QuestID | |
return | bool |
public static isQuestAvailable ( QuestID id ) : bool | ||
id | QuestID | |
return | bool |
public static isQuestComplete ( QuestID id ) : bool | ||
id | QuestID | |
return | bool |
public static isQuestStateActive ( QuestID id, QuestState state ) : bool | ||
id | QuestID | The particular quest |
state | QuestState | The quest state(s) to check |
return | bool |
public static isQuestStateInactive ( QuestID id, QuestState state ) : bool | ||
id | QuestID | The particular quest |
state | QuestState | The quest state(s) to check |
return | bool |
public static loadQuestStateSave ( QuestState loadableTriggers ) : void | ||
loadableTriggers | QuestState | A QuestState[] representation of the states to load |
return | void |
public static overwriteQuestState ( QuestID id, QuestState state ) : void | ||
id | QuestID | The particular quest |
state | QuestState | The new state(s) of the quest |
return | void |
public static removeQuestState ( QuestID id, QuestState state ) : void | ||
id | QuestID | The particular quest |
state | QuestState | The state(s) to remove |
return | void |
public static setQuestAccepted ( QuestID id ) : void | ||
id | QuestID | |
return | void |
public static setQuestAvailable ( QuestID id ) : void | ||
id | QuestID | |
return | void |
public static setQuestComplete ( QuestID id ) : void | ||
id | QuestID | |
return | void |