private void DoTradeFinishAction(MainBoardController mainBoardController) { var market = mainBoardController.Status.Market; var endPhaseResult = market.EndPhase(); if (endPhaseResult != null) { mainBoardController.ReceiveGoods(endPhaseResult); } }
private void DoCaptainFinishAction(MainBoardController mainBoardController) { var freeGoods = mainBoardController.Status.Ships.Select(x => x.FinishRound()).Where(x => x != null); mainBoardController.ReceiveGoods(freeGoods); }