1 | package jpacman.model; |
2 | |
3 | /** |
4 | * A wall positioned on a cell on the board. |
5 | * |
6 | * @author Arie van Deursen; Aug 2, 2003 |
7 | * @version $Id: Wall.java,v 1.6 2008/02/07 08:40:42 arie Exp $ |
8 | */ |
9 | public class Wall extends Guest { |
10 | |
11 | /** |
12 | * Create a new wall. |
13 | */ |
14 | public Wall() { |
15 | super(); |
16 | } |
17 | |
18 | /** |
19 | * The player wants to occupy the wall's cell. |
20 | * @param aMove the move the player wants to make. |
21 | * @return false, the player cannot move here. |
22 | * |
23 | * @see jpacman.model.Guest#meetPlayer(jpacman.model.PlayerMove) |
24 | */ |
25 | @Override |
26 | public boolean meetPlayer(PlayerMove aMove) { |
27 | assert guestInvariant(); |
28 | assert aMove != null; |
29 | assert !aMove.initialized(); |
30 | return false; |
31 | } |
32 | |
33 | /** |
34 | * @see jpacman.model.Guest#guestType() |
35 | * @return A character encoding for the wall. |
36 | */ |
37 | @Override |
38 | public char guestType() { |
39 | return Guest.WALL_TYPE; |
40 | } |
41 | } |