public class MoveResults
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
accuracy
The effective accuracy of the move.
|
int |
damage
The damage dealt by the move.
|
int |
fullDamage
The damage calculated for the move, regardless of how much hp the target had.
|
float |
priority
The priority of the move.
|
AttackResult |
result
The result of the move.
|
PixelmonWrapper |
target
The target of the move.
|
float |
weightMod
Used to modify the weight of a move for reasons other than damage.
|
Constructor and Description |
---|
MoveResults(MoveResults moveResult)
Deep copy constructor
|
MoveResults(PixelmonWrapper target)
Initializes a move's results.
|
MoveResults(PixelmonWrapper target,
int damage,
AttackResult result)
Initializes a move's results.
|
MoveResults(PixelmonWrapper target,
int damage,
float priority,
AttackResult result)
Initializes a move's results.
|
Modifier and Type | Method and Description |
---|---|
int |
getAccuracy() |
int |
getDamage() |
int |
getFullDamage() |
float |
getPriority() |
AttackResult |
getResult() |
PixelmonWrapper |
getTarget() |
float |
getWeightMod() |
java.lang.String |
toString() |
public PixelmonWrapper target
public int damage
public int fullDamage
public int accuracy
public float priority
public AttackResult result
public float weightMod
public MoveResults(PixelmonWrapper target)
target
- The target of the move.public MoveResults(PixelmonWrapper target, int damage, AttackResult result)
target
- The target of the move.damage
- The damage dealt by the move.result
- The result of the move.public MoveResults(PixelmonWrapper target, int damage, float priority, AttackResult result)
target
- The target of the move.damage
- The damage dealt by the move.priority
- The priority of the move.result
- The result of the move.public MoveResults(MoveResults moveResult)
moveResult
- The MoveResults object we want to copypublic PixelmonWrapper getTarget()
public int getDamage()
public int getFullDamage()
public int getAccuracy()
public float getPriority()
public AttackResult getResult()
public float getWeightMod()
public java.lang.String toString()
toString
in class java.lang.Object