|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectus.asciiroth.client.core.AbstractPiece
us.asciiroth.client.terrain.AbstractTerrain
us.asciiroth.client.terrain.BeeHive
public class BeeHive
A special kind of AgentCreator that creates bees when it receives
a color event, presumably fired from the death of another KillerBee
on the board.
| Field Summary | |
|---|---|
static Serializer<BeeHive> |
SERIALIZER
|
| Constructor Summary | |
|---|---|
BeeHive(Color color)
|
|
BeeHive(Color color,
State state)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
canExit(Agent agent,
Cell cell,
Direction direction)
Can the (non-player) agent exit this terrain? Without regard to side effects, this method should determine if the agent can actually move into the cell. |
void |
onAgentExit(Event event,
Agent agent,
Cell cell,
Direction dir)
The bees can get out, however. |
void |
onColorEvent(Context ctx,
Cell cell,
Cell origin)
Terrain has received a color event, probably related to the firing of a color event on the board. |
void |
onEnter(Event event,
Player player,
Cell cell,
Direction dir)
You really shouldn't walk into a bee hive. |
void |
onFlyOver(Event event,
Cell cell,
InFlightItem flier)
Terrain has an item flying over it. |
| Methods inherited from class us.asciiroth.client.terrain.AbstractTerrain |
|---|
canEnter, onAdjacentTo, onAgentEnter, onDrop, onExit, onNotAdjacentTo, onPickup |
| Methods inherited from class us.asciiroth.client.core.AbstractPiece |
|---|
getColor, getName, getSymbol, is, not |
| 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, getSymbol, is, not |
| Field Detail |
|---|
public static final Serializer<BeeHive> SERIALIZER
| Constructor Detail |
|---|
public BeeHive(Color color)
public BeeHive(Color color,
State state)
color - | Method Detail |
|---|
public boolean canExit(Agent agent,
Cell cell,
Direction direction)
Terrain
canExit in interface TerraincanExit in class AbstractTerrainCell.canEnter(Cell, Agent, Direction, boolean)
public void onAgentExit(Event event,
Agent agent,
Cell cell,
Direction dir)
onAgentExit in interface TerrainonAgentExit in class AbstractTerrain
public void onColorEvent(Context ctx,
Cell cell,
Cell origin)
ColorListener
onColorEvent in interface ColorListenerctx - a context object with references to game state
public void onEnter(Event event,
Player player,
Cell cell,
Direction dir)
onEnter in interface TerrainonEnter in class AbstractTerrain
public void onFlyOver(Event event,
Cell cell,
InFlightItem flier)
Terrain
onFlyOver in interface TerrainonFlyOver in class AbstractTerrain
|
0.7 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
© 2009 Alx Dark