|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
edu.uiuc.cs397rhc.game.GameEvent
edu.uiuc.cs397rhc.game.AbilityEvent
Represents a player using a specific ability.
GameUtils,
Serialized Form| Field Summary |
|---|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
AbilityEvent(java.lang.Object source,
GameUtils.Team team,
GameUtils.Ability ability)
|
|
AbilityEvent(java.lang.Object source,
GameUtils.Team team,
GameUtils.Ability ability,
GameUtils.PlayerState state,
GameUtils.MapArea area)
Constructs an ability event for the specified team and ability, coming from the specified source. |
|
| Method Summary | |
|---|---|
GameUtils.Ability |
getAbility()
Returns the specific ability being used. |
GameUtils.MapArea |
getMapArea()
Returns the area in which the ability is being used. |
GameUtils.PlayerState |
getPlayerState()
Returns the state of the player using the ability. |
GameUtils.Team |
getTeam()
Returns the team of the player using the ability. |
void |
setAbility(GameUtils.Ability ability)
Sets the specific ability being used. |
void |
setMapArea(GameUtils.MapArea area)
Sets the area in which the ability is being used. |
void |
setPlayerState(GameUtils.PlayerState state)
Sets the state of the player using the ability. |
void |
setTeam(GameUtils.Team team)
Sets the team of the player using the ability. |
java.lang.String |
toString()
Returns a string representation of this ability event. |
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbilityEvent(java.lang.Object source,
GameUtils.Team team,
GameUtils.Ability ability,
GameUtils.PlayerState state,
GameUtils.MapArea area)
source - the source of the ability eventteam - the team of the player using the abilityability - the specific ability being usedarea - the area in which the ability is being used
public AbilityEvent(java.lang.Object source,
GameUtils.Team team,
GameUtils.Ability ability)
| Method Detail |
|---|
public GameUtils.Team getTeam()
public GameUtils.Ability getAbility()
public GameUtils.PlayerState getPlayerState()
public GameUtils.MapArea getMapArea()
public void setTeam(GameUtils.Team team)
team - the team of the player using the abiltypublic void setAbility(GameUtils.Ability ability)
ability - the specific ability being usedpublic void setPlayerState(GameUtils.PlayerState state)
state - the state of the player using the abilitypublic void setMapArea(GameUtils.MapArea area)
area - the area in which the ability is being usedpublic java.lang.String toString()
AbilityEvent[team=...;ability=...].
toString in class java.util.EventObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||