|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.adom.jade.ui.TileRepresentation
de.adom.jade.ui.ascii.AsciiTileRepresentation
Encapsulates all the data required to display map tiles in the ascii user interface.
| Field Summary | |
|---|---|
java.awt.Color |
brightColor
the bright color version of the character |
char[] |
character
The character used to display the tile in question; for performance reasons this variable is encoded as a character array of length 1. |
java.awt.Color |
color
the color of the character |
java.awt.Color |
darkColor
the dark color version of the character |
| Constructor Summary | |
|---|---|
AsciiTileRepresentation(char aChar,
java.awt.Color aColor)
Creates a new tile representation for a given map tile. |
|
| Method Summary | |
|---|---|
java.lang.String |
toString()
Returns a string representation of this ASCII tile representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public char[] character
public java.awt.Color color
public java.awt.Color brightColor
public java.awt.Color darkColor
| Constructor Detail |
|---|
public AsciiTileRepresentation(char aChar,
java.awt.Color aColor)
aChar - the character to use in the display for the
given tileaColor - the color used to display the tile in question| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||