本文整理汇总了Python中Menu.drawAllBuildingsOnMiniMap方法的典型用法代码示例。如果您正苦于以下问题:Python Menu.drawAllBuildingsOnMiniMap方法的具体用法?Python Menu.drawAllBuildingsOnMiniMap怎么用?Python Menu.drawAllBuildingsOnMiniMap使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Menu
的用法示例。
在下文中一共展示了Menu.drawAllBuildingsOnMiniMap方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: redrawAll
# 需要导入模块: import Menu [as 别名]
# 或者: from Menu import drawAllBuildingsOnMiniMap [as 别名]
def redrawAll(data):
data.map.resetMap()
#ProtossBuildings.ProtossBuilding.drawAllBuildings()
Building.building.drawAllBuildings()
Unit.Unit.drawAllUnits()
data.map.draw(data.screen)
data.map.drawFogOfWar(data.screen,data.currentPlayer.index)
if isinstance(data.selected,Unit.Unit):
if data.buildMode == False and data.placeMode == False:
if data.selected.canMove:
if data.buttonStatus[0] == 1:
data.selected.drawMoves((0,200,0,100))
if data.selected.canAttack:
if data.buttonStatus[1] == 1:
data.selected.drawAttack((200,0,0,100))
#drawGrid(data)
drawMenu(data)
Menu.drawMenu(data.screen, data.selected, data)
Menu.drawAllBuildingsOnMiniMap(data.screen,data)
Menu.drawAllUnitsOnMiniMap(data.screen,data)
data.map.drawFogOfWarOnMiniMap(data.screen,data.currentPlayer.index)
data.ViewBox.draw()
drawSelected(data)
if data.mode == 'pause':
data.screen.blit(data.pauseMenu,(180,150))
elif data.mode == 'help':
data.screen.blit(load.load_image('Other/Help.png'),(0,0))
pygame.display.flip()