Package sudoku
Class TeacherMemory
- java.lang.Object
-
- sudoku.TeacherMemory
-
public class TeacherMemory extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private int
_maxPlayerCount
private int
_maxTableCount
private Set<Integer>
_normalTables
private int
_playerResetCount
private int
_playerRewardedCount
private Set<Integer>
_tableIdsConsideredDead
private int
_tableResetCount
private Set<Integer>
_tablesNotFinished
-
Constructor Summary
Constructors Constructor Description TeacherMemory(int playerCount, int tableCount, HashSet<Integer> normalTables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addPlayerReset()
boolean
addPlayerRewarded()
int
addTableFinished(int tableId)
boolean
addTableReset()
private boolean
allResetsCollected()
int[]
getTablesNotFinished()
(package private) void
reset()
void
setNormalTables(HashSet<Integer> normalTables)
void
setTableIdsConsideredDead(int[] tableIdsConsideredDead)
-
-
-
Method Detail
-
allResetsCollected
private boolean allResetsCollected()
-
addPlayerRewarded
public boolean addPlayerRewarded()
-
addPlayerReset
public boolean addPlayerReset()
-
addTableReset
public boolean addTableReset()
-
addTableFinished
public int addTableFinished(int tableId)
-
getTablesNotFinished
public int[] getTablesNotFinished()
-
reset
void reset()
-
setTableIdsConsideredDead
public void setTableIdsConsideredDead(int[] tableIdsConsideredDead)
-
-