Class Player
Constructor
constructor(game: Gameclass GameGame, data: PlayerDatainterface PlayerDatastructures/player/PlayerData)
Properties
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.
judgement?: PlayerJudgementenum PlayerJudgementstructures/player/PlayerJudgement[src]