de.eventhorizongilde.ehfs.event
Class CombatEvent

java.lang.Object
  extended by de.eventhorizongilde.ehfs.event.CombatEvent
Direct Known Subclasses:
AbstractSpellEvent, FightEndedEvent, UnitDiedEvent

public abstract class CombatEvent
extends Object

An event that happened during a fight.


Method Summary
 IUnit getDestination()
          Returns the event's destination (if any.)
 IUnit getSource()
          Returns the event's source (if any.)
 long getTime()
          Returns the time when this event happened (in milliseconds.)
 boolean isActiveAction()
          Returns whether this event is considered an "active action.
 void setDestination(IUnit destination)
           
 void setSource(IUnit source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTime

public long getTime()
Returns the time when this event happened (in milliseconds.)


getSource

public IUnit getSource()
Returns the event's source (if any.)


setSource

public void setSource(IUnit source)

getDestination

public IUnit getDestination()
Returns the event's destination (if any.)


setDestination

public void setDestination(IUnit destination)

isActiveAction

public boolean isActiveAction()
Returns whether this event is considered an "active action." Active actions are actions that a unit did on purpose, such as casting a spell. Passive actions on the other hand are things like gaining mana from spells such as Replenishment, or damage-over-time spell ticks.



Event Horizon Fight Statistics