|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.genuts.gameui.Sprite
com.genuts.gameui.SpriteWrapper
de.htwdd.rosenkoenig.gui.genuts.OkButton
public class OkButton
Represents the button that ends a player's turn. The button is clickable.
| Field Summary | |
|---|---|
private ImageSequenceSprite |
button
|
private Game |
game
|
private ImageState |
state
|
| Constructor Summary | |
|---|---|
OkButton(Game game,
PlayField playfield)
Creates a new OkButton. |
|
| Method Summary | |
|---|---|
void |
click(java.awt.event.MouseEvent event)
End the current user's turn. |
void |
setState(ImageState state)
Sets the button's state |
| Methods inherited from class com.genuts.gameui.Sprite |
|---|
getFinalWrapper, getWrapper, setWrapper, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private ImageSequenceSprite button
private ImageState state
private Game game
| Constructor Detail |
|---|
public OkButton(Game game,
PlayField playfield)
game - the game this button belongs toplayfield - parent playfield| Method Detail |
|---|
public void setState(ImageState state)
state - enabled or disabledpublic void click(java.awt.event.MouseEvent event)
click in interface Clickable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||