rules
Class Upgrade

java.lang.Object
  extended by core.Piece
      extended by rules.NoneSquare
          extended by rules.Upgrade

public class Upgrade
extends NoneSquare

Empty piece.


Field Summary
 
Fields inherited from class core.Piece
color
 
Constructor Summary
Upgrade()
          Constructs a new Destroy instance
 
Method Summary
 String getName()
           
 int hashCode()
          This should be unique for different pieces or different colors.
 String pieceString()
           
 void postMove(GameState gs, Map<Position,Piece> move, Position here)
          Apply the modifications to a move map for a move onto this square completes.
 
Methods inherited from class rules.NoneSquare
moveCandidates, threatens
 
Methods inherited from class core.Piece
getColor, getLastMove, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Upgrade

public Upgrade()
Constructs a new Destroy instance

Method Detail

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