예제 #1
0
        private string chooseOption(string[] options, string playerManeuver)
        {
            string playerDirection = null;

            Maneuvers.Details details = Maneuvers.GetDetails(playerManeuver);
            if (details != null)
            {
                playerDirection = details.Direction;
            }
            return(chooseOption(getOptions(options, playerDirection)));
        }
예제 #2
0
 private string getDirection(string maneuver)
 {
     Maneuvers.Details details = Maneuvers.All[maneuver];
     return(details.Direction);
 }