net.sf.mud4j.damage
Class PointDamageBehavior

java.lang.Object
  extended by net.sf.mud4j.damage.AbstractDamageBehavior
      extended by net.sf.mud4j.damage.PointDamageBehavior
All Implemented Interfaces:
DamageBehavior

public class PointDamageBehavior
extends AbstractDamageBehavior
implements DamageBehavior

Damage behavior interface to handle damage by point numbers. TODO this is not thread safe

Author:
Matthew Purland

Constructor Summary
PointDamageBehavior()
           
 
Method Summary
 void damage()
          Inflict damage on the object.
 void damage(int damagePoints)
          Inflict the specified number of damage points to the object.
 
Methods inherited from class net.sf.mud4j.damage.AbstractDamageBehavior
addDamageListener, destroy, isDestroyed, removeDamageListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.mud4j.damage.DamageBehavior
addDamageListener, destroy, isDestroyed, removeDamageListener
 

Constructor Detail

PointDamageBehavior

public PointDamageBehavior()
Method Detail

damage

public void damage(int damagePoints)
Inflict the specified number of damage points to the object.

Parameters:
damagePoints - Integer of damage points.

damage

public void damage()
Inflict damage on the object.

Specified by:
damage in interface DamageBehavior
Specified by:
damage in class AbstractDamageBehavior


Copyright © 2006-2007 mud4j. All Rights Reserved.