Class Fitness
java.lang.Object
zombie.characters.BodyDamage.Fitness
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfloatintfloatgetRegularity(String type) voidWe 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.voidIncrease 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 exercisevoidincStats()voidinit()voidvoidload(ByteBuffer input, int WorldVersion) booleanvoidReduce endurance, using metabolics (to know what kind of exercise it is, some are more exhausting than others), regularity, current carrying weight.voidremoveStiffnessValue(String type) voidvoidsave(ByteBuffer output) voidsetCurrentExercise(String type) voidsetParent(IsoGameCharacter _parent) voidsetRegularityMap(HashMap<String, Float> _regularityMap) voidupdate()We update every 10 in game minutes to facilitate calculs
-
Constructor Details
-
Fitness
-
-
Method Details
-
update
public void update()We update every 10 in game minutes to facilitate calculs -
setCurrentExercise
-
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
-
save
-
load
-
onGoingStiffness
public boolean onGoingStiffness() -
getCurrentExeStiffnessTimer
-
getCurrentExeStiffnessInc
-
getParent
-
setParent
-
getRegularity
-
getRegularityMap
-
setRegularityMap
-
init
public void init() -
initRegularityMapProfession
public void initRegularityMapProfession()
-