Class PlayerVoteState<RoomType>
Constructors
constructor
- new PlayerVoteState<RoomType>(room: RoomType, playerId: number, votedForId: number): PlayerVoteState<RoomType>
-
Parameters
-
room: RoomType
-
playerId: number
-
votedForId: number
Accessors
didMissVote
- get didMissVote(): boolean
-
Returns boolean
didSkip
- get didSkip(): boolean
-
Returns boolean
hasVoted
- get hasVoted(): boolean
-
Returns boolean
isDead
- get isDead(): boolean
-
Returns boolean
player
- get player(): undefined | PlayerData<RoomType>
-
Returns undefined | PlayerData<RoomType>
votedFor
- get votedFor(): undefined | PlayerData<RoomType>
-
Returns undefined | PlayerData<RoomType>
Properties
playerId
playerId: number
Readonly
room
room: RoomType
votedForId
votedForId: number
Represents a player's voting state.