示例#1
0
 def drawFogOfWarOnMiniMap(self,mainScreen,index):
     rows, cols = len(self.fogOfWarBoard[index]), len(self.fogOfWarBoard[index][0])
     fogBlack = (1,1,1,220)
     for row in xrange(rows):
         for col in xrange(cols):
             if self.fogOfWarBoard[index][row][col] == 0:
                 Menu.drawMiniMapCell(mainScreen,row,col,fogBlack)
示例#2
0
 def drawAllUnitsOnMiniMap(cls):
     for unt in cls.Units:
         for r in xrange(unt.sizeRow):
             for c in xrange(unt.sizeCol):
                 Menu.drawMiniMapCell(Unit.screen,unt.row+r, unt.col+c,(0,200,0))
示例#3
0
 def drawAllBuildingsOnMiniMap(cls):
     for bld in cls.buildings:
         for r in xrange(bld.sizeRow):
             for c in xrange(bld.sizeCol):
                 Menu.drawMiniMapCell(building.screen,bld.row+r, bld.col+c,(0,200,0))