|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GameObserver
This interface can be used to observe the game (hence the name). Classes implementing this interface can choose different reactions on the actions taken by the user. The types of actions are explained below.
| Method Summary | |
|---|---|
void |
cardSelected()
This function is called whenever the player selected a card. |
void |
drawDeckSelected()
This function is called whenever the player drew a card. |
void |
gameEnded()
This function is called after the game has ended. |
void |
gameStarted()
This function is called upon startup of the game. |
void |
knightsToggled()
This function is called whenever the player's knights have been toggled. |
void |
turnEnded()
This function is called whenever a player's turn has ended i.e. the user clicked the OK button. |
void |
turnStarted()
This function is called whenever a player's turn has started. |
| Method Detail |
|---|
void gameStarted()
void gameEnded()
void cardSelected()
void drawDeckSelected()
void knightsToggled()
void turnEnded()
void turnStarted()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||