QuestFactory

new QuestFactory()

Properties:
Name Type Description
quests Map

Methods

_makeQuestKey(areaName, id) → {string}

Parameters:
Name Type Description
areaName string
id number
Returns:
string

create(GameState, qid, player, state) → {Quest}

Parameters:
Name Type Description
GameState GameState
qid string
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 quest

Parameters:
Name Type Description
qid string
Returns:
object