|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gecco.client.Symbols
This class contains the symbols (Images) of the game. Every piece type should have a symbol. For every symbol added to the collection, a semi-transparent variant of the same symbol is created, used for ghost pieces.
Constructor Summary | |
Symbols()
|
Method Summary | |
static void |
addPieceSymbol(String type,
Image image)
Adds a symbol for the given piece type. |
static Enumeration |
getAllPieceTypes()
Gets the AllPieceTypes attribute of the Symbols class |
static Image |
getGhostSymbol(String type)
Return the ghost symbol of the given type, or NULL if there is no symbol for that type. |
static Image |
getPieceSymbol(String type)
Returns the symbol (Image) of the given type, or NULL if there is no symbol for that type. |
static void |
removePieceSymbol(String type)
Removes the symbol assigned to the given piece type (if any).. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Symbols()
Method Detail |
public static Image getPieceSymbol(String type)
type
- Description of Parameter
public static Enumeration getAllPieceTypes()
public static Image getGhostSymbol(String type)
type
- Description of Parameter
public static void addPieceSymbol(String type, Image image)
type
- The piece type.image
- The symbol of the piece type.public static void removePieceSymbol(String type)
type
- Description of Parameter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |