Class Fitness
java.lang.Object
zombie.characters.BodyDamage.Fitness
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
float
int
float
getRegularity
(String type) void
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.void
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 exercisevoid
incStats()
void
init()
void
void
load
(ByteBuffer input, int WorldVersion) boolean
void
Reduce endurance, using metabolics (to know what kind of exercise it is, some are more exhausting than others), regularity, current carrying weight.void
removeStiffnessValue
(String type) void
void
save
(ByteBuffer output) void
setCurrentExercise
(String type) void
setParent
(IsoGameCharacter _parent) void
setRegularityMap
(HashMap<String, Float> _regularityMap) void
update()
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()
-