Package struct
Class RoundResult
java.lang.Object
struct.RoundResult
A class that processes round results.
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
Current round numberprivate int
The number of frames elapsed in the roundprivate int[]
An array that stores the remaining HP of P1 and P2 -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of elapsed frames.int[]
Returns an array that stores the remaining HP of P1 and P2.int
getRound()
Returns the current round number.
-
Field Details
-
currentRound
private int currentRoundCurrent round number -
remainingHPs
private int[] remainingHPsAn array that stores the remaining HP of P1 and P2 -
elapsedFrame
private int elapsedFrameThe 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
-