|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object us.asciiroth.client.core.AbstractPiece
public abstract class AbstractPiece
Abstract implementation of a piece.
Constructor Summary | |
---|---|
AbstractPiece(java.lang.String name,
int flags,
Color color,
Symbol symbol)
Constructor. |
|
AbstractPiece(java.lang.String name,
int flags,
Symbol symbol)
Constructor. |
Method Summary | |
---|---|
Color |
getColor()
What is the color of this piece? While many piece types are permanently of color "None", many more can be parameterized with a color in order to tie them together through color-based events. |
java.lang.String |
getName()
The visible name of the piece. |
Symbol |
getSymbol()
AbstractPiece does not support different rendering outside as opposed to inside. |
boolean |
is(int flag)
Does this piece have the indicated bit flag? |
boolean |
not(int flag)
Does this piece not have the indicated flag? |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractPiece(java.lang.String name, int flags, Color color, Symbol symbol)
name
- flags
- color
- symbol
- public AbstractPiece(java.lang.String name, int flags, Symbol symbol)
name
- flags
- symbol
- Method Detail |
---|
public Color getColor()
Piece
getColor
in interface Piece
public java.lang.String getName()
Piece
getName
in interface Piece
public Symbol getSymbol()
getSymbol
in interface Piece
public boolean is(int flag)
Piece
is
in interface Piece
Flags
public boolean not(int flag)
Piece
not
in interface Piece
Flags
|
0.7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
© 2009 Alx Dark