private static bool ShipSetDestination(MessageShipCommand msg, ShipController sc) { bool success = false; if (sc.checkValidSetDestinationCommand(msg)) { MessageShipSetDestination msd = (MessageShipSetDestination)msg.Command; sc.SetDestination(msd.DestinationScId); success = true; } return(success); }
private static bool ShipSetDestination(MessageShipCommand msg, ShipController sc) { bool success = false; if (sc.checkValidSetDestinationCommand(msg)) { MessageShipSetDestination msd = (MessageShipSetDestination)msg.Command; sc.SetDestination(msd.DestinationScId); success = true; } return success; }