Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PlayerVoteState<RoomType>

Represents a player's voting state.

Type parameters

  • RoomType: Hostable

Hierarchy

  • PlayerVoteState

Index

Constructors

constructor

  • new PlayerVoteState<RoomType>(room: RoomType, playerId: number, votedForId: number): PlayerVoteState<RoomType>

Accessors

didMissVote

  • get didMissVote(): boolean

didSkip

  • get didSkip(): boolean

hasVoted

  • get hasVoted(): boolean

isDead

  • get isDead(): boolean

player

  • get player(): undefined | PlayerData<RoomType>

votedFor

  • get votedFor(): undefined | PlayerData<RoomType>

Properties

playerId

playerId: number

Readonly room

room: RoomType

votedForId

votedForId: number

Generated using TypeDoc