Exemplo n.º 1
0
 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
Exemplo n.º 3
0
Arquivo: Mp3.py Projeto: serl/rasplarm
 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
Exemplo n.º 4
0
	def __init__(self):
		Command.__init__(self)
Exemplo n.º 5
0
	def __init__(self, template):
		Command.__init__(self)
		self.eventTemplate = template
Exemplo n.º 6
0
 def __init__(self, users):
     Command.__init__(self, users)
Exemplo n.º 7
0
 def __init__(self, template):
     Command.__init__(self)
     self.eventTemplate = template
Exemplo n.º 8
0
 def __init__(self, plane, coord):
     Command.__init__(self)
     if plane is None:
         raise "MoveCommand : null reference"
     self.plane = plane
     self.destination = coord
Exemplo n.º 9
0
 def __init__(self):
     Command.__init__(self)
Exemplo n.º 10
0
 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),
     }
Exemplo n.º 11
0
 def __init__(self, plane):
     Command.__init__(self)
     if plane is None:
         raise "WaitCommand : null reference"
     self.plane = plane
Exemplo n.º 12
0
 def __init__(self):
     Command.__init__(self, Constants.RESTART_TAG)
Exemplo n.º 13
0
 def __init__(self):
     Command.__init__(self, Constants.NETWORK_INFO_TAG)
Exemplo n.º 14
0
 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
Exemplo n.º 15
0
	def __init__(self, main):
		Command.__init__(self, main)
Exemplo n.º 16
0
 def __init__(self):
     Command.__init__(self, Constants.SHUTDOWN_TAG)
Exemplo n.º 17
0
 def __init__(self, plane, quantity_fuel):
     Command.__init__(self)
     if plane is None:
         raise "FillFuelTankCommand : Null reference"
     self.planeSrc = plane
     self.quantity = quantity_fuel
Exemplo n.º 18
0
 def __init__(self, config, **params):
     Command.__init__(self, config, **params)
Exemplo n.º 19
0
 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
Exemplo n.º 20
0
 def __init__(self, speed: float = 0.25):
     Command.__init__(self)
     self.speed = -speed
Exemplo n.º 21
0
 def __init__(self):
     Command.__init__(self, Constants.SHUTDOWN_TAG)