mixmeta4
Class Pod
java.lang.Object
mixmeta4.Piece
mixmeta4.Pod
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class Pod
- extends Piece
A Pod (P,p) moves forward one square diagonally, and promotes to a Galaxian when it reaches the last row.
- See Also:
- Serialized Form
Constructor Summary |
Pod(boolean isRed,
boolean visible)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
RED_DIRECTIONS
public static java.awt.Point[] RED_DIRECTIONS
BLACK_DIRECTIONS
public static java.awt.Point[] BLACK_DIRECTIONS
Pod
public Pod(boolean isRed,
boolean visible)
clone
public java.lang.Object clone()
- Overrides:
clone
in class Piece
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class Piece