public void ReceiveShipResponse(MessageShipResponse msg)
 {
     if (msg.SentCommand.Command.CommandType == ShipCommandEnum.Undock)
     {
         if (msg.Response == true)
         {
             _currentState = InternalAgentState.Piloting;
             //_actorTextOutput.Tell("Agent Undock Granted");
         }
         else
         {
             _currentState = InternalAgentState.PilotingDockedShip;
         }
     }
     else if (msg.SentCommand.Command.CommandType == ShipCommandEnum.Dock)
     {
         if (msg.Response == true)
         {
             _currentState = InternalAgentState.PilotingDockedShip;
             //_actorTextOutput.Tell("Agent Dock Granted");
             _memory.CurrentDestinationScId = 0;
         }
     }
 }
Beispiel #2
0
 private void receiveCommandForShip(MessageShipCommand msg)
 {
     bool success = _solarSystemC.ReceiveCommandForShip(msg);
     MessageShipResponse msr = new MessageShipResponse(success, msg, _curTick);
     Sender.Tell(msr);
 }
Beispiel #3
0
 private void receiveShipResponse(MessageShipResponse msg)
 {
     _agentC.ReceiveShipResponse(msg);
 }