예제 #1
0
 void ZoneTransition(int iPlayer, int jPlayer)
 {
     try
     {
         DestinationCoordinates dest = zonePoints[new PositionKey(iPlayer, jPlayer)];
         LoadNewArea(ZoneList.mapIDList[dest.MapID], dest.iDestination, dest.jDestination);
         //Map destinationMap = new Map(rows, columns);
         //destinationMap = ZoneList.mapIDList[dest.MapID];
         //LoadNewArea(destinationMap, dest.iDestination, dest.jDestination);
     }
     catch (Exception e)
     {
         Console.WriteLine("Exception:\n[iPlayer] {0}, [jPlayer] {1},\n{2}\n Press enter to continue.", iPlayer, jPlayer, e.ToString());
         Console.ReadLine();
     }
 }
예제 #2
0
 public void CreateZonePoint(PositionKey position, DestinationCoordinates destination)
 {
     thisMap[position.i, position.j] = zonePos;
     zonePoints.Add(position, destination);
 }