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

Class PositionReport

source code


Client cyclic position report to server.

Message is sent periodically (at each TIC). 'ffffffb'

Instance Methods
 
__init__(self, position=[0.0, 0.0, 0.0], orientation=[[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], heading=[[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], state=0, action=0, scene=0) source code
Byte Array. 'B' + 'fffffffffBBB'
Encode(self, position=[0.0, 0.0, 0.0], orientation=[[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], heading=[[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], state=0, action=0, scene=0)
Returns: the encoded data
source code
3*1 Vector, 3*3 Matrix, 3*3 Matrix, Integer, Integer, Integer
Decode(self, data)
Returns: Position, Orientation, Heading, State, Action, Scene
source code
 
__repr__(self) source code
Method Details

__init__(self, position=[0.0, 0.0, 0.0], orientation=[[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], heading=[[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], state=0, action=0, scene=0)
(Constructor)

source code 
Overrides: ClientMessage.__init__

Encode(self, position=[0.0, 0.0, 0.0], orientation=[[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], heading=[[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], state=0, action=0, scene=0)

source code 
Parameters:
  • position (= 3*1 Vector) - Vector [posX, posY, posZ]
  • orientation (3*3 Matrix) - [[r11, r12, r13],[r21, r22, r23],[r31, r32, r33]]
  • heading (3*3 Matrix) - [[h11, h12, h13],[h21, h22, h23],[h31, h32, h33]]
  • state (Integer) - the last state the player was in
  • action (Integer) - the Action played by the player
  • scene (Integer) - the scene in which the client was seen the last time he disconnected.
Returns: Byte Array. 'B' + 'fffffffffBBB'
the encoded data

Decode(self, data)

source code 
Parameters:
  • data (Byte Array. 'B' + 'fffffffffBBB') - the data to decode.
Returns: 3*1 Vector, 3*3 Matrix, 3*3 Matrix, Integer, Integer, Integer
Position, Orientation, Heading, State, Action, Scene

__repr__(self)
(Representation operator)

source code 
Overrides: ClientMessage.__repr__