int IStaircaseStage.GetReversals(StaircaseStage parameter) { switch (parameter) { case StaircaseStage.Stage1: return(0); case StaircaseStage.Stage2: return(0); case StaircaseStage.Stage3: return(0); default: UnityEngine.Debug.LogError($"Unexpected StaircaseStage: {parameter}"); return(0); } }
private bool InFinalReversalStage() { int threshold = 0; for (StaircaseStage stage = StaircaseStage.Stage1; stage < StaircaseValues.GetStageLimit(); stage++) { threshold += StaircaseValues.GetReversals(stage); } if (reversals < threshold) { return(false); } return(true); }
private int GetStepDownSize() { int threshold = 0; for (StaircaseStage stage = StaircaseStage.Stage1; stage < StaircaseValues.GetStageLimit(); stage++) { threshold += StaircaseValues.GetReversals(stage); if (reversals < threshold) { return(StaircaseValues.GetStepsDown(stage)); } } return(StaircaseValues.GetStepsDown(StaircaseValues.GetStageLimit())); }