rules
Class NoneSquare

java.lang.Object
  extended by core.Piece
      extended by rules.NoneSquare
Direct Known Subclasses:
Destroy, Empty, Spawn, Upgrade

public abstract class NoneSquare
extends Piece

A powerup or empty


Field Summary
 
Fields inherited from class core.Piece
color
 
Constructor Summary
NoneSquare()
          Constructs a new Empty instance
 
Method Summary
 Collection<Move> moveCandidates(GameState g, Position here)
          Empty instances cannot move
 boolean threatens(GameState g, Position from, Position to)
          Empty instances cannot threaten
 
Methods inherited from class core.Piece
getColor, getLastMove, getName, hashCode, pieceString, postMove, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoneSquare

public NoneSquare()
Constructs a new Empty instance

Method Detail

moveCandidates

public Collection<Move> moveCandidates(GameState g,
                                       Position here)
Empty instances cannot move

Specified by:
moveCandidates in class Piece

threatens

public boolean threatens(GameState g,
                         Position from,
                         Position to)
Empty instances cannot threaten