|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.eventhorizongilde.ehfs.milestone.AbstractMilestone
de.eventhorizongilde.ehfs.milestone.AbstractFilterMilestone
de.eventhorizongilde.ehfs.milestone.AbstractUnitAuraMilestone
public abstract class AbstractUnitAuraMilestone
A milestone that tracks unit auras.
To use this class it must be instantiated with a unit filter and one or more
spell ID(s). Also, either unitAuraApplied(String, int, int) or
unitAuraApplied(String, int, int, int) should be overriden to create
any annotations.
| Constructor Summary | |
|---|---|
protected |
AbstractUnitAuraMilestone(AbstractUnitFilter unitFilter,
int... spellIds)
Creates a new unit aura milestone. |
| Method Summary | |
|---|---|
protected void |
eventHappened(String key,
CombatEvent event)
Informs the milestone that an event happened during the fight. |
void |
fightEnded(long time)
Informs the milestone that parsing of a fight has ended. This implementation does nothing. |
protected void |
unitAuraApplied(String unitGuid,
int startSeconds,
int endSeconds)
Informs the milestone that an aura has been gained by a unit. |
protected void |
unitAuraApplied(String unitGuid,
int spellId,
int startSeconds,
int endSeconds)
Informs the milestone that an aura has been gained by a unit. |
| Methods inherited from class de.eventhorizongilde.ehfs.milestone.AbstractFilterMilestone |
|---|
addFilter, addFilter, eventHappened, removeFilter, removeFilter |
| Methods inherited from class de.eventhorizongilde.ehfs.milestone.AbstractMilestone |
|---|
addAnnotation, deactivate, getAnnotationGroup, getParseContext, setColorKeyId, setParseContext, toSeconds, toSeconds |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractUnitAuraMilestone(AbstractUnitFilter unitFilter,
int... spellIds)
Creates a new unit aura milestone.
The unit filter's event unit must always be EventUnit.DESTINATION
since it's always the event's destination that is gaining an aura
(or an aura is fading from.)
unitFilter - the unit filter that must match for fight eventsspellIds - the spell ID(s) that must match for fight events| Method Detail |
|---|
protected void eventHappened(String key,
CombatEvent event)
eventHappened in class AbstractFilterMilestonekey - the key that a filter has been associated withevent - the fight eventAbstractFilterMilestone.addFilter(String, IEventFilter)
protected void unitAuraApplied(String unitGuid,
int startSeconds,
int endSeconds)
unitGuid - the unit's GUIDstartSeconds - the time when the aura was gainedendSeconds - the time when the aura has faded
protected void unitAuraApplied(String unitGuid,
int spellId,
int startSeconds,
int endSeconds)
Informs the milestone that an aura has been gained by a unit.
This method simply invokes unitAuraApplied(String, int, int).
Subclasses may override.
unitGuid - the unit's GUIDspellId - the ID of the aura's spellstartSeconds - the time when the aura has been gainedendSeconds - the time when the aura has fadedpublic void fightEnded(long time)
Informs the milestone that parsing of a fight has ended.
This implementation does nothing. Subclasses may override.
fightEnded in interface IMilestonefightEnded in class AbstractMilestone
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||