Method Summary |
|
__init__(self)
|
|
__getitem__ (self,
room_id)
Get the room |
|
__setitem__(self,
room_id,
room)
|
|
addPending (self,
socket,
addr)
Add a pending structure the this world the pending structure is the
data of unborned avatar |
|
addRoom (self,
room)
Add a room to the world |
|
born (self,
avatar,
room,
connection)
Make born an avatar to this world |
|
delPending(self,
socket)
|
|
delRoom (self,
room_id)
Delete room from this world by room identifier |
|
getAvatarByConnection (self,
connection)
Get the avatar by the given connection |
|
getAvatarBySocket(self,
socket)
|
list of Avatar
|
getAvatars (self)
Return all avatars of this world |
|
getAvatarSockets(self)
|
Room
|
getMainRoom (self)
Return the main room |
|
getPendingInfos(self,
socket)
|
list of socket
|
getPendingSockets (self)
Get the pending connection @return Sockets |
|
kill (self,
socket)
Kill the avatar by its socket not in use since using twisted |
|
killByConnection (self,
connection)
Kill an avatar by the connection instance |
boolean
|
nicknameExists (self,
nickname)
return if nickname is in this world |
|
ping (self,
socket)
Send a ping command the given socket |