new QuestFactory()
Properties:
Name | Type | Description |
---|---|---|
quests |
Map |
Methods
-
canStart(questRef) → {boolean}
-
Check to see if a player can start a given quest based on the quest's prerequisite quests
Parameters:
Name Type Description questRef
entityReference Returns:
boolean -
create(GameState, qid, player, state) → {Quest}
-
Parameters:
Name Type Description GameState
GameState qid
entityReference player
Player state
Array current quest state
Returns:
Quest -
get(qid) → {object}
-
Get a quest definition. Use
create
if you want an instance of a questParameters:
Name Type Description qid
string Returns:
object -
makeQuestKey(areaName, id) → {string}
-
Parameters:
Name Type Description areaName
string id
number Returns:
string