us.asciiroth.client.agents.npc
Class Commoner

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.npc.NPC
                  extended by us.asciiroth.client.agents.npc.Commoner
All Implemented Interfaces:
Agent, Animated, Piece
Direct Known Subclasses:
MallocCommoner

public class Commoner
extends NPC

Commoner. When NPCs on the board go hostile, a commoner will run away rather than fight (by design, it should attack if the player is standing right next to it, so as not to be suicidal... not sure if this works).


Field Summary
static Serializer<Commoner> SERIALIZER
          Type serializer.
 
Constructor Summary
Commoner(State state, Color color, java.lang.String message)
          Constructor.
Commoner(State state, Color color, java.lang.String message, Color questColor, Color doneColor, java.lang.String inQuestMsg, java.lang.String flag)
          Constructor.
 
Method Summary
 
Methods inherited from class us.asciiroth.client.agents.npc.NPC
changeHealth, onFrame, onHit, onHitBy, onHitBy
 
Methods inherited from class us.asciiroth.client.agents.AbstractAnimatedAgent
randomSeed
 
Methods inherited from class us.asciiroth.client.agents.AbstractAgent
canEnter, onDie
 
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<Commoner> SERIALIZER
Type serializer.

Constructor Detail

Commoner

public Commoner(State state,
                Color color,
                java.lang.String message)
Constructor.

Parameters:
state -
color -
message -

Commoner

public Commoner(State state,
                Color color,
                java.lang.String message,
                Color questColor,
                Color doneColor,
                java.lang.String inQuestMsg,
                java.lang.String flag)
Constructor.

Parameters:
state -
color -
message -
questColor -
doneColor -
inQuestMsg -
flag -

0.7

© 2009 Alx Dark