Beispiel #1
0
 private void setIdle(HexState newHexState)
 {
     this.hexStatusState = newHexState;
     hexProgressState    = HexProgress.Birth;
     waterBalance        = 0;
     temperatureBalance  = 0;
     disasterProgress    = 0;
     disasterState       = DisasterState.None;
 }
Beispiel #2
0
 private void setIdle()
 {
     hexStatusState     = HexState.Dead;
     hexProgressState   = HexProgress.Nothing;
     waterBalance       = 0;
     temperatureBalance = 0;
     disasterProgress   = 0;
     disasterState      = DisasterState.None;
 }
Beispiel #3
0
 private void recountHex()
 {
     if (this.hexStatusState == HexState.Alive)
     {
         waterBalance       -= timespeedDry * Time.deltaTime;
         temperatureBalance -= timespeedCold * Time.deltaTime;
         addition            = (timespeedProg / ((int)hexProgressState + 1) - Math.Abs(temperatureBalance)) * Time.deltaTime;
         if (generalProgress <= 900)
         {
             generalProgress += addition;
         }
         if (generalProgress <= 0)
         {
             generalProgress = 0;
         }
         hexProgressState = (HexProgress)(((int)generalProgress / 100));
     }
 }