Class MoveResults
java.lang.Object
com.pixelmonmod.pixelmon.battles.controller.log.MoveResults
Records the results of a move.
-
Field Summary
Modifier and TypeFieldDescriptionint
The effective accuracy of the move.int
The damage dealt by the move.int
The damage calculated for the move, regardless of how much hp the target had.float
The priority of the move.The result of the move.The target of the move.float
Used to modify the weight of a move for reasons other than damage. -
Constructor Summary
ConstructorDescriptionMoveResults
(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.
-
-
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