|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object us.asciiroth.client.core.Symbol
public class Symbol
An immutable, visual representation of a piece in the game. Game boards are marked as either outside or not (underground), which indicates that the board is either lit by sunlight (and thus more naturally colored), or not. In the latter case, the color scheme is the same kind of inverse white-on-black colors you see in a terminal and that is the stuff of roguelike games.
Symbols are layered, currently with terrain on the bottom, followed by items, then effects, and then the agent if present. The highest entity, color or background color is merged into the final symbol displayed for a given cell.
Constructor Summary | |
---|---|
Symbol(java.lang.String entity,
Color color)
Constructor. |
|
Symbol(java.lang.String entity,
Color color,
Color background)
Constructor. |
|
Symbol(java.lang.String entity,
Color fg,
Color bg,
Color ofg,
Color obg)
Constructor. |
|
Symbol(java.lang.String entity,
java.lang.String advanced,
Color color)
Constructor. |
|
Symbol(java.lang.String entity,
java.lang.String advanced,
Color color,
Color background)
Constructor. |
|
Symbol(java.lang.String entity,
java.lang.String advanced,
Color fg,
Color bg,
Color ofg,
Color obg)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getAdjustedEntity()
|
java.lang.String |
getAdvanced()
|
Color |
getBackground(boolean outside)
|
Color |
getColor(boolean outside)
|
java.lang.String |
getEntity()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Symbol(java.lang.String entity, Color color)
entity
- color
- public Symbol(java.lang.String entity, Color color, Color background)
entity
- color
- background
- public Symbol(java.lang.String entity, Color fg, Color bg, Color ofg, Color obg)
entity
- fg
- bg
- ofg
- obg
- public Symbol(java.lang.String entity, java.lang.String advanced, Color color)
entity
- advanced
- color
- public Symbol(java.lang.String entity, java.lang.String advanced, Color color, Color background)
entity
- color
- background
- public Symbol(java.lang.String entity, java.lang.String advanced, Color fg, Color bg, Color ofg, Color obg)
entity
- advanced
- fg
- bg
- ofg
- obg
- Method Detail |
---|
public java.lang.String getAdjustedEntity()
public java.lang.String getAdvanced()
public Color getBackground(boolean outside)
public Color getColor(boolean outside)
public java.lang.String getEntity()
|
0.7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
© 2009 Alx Dark