de.eventhorizongilde.ehfs.milestone
Class AbstractNpcGroupMemberDeadMilestone

java.lang.Object
  extended by de.eventhorizongilde.ehfs.milestone.AbstractMilestone
      extended by de.eventhorizongilde.ehfs.milestone.AbstractFilterMilestone
          extended by de.eventhorizongilde.ehfs.milestone.AbstractNpcGroupMemberDeadMilestone
All Implemented Interfaces:
IMilestone

public abstract class AbstractNpcGroupMemberDeadMilestone
extends AbstractFilterMilestone

A milestone that creates line annotations when an NPC group member dies.

To use this class it must be instantiated with the NPC IDs of the group members.

This implementation will not create an annotation for the death of the last group member standing. It is assumed this event happens at the end of a fight anyway.


Constructor Summary
protected AbstractNpcGroupMemberDeadMilestone(String legendLabel, int... npcIds)
          Creates a new NPC-group-member-dies milestone.
 
Method Summary
protected  void addAnnotation(String title, IAnnotation annotation)
          

Adds an annotation to this milestone's annotation group.

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.

 
Methods inherited from class de.eventhorizongilde.ehfs.milestone.AbstractFilterMilestone
addFilter, addFilter, eventHappened, removeFilter, removeFilter
 
Methods inherited from class de.eventhorizongilde.ehfs.milestone.AbstractMilestone
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

AbstractNpcGroupMemberDeadMilestone

protected AbstractNpcGroupMemberDeadMilestone(String legendLabel,
                                              int... npcIds)
Creates a new NPC-group-member-dies milestone.

Parameters:
npcIds - the NPC IDs of the group members
legendLabel - the label to use in graph legends
Method Detail

eventHappened

protected void eventHappened(String key,
                             CombatEvent event)
Informs the milestone that an event happened during the fight. This method is invoked only if there are any event filters associated with keys. This implementation does nothing, subclasses are expected to override.

Overrides:
eventHappened in class AbstractFilterMilestone
Parameters:
key - the key that a filter has been associated with
event - the fight event
See Also:
AbstractFilterMilestone.addFilter(String, IEventFilter)

addAnnotation

protected void addAnnotation(String title,
                             IAnnotation annotation)

Adds an annotation to this milestone's annotation group.

Note: The title and the result of IAnnotation.isLegendIconAsBox() of the first annotation added are used to create the annotation group when invoking AbstractMilestone.getAnnotationGroup().

Overrides:
addAnnotation in class AbstractMilestone

fightEnded

public void fightEnded(long time)

Informs the milestone that parsing of a fight has ended.

This implementation does nothing. Subclasses may override.

Specified by:
fightEnded in interface IMilestone
Overrides:
fightEnded in class AbstractMilestone


Event Horizon Fight Statistics