Class Fitness

java.lang.Object
zombie.characters.BodyDamage.Fitness

public final class Fitness extends Object
  • Constructor Details

  • Method Details

    • update

      public void update()
      We update every 10 in game minutes to facilitate calculs
    • setCurrentExercise

      public void setCurrentExercise(String type)
    • exerciseRepeat

      public void exerciseRepeat()
    • incRegularity

      public void incRegularity()
      Increase the regularity when you've done a repeat of an exercice Depend on fitness (using logarithm), the more fitness, the LESS regularity you get Regularity will influence on the stiffness you get once you've finished an exercise
    • reduceEndurance

      public void reduceEndurance()
      Reduce endurance, using metabolics (to know what kind of exercise it is, some are more exhausting than others), regularity, current carrying weight.
    • incFutureStiffness

      public void incFutureStiffness()
      We setup a timer after finishing an exercice, 12h after, we gonna start to increase stiffness (add pains in muscles) When adding the stiffness, we decrease slowly our vars while increasing pain, untill no more stiffness is to be added. Stiffness induced will depend on regularity, fatigue. Numbers approx: At 0 regularity, 60min exercises should gives almost 4h of stiffness (gets additional pain)
    • incStats

      public void incStats()
    • resetValues

      public void resetValues()
    • removeStiffnessValue

      public void removeStiffnessValue(String type)
    • save

      public void save(ByteBuffer output)
    • load

      public void load(ByteBuffer input, int WorldVersion)
    • onGoingStiffness

      public boolean onGoingStiffness()
    • getCurrentExeStiffnessTimer

      public int getCurrentExeStiffnessTimer(String type)
    • getCurrentExeStiffnessInc

      public float getCurrentExeStiffnessInc(String type)
    • getParent

      public IsoGameCharacter getParent()
    • setParent

      public void setParent(IsoGameCharacter parent)
    • getRegularity

      public float getRegularity(String type)
    • getRegularityMap

      public HashMap<String,Float> getRegularityMap()
    • setRegularityMap

      public void setRegularityMap(HashMap<String,Float> regularityMap)
    • init

      public void init()
    • initRegularityMapProfession

      public void initRegularityMapProfession()