|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.huguesjohnson.tiamat.Target
public class Target
Target - represents the target of a Skill or Item
| Field Summary | |
|---|---|
static int |
AFFECTED_ENTITY_ENEMY_ALL
AFFECTED_ENTITY constants specify who this target effects. |
static int |
AFFECTED_ENTITY_ENEMY_SINGLE
AFFECTED_ENTITY constants specify who this target effects. |
static int |
AFFECTED_ENTITY_EVERYONE
AFFECTED_ENTITY constants specify who this target effects. |
static int |
AFFECTED_ENTITY_PARTY_ALL
AFFECTED_ENTITY constants specify who this target effects. |
static int |
AFFECTED_ENTITY_PARTY_SINGLE
AFFECTED_ENTITY constants specify who this target effects. |
static int |
AFFECTED_ENTITY_USER
AFFECTED_ENTITY constants specify who this target effects. |
static int |
DEFAULT_AFFECTED_ENTITY
AFFECTED_ENTITY constants specify who this target effects. |
| Constructor Summary | |
|---|---|
Target(java.lang.String targetPath,
long value)
Create a new Target, uses DEFAULT_AFFECTED_ENTITY. |
|
Target(java.lang.String targetPath,
long value,
int affectedEntity)
Create a new Target, uses DEFAULT_AFFECTED_ENTITY. |
|
| Method Summary | |
|---|---|
int |
getAffectedEntity()
Returns who this target affects. |
java.lang.String |
getTargetPath()
Returns the path of the item or attribute being modified. |
long |
getValue()
Returns how much to modify the target. |
void |
setAffectedEntity(int affectedEntity)
Sets who this target affects. |
void |
setTargetPath(java.lang.String targetPath)
Sets the path of the item or attribute being modified. |
void |
setValue(long value)
Sets how much to modify the target. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int AFFECTED_ENTITY_USER
public static final int AFFECTED_ENTITY_PARTY_SINGLE
public static final int AFFECTED_ENTITY_PARTY_ALL
public static final int AFFECTED_ENTITY_ENEMY_SINGLE
public static final int AFFECTED_ENTITY_ENEMY_ALL
public static final int AFFECTED_ENTITY_EVERYONE
public static final int DEFAULT_AFFECTED_ENTITY
| Constructor Detail |
|---|
public Target(java.lang.String targetPath,
long value)
targetPath - The path of the item or attribute being modified.value - How much to modify the target.
public Target(java.lang.String targetPath,
long value,
int affectedEntity)
targetPath - The path of the item or attribute being modified.value - How much to modify the target.affectedEntity - Who this Target effects, see AFFECTED_ENTITY constants.| Method Detail |
|---|
public void setTargetPath(java.lang.String targetPath)
targetPath - The path of the item or attribute being modified.public java.lang.String getTargetPath()
public void setValue(long value)
value - How much to modify the target.public long getValue()
public void setAffectedEntity(int affectedEntity)
affectedEntity - Who this Target effects, see AFFECTED_ENTITY constants.public int getAffectedEntity()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||