コード例 #1
0
 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;
         }
     }
 }
コード例 #2
0
 private void receiveCommandForShip(MessageShipCommand msg)
 {
     bool success = _solarSystemC.ReceiveCommandForShip(msg);
     MessageShipResponse msr = new MessageShipResponse(success, msg, _curTick);
     Sender.Tell(msr);
 }
コード例 #3
0
ファイル: ActorAgent.cs プロジェクト: AshRolls/GalaxyGen
 private void receiveShipResponse(MessageShipResponse msg)
 {
     _agentC.ReceiveShipResponse(msg);
 }