Package horizons :: Module manager :: Class MPPacketmanager
[hide private]
[frames] | no frames]

Class MPPacketmanager

source code

Instance Methods [hide private]
 
__init__(self, mpmanager) source code
 
is_tick_ready(self, tick)
Check if packets from all players have arrived (necessary for tick to begin)
source code
 
get_packets_for_tick(self, tick, remove_returned_commands=True)
Returns packets that are to be executed at a certain tick
source code
 
get_packets_from_player(self, player_id)
Returns all command this player has issued, that are not yet executed
source code
 
add_packet(self, command_packet)
Receive a packet
source code
Class Variables [hide private]
  log = logging.getLogger("mpmanager")
Method Details [hide private]

get_packets_from_player(self, player_id)

source code 

Returns all command this player has issued, that are not yet executed

Parameters:
  • player_id - worldid of player