Module bzPicture :: Class bzPicture
[frames] | no frames]

Class bzPicture

source code


Instance Methods
bzClient
__init__(self)
Returns: N/A
source code
Integer
getNbPlayers(self)
Gives the number of clients connected to the serveur.
source code
list of String
getPlayersPseudo(self)
Gives the list of currently connected players
source code
Integer
getPlayerId(self, name)
Gives the Id of the player which pseudo is name
source code
String
getPlayerPseudo(self, Id)
Gives the pseudo of the player which id is Id
source code
3*3 Matrix
getPlayerOrientation(self, Id)
Gives the rotation matrix of the player which Id is Id
source code
3*1 Vector
getPlayerPosition(self, Id)
Gives the position vector of the player which id is Id
source code
Integer
getPlayerAction(self, Id)
Gives the action the player is currently performing
source code
Integer
getPlayerScene(self, Id)
Gives the scene the player is in.
source code
list of 3*3 Matrix.
getPlayersOrientations(self)
Gives a list of player's rotation matrix.
source code
list of 3*1 Vector.
getPlayersPositions(self)
Gives a list of player's position vector.
source code
list of Integer.
getPlayersActions(self)
Gives a list of player's action.
source code
list of Integer.
getPlayersScenes(self)
Gives a list of player's scene.
source code
tuple {String, String} or None
popTextMessage(self)
Gives the next received text message and remove it from pending message
source code
 
updateFromMessageList(self, msgList)
Updates picture information from a message list.
source code
Method Details

__init__(self)
(Constructor)

source code 
Returns: bzClient
N/A

getNbPlayers(self)

source code 
Gives the number of clients connected to the serveur.
Returns: Integer
The number of people connected to the server

getPlayersPseudo(self)

source code 
Gives the list of currently connected players
Returns: list of String
the list of connected players'pseudos

getPlayerId(self, name)

source code 
Gives the Id of the player which pseudo is name
Parameters:
  • name (String) - The pseudo of the player.
Returns: Integer
the Id of the player.

getPlayerPseudo(self, Id)

source code 
Gives the pseudo of the player which id is Id
Parameters:
  • Id (Integer) - The id of the player.
Returns: String
the pseudo of the player.

getPlayerOrientation(self, Id)

source code 
Gives the rotation matrix of the player which Id is Id
Parameters:
  • Id (Integer) - The id of the player.
Returns: 3*3 Matrix
the orientation matrix of the player.

getPlayerPosition(self, Id)

source code 
Gives the position vector of the player which id is Id
Parameters:
  • Id (Integer) - The id of the player.
Returns: 3*1 Vector
the position of the player [PosX, PosY, PosY].

getPlayerAction(self, Id)

source code 
Gives the action the player is currently performing
Parameters:
  • Id (Integer) - The id of the player.
Returns: Integer
the action played by the player.

getPlayerScene(self, Id)

source code 
Gives the scene the player is in.
Parameters:
  • Id (Integer) - The id of the player.
Returns: Integer
the scene number the player is in.

getPlayersOrientations(self)

source code 
Gives a list of player's rotation matrix.
Returns: list of 3*3 Matrix.
the list of players rotation matrix.

getPlayersPositions(self)

source code 
Gives a list of player's position vector.
Returns: list of 3*1 Vector.
the list of players position vector [posX, posY, posY].

getPlayersActions(self)

source code 
Gives a list of player's action.
Returns: list of Integer.
the list of players action.

getPlayersScenes(self)

source code 
Gives a list of player's scene.
Returns: list of Integer.
the list of players scene.

popTextMessage(self)

source code 
Gives the next received text message and remove it from pending message
Returns: tuple {String, String} or None
the next message (sender_pseudo , message).

updateFromMessageList(self, msgList)

source code 
Updates picture information from a message list.
Parameters:
  • msgList (dictionnary) - The list of recently received message .