de.eventhorizongilde.ehfs.parse
Interface IUnit


public interface IUnit

A unit. Units may be players, NPCs, pets, or objects. They are controlled by either players or NPCs. They do have an affiliation to other units, and they may react differently to them.


Nested Class Summary
static class IUnit.Affiliation
          Describes a unit's affiliation to other units.
static class IUnit.Control
          Describes who is controlling a unit.
static class IUnit.Reaction
          Describes a unit's reaction to other units.
static class IUnit.Type
          Describes a unit's type.
 
Method Summary
 long getActiveDuration()
          Returns the number of seconds this unit has been active during the current fight.
 IUnit.Affiliation getAffiliation()
          Returns this unit's affiliation to other units.
 IUnit.Control getControl()
          Returns who is controlling this unit.
 int getDeathsNumber()
          Returns how often this unit has died during the current fight.
 String getGuid()
          Returns this unit's GUID.
 String getName()
          Returns this unit's name.
 int getNpcId()
          Returns this unit's NPC ID (if any.)
 IUnit.Reaction getReaction()
          Returns this unit's reaction to other units.
 IUnit.Type getType()
          Returns this unit's type.
 boolean isAlive()
          Returns whether this unit is currently alive.
 boolean isRaidMember()
          Returns whether this unit is a member of the raid.
 boolean isVehicle()
          Returns whether this unit is a vehicle.
 

Method Detail

getGuid

String getGuid()
Returns this unit's GUID.


getNpcId

int getNpcId()
Returns this unit's NPC ID (if any.)


isVehicle

boolean isVehicle()
Returns whether this unit is a vehicle.


getName

String getName()
Returns this unit's name. The actual name returned is affected by the locale of the WoW log file parsed.


getAffiliation

IUnit.Affiliation getAffiliation()
Returns this unit's affiliation to other units. The affiliation returned is always towards the player who created the WoW log file.


getReaction

IUnit.Reaction getReaction()
Returns this unit's reaction to other units. The reaction returned is always towards the player who created the WoW log file.


isRaidMember

boolean isRaidMember()

Returns whether this unit is a member of the raid.

Note that not all outsiders are hostile. Likewise, not all raid members must be players.


getControl

IUnit.Control getControl()
Returns who is controlling this unit. The control type returned by this method is always determined at the start of the parsed fight, that is, when that unit is first found in the log file. Control of the unit may change during the fight, but this method will not reflect that.


getType

IUnit.Type getType()
Returns this unit's type.


getActiveDuration

long getActiveDuration()
Returns the number of seconds this unit has been active during the current fight.


getDeathsNumber

int getDeathsNumber()
Returns how often this unit has died during the current fight.


isAlive

boolean isAlive()
Returns whether this unit is currently alive. This may change during a fight.



Event Horizon Fight Statistics