|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--PrintSuperClass
|
+--PlayerSkills
Performance rating is set by battleship simulator right after singleUserTest Mode
Parent super-class of VitalStatistics, maintains statistics on Player Skills
| Constructor Summary | |
PlayerSkills()
set to true when VitalStatistics are set you may only set variables realName, alterEgo, mission once |
|
| Method Summary | |
double |
getAverageMoves()
returns average Moves used in last singleUserTestMode |
long |
getBadMoves()
returns total number of bad Moves or guesses for all games in singleUserTestMode |
int |
getBestMoves()
Returns number of moves for best game in singleUserTestMode |
double |
getCoverage()
returns coverage as board percentage |
long |
getLoss()
returns number of Losses |
int |
getMoves()
Returns count of current number of moves in Current Game |
double |
getPerformance()
returns most recent performance level |
PerformanceRating |
getSkill()
|
long |
getTimeLog()
returns current sum of times |
long |
getTotalMoves()
returns total number of Moves in a series |
long |
getWin()
returns number of Victories |
int |
getWorstMoves()
Returns moves representing worst SingleUserTestMode game |
void |
print(java.io.PrintWriter pw)
prints out vitalStatistics string variables |
double |
probability(int moves)
|
void |
setSkill(Message msg,
PerformanceRating s)
sets current skill level can be set more than once but only Battleship$PlayerType may set this Variable also, this method cannot be overridden in a higher level class |
| Methods inherited from class PrintSuperClass |
print, print, print, println, println, println, println |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PlayerSkills()
| Method Detail |
public final void setSkill(Message msg,
PerformanceRating s)
public final PerformanceRating getSkill()
public final double probability(int moves)
moves - is the number of moves usedpublic final int getMoves()
public final int getWorstMoves()
public final int getBestMoves()
public final long getBadMoves()
public final long getWin()
public final long getLoss()
public final long getTotalMoves()
public final double getAverageMoves()
public final double getCoverage()
public final double getPerformance()
public final long getTimeLog()
public void print(java.io.PrintWriter pw)
print in class PrintSuperClass
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||