private void InitGame() { _iterationLastValue = new Iteration { Calf = new IterationEventItemData { Cost = _eventListData.GetCowType().MeanCost, Name = TextsResource.GetResourceFromKey(_eventListData.GetCowType().Name) }, Pig = new IterationEventItemData { Cost = _eventListData.GetPigType().MeanCost, Name = TextsResource.GetResourceFromKey(_eventListData.GetPigType().Name) }, Lamb = new IterationEventItemData { Cost = _eventListData.GetLambType().MeanCost, Name = TextsResource.GetResourceFromKey(_eventListData.GetLambType().Name) } }; }
public Iteration GetNextIteration() { var iteration = new Iteration { Calf = SetNextIterationForType(_iterationLastValue.Calf, _eventListData.GetCalfEvent(), _eventListData.GetCowType().MeanCost), Pig = SetNextIterationForType(_iterationLastValue.Pig, _eventListData.GetPigEvent(), _eventListData.GetPigType().MeanCost), Lamb = SetNextIterationForType(_iterationLastValue.Lamb, _eventListData.GetLambEvent(), _eventListData.GetLambType().MeanCost) }; _iterationLastValue = iteration; return iteration; }