Esempio n. 1
0
        static void ShowDirections(Map map, ref List <string> items)
        {
            map.AllowedDirections();

            if (map.GetNorth() == 1)
            {
                items.Add(MOVE_NORTH);
            }
            if (map.GetEast() == 1)
            {
                items.Add(MOVE_EAST);
            }
            if (map.GetSouth() == 1)
            {
                items.Add(MOVE_SOUTH);
            }
            if (map.GetWest() == 1)
            {
                items.Add(MOVE_WEST);
            }
        }
Esempio n. 2
0
        static void ShowDirections(Map map, ref List<string> items)
        {
            map.AllowedDirections();

            if (map.GetNorth() == 1)
                items.Add(Game.MOVE_NORTH);
            if (map.GetEast() == 1)
                items.Add(Game.MOVE_EAST);
            if (map.GetSouth() == 1)
                items.Add(Game.MOVE_SOUTH);
            if (map.GetWest() == 1)
                items.Add(Game.MOVE_WEST);
        }