Ejemplo n.º 1
0
        private void UpdateSettlerData(ref SimulateSettlerActionData data, IEnumerable<IBuilding> buildings)
        {
            var settlerParameters = new SettlerParameters();
            foreach (var building in buildings.OfType<BuildingBase<SettlerParameters>>())
            {
                building.DoAction(ref settlerParameters);
            }

            data.CanTakeAdditionalColonist = settlerParameters.CanTakeAdditionalColonist;
            data.CanTakeAdditionalPlantation = settlerParameters.CanTakeAdditionalPlantation;
            data.CanTakeQuarryInsteadPlantation = settlerParameters.CanTakeQuarryInsteadPlantation;
            //data.AvailablePlantations = _mainBoardController.Status.AvailablePlantations;
            //data.AvailableQuarryCount = _mainBoardController.Status.Quarries.Count;
        }
Ejemplo n.º 2
0
        private SimulateSettlerActionData SimulateSettlerAction()
        {
            var result = new SimulateSettlerActionData();
            UpdateSettlerData(ref result, new IBuilding[] {});

            return result;
        }