mixmeta4
Class Egg
java.lang.Object
mixmeta4.Piece
mixmeta4.Egg
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class Egg
- extends Piece
An Egg (E,e) moves forward one square diagonally, and promotes to a Frogger when it reaches the last row.
- See Also:
- Serialized Form
Constructor Summary |
Egg(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
Egg
public Egg(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