예제 #1
0
 // Create the game-state when exiting a room through this warp point.
 public GameState CreateExitState()
 {
     if (warpType == WarpType.Entrance)
     {
         return(RoomEnterExitState.CreateExit(edgeDirection, 25));
     }
     return(null);
 }
예제 #2
0
        // Create the game-state when entering a room through this warp point.
        public GameState CreateEnterState()
        {
            int distance = 19;

            if (edgeDirection == Directions.Down)
            {
                distance += 8;
            }
            if (warpType == WarpType.Entrance)
            {
                return(RoomEnterExitState.CreateEnter(Directions.Reverse(edgeDirection), distance, null));
            }
            return(null);
        }