import Quest from 'WTF-Adventure/WTF-Adventure/server/js/game/entity/character/player/quest/quest.js'
Quest
Direct Subclass:
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
data: * |
|
public |
description: * |
|
public |
id: * |
|
public |
name: * |
|
public |
|
|
public |
player: * |
|
public |
|
Method Summary
Public Methods | ||
public |
|
|
public |
finish() |
|
public |
forceTalk(npc: *, message: *) |
|
public |
getConversation(id: *): * |
|
public |
getDescription(): * |
|
public |
getId(): * |
|
public |
getInfo(): {"id": *, "name": *, "description": *, "stage": *, "finished": *} |
|
public |
getItem(): * |
|
public |
getItemReward(): * |
|
public |
getName(): * |
|
public |
getStage(): * |
|
public |
getTask(): * |
|
public |
hasInventorySpace(id: *, count: *): * |
|
public |
hasItemReward(): * |
|
public |
|
|
public |
hasNPC(id: *): * |
|
public |
isFinished(): * |
|
public |
onNPCTalk(callback: *) |
|
public |
resetTalkIndex(npc: *) Ensures that an NPC does not go off the conversation index and is resetted in order to start a new chat |
|
public |
setStage(stage: *) |
|
public |
triggerTalk(npc: *) |
|
public |
update() |
|
public |
|
Public Constructors
public constructor() source
Public Members
public data: * source
public description: * source
public id: * source
public name: * source
public npcTalkCallback: * source
public player: * source
Public Methods
public clearPointers() source
public finish() source
public forceTalk(npc: *, message: *) source
Params:
Name | Type | Attribute | Description |
npc | * | ||
message | * |
public getInfo(): {"id": *, "name": *, "description": *, "stage": *, "finished": *} source
Return:
{"id": *, "name": *, "description": *, "stage": *, "finished": *} |
public hasInventorySpace(id: *, count: *): * source
Params:
Name | Type | Attribute | Description |
id | * | ||
count | * |
Return:
* |
public onNPCTalk(callback: *) source
Params:
Name | Type | Attribute | Description |
callback | * |
public resetTalkIndex(npc: *) source
Ensures that an NPC does not go off the conversation index and is resetted in order to start a new chat
Params:
Name | Type | Attribute | Description |
npc | * |
public setStage(stage: *) source
Params:
Name | Type | Attribute | Description |
stage | * |
public triggerTalk(npc: *) source
Params:
Name | Type | Attribute | Description |
npc | * |