de.eventhorizongilde.ehfs.parse
Interface IParseContext


public interface IParseContext

Contains contextual information for the current fight parse.


Method Summary
 void addMessage(String message)
          Adds a message that will be displayed to the user after parsing the fight.
 IUnit[] getAllUnits()
          Returns all known units involved in the fight.
 int getAnnotationAlpha()
          Returns the alpha value for graph annotations.
 long getEndTime()
          Returns the time when the fight has ended (in milliseconds.)
 IUnit getEnvironment()
          Returns the unit known as "the environment.
 String getLastLogLine()
           
 long getStartTime()
          Returns the time when the fight has started (in milliseconds.)
 Set<IUnit> getSummonedUnits(String ownerGuid)
          Returns all units summoned by the specified unit.
 IUnit getUnit(String guid)
          Returns the unit specified by the GUID.
 List<List<IEventText>> getUnitRecentEventsBeforeDeath(String guid)
           
 boolean isBoss(IUnit unit)
          Returns whether the specified unit is a boss.
 boolean isCollectRecentEventsBeforeDeath()
           
 boolean isSummonedUnit(String guid)
          Returns whether the specified unit has been summoned.
 void removeMilestone(IMilestone milestone)
          Removes the specified milestone for the current fight.
 

Method Detail

getEnvironment

IUnit getEnvironment()
Returns the unit known as "the environment."


getUnit

IUnit getUnit(String guid)
Returns the unit specified by the GUID.


getAllUnits

IUnit[] getAllUnits()
Returns all known units involved in the fight.


getSummonedUnits

Set<IUnit> getSummonedUnits(String ownerGuid)
Returns all units summoned by the specified unit.


getStartTime

long getStartTime()
Returns the time when the fight has started (in milliseconds.)


getEndTime

long getEndTime()
Returns the time when the fight has ended (in milliseconds.) The value returned by this method is only valid when parsing has ended.


isSummonedUnit

boolean isSummonedUnit(String guid)
Returns whether the specified unit has been summoned.


getUnitRecentEventsBeforeDeath

List<List<IEventText>> getUnitRecentEventsBeforeDeath(String guid)

isCollectRecentEventsBeforeDeath

boolean isCollectRecentEventsBeforeDeath()

isBoss

boolean isBoss(IUnit unit)
Returns whether the specified unit is a boss.


getLastLogLine

String getLastLogLine()

getAnnotationAlpha

int getAnnotationAlpha()
Returns the alpha value for graph annotations. This should be used for constructing Color objects.


addMessage

void addMessage(String message)
Adds a message that will be displayed to the user after parsing the fight.


removeMilestone

void removeMilestone(IMilestone milestone)
Removes the specified milestone for the current fight. Added annotations will be kept, but the milestone will not be considered again for this fight. This may speed up the parsing process.



Event Horizon Fight Statistics