Package struct

Class RoundResult

java.lang.Object
struct.RoundResult

public class RoundResult extends Object
A class that processes round results.
  • Field Details

    • currentRound

      private int currentRound
      Current round number
    • remainingHPs

      private int[] remainingHPs
      An array that stores the remaining HP of P1 and P2
    • elapsedFrame

      private int elapsedFrame
      The number of frames elapsed in the round
  • Constructor Details

    • RoundResult

      public RoundResult()
      The class constructor.
  • Method Details

    • getRound

      public int getRound()
      Returns the current round number.
      Returns:
      the current round number
    • getRemainingHPs

      public int[] getRemainingHPs()
      Returns an array that stores the remaining HP of P1 and P2.
      Returns:
      An array that stores the remaining HP of P1 and P2
    • getElapsedFrame

      public int getElapsedFrame()
      Returns the number of elapsed frames.
      Returns:
      the number of elapsed frames