Module bzMessage :: Class ClientsSituationReport
[frames] | no frames]

Class ClientsSituationReport

source code


Message that server periodically sends to all clients ???. It contains 'BfffffffffBBBBB%ds'*NbClients

Message is sent periodically (at each TIC). 'BfffffffffBBBBB%ds'*NbClients

Instance Methods
 
__init__(self, ids=[], pseudos=[], positions=[], orientations=[], headings=[], states=[], actions=[], scenes=[], avatars=[]) source code
Byte Array. 'BfffffffffBBBBB%ds' * NbClients
Encode(self, ids=[], pseudos=[], positions=[], orientations=[], states=[], actions=[], scenes=[], avatars=[])
Returns: the encoded data
source code
tuple of (Integer, list of Integer, list of String, list of 3*1 Vector, list of 3*3 Matrix, list of 3*3 Matrix, list of Integer, list of Integer, list of Integer, list of Integer)
Decode(self, data)
Returns: nb_processed_byte, ids[], pseudos[], positions[], orientations[], headings[], states[], actions[], scenes[], avatars[]
source code
 
__repr__(self) source code
Method Details

__init__(self, ids=[], pseudos=[], positions=[], orientations=[], headings=[], states=[], actions=[], scenes=[], avatars=[])
(Constructor)

source code 
Overrides: ServerMessage.__init__

Encode(self, ids=[], pseudos=[], positions=[], orientations=[], states=[], actions=[], scenes=[], avatars=[])

source code 
Parameters:
  • ids (list of Integer) - players ids
  • pseudos (list of String) - players pseudo
  • positions (list of 3*1 Vector) - Vector [posX, posY, posZ]
  • orientations (list of 3*1 Euler angle vector (in degrees)) - [[r11, r12, r13],[r21, r22, r23],[r31, r32, r33]], action = 0
  • states (list of Integer) - States of players
  • actions (list of Integer) - the Action played by players
  • scenes (list of Integer) - the scenes players are in
  • avatars (list of Integer) - the Avatar used by players
Returns: Byte Array. 'BfffffffffBBBBB%ds' * NbClients
the encoded data

Decode(self, data)

source code 
Parameters:
  • data (Byte Array. 'BB' + 'BfffffffffBBBBB%ds' * NbClients) - the data to decode.
Returns: tuple of (Integer, list of Integer, list of String, list of 3*1 Vector, list of 3*3 Matrix, list of 3*3 Matrix, list of Integer, list of Integer, list of Integer, list of Integer)
nb_processed_byte, ids[], pseudos[], positions[], orientations[], headings[], states[], actions[], scenes[], avatars[]

__repr__(self)
(Representation operator)

source code 
Overrides: ServerMessage.__repr__