be.madoka.aardbei.sokoban.logic.piece
Class WallPiece

java.lang.Object
  |
  +--be.madoka.aardbei.sokoban.logic.Piece
        |
        +--be.madoka.aardbei.sokoban.logic.piece.EmptyPiece
              |
              +--be.madoka.aardbei.sokoban.logic.piece.WallPiece
All Implemented Interfaces:
java.util.EventListener, java.beans.PropertyChangeListener, java.beans.VetoableChangeListener

public class WallPiece
extends EmptyPiece

Represents a Wall.

Author:
Tim Van Wassenhove

Constructor Summary
WallPiece(Position position)
          Default constructor.
 
Method Summary
 java.lang.String getName()
          Returns the name of this Piece.
 boolean testCollision(PositionChangeEvent e)
           
 
Methods inherited from class be.madoka.aardbei.sokoban.logic.Piece
addPropertyListener, addVetoableChangeListener, getMoves, getOldPosition, getPosition, move, propertyChange, removePropertyListener, removeVetoableChangeListener, vetoableChange
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WallPiece

public WallPiece(Position position)
Default constructor.

Parameters:
position - the Position
Method Detail

getName

public java.lang.String getName()
Description copied from class: Piece
Returns the name of this Piece.

Overrides:
getName in class EmptyPiece
Returns:
a String specifying the name of this Piece

testCollision

public boolean testCollision(PositionChangeEvent e)
Overrides:
testCollision in class EmptyPiece