Class PlayerVoteState<RoomType>
Constructors
constructor
- new PlayerVoteState<RoomType>(room: RoomType, playerId: number, votedForId: number): PlayerVoteState<RoomType>
-
Type parameters
-
RoomType: Hostable<any, RoomType>
Parameters
-
room: RoomType
-
playerId: number
-
votedForId: number
Accessors
didMissVote
- get didMissVote(): 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.