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

Class SPManager

source code

util.living.LivingObject --+
                           |
                          SPManager

The manager class takes care of command issuing to the timermanager, sends tick-packets over the network, and synchronization of network games.

Instance Methods [hide private]
 
__init__(self, session) source code
 
execute(self, command, local=False)
Executes a command
source code
 
load(self, db) source code
 
end(self)
Put all the code the object needs to end safely here.
source code
Method Details [hide private]

execute(self, command, local=False)

source code 

Executes a command

Parameters:
  • command - Command the command to be executed
  • local - Whether to only execute command here (doesn't make sense in singleplayer

end(self)

source code 

Put all the code the object needs to end safely here. Make sure it always contains the super(YOUROBJECT, self).end() call, to ensure all parentobjects are deinited correctly.

Overrides: util.living.LivingObject.end
(inherited documentation)