Class: Player
Represents a player from the room.
Hierarchy
↳
Player↳↳
RoomPlayer↳↳
Profile
Properties
client
• client: Client
Inherited from
name
• name: string
The player's name.
Methods
friend
▸ friend(): void
Add player to the friend list
Returns
void
unfriend
▸ unfriend(): void
Remove player from the friend list
Returns
void
whisper
▸ whisper(message): void
Send a whisper to the player
Parameters
| Name | Type |
|---|---|
message | string |
Returns
void