Package horizons :: Package command :: Module unit :: Class RemoveUnit
[hide private]
[frames] | no frames]

Class RemoveUnit

source code

   Command --+        
GenericCommand --+    
GenericUnitCommand --+

Command class that removes the unit. Not to be used if .remove() is going to be called through an indirect command anyway.

Instance Methods [hide private]
__init__(self, unit) source code
    Inherited from GenericUnitCommand
__call__(self, issuer) source code
    Inherited from GenericCommand
__str__(self) source code
_get_object(self) source code
    Inherited from Command
execute(self, session, local=False)
Execute command.
source code
Class Methods [hide private]
    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
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, unit)

source code 
  • unit - Instance of Unit
Overrides: GenericCommand.__init__