|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IView
| Method Summary | |
|---|---|
void |
getNextMove()
This method gets the next move from the view. |
void |
makeMove()
Method called by View class. |
void |
printAll()
Main print function, which outputs all the cards visible to the user, and their positions. |
void |
printEnd()
Prints end of game message |
void |
printPlayAgainQuery()
Asks user if he/she wants to play again |
void |
printTitle()
prints the title of the game |
void |
setFreecell(Freecell f)
This method associated the IView object with a freecell game f. |
void |
showError()
Displays an error message informing the user they have attempted an invalid move. |
| Method Detail |
|---|
void setFreecell(Freecell f)
f - the freecell object to be linked to this viewvoid printTitle()
void printAll()
void printEnd()
void printPlayAgainQuery()
void makeMove()
If positions are valid, calls Freecell methods to move the cards, accordingly
void showError()
void getNextMove()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||