blob: debac679a398bba674d9b274ab645d318666691a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
package ch.epfl.maze.physical.pacman;
import ch.epfl.maze.physical.Animal;
import ch.epfl.maze.physical.Daedalus;
import ch.epfl.maze.physical.Prey;
import ch.epfl.maze.util.Direction;
import ch.epfl.maze.util.Vector2D;
import java.util.Set;
/**
* Pac-Man character, from the famous game of the same name.
*
* @author EPFL
* @author Pacien TRAN-GIRARD
*/
public class PacMan extends Prey {
public PacMan(Vector2D position) {
super(position);
}
@Override
public Direction move(Set<Direction> choices, Daedalus daedalus) {
return this.move(choices);
}
@Override
public Animal copy() {
return new PacMan(this.getPosition());
}
}
|