Esempio n. 1
0
        public void PilotRequest(JetterCommServiceLibrary.PilotCommand pilot_command)
        {
            // Temp pilot commands @@@@@@@@@@@@@@
            switch (pilot_command.command)
            {
            case PilotCommandType.RudderNeutral:
                break;

            case PilotCommandType.RudderLeft:
                Position = new Vector(Position.X - 2, Position.Y);
                break;

            case PilotCommandType.RudderRight:
                Position = new Vector(Position.X + 2, Position.Y);
                break;

            case PilotCommandType.ThrustNeutral:
                break;

            case PilotCommandType.ThrustUp:
                Position = new Vector(Position.X, Position.Y - 2);
                break;

            case PilotCommandType.ThrustDown:
                // Velocity = MathHelper.stop_velocity;
                Position = new Vector(Position.X, Position.Y + 2);
                break;

            default:
                break;
            }
        }
Esempio n. 2
0
 public void PilotRequest(string from_pilot, PilotCommand pilot_command)
 {
     if (_controller_callback != null)
     {
         _controller_callback.PilotRequest(from_pilot, pilot_command);
     }
 }
Esempio n. 3
0
 public void PilotRequest(PilotCommand pilot_command)
 {
     _comm_manager.PilotRequest(this.person, pilot_command);
 }