rules
Class Destroy
java.lang.Object
core.Piece
rules.NoneSquare
rules.Destroy
public class Destroy
- extends NoneSquare
Empty piece.
|
Constructor Summary |
Destroy()
Constructs a new Destroy instance |
Destroy
public Destroy()
- Constructs a new Destroy instance
getName
public String getName()
- Specified by:
getName in class Piece
- See Also:
Piece
pieceString
public String pieceString()
- Specified by:
pieceString in class Piece
postMove
public void postMove(GameState gs,
Map<Position,Piece> move,
Position here)
- Description copied from class:
Piece
- Apply the modifications to a move map for a move onto this
square completes.
Used to implement powerups; others can safely do nothing.
- Overrides:
postMove in class Piece
hashCode
public int hashCode()
- Description copied from class:
Piece
- This should be unique for different pieces or different
colors.
- Specified by:
hashCode in class Piece