DataAccess
public interface Data
Modifier and Type | Method | Description |
---|---|---|
int |
getBestScore() |
Get the best score of all saved games; 0 if it is the first games
|
java.util.HashMap<Entity,java.awt.Point> |
getEntitiesStartingPosition() |
Get the starting positions of Pacman and the ghosts
Pacman can be alone or with up to five of the unique ghosts
|
int |
getGameSpeed() |
Get the speed of a game frame in milliseconds
|
java.util.EnumMap<GommeType,java.lang.Integer> |
getGommesValues() |
Get the values in points of each gomme type.
|
int |
getInitialPlayerLives() |
Get the number of lives available for the level
|
int |
getLevelNumber() |
Get the number of the loaded stage
|
Entity[][] |
getPlateau() |
Get the game board, each tiles has an entity.
|
int |
getPlateauSize() |
Get the size of the board (it is a square)
|
java.util.EnumMap<GommeType,java.lang.Integer> |
getSuperPouvoirTime() |
Get the time a superpouvoir is applied to a player for each gomme type
|
void |
setBestScore(int score) |
Save the new best score
|
int getLevelNumber()
java.util.EnumMap<GommeType,java.lang.Integer> getGommesValues()
java.util.EnumMap<GommeType,java.lang.Integer> getSuperPouvoirTime()
int getInitialPlayerLives()
Entity[][] getPlateau()
java.util.HashMap<Entity,java.awt.Point> getEntitiesStartingPosition()
int getGameSpeed()
int getPlateauSize()
int getBestScore()
void setBestScore(int score)
score
- The new best score