|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.hattrickorganizer.logik.FutureTrainingManager
public class FutureTrainingManager
Class that manages the prevision of training effect in the future
Field Summary | |
---|---|
double[] |
actual
Actual Training sub |
int[] |
finalSkillup
Number of skillup with maximum training |
double[] |
finalSub
Maximum training sub after future trainings |
Fields inherited from interface plugins.IFutureTrainingManager |
---|
FUTUREWEEKS |
Constructor Summary | |
---|---|
FutureTrainingManager(ISpieler p,
java.util.List trainings,
int cotrainer,
int keeper,
int trainerLvl)
Calculates the effects of the future trainings for the provided player |
Method Summary | |
---|---|
double[] |
getActual()
Get the array of the actual training sub |
java.util.List |
getFutureSkillups()
Returns a list of all future skillups as predicted |
double[] |
getMax()
Get the array of the maximum training sub |
int[] |
getMaxup()
Get the array of the maximum number of skillup |
IFuturePlayer |
previewPlayer(int weekNumber)
Return the predicted player skills after n weeks |
IFuturePlayer |
previewPlayer(int startWeekNumber,
int finalWeekNumber)
Return the predicted player skills after n weeks |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public double[] actual
public double[] finalSub
public int[] finalSkillup
Constructor Detail |
---|
public FutureTrainingManager(ISpieler p, java.util.List trainings, int cotrainer, int keeper, int trainerLvl)
p
- The active playertrainings
- The future trainingsMethod Detail |
---|
public IFuturePlayer previewPlayer(int startWeekNumber, int finalWeekNumber)
IFutureTrainingManager
previewPlayer
in interface IFutureTrainingManager
startWeekNumber
- week to start calculating training fromfinalWeekNumber
- week to end calculating training from
public double[] getActual()
public java.util.List getFutureSkillups()
getFutureSkillups
in interface IFutureTrainingManager
public double[] getMax()
public int[] getMaxup()
public IFuturePlayer previewPlayer(int weekNumber)
IFutureTrainingManager
previewPlayer
in interface IFutureTrainingManager
weekNumber
- the number of weeks
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |