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

Class CommandPacket

source code

MPPacket --+

Packet to be sent from every player to every player every tick. Contains list of packets to be executed as well as the designated execution time. Also acts as ping (game will stop if a packet for a certain tick hasn't arrived)

Instance Methods [hide private]
__init__(self, tick, player_id, commandlist) source code
    Inherited from MPPacket
__str__(self) source code
Class Methods [hide private]
    Inherited from MPPacket
allow_network(cls, klass)
NOTE: this is a security related method and may lead to execution of arbritary code if used in a wrong way see documentation inside
source code
Method Details [hide private]

__init__(self, tick, player_id, commandlist)

source code 
  • player_id - worldid of player
Overrides: MPPacket.__init__
(inherited documentation)