|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.threerings.puzzle.client.PlayerStatusView
public class PlayerStatusView
The player status view displays a player's current status in the game.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected GameObject |
_gameobj
The game object associated with this view. |
protected boolean |
_highlight
Whether this display is highlighted. |
protected int |
_pidx
The player index. |
protected int |
_status
The player game status. |
protected BoardSummary |
_summary
The player board summary. |
protected Name |
_username
The player name. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
PlayerStatusView(GameObject gameobj,
int pidx)
Constructs a player status view. |
|
| Method Summary | |
|---|---|
int |
getPlayerIndex()
Get the player index of the player represented by this view. |
void |
init(GameConfig config)
Initializes the player status view with the puzzle config. |
void |
setBoardSummary(BoardSummary summary)
Sets the player board summary. |
void |
setHighlighted(boolean highlight)
Sets whether to highlight the player status display when rendered. |
void |
setStatus(int status)
Sets the player status. |
String |
toString()
|
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected GameObject _gameobj
protected Name _username
protected int _pidx
protected boolean _highlight
protected BoardSummary _summary
protected int _status
| Constructor Detail |
|---|
public PlayerStatusView(GameObject gameobj,
int pidx)
| Method Detail |
|---|
public void init(GameConfig config)
public int getPlayerIndex()
public void setBoardSummary(BoardSummary summary)
public void setStatus(int status)
public void setHighlighted(boolean highlight)
public String toString()
toString in class Component
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||