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

Class MPCheckupHashManager

source code

MPPacketmanager --+
                  |
                 MPCheckupHashManager

Instance Methods [hide private]
 
is_tick_ready(self, tick)
Check if packets from all players have arrived (necessary for tick to begin)
source code
 
are_checkup_hash_values_equal(self, tick, cb_diff=None)
@param packages for tick
source code
    Inherited from MPPacketmanager
 
__init__(self, mpmanager) source code
 
add_packet(self, command_packet)
Receive a packet
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
Class Variables [hide private]
    Inherited from MPPacketmanager
  log = logging.getLogger("mpmanager")
Method Details [hide private]

is_tick_ready(self, tick)

source code 

Check if packets from all players have arrived (necessary for tick to begin)

Overrides: MPPacketmanager.is_tick_ready
(inherited documentation)

are_checkup_hash_values_equal(self, tick, cb_diff=None)

source code 

@param packages for tick

Parameters:
  • cb_diff - called in case hashes differ @return False if they are not equal