Class MoveResults
java.lang.Object
com.pixelmonmod.pixelmon.battles.controller.log.MoveResults
Records the results of a move.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe effective accuracy of the move.intThe damage dealt by the move.intThe damage calculated for the move, regardless of how much hp the target had.The power of each hit of a move.floatThe priority of the move.The result of the move.The target of the move.floatUsed to modify the weight of a move for reasons other than damage. -
Constructor Summary
ConstructorsConstructorDescriptionMoveResults(MoveResults moveResult) Deep copy constructorMoveResults(PixelmonWrapper target) Initializes a move's results.MoveResults(PixelmonWrapper target, int damage, float priority, AttackResult result) Initializes a move's results.MoveResults(PixelmonWrapper target, int damage, AttackResult result) Initializes a move's results. -
Method Summary
-
Field Details
-
target
The target of the move. -
damage
public int damageThe damage dealt by the move. -
fullDamage
public int fullDamageThe damage calculated for the move, regardless of how much hp the target had. -
accuracy
public int accuracyThe effective accuracy of the move. -
priority
public float priorityThe priority of the move. -
result
The result of the move. -
weightMod
public float weightModUsed to modify the weight of a move for reasons other than damage. -
power
The power of each hit of a move.
-
-
Constructor Details
-
MoveResults
Initializes a move's results.- Parameters:
target- The target of the move.
-
MoveResults
Initializes a move's results.- Parameters:
target- The target of the move.damage- The damage dealt by the move.result- The result of the move.
-
MoveResults
Initializes a move's results.- Parameters:
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.
-
MoveResults
Deep copy constructor- Parameters:
moveResult- The MoveResults object we want to copy
-
-
Method Details