|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.eriksilkensen.sudoku.BoardInventoryHelper
public class BoardInventoryHelper
Helper class that should be used whenever information about the Inventory is needed.
| Constructor Summary | |
|---|---|
BoardInventoryHelper()
Initializes the inventory by reading it in. |
|
| Method Summary | |
|---|---|
Board |
getBoard(BoardDifficulties difficulty)
Returns a Board at the specified difficulty level |
Board |
getBoard(int ID)
Gets the Board with the specified ID number |
BoardInventory |
getBoardInventory()
Returns the Inventory |
int |
getIndividualSize()
Returns the individual size - or the size of each difficulty level - of the Inventory |
int |
getTotalSize()
Returns the total size of the Inventory |
void |
supplyInventory(int numBoardsPerDifficulty)
Supplies the Inventory with the specified number of Boards per difficulty level. |
void |
updateInventory()
Updates the Inventory by writing it out to the file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BoardInventoryHelper()
| Method Detail |
|---|
public BoardInventory getBoardInventory()
public Board getBoard(BoardDifficulties difficulty)
public Board getBoard(int ID)
public void supplyInventory(int numBoardsPerDifficulty)
public void updateInventory()
public int getTotalSize()
public int getIndividualSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||