de.adom.jade.beings
Class NPC

java.lang.Object
  extended by de.adom.jade.kernel.GUIDCarrier
      extended by de.adom.jade.kernel.DefaultActor
          extended by de.adom.jade.beings.Being
              extended by de.adom.jade.beings.NPC
All Implemented Interfaces:
Actor, java.io.Serializable

public class NPC
extends Being

Implements monsters. Monsters act with their own free will and will follow their own goals.

See Also:
Serialized Form

Constructor Summary
NPC(Map map)
          Creates a new NPC.
 
Method Summary
protected  void doAct()
          The actual implementation for actions that are taken.
 java.lang.String getLogicalName()
          Returns the logical name for tbis being.
protected  boolean isFirstPerson()
          Determines whether messages originating from this being use first person singular or third person singular word form.
protected  boolean isVisibleToImpl(Being being)
          Determines whether the PC currently is visible to the given being.
 java.lang.String you()
          Returns a text describing this being as the actor.
 
Methods inherited from class de.adom.jade.beings.Being
act, doMove, doWait, enterLocation, enterLocation, executeRepeatedCommand, getAttribute, getAttributeModifier, getCurrentHitPoints, getCurrentPowerPoints, getDV, getExperiencePoints, getGender, getLastUsedCommand, getLastX, getLastY, getLevel, getMap, getMaximumHitPoints, getMaximumPowerPoints, getMoves, getName, getNextActionEnergy, getPV, getRace, getSightRange, getSpeed, getX, getY, handleTimedStuff, inform, initialize, initializeWordForms, install, isAlive, isBlind, isLastCommandRepeated, isOpenTile, isReadyToAct, isValid, isVisible, isVisibleTo, message, modifyCurrentHitPoints, modifyCurrentPowerPoints, modifyMaximumHitPoints, modifyMaximumPowerPoints, modifyNextActionEnergy, moveTo, observe, resetNextActionEnergy, setAttribute, setCurrentHitPoints, setCurrentPowerPoints, setGender, setLastUsedCommand, setMap, setMaximumHitPoints, setMaximumPowerPoints, setName, setPosition, setRace, updateDisplay, word, You, You
 
Methods inherited from class de.adom.jade.kernel.DefaultActor
actAgainAfter, getActionPoint, setActionPoint
 
Methods inherited from class de.adom.jade.kernel.GUIDCarrier
getGUID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NPC

public NPC(Map map)
Creates a new NPC.

Parameters:
map - the map the NPC dwells upon
Method Detail

doAct

protected void doAct()
The actual implementation for actions that are taken.

Specified by:
doAct in class Being

getLogicalName

public java.lang.String getLogicalName()
Returns the logical name for tbis being. The logical name is intended to be used by the specific UI implementation to look up the correct graphical representation for the being in question. TODO: the logical name needs to be determined in the correct way!

Specified by:
getLogicalName in class Being
Returns:
the logical name of this being

isFirstPerson

protected boolean isFirstPerson()
Determines whether messages originating from this being use first person singular or third person singular word form.

Specified by:
isFirstPerson in class Being
Returns:
false

you

public java.lang.String you()
Returns a text describing this being as the actor.

Specified by:
you in class Being
Returns:
a text describing this being as the actor

isVisibleToImpl

protected boolean isVisibleToImpl(Being being)
Determines whether the PC currently is visible to the given being.

Specified by:
isVisibleToImpl in class Being
Parameters:
being - the being that tries to discern the PC
Returns:
a boolean flag determing whether the PC is visible to the given being or not