be.saltwater.jaqel.creature
Class Monster

java.lang.Object
  extended bybe.saltwater.jaqel.creature.Creature
      extended bybe.saltwater.jaqel.creature.Monster

public class Monster
extends Creature

A monster cannot be controlled by the user but instead has a rudimentary AI. They can act when Level tells them to (when it's the monster's turn and they are within a certain radius of a Hero).

Author:
Robin Wittevrongel, Bruno Windels
See Also:
CreatureSharedData, be.saltwater.jaqel.session.Session, Hero

Field Summary
 
Fields inherited from class be.saltwater.jaqel.creature.Creature
ORDER_ERROR, ORDER_NOPATH, ORDER_NOTENOUGHMAGIC, ORDER_NOTENOUGHPOINTS, ORDER_NOTYOURTURN, ORDER_NOWEAPON, ORDER_OK, ORDER_TILENOTFREE, ORDER_TILENOTTAKEN
 
Constructor Summary
Monster(CreatureTypeData type_data, int strengthPoints, int armorPoints, int magicPoints, int accuracyPoints, int toHitPoints, int spellPoints, java.lang.String weapon)
           
 
Method Summary
protected  void addActionsInternal()
          Must be overridden by subclasses to add actions to the scheduler.
 
Methods inherited from class be.saltwater.jaqel.creature.Creature
addActions, attachAttribute, attack, attack, createMorph, detachAttribute, findPath, finishTurn, getActionPoints, getBranchGroup, getCreatureAnimation, getCreatureSharedData, getCreatureTypeData, getCurrentWeapon, getCurrentWeaponName, getDrinkCost, getEndLocation, getHealthPoints, getLevel, getLocation, getLocatorGroup, getMorph, getMoveCost, getTurnFinished, getUsedLocatorKeys, move, move, setActionPoints, setCurrentWeapon, setGeometryToStand, setHealthPoints, setLevel, setLocation, setTurnFinished, withinAttackDistance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Monster

public Monster(CreatureTypeData type_data,
               int strengthPoints,
               int armorPoints,
               int magicPoints,
               int accuracyPoints,
               int toHitPoints,
               int spellPoints,
               java.lang.String weapon)
Method Detail

addActionsInternal

protected void addActionsInternal()
Description copied from class: Creature
Must be overridden by subclasses to add actions to the scheduler. Call setTurnFinished(true) on Creature subclasses that are not controlled by the user.

Specified by:
addActionsInternal in class Creature