Modifier and Type | Field | Description |
---|---|---|
long |
timeLastKill |
Constructor | Description |
---|---|
Pacman(int posX,
int posY,
int lives) |
Modifier and Type | Method | Description |
---|---|---|
void |
changeDirection(Direction dir) |
|
void |
changeNextDirection(Direction dir) |
|
void |
eatGomme(int points) |
|
Direction |
getDirection() |
get the direction of Pacman
|
Direction |
getNextDirection() |
|
int |
getPoints() |
get the points of pacman
|
int |
getPositionX() |
get the position in X
|
int |
getPositionY() |
get the position in Y
|
int |
getPV() |
get the PV of pacman
|
boolean |
isEaten() |
|
void |
kill() |
|
void |
move(int dx) |
|
void |
setNotEaten() |
public int getPositionX()
Ipacman
getPositionX
in interface Ipacman
public int getPositionY()
Ipacman
getPositionY
in interface Ipacman
public Direction getDirection()
Ipacman
getDirection
in interface Ipacman
public Direction getNextDirection()
public void move(int dx)
public void changeDirection(Direction dir)
public void changeNextDirection(Direction dir)
public int getPV()
Ipacman
public void kill()
public void eatGomme(int points)
public int getPoints()
Ipacman
public void setNotEaten()