Search results

Types

Classes
Interfaces
Enums
Functions
Type aliases
Constants

Members

Properties
Methods
Getters
Setters
Enum members
Show privates

Other

In this module only

Class Player

Defined in index

Constructor

constructor(game: Gameclass GameGame, data: PlayerDatainterface PlayerDatastructures/player/PlayerData)

Properties

game: Gameclass GameGame[src]
role: Roleclass Rolestructures/role/Role[src]
state: PlayerStateenum PlayerStatestructures/player/PlayerState[src]
targets?: Arrayexternal Array<Playerclass Playerstructures/player/Player>[src]

If the array of targets is empty, then that means the player stayed home (aka they didn't select anyone to target), if the array is empty then the action targets: 0 will be executed only, if it's set to undefined, then the action has been removed from another role (for example escort).

This property is used for night and factional actions only, because day actions get immediately executed, the day action's targets don't need to be shown.

messages: Arrayexternal Array<PlayerMessageinterface PlayerMessagestructures/player/PlayerMessage>[src]

Night result messages. All of them get sent at once at the end of every night, and then the array gets emptied.

votedFor?: Playerclass Playerstructures/player/Player[src]
judgement?: PlayerJudgementenum PlayerJudgementstructures/player/PlayerJudgement[src]
nightly: Recordexternal Record<string, unknown>[src]

An object which gets cleared at the end of every night, anything can be stored inside.