-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathViewGUIToController.java
29 lines (27 loc) · 1 KB
/
ViewGUIToController.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import java.util.ArrayList;
//implemented by the Controller for the ViewGUI to communicate with the controller through
public interface ViewGUIToController {
public final int NULL_EXIT_CODE = -1;
public void setDifficulty(String difficulty);
public ArrayList<String> getDifficulties();
public boolean startGame();
public int getNumMines();
public String [][] getGrid();
public void tilePressed(int row, int col, long currentTime);
public void placeFlag(boolean flagged,int row, int col);
public boolean playerLost();
public boolean playerWon();
public void reset();
public String getRules();
public int[] getLastPressed();
public void setExtraLives(int lives);
public int getExtraLivesLeft();
public String getMineString();
public String getEmptyTileString();
public void setCustomRows(int rows);
public void setCustomColumns(int cols);
public void setCustomMines(int mines);
public long getTotalGamesWon();
public long getTotalGamesPlayed();
public String getBestTime();
}