Beispiel #1
0
 def __init__(self, clue, parent=None):
     """ Initialize the drone view """
     GridSquareFrame.__init__(self, parent)
     self.clue = clue
     
     self.adjacencyClue = AdjacencyClueView(clue.adjacencyClue, clue.fragilityClue, parent=self)
     self.adjacencyClue.move(45, 5)
     
     self.warningClue = WeaponCautionClueView(clue.weaponCautionClue, parent=self)
     self.warningClue.move(10, 10)
Beispiel #2
0
 def __init__(self, gridSquare, minefieldView):
     """ Initialize the grid square view """
     GridSquareFrame.__init__(self, minefieldView)
     
     self.gridSquare = gridSquare
     self.minefieldView = minefieldView
     self.clueView = None
     self.loadGridSquareImages()
     
     self.setupDefenseView()
     self.setupClueView(self.gridSquare.clue)
Beispiel #3
0
    def __init__(self, gridSquare, minefieldView):
        """ Initialize the grid square view """
        GridSquareFrame.__init__(self, minefieldView)

        self.gridSquare = gridSquare
        self.minefieldView = minefieldView
        self.clueView = None
        self.loadGridSquareImages()

        self.setupDefenseView()
        self.setupClueView(self.gridSquare.clue)
Beispiel #4
0
    def __init__(self, clue, parent=None):
        """ Initialize the drone view """
        GridSquareFrame.__init__(self, parent)
        self.clue = clue

        self.adjacencyClue = AdjacencyClueView(clue.adjacencyClue,
                                               clue.fragilityClue,
                                               parent=self)
        self.adjacencyClue.move(45, 5)

        self.warningClue = WeaponCautionClueView(clue.weaponCautionClue,
                                                 parent=self)
        self.warningClue.move(10, 10)
Beispiel #5
0
 def __init__(self, worm, parent=None):
     """ Initialize the worm view """
     GridSquareFrame.__init__(self, parent)
     self.worm = worm
     self.loadMineImages()
     self.hide()
Beispiel #6
0
 def __init__(self, worm, parent=None):
     """ Initialize the worm view """
     GridSquareFrame.__init__(self, parent)
     self.worm = worm
     self.loadMineImages()
     self.hide()
Beispiel #7
0
 def __init__(self, drone_model, parent=None):
     """ Initialize the drone view """
     GridSquareFrame.__init__(self, parent)
     self.drone_model = drone_model
     
     self.drone_label = self.loadGridSquareSizedImage("Drone2Clear.png")
 def __init__(self, turret, parent=None):
     """ Initialize the turret view """
     GridSquareFrame.__init__(self, parent)
     self.turret = turret
     self.loadTurretImages()
     self.setVisible(False)
Beispiel #9
0
 def __init__(self, turret, parent=None):
     """ Initialize the turret view """
     GridSquareFrame.__init__(self, parent)
     self.turret = turret
     self.loadTurretImages()
     self.setVisible(False)
Beispiel #10
0
 def __init__(self, mine, parent=None):
     """ Initialize the mine view """
     GridSquareFrame.__init__(self, parent)
     self.mine = mine
     self.loadMineImages()
     self.setVisible(False)