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