|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object us.asciiroth.client.core.AbstractPiece us.asciiroth.client.terrain.decorators.Decorator us.asciiroth.client.terrain.decorators.Mimic
public class Mimic
A mimic looks like one kind of terrain, but is entirely another kind of terrain in behavior. Agents are not fooled by the appearance of mimics.
Field Summary | |
---|---|
static Serializer<Mimic> |
SERIALIZER
Type serializer. |
Method Summary | |
---|---|
Terrain |
getProxiedTerrain()
|
Symbol |
getSymbol()
AbstractPiece does not support different rendering outside as opposed to inside. |
void |
onAdjacentTo(Context context,
Cell cell)
This terrain is adjacent to the player. |
void |
onNotAdjacentTo(Context context,
Cell cell)
This terrain is no longer adjacent to the player. |
Terrain |
proxy(Terrain terrain)
Creates a proxy where the supplied terrain replaces the terrain the mimic appears as (it remains the same actual terrain). |
Methods inherited from class us.asciiroth.client.terrain.decorators.Decorator |
---|
canEnter, canExit, is, not, onAgentEnter, onAgentExit, onColorEvent, onDrop, onEnter, onExit, onFlyOver, onPickup |
Methods inherited from class us.asciiroth.client.core.AbstractPiece |
---|
getColor, getName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface us.asciiroth.client.core.Piece |
---|
getColor, getName |
Field Detail |
---|
public static final Serializer<Mimic> SERIALIZER
Method Detail |
---|
public Terrain getProxiedTerrain()
getProxiedTerrain
in interface TerrainProxy
getProxiedTerrain
in class Decorator
public Symbol getSymbol()
AbstractPiece
getSymbol
in interface Piece
getSymbol
in class AbstractPiece
public void onAdjacentTo(Context context, Cell cell)
Terrain
onAdjacentTo
in interface Terrain
onAdjacentTo
in class Decorator
public void onNotAdjacentTo(Context context, Cell cell)
Terrain
onNotAdjacentTo
in interface Terrain
onNotAdjacentTo
in class Decorator
public Terrain proxy(Terrain terrain)
proxy
in interface TerrainProxy
|
0.7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
© 2009 Alx Dark