Пример #1
0
def SetHeroVisible(HeroNum):
    hero = Heroes[HeroNum]
    curmap = Map.GameMap[Map.CurMap]
    for x in xrange(hero.x - hero.VisLong, hero.x + hero.VisLong + 1):
        for y in xrange(hero.y - hero.VisLong, hero.y + hero.VisLong + 1):
            curmap.Cells[x][y].IsVisible = True
            Lowlevel.ShowCell(curmap.Cells[x][y], x, y)
Пример #2
0
def ShowMap():
    """Рисует карту."""
    curmap = GameMap[CurMap]
    Lowlevel.PrepareMap()
    for x in xrange(curmap.LocalMapLeft,
                    curmap.LocalMapLeft + Const.LOCAL_MAP_WIDTH + 1):
        for y in xrange(curmap.LocalMapTop,
                        curmap.LocalMapTop + Const.LOCAL_MAP_HEIGHT + 1):
            Lowlevel.ShowCell(curmap.Cells[x][y], x, y)
    # Хак.
    Monsters.ShowMonsters()
    Hero.ShowHero(Hero.CurHero)
    Lowlevel.main()