us.asciiroth.client.agents
Class Asciiroth

java.lang.Object
  extended by us.asciiroth.client.core.AbstractPiece
      extended by us.asciiroth.client.agents.AbstractAgent
          extended by us.asciiroth.client.agents.AbstractAnimatedAgent
              extended by us.asciiroth.client.agents.Asciiroth
All Implemented Interfaces:
Agent, Animated, ColorListener, Piece

public class Asciiroth
extends AbstractAnimatedAgent
implements ColorListener

A boss piece. It can only be killed with Terminus Est, and although this alone is not too difficult, it is accompanied by attendants who can be deadly, and is sure to weaken the character, which is a serious handicap (or can be, depending on the scenario design). Oh yeah, and Asciiroth does run away...

Asciiroth should be placed on the board with "attendant" Lightning Lizards who have the same color and are the same as the agent passed to Asciiroth. When they die, Asciiroth will shoot an Agentray that turns into a new lizard. In addition, it also shoots clouds that weaken the player.

NOTE: If there's ever any bullet that would kill Asciiroth, then it should dodge bullets. Currently it doesn't bother.


Field Summary
static Serializer<Asciiroth> SERIALIZER
           
 
Constructor Summary
Asciiroth(Color color, Agent agent)
           
 
Method Summary
 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 onDie(Event event, Cell cell)
          Called when the agent dies on a given cell.
 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).
 
Methods inherited from class us.asciiroth.client.agents.AbstractAnimatedAgent
randomSeed
 
Methods inherited from class us.asciiroth.client.agents.AbstractAgent
canEnter, changeHealth, onHitBy, 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

SERIALIZER

public static final Serializer<Asciiroth> SERIALIZER
Constructor Detail

Asciiroth

public Asciiroth(Color color,
                 Agent agent)
Method Detail

onColorEvent

public void onColorEvent(Context ctx,
                         Cell cell,
                         Cell origin)
Description copied from interface: ColorListener
Terrain has received a color event, probably related to the firing of a color event on the board. Different terrain behave differently when triggered, most flip between a set of states.

Specified by:
onColorEvent in interface ColorListener
Parameters:
ctx - a context object with references to game state

onDie

public void onDie(Event event,
                  Cell cell)
Description copied from interface: Agent
Called when the agent dies on a given cell.

Specified by:
onDie in interface Agent
Overrides:
onDie in class AbstractAgent

onFrame

public void onFrame(Context ctx,
                    Cell cell,
                    int frame)
Description copied from interface: Animated
Animation callback, executed once each frame for each piece animated on the board.

Specified by:
onFrame in interface Animated

onHit

public void onHit(Event event,
                  Cell attackerLoc,
                  Cell agentLoc,
                  Agent agent)
Description copied from interface: 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).

Specified by:
onHit in interface Agent
Overrides:
onHit in class AbstractAgent

0.7

2009 Alx Dark