Modifier and Type | Method | Description |
---|---|---|
int |
getBestScore() |
get the all time best score for a map
|
Entity |
getEntity(int X,
int Y) |
Get the entity at the given position on the board
|
Ighost[] |
getGhosts() |
get all the ghosts of the game
|
Ipacman |
getPacman() |
get the pacman of the game
|
int |
getPasDeResolution() |
Get the resolution in pixel
|
int |
getSize() |
Get the size of the board (it is a square)
|
void |
movePlayerDown() |
Move the player by a grid unit down
|
void |
movePlayerLeft() |
Move the player by a grid unit left
|
void |
movePlayerRight() |
Move the player by a grid unit right
|
void |
movePlayerUp() |
Move the player by a grid unit down
|
void |
tick() |
get to the next game state
|
public Jeux(Data dataclass)
public void movePlayerUp()
Logic
movePlayerUp
in interface Logic
public void movePlayerDown()
Logic
movePlayerDown
in interface Logic
public void movePlayerLeft()
Logic
movePlayerLeft
in interface Logic
public void movePlayerRight()
Logic
movePlayerRight
in interface Logic
public void tick()
Logic
public int getSize()
Logic
public Entity getEntity(int X, int Y)
Logic
public Ipacman getPacman()
Logic
public Ighost[] getGhosts()
Logic
public int getBestScore()
Logic
getBestScore
in interface Logic
public int getPasDeResolution()
Logic
getPasDeResolution
in interface Logic