예제 #1
0
 public bool CheckIfRelMapExist(MapRelPos relPos)
 {
   switch (relPos)
   {
     case MapRelPos.Current:
       return mapMngr.DoMapExist((int)mapMngr.MapData.MapId);
     case MapRelPos.Left:
       return mapMngr.DoMapExist((int)mapMngr.MapData.LeftNeighbourId);
     case MapRelPos.Right:
       return mapMngr.DoMapExist((int)mapMngr.MapData.RightNeigbourId);
     case MapRelPos.Top:
       return mapMngr.DoMapExist((int)mapMngr.MapData.TopNeighbourId);
     case MapRelPos.Bottom:
       return mapMngr.DoMapExist((int)mapMngr.MapData.BottomNeighbourId);
     default:
       return true;
   }
 }
예제 #2
0
 public bool OpenMapRel(MapRelPos relPos)
 {
   switch (relPos)
   {
     case MapRelPos.Current:
       return OpenMap((int)mapMngr.MapData.MapId);
     case MapRelPos.Left:
       return OpenMap((int)mapMngr.MapData.GetNeighbourMapId(MapParser.Map.Direction.Left, false));
     case MapRelPos.Right:
       return OpenMap((int)mapMngr.MapData.GetNeighbourMapId(MapParser.Map.Direction.Right, false));
     case MapRelPos.Top:
       return OpenMap((int)mapMngr.MapData.GetNeighbourMapId(MapParser.Map.Direction.Top, false));
     case MapRelPos.Bottom:
       return OpenMap((int)mapMngr.MapData.GetNeighbourMapId(MapParser.Map.Direction.Bottom, false));
     default:
       return OpenMap(null);
   }
 }
예제 #3
0
        public bool OpenMapRel(MapRelPos relPos)
        {
            switch (relPos)
            {
            case MapRelPos.Current:
                return(OpenMap((int)mapMngr.MapData.MapId));

            case MapRelPos.Left:
                return(OpenMap((int)mapMngr.MapData.GetNeighbourMapId(MapParser.Map.Direction.Left, false)));

            case MapRelPos.Right:
                return(OpenMap((int)mapMngr.MapData.GetNeighbourMapId(MapParser.Map.Direction.Right, false)));

            case MapRelPos.Top:
                return(OpenMap((int)mapMngr.MapData.GetNeighbourMapId(MapParser.Map.Direction.Top, false)));

            case MapRelPos.Bottom:
                return(OpenMap((int)mapMngr.MapData.GetNeighbourMapId(MapParser.Map.Direction.Bottom, false)));

            default:
                return(OpenMap(null));
            }
        }
예제 #4
0
        public bool CheckIfRelMapExist(MapRelPos relPos)
        {
            switch (relPos)
            {
            case MapRelPos.Current:
                return(mapMngr.DoMapExist((int)mapMngr.MapData.MapId));

            case MapRelPos.Left:
                return(mapMngr.DoMapExist((int)mapMngr.MapData.LeftNeighbourId));

            case MapRelPos.Right:
                return(mapMngr.DoMapExist((int)mapMngr.MapData.RightNeigbourId));

            case MapRelPos.Top:
                return(mapMngr.DoMapExist((int)mapMngr.MapData.TopNeighbourId));

            case MapRelPos.Bottom:
                return(mapMngr.DoMapExist((int)mapMngr.MapData.BottomNeighbourId));

            default:
                return(true);
            }
        }