java.lang.Object
com.pixelmonmod.pixelmon.battles.controller.log.MoveResults

public class MoveResults extends Object
Records the results of a move.
  • Field Details

    • target

      public PixelmonWrapper target
      The target of the move.
    • damage

      public int damage
      The damage dealt by the move.
    • fullDamage

      public int fullDamage
      The damage calculated for the move, regardless of how much hp the target had.
    • accuracy

      public int accuracy
      The effective accuracy of the move.
    • priority

      public float priority
      The priority of the move.
    • result

      public AttackResult result
      The result of the move.
    • weightMod

      public float weightMod
      Used to modify the weight of a move for reasons other than damage.
  • Constructor Details

    • MoveResults

      public MoveResults(PixelmonWrapper target)
      Initializes a move's results.
      Parameters:
      target - The target of the move.
    • MoveResults

      public MoveResults(PixelmonWrapper target, int damage, AttackResult result)
      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

      public MoveResults(PixelmonWrapper target, int damage, float priority, AttackResult result)
      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

      public MoveResults(MoveResults moveResult)
      Deep copy constructor
      Parameters:
      moveResult - The MoveResults object we want to copy
  • Method Details

    • getTarget

      public PixelmonWrapper getTarget()
    • getDamage

      public int getDamage()
    • getFullDamage

      public int getFullDamage()
    • getAccuracy

      public int getAccuracy()
    • getPriority

      public float getPriority()
    • getResult

      public AttackResult getResult()
    • getWeightMod

      public float getWeightMod()
    • toString

      public String toString()
      Overrides:
      toString in class Object