def __init__(self, plane, base, nb_drop): Command.__init__(self) if plane is None or base is None: raise "DropMilitarsCommand : Null reference" self.planeSrc = plane self.baseTarget = base self.quantity = nb_drop
def __init__(self, plane, mil_qty, fuel_qty, delete): Command.__init__(self) if plane is None: raise "LoadRessourcesCommand : Null reference" self.planeSrc = plane self.militarQuantity = mil_qty self.fuelQuantity = fuel_qty self.delete_ressources = delete
def __init__(self, config): Command.__init__(self, config) if self.config.has_key('directory') and not os.path.isdir(self.config['directory']): raise Exception("directory '%s' does not exists" % (self.config['directory'],)) if self.config.has_key('directory') and not os.listdir(self.config['directory']): raise Exception("directory '%s' is empty" % (self.config['directory'],)) if not self.config.has_key('count'): self.config['count'] = 1
def __init__(self): Command.__init__(self)
def __init__(self, template): Command.__init__(self) self.eventTemplate = template
def __init__(self, users): Command.__init__(self, users)
def __init__(self, template): Command.__init__(self) self.eventTemplate = template
def __init__(self, plane, coord): Command.__init__(self) if plane is None: raise "MoveCommand : null reference" self.plane = plane self.destination = coord
def __init__(self): Command.__init__(self)
def __init__(self, users): Command.__init__(self, users) self.SETTINGS = { "help": lambda user, value: self.help(), "score_emoji": lambda user, value: self.set_score_emoji(user, value), }
def __init__(self, plane): Command.__init__(self) if plane is None: raise "WaitCommand : null reference" self.plane = plane
def __init__(self): Command.__init__(self, Constants.RESTART_TAG)
def __init__(self): Command.__init__(self, Constants.NETWORK_INFO_TAG)
def __init__(self, plane, target): Command.__init__(self) if p is None or target is None: raise Error("Attack Command : null reference") self.planeSrc = plane self.planeTarget = target
def __init__(self, main): Command.__init__(self, main)
def __init__(self): Command.__init__(self, Constants.SHUTDOWN_TAG)
def __init__(self, plane, quantity_fuel): Command.__init__(self) if plane is None: raise "FillFuelTankCommand : Null reference" self.planeSrc = plane self.quantity = quantity_fuel
def __init__(self, config, **params): Command.__init__(self, config, **params)
def __init__(self, plane, base): Command.__init__(self) if base is None or plane is None: raise "LandCommand : null reference" self.plane = plane self.base = base
def __init__(self, speed: float = 0.25): Command.__init__(self) self.speed = -speed
def __init__(self): Command.__init__(self, Constants.SHUTDOWN_TAG)