Class: Quest

Quest


new Quest(id, name [, important])

Parameters:
Name Type Argument Default Description
id string
name string
important boolean <optional>
false

If the quest log should show this as a pink or grey heart

Properties:
Name Type Description
start string

The ID of the SubQuest that is the start of the quest

end string

The ID of the SubQuest that is the end of the quest

completed boolean

Is the quest completed

Source:
Returns:
Type
Quest

Methods


addSubQuest(id)

Parameters:
Name Type Description
id string
Source:
Returns:
Type
SubQuest

getEnd()

Source:
Returns:
Type
string

getID()

Source:
Returns:
Type
string

getImportant()

Source:
Returns:
Type
boolean

getName()

Source:
Returns:
Type
string

getStart()

Source:
Returns:
Type
string

getSubQuests( [subquestID])

Parameters:
Name Type Argument Description
subquestID string <optional>
Source:
Returns:
Type
Object | *

isComplete()

Checks to see if subquest this.end is complete

Source:
Returns:
Type
boolean

setEnd(subquestID)

Parameters:
Name Type Description
subquestID string
Source:
Returns:
Type
Quest

setID(id)

Parameters:
Name Type Description
id
Source:
Returns:
Type
Quest

setImportant(boolean)

Parameters:
Name Type Description
boolean
Source:
Returns:
Type
Quest

setName(name)

Parameters:
Name Type Description
name
Source:
Returns:
Type
Quest

setStart(subquestID)

Parameters:
Name Type Description
subquestID string
Source:
Returns:
Type
Quest