Exemple #1
0
 def __init__(self, model, detachment, units):
    Command.__init__(self, name="DeleteUnitCmd")
    ReversibleCommandMixin.__init__(self)
    self._model = model
    self._detachment = detachment
    self._delUnits = units
    self.hints = (ALH.ModifyDetachmentHint(self._detachment), )
Exemple #2
0
 def __init__(self, alModel, detachment, newName):
    Command.__init__(self, name="RenameDetachmentCmd")
    ReversibleCommandMixin.__init__(self)
    self.alModel = alModel
    self.detachment = detachment
    self.newName = newName
    self.hints = (ALH.ChangeNameHint(self.detachment), )
Exemple #3
0
 def __init__(self, alModel, detachment, makePrimary):
    Command.__init__(self, name="SetPrimaryDetachmentCmd")
    ReversibleCommandMixin.__init__(self)
    self.alModel = alModel
    self.detachment = detachment
    self.makePrimary = makePrimary
    self.hints = (ALH.ChangePrimaryDetachmentHint(), )
Exemple #4
0
 def __init__(self, alModel, detachment, unitname):
    Command.__init__(self, name="AddSpecificUnitCmd")
    ReversibleCommandMixin.__init__(self)
    self._alModel = alModel
    self._unitname = UnitProfile.NameFromDisplayName(unitname)
    self._detachment = detachment
    self.hints = (ALH.ModifyDetachmentHint(detachment), )
Exemple #5
0
 def __init__(self, alModel, unit, options):
    Command.__init__(self, name="SetUnitOptionsCmd")
    ReversibleCommandMixin.__init__(self)
    self._alModel = alModel
    self._unit = unit
    self._options = options
    
    self.hints = (ModifyUnitHint(self._unit), )
Exemple #6
0
 def __init__(self, alModel, unit, newSize):
    Command.__init__(self, name="ChangeUnitSizeCmd")
    ReversibleCommandMixin.__init__(self)
    
    self._alModel = alModel
    self._unit = unit
    self._newSize = newSize
    self.hints = (ALH.ModifyUnitHint(unit), )
Exemple #7
0
 def __init__(self, model, detachment, unitIdx, newUnitName):
    Command.__init__(self, name="ChangeUnitCmd")
    ReversibleCommandMixin.__init__(self)
    self._model = model
    self._detachment = detachment
    self._unitIdx = unitIdx
    self._newUnitName = UnitProfile.NameFromDisplayName(newUnitName)
    self.hints = (ALH.ModifyDetachmentHint(self._detachment), )
Exemple #8
0
 def __init__(self, model, newName):
    Command.__init__(self, name="RenameArmyListCmd")
    ReversibleCommandMixin.__init__(self)
    self._newName = newName
    self._model = model
    self.hints = (ALH.ChangeNameHint(self._model), )
Exemple #9
0
 def __init__(self, alModel, detachment):
    Command.__init__(self, name="RemoveDetachmentCmd")
    ReversibleCommandMixin.__init__(self)
    self._model = alModel
    self._detachment = detachment
    self.hints = (ALH.ModifyDetachmentHint(self._detachment), )
Exemple #10
0
 def __init__(self, model, detachment, units):
    Command.__init__(self, name="DuplicateUnitCmd")
    ReversibleCommandMixin.__init__(self)
    self._model = model
    self._detachment = detachment
    self._dupUnits = units
Exemple #11
0
 def __init__(self, unit, item):
    Command.__init__(self, name="ChangeUnitItemCmd")
    ReversibleCommandMixin.__init__(self)
    self._unit = unit
    self._item = item
    self.hints = (ALH.ModifyUnitHint(self._unit), )
Exemple #12
0
 def __init__(self, alModel, detachment):
    Command.__init__(self, name="AddDefaultUnitCmd")
    ReversibleCommandMixin.__init__(self)
    self._alModel = alModel
    self._detachment = detachment
    self.hints = (ALH.ModifyDetachmentHint(detachment), )