spellcast.beings
Class Monster

java.lang.Object
  extended by spellcast.beings.Being
      extended by spellcast.beings.Monster
All Implemented Interfaces:
java.io.Serializable, IBeing, IMonster, PropertyUpdater, util.Nullable
Direct Known Subclasses:
FireElemental, Giant, Goblin, IceElemental, NullMonster, Ogre, Troll

public abstract class Monster
extends Being
implements util.Nullable, IMonster

Author:
Barrie Treloar
See Also:
Serialized Form

Field Summary
 
Fields inherited from class spellcast.beings.Being
ACTIVE_PROP
 
Constructor Summary
Monster()
          TODO: Leave this in until monsters are added properly.
Monster(java.lang.String name, Gender gender, int maxHitPoints)
           
 
Method Summary
 IWizard getOwner()
          Return the IWizard who is the owner of this IMonster.
static Monster newNull()
          Return a Null Monster.
 
Methods inherited from class spellcast.beings.Being
addEnchantment, addPropertyChangeListener, getEnchantments, getGender, getHitPoints, getId, getLeavesCorpse, getMaxHitPoints, getName, getPropertySupport, isActive, isAlive, isNull, removeEnchantment, removePropertyChangeListener, setActive, setAlive, setGender, setHitPoints, setId, setLeavesCorpse, setMaxHitPoints, setName, setNull, shouldDie, takeDamage, updateEnchantments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface spellcast.beings.IBeing
addEnchantment, getEnchantments, getGender, getHitPoints, getId, getLeavesCorpse, getMaxHitPoints, getName, isActive, isAlive, removeEnchantment, setActive, setAlive, setGender, setHitPoints, setId, setLeavesCorpse, setMaxHitPoints, setName, shouldDie, takeDamage, updateEnchantments
 

Constructor Detail

Monster

public Monster()
TODO: Leave this in until monsters are added properly.


Monster

public Monster(java.lang.String name,
               Gender gender,
               int maxHitPoints)
Method Detail

getOwner

public IWizard getOwner()
Return the IWizard who is the owner of this IMonster.

Specified by:
getOwner in interface IMonster
Returns:
the IWizard who is the owner of this IMonster.

newNull

public static Monster newNull()
Return a Null Monster.

Returns:
an instance of the Null Monster.


Copyright © 2001-2005 Spellcast. All Rights Reserved.