本文整理汇总了Python中Menu.drawMiniMapCell方法的典型用法代码示例。如果您正苦于以下问题:Python Menu.drawMiniMapCell方法的具体用法?Python Menu.drawMiniMapCell怎么用?Python Menu.drawMiniMapCell使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Menu
的用法示例。
在下文中一共展示了Menu.drawMiniMapCell方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: drawFogOfWarOnMiniMap
# 需要导入模块: import Menu [as 别名]
# 或者: from Menu import drawMiniMapCell [as 别名]
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: drawAllUnitsOnMiniMap
# 需要导入模块: import Menu [as 别名]
# 或者: from Menu import drawMiniMapCell [as 别名]
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: drawAllBuildingsOnMiniMap
# 需要导入模块: import Menu [as 别名]
# 或者: from Menu import drawMiniMapCell [as 别名]
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))