public class Model
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
Model.GameState |
Possible game states.
|
Modifier and Type | Field | Description |
---|---|---|
Level |
currentLevel |
|
Statistics |
database |
|
int |
finishedLevels |
|
Menu |
mainMenu |
|
int |
numberOfLevels |
|
Player |
player |
|
PlayerStats |
playerStats |
|
static int |
tileHeight |
|
static int |
tileWidth |
Constructor | Description |
---|---|
Model() |
Modifier and Type | Method | Description |
---|---|---|
int |
getCurrentLevelNumber() |
|
Model.GameState |
getGameState() |
|
void |
loadPlayerPositionFromCurrentMap() |
|
void |
setCurrentLevelNumber(int levelNumber) |
|
boolean |
setGameState(Model.GameState newGameState) |
|
void |
switchToNextLevel() |
|
void |
switchToPreviousLevel() |
public final int numberOfLevels
public Level currentLevel
public Player player
public static int tileWidth
public static int tileHeight
public Menu mainMenu
public Statistics database
public PlayerStats playerStats
public int finishedLevels
public void setCurrentLevelNumber(int levelNumber)
public int getCurrentLevelNumber()
public void switchToNextLevel()
public void switchToPreviousLevel()
public boolean setGameState(Model.GameState newGameState)
public Model.GameState getGameState()
public void loadPlayerPositionFromCurrentMap()