Skip to main content

Class: RoomPlayer

Represents a player from the room.

Hierarchy​

Properties​

cheeses​

• cheeses: number

The number of cheeses that the player is carrying.


client​

• client: Client

Inherited from​

Player.client


facingRight​

• facingRight: boolean

Whether or not the player is facing right.


gender​

• gender: number

The player's gender.


isDead​

• isDead: boolean

Whether or not the player is dead.


isJumping​

• isJumping: boolean

Whether or not the player is in the air.


isShaman​

• isShaman: boolean

Whether or not the player is shaman.


isVampire​

• isVampire: boolean

Whether or not the player is vampire.


look​

• look: string

The current items and customisation of the player’s outfit as 1;0,0,0,0,0,0,0,0,0.


mouseColor​

• mouseColor: number

The player's mouse color.


movingLeft​

• movingLeft: boolean

Whether or not the player is moving left.


movingRight​

• movingRight: boolean

Whether or not the player is moving right.


name​

• name: string

The player's name.

Inherited from​

Player.name


nameColor​

• nameColor: number

The player's name color, By default : -1.


pcode​

• pcode: number

The player's temporary code.


respawnId​

• respawnId: number

The player's current respawn ID.


score​

• score: number

The player's score.


shamanColor​

• shamanColor: number

The player's shaman color.


title​

• title: number

The player's title ID.


titleStars​

• titleStars: number

How many stars in the title.


vx​

• vx: number

The player’s X velocity.


vy​

• vy: number

The player’s Y velocity.


x​

• x: number

The player’s X coordinate.


y​

• y: number

The player’s Y coordinate.

Accessors​

hasCheese​

• get hasCheese(): boolean

Whether or not the player has a cheese.

Returns​

boolean

Methods​

friend​

▸ friend(): void

Add player to the friend list

Returns​

void

Inherited from​

Player.friend


unfriend​

▸ unfriend(): void

Remove player from the friend list

Returns​

void

Inherited from​

Player.unfriend


whisper​

▸ whisper(message): void

Send a whisper to the player

Parameters​

NameType
messagestring

Returns​

void

Inherited from​

Player.whisper