Package horizons :: Package command :: Module building :: Class Tear
[hide private]
[frames] | no frames]

Class Tear

source code

Command --+
          |
         Tear

Command class that tears an object.

Instance Methods [hide private]
 
__init__(self, building)
Create the command
source code
 
__call__(self, issuer)
Execute the command
source code
    Inherited from Command
 
execute(self, session, local=False)
Execute command.
source code
Class Methods [hide private]
 
additional_removals_after_tear(cls, building_to_remove)
Calculate which buildings need to be removed when removing the building from its settlement @return tupel(buildings_to_remove, obsolete_settlement_coords)
source code
    Inherited from Command
 
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 horizons.network.packets.SafeUnpickler
source code
 
get_all_commands(cls) source code
Class Variables [hide private]
    Inherited from Command
  log = logging.getLogger("command")
Method Details [hide private]

__init__(self, building)
(Constructor)

source code 

Create the command

Parameters:
  • building - building that is to be teared.

__call__(self, issuer)
(Call operator)

source code 

Execute the command

Parameters:
  • issuer - the issuer of the command