# Interface: QuestHandlerInterface (/nqtr/index/interfaces/QuestHandlerInterface)



Defined in: [src/interface/quest/QuestHandlerInterface.ts:7](https://github.com/DRincs-Productions/nqtr/blob/2a388160e173dbee4577b96ebd63be923d890899/src/interface/quest/QuestHandlerInterface.ts#L7)

Handler that manages the quests registered in the game.

## Properties [#properties]

### completedQuests [#completedquests]

\> `readonly` **completedQuests**: [`QuestInterface`](/nqtr/index/interfaces/QuestInterface)\[]

Defined in: [src/interface/quest/QuestHandlerInterface.ts:23](https://github.com/DRincs-Productions/nqtr/blob/2a388160e173dbee4577b96ebd63be923d890899/src/interface/quest/QuestHandlerInterface.ts#L23)

The quests that are completed.

***

### failedQuests [#failedquests]

\> `readonly` **failedQuests**: [`QuestInterface`](/nqtr/index/interfaces/QuestInterface)\[]

Defined in: [src/interface/quest/QuestHandlerInterface.ts:27](https://github.com/DRincs-Productions/nqtr/blob/2a388160e173dbee4577b96ebd63be923d890899/src/interface/quest/QuestHandlerInterface.ts#L27)

The quests that are failed.

***

### inProgressQuests [#inprogressquests]

\> `readonly` **inProgressQuests**: [`QuestInterface`](/nqtr/index/interfaces/QuestInterface)\[]

Defined in: [src/interface/quest/QuestHandlerInterface.ts:19](https://github.com/DRincs-Productions/nqtr/blob/2a388160e173dbee4577b96ebd63be923d890899/src/interface/quest/QuestHandlerInterface.ts#L19)

The quests that are in progress.

***

### notStartedQuests [#notstartedquests]

\> `readonly` **notStartedQuests**: [`QuestInterface`](/nqtr/index/interfaces/QuestInterface)\[]

Defined in: [src/interface/quest/QuestHandlerInterface.ts:31](https://github.com/DRincs-Productions/nqtr/blob/2a388160e173dbee4577b96ebd63be923d890899/src/interface/quest/QuestHandlerInterface.ts#L31)

The quests that are not started.

***

### quests [#quests]

\> `readonly` **quests**: [`QuestInterface`](/nqtr/index/interfaces/QuestInterface)\[]

Defined in: [src/interface/quest/QuestHandlerInterface.ts:11](https://github.com/DRincs-Productions/nqtr/blob/2a388160e173dbee4577b96ebd63be923d890899/src/interface/quest/QuestHandlerInterface.ts#L11)

The quests registered in the game.

***

### startedQuests [#startedquests]

\> `readonly` **startedQuests**: [`QuestInterface`](/nqtr/index/interfaces/QuestInterface)\[]

Defined in: [src/interface/quest/QuestHandlerInterface.ts:15](https://github.com/DRincs-Productions/nqtr/blob/2a388160e173dbee4577b96ebd63be923d890899/src/interface/quest/QuestHandlerInterface.ts#L15)

The quests that are started, so they are in progress or completed or failed.

## Methods [#methods]

### find() [#find]

\> **find**(`id`): [`QuestInterface`](/nqtr/index/interfaces/QuestInterface) | `undefined`

Defined in: [src/interface/quest/QuestHandlerInterface.ts:37](https://github.com/DRincs-Productions/nqtr/blob/2a388160e173dbee4577b96ebd63be923d890899/src/interface/quest/QuestHandlerInterface.ts#L37)

Get the quest by the id.

#### Parameters [#parameters]

##### id [#id]

`string`

The id of the quest.

#### Returns [#returns]

[`QuestInterface`](/nqtr/index/interfaces/QuestInterface) | `undefined`

The quest with the id, or `undefined` if not found.

***

### startsStageMustBeStarted() [#startsstagemustbestarted]

\> **startsStageMustBeStarted**(`props`): `Promise`\<`void`>

Defined in: [src/interface/quest/QuestHandlerInterface.ts:42](https://github.com/DRincs-Productions/nqtr/blob/2a388160e173dbee4577b96ebd63be923d890899/src/interface/quest/QuestHandlerInterface.ts#L42)

Start the current stage of every quest whose current stage must be started automatically.

#### Parameters [#parameters-1]

##### props [#props]

`OnRunProps`

The props passed to the functions triggered by the stages. See [OnRunProps](/nqtr/index/interfaces/OnRunProps).

#### Returns [#returns-1]

`Promise`\<`void`>
