|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.curre.prefcount.bean.PlayerStatistics
public class PlayerStatistics
Object of this class represents various game scores/data for a player.
Created date: Apr 6, 2007
| Constructor Summary | |
|---|---|
PlayerStatistics(GameResultBean resultBean,
int playerIndex)
Constructor with a result bean argument. |
|
| Method Summary | |
|---|---|
java.lang.Integer |
getBullet()
Getter for the player's bullet value. |
java.lang.Integer |
getFinalMountainInVists()
Returns the "final" computed mountain value in vists (x10), which is = (averageMountain - (mountain - minMountain)) x 10. |
java.lang.Integer |
getFinalScoreInVists()
Returns computed final score (balance) in vists. |
java.lang.Integer |
getMountain()
Getter for the player's mountain. |
java.lang.Integer |
getNewMountain()
Returns the new computed mountain value according to the current targetBullet value. |
java.lang.String |
getPlayerName()
Getter for the player's name. |
java.lang.String |
getPlayerNameLetter()
Getter for the first letter of the player's name (returned capitalized). |
java.util.Map<java.lang.Integer,java.lang.Integer> |
getVistSaldoMap()
Gets the map that holds vist saldo/balances that this player has against other players; the keys in this map are the other players indexes and the values are the corresponding vist saldo values; total player's vist saldo/balance is stored under the same (as the player's index) key. |
java.lang.Integer |
getVistsForPlayer(java.lang.Integer playerInd)
Returns vists for the given player (refered by its index). |
java.lang.String |
getVistsStringForPlayer(java.lang.Integer playerInd)
Returns vists for the given player (refered by its index); value is returned as a string terminated with a period. |
void |
setBullet(java.lang.Integer bullet)
Setter for the player's bullet value. |
void |
setBulletFromField(javax.swing.JTextField field)
Setter for the player's bullet that is fetched from the passed JTextField argument. |
void |
setMountain(java.lang.Integer mountain)
Setter for the player's mountain. |
void |
setMountainFromField(javax.swing.JTextField field)
Setter for the player's mounatain that is fetched from the passed JTextField argument. |
void |
setPlayerName(java.lang.String playerName)
Setter for the player's name. |
java.lang.Integer |
setVistsForPlayerFromField(java.lang.Integer playerInd,
javax.swing.JTextField field)
Setter for the player's vists that this player has against the player refered by its index argument. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlayerStatistics(GameResultBean resultBean,
int playerIndex)
resultBean - Reference to the result bean.playerIndex - Player index.| Method Detail |
|---|
public java.lang.String getPlayerName()
public java.lang.String getPlayerNameLetter()
public void setPlayerName(java.lang.String playerName)
playerName - Player's name to set.public java.lang.Integer getMountain()
public void setMountain(java.lang.Integer mountain)
mountain - Player's new mountain value.public java.lang.Integer getNewMountain()
public java.lang.Integer getFinalMountainInVists()
public void setMountainFromField(javax.swing.JTextField field)
JTextField argument.
field - JTextField to use to fetch the mountain value.public java.lang.Integer getBullet()
public void setBullet(java.lang.Integer bullet)
bullet - Player's new bullet value.public void setBulletFromField(javax.swing.JTextField field)
JTextField argument.
field - JTextField to use to fetch the bullet value.
public java.lang.Integer setVistsForPlayerFromField(java.lang.Integer playerInd,
javax.swing.JTextField field)
playerInd - Other player's index that this player has vists against.field - JTextField to use to fetch the vists value.
Integer object.public java.lang.Integer getVistsForPlayer(java.lang.Integer playerInd)
playerInd - Player index to fetch the vists for.
public java.lang.String getVistsStringForPlayer(java.lang.Integer playerInd)
playerInd - Player index to fetch the vists for.
public java.lang.Integer getFinalScoreInVists()
public java.util.Map<java.lang.Integer,java.lang.Integer> getVistSaldoMap()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||