us.asciiroth.client.agents.npc
Class MallocCommoner

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

public class MallocCommoner
extends Commoner

MallocCommoner. 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<MallocCommoner> SERIALIZER
          Type serializer.
 
Constructor Summary
MallocCommoner(State state, Color color, java.lang.String message)
          Constructor.
MallocCommoner(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<MallocCommoner> SERIALIZER
Type serializer.

Constructor Detail

MallocCommoner

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

Parameters:
state -
color -
message -

MallocCommoner

public MallocCommoner(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