Jeux
public interface Logic
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
|
void movePlayerUp()
void movePlayerDown()
void movePlayerLeft()
void movePlayerRight()
int getSize()
int getPasDeResolution()
Entity getEntity(int X, int Y)
X
- the x coordinate from the left of the screenY
- the y coordinate from the top of the screenIpacman getPacman()
Ighost[] getGhosts()
int getBestScore()
void tick()