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

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

public class TreasurePiece
extends Piece

Represents a Treasure Piece.

Author:
Tim Van Wassenhove

Constructor Summary
TreasurePiece(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

TreasurePiece

public TreasurePiece(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.

Specified by:
getName in class Piece
Returns:
a String specifying the name of this Piece