Module pyinsim :: Class NodeLap
[hide private]
[frames] | no frames]

Class NodeLap

source code

Car info in 6 bytes - there is an array of these in the NLP (below)

Instance Methods [hide private]
 
__init__(self, Node=0, Lap=0, PLID=0, Position=0)
Initialise the packet.
source code
string
pack(self)
Pack the packet values into a binary formatted string.
source code
 
unpack(self, data)
Unpack the packet data from a binary formatted string.
source code
Method Details [hide private]

__init__(self, Node=0, Lap=0, PLID=0, Position=0)
(Constructor)

source code 

Initialise the packet.

Parameters:
  • Node - current path node
  • Lap - current lap
  • PLID - player's unique id
  • Position - current race position : 0 = unknown, 1 = leader, etc...

pack(self)

source code 

Pack the packet values into a binary formatted string.

Returns: string
A binary formatted string.

unpack(self, data)

source code 

Unpack the packet data from a binary formatted string.

Parameters:
  • data (string) - The packet data as a binary formatted string.