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

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

public class GoalPiece
extends EmptyPiece

Represents a Goal Piece.

Author:
Tim Van Wassenhove

Constructor Summary
GoalPiece(Position position)
          Default constructor.
 
Method Summary
 java.lang.String getName()
          Returns the name of this Piece.
 
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

GoalPiece

public GoalPiece(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