de.adom.jade.ui.ascii
Class AsciiTileRepresentation

java.lang.Object
  extended by de.adom.jade.ui.TileRepresentation
      extended by de.adom.jade.ui.ascii.AsciiTileRepresentation
All Implemented Interfaces:
java.io.Serializable

public class AsciiTileRepresentation
extends TileRepresentation

Encapsulates all the data required to display map tiles in the ascii user interface.

See Also:
Serialized Form

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

character

public 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.


color

public java.awt.Color color
the color of the character


brightColor

public java.awt.Color brightColor
the bright color version of the character


darkColor

public java.awt.Color darkColor
the dark color version of the character

Constructor Detail

AsciiTileRepresentation

public AsciiTileRepresentation(char aChar,
                               java.awt.Color aColor)
Creates a new tile representation for a given map tile.

Parameters:
aChar - the character to use in the display for the given tile
aColor - the color used to display the tile in question
Method Detail

toString

public java.lang.String toString()
Returns a string representation of this ASCII tile representation.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of this tile representation