|
|||||||||
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.agents.AbstractAgent us.asciiroth.client.agents.AbstractAnimatedAgent us.asciiroth.client.agents.Hooloovoo
public class Hooloovoo
Hooloovoos are a hyper-intelligent shade of the color blue (Douglas Adams). When they hit the player, if the player is carrying anything, the player's inventory is teleported to random places on the board (always floor). Furthermore, ammunition bounces off of Hooloovoos and becomes harmful to the player. They are not super fast, however. They fire a color event when killed.
I've had to make Hooloovoo's organic because otherwise, they have no weakness and they're impossible to kill! Now at least they can be killed with a bomb.
Field Summary | |
---|---|
static Serializer<Hooloovoo> |
SERIALIZER
Type serializer. |
Constructor Summary | |
---|---|
Hooloovoo(Color color)
Constructor. |
Method Summary | |
---|---|
void |
onFrame(Context ctx,
Cell cell,
int frame)
Animation callback, executed once each frame for each piece animated on the board. |
void |
onHit(Event event,
Cell attackerLoc,
Cell agentLoc,
Agent agent)
Fired when this agent collides with the player, or if this agent is the player, when the player collides with another agent (in other words, this method will not fire if one non-player agent collides with another non-player agent). |
void |
onHitBy(Event event,
Cell itemLoc,
Item item,
Direction dir)
Called when this agent is hit by another item, either by being thrown, or by being wielded by the player. |
Methods inherited from class us.asciiroth.client.agents.AbstractAnimatedAgent |
---|
randomSeed |
Methods inherited from class us.asciiroth.client.agents.AbstractAgent |
---|
canEnter, changeHealth, onDie, onHitBy |
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<Hooloovoo> SERIALIZER
Constructor Detail |
---|
public Hooloovoo(Color color)
color
- Method Detail |
---|
public void onFrame(Context ctx, Cell cell, int frame)
Animated
public void onHit(Event event, Cell attackerLoc, Cell agentLoc, Agent agent)
Agent
onHit
in interface Agent
onHit
in class AbstractAgent
public void onHitBy(Event event, Cell itemLoc, Item item, Direction dir)
Agent
onHitBy
in interface Agent
onHitBy
in class AbstractAgent
|
0.7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
© 2009 Alx Dark