public abstract class AttackEvent extends BattleEvent
AttackEvent.Use
, AttackEvent.CriticalHit
, AttackEvent.Stab
, AttackEvent.Damage
, AttackEvent.TypeEffectiveness
. Modifier and Type | Class and Description |
---|---|
static class |
AttackEvent.CriticalHit
Event fired after Pixelmon calculates the critical hit multiplier for this attack.
|
static class |
AttackEvent.Damage
Event fired after all damage calculations have taken place for an attack.
|
static class |
AttackEvent.Recoil
Event fired after recoil damage has been taken.
|
static class |
AttackEvent.Stab
Event fired after Pixelmon calculates the STAB multiplier for this attack.
|
static class |
AttackEvent.TypeEffectiveness
Event fired when calculating move effectiveness.
|
static class |
AttackEvent.Use
Event fired after any attack is used.
|
Modifier and Type | Field and Description |
---|---|
PixelmonWrapper |
target
The target of the attack.
|
PixelmonWrapper |
user
The user of the attack.
|
battleController
Modifier | Constructor and Description |
---|---|
protected |
AttackEvent(BattleController battleController,
PixelmonWrapper user,
PixelmonWrapper target) |
Modifier and Type | Method and Description |
---|---|
Attack |
getAttack()
The attack being used.
|
boolean |
isSelf()
Whether or not the user is the target.
|
getBattleController
public final PixelmonWrapper user
public final PixelmonWrapper target
protected AttackEvent(BattleController battleController, PixelmonWrapper user, PixelmonWrapper target)
public Attack getAttack()
user.attack
.public boolean isSelf()