|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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 |
|---|
String getGuid()
int getNpcId()
boolean isVehicle()
String getName()
IUnit.Affiliation getAffiliation()
IUnit.Reaction getReaction()
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.
IUnit.Control getControl()
IUnit.Type getType()
long getActiveDuration()
int getDeathsNumber()
boolean isAlive()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||