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); } }
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); }