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

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

public class HeroPiece
extends Piece

Represents a Hero Piece.

Author:
Tim Van Wassenhove

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

HeroPiece

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