class

Player

Inherits Reference < Object

Constructors

new(id : Int32, username : String, token : String, ip : String, login_time : Time, priv : Privileges)
Source

Instance methods

add_channel(channel : Channels)
Source
add_friend(player : Player) : Nil
Source
add_priv(priv : Privileges) : Nil
Source
add_spectator(player : Player) : Nil
Source
channels
Source
client_priv
Source
dequeue
Source
enqueue(data : Bytes)
Source
enrich_geo
Source
friends
Source
get_relationship
Source
join_channel(channel : Channels) : Bool
Source
last_recv_time
Source
last_recv_time=(time : Time)
Source
leave_channel(channel : Channels, kick : Bool = true) : Nil
Source
login_time
Source
logout
Source
priv
Source
priv=(priv : Privileges)
Source
rem_priv(priv : Privileges) : Nil
Source
remove_channel(channel : Channels)
Source
remove_friend(player : Player) : Nil
Source
remove_spectator(player : Player) : Nil
Source
restricted
Source
send_msg(msg : String, sender : Player, chan : Channel | Nil = nil) : Nil
Source
spectating
Source
spectating=(spectating : Player | Nil)
Source
spectators
Source
spectators=(spectators : Array(Player))
Source
stats
Source
stats=(stats : PlayerStats)
Source
status
Source
status=(status : PlayerStatus)
Source
token
Source
update_offset(offset : Int32)
Source
username
Source