Example #1
0
 def Do(self):
     cmd = CalcToggleFighterAbilityStatesCommand(
         fitID=self.fitID,
         projected=False,
         mainPosition=self.mainPosition,
         positions=self.positions,
         effectID=self.effectID)
     success = self.internalHistory.submit(cmd)
     Fit.getInstance().recalc(self.fitID)
     wx.PostEvent(gui.mainFrame.MainFrame.getInstance(), GE.FitChanged(fitID=self.fitID))
     return success
Example #2
0
 def Do(self):
     cmd = CalcToggleFighterAbilityStatesCommand(
         fitID=self.fitID,
         projected=True,
         mainPosition=self.mainPosition,
         positions=self.positions,
         effectID=self.effectID)
     success = self.internalHistory.submit(cmd)
     eos.db.flush()
     sFit = Fit.getInstance()
     sFit.recalc(self.fitID)
     sFit.fill(self.fitID)
     eos.db.commit()
     wx.PostEvent(gui.mainFrame.MainFrame.getInstance(),
                  GE.FitChanged(fitIDs=(self.fitID, )))
     return success