![]() |
SudokuFX
|
Represents a difficulty level for a Sudoku game. More...
Collaboration diagram for fr.softsf.sudokufx.model.GameLevel:Classes | |
| class | GameLevelBuilder |
Builder class for creating GameLevel instances. More... | |
Public Member Functions | |
| GameLevel (Byte levelid, byte level) | |
| Full constructor to initialize a game level. | |
| boolean | equals (Object o) |
| Compares this game level with another object for equality based on all fields. | |
| byte | getLevel () |
| Returns the difficulty value of this game level. | |
| Byte | getLevelid () |
| Returns the unique identifier of this game level. | |
| int | hashCode () |
| Computes the hash code based on all fields. | |
| void | setLevel (byte level) |
| Sets the difficulty value of this game level. | |
| String | toString () |
| Returns a string representation of the game level. | |
Static Public Member Functions | |
| static GameLevelBuilder | builder () |
Creates a new GameLevelBuilder for fluent construction. | |
Protected Member Functions | |
| GameLevel () | |
| Protected default constructor for JPA. | |
Private Attributes | |
| byte | level |
| Difficulty level of the game, between 1 and 3. | |
| Byte | levelid |
| Unique identifier of the game level (primary key). | |
Represents a difficulty level for a Sudoku game.
Levels are constrained to values 1 to 3. Provides builders, getters, and setters.
|
protected |
Protected default constructor for JPA.
Here is the call graph for this function:| fr.softsf.sudokufx.model.GameLevel.GameLevel | ( | Byte | levelid, |
| byte | level ) |
Full constructor to initialize a game level.
| levelid | the unique ID of the level |
| level | the difficulty value of the level (1–3) |
|
static |
Creates a new GameLevelBuilder for fluent construction.
| boolean fr.softsf.sudokufx.model.GameLevel.equals | ( | Object | o | ) |
Compares this game level with another object for equality based on all fields.
Here is the call graph for this function:| byte fr.softsf.sudokufx.model.GameLevel.getLevel | ( | ) |
Returns the difficulty value of this game level.
| Byte fr.softsf.sudokufx.model.GameLevel.getLevelid | ( | ) |
Returns the unique identifier of this game level.
| int fr.softsf.sudokufx.model.GameLevel.hashCode | ( | ) |
Computes the hash code based on all fields.
| void fr.softsf.sudokufx.model.GameLevel.setLevel | ( | byte | level | ) |
Sets the difficulty value of this game level.
| String fr.softsf.sudokufx.model.GameLevel.toString | ( | ) |
Returns a string representation of the game level.
|
private |
Difficulty level of the game, between 1 and 3.
|
private |
Unique identifier of the game level (primary key).