|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.curre.prefcount.gui.ScoreBoardLocationsMap
public class ScoreBoardLocationsMap
This class determines locaitons of all items on the score board given the current dimensions of the table/board.
Created date: Jun 16, 2007
| Field Summary | |
|---|---|
static java.lang.String |
FINAL_MOUNT
Location Map key that represents player's final mountain. |
static java.lang.String |
FINAL_SCORE
Location Map key that represents player's final score. |
static java.lang.String |
PLAYER_BULLET
Location Map key that represents player bullet. |
static java.lang.String |
PLAYER_MOUNT
Location Map key that represents player mountain. |
static java.lang.String |
PLAYER_NAME
Location Map key that represents player name. |
static java.lang.String |
VIST_SALDO
Location Map key that represents player's total vist saldo. |
static java.lang.String |
VIST_SALDO_FOR
Location Map key that represents player's vist saldo against other players. |
static java.lang.String |
VISTS_FOR
Location Map key prefix that represents player's vists agains another player. |
| Constructor Summary | |
|---|---|
ScoreBoardLocationsMap(ScoreBoardPanel scoreBoard)
Constructor. |
|
| Method Summary | |
|---|---|
void |
computeLocations()
Computes or recomputes if necessary locations of all items on the score board and stores the values in the locationsMap map. |
java.util.Map<java.lang.String,java.awt.geom.Point2D.Float> |
getLocationsMap(int playerIndex)
Getter for the locations maps for the given player. |
void |
initialize(int numberOfPlayers)
Method that initializes properties and computes the locations for the first time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PLAYER_NAME
public static final java.lang.String PLAYER_MOUNT
public static final java.lang.String PLAYER_BULLET
public static final java.lang.String VISTS_FOR
public static final java.lang.String VIST_SALDO_FOR
public static final java.lang.String VIST_SALDO
public static final java.lang.String FINAL_MOUNT
public static final java.lang.String FINAL_SCORE
| Constructor Detail |
|---|
public ScoreBoardLocationsMap(ScoreBoardPanel scoreBoard)
scoreBoard - Reference to the score board panel.| Method Detail |
|---|
public void initialize(int numberOfPlayers)
numberOfPlayers - Number of players in the game.
java.lang.IllegalArgumentException - If number of players is not supported.public java.util.Map<java.lang.String,java.awt.geom.Point2D.Float> getLocationsMap(int playerIndex)
playerIndex - Players index.
public void computeLocations()
java.lang.UnsupportedOperationException - If numberof player is not supported.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||