public class RoundEndedEvent extends BattleEvent
onRoundEnded() when the current round of a battle has ended.IBattleListener,
RoundStartedEvent| Constructor | Description |
|---|---|
RoundEndedEvent(int round,
int turns,
int totalTurns) |
Called by the game to create a new RoundEndedEvent.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getRound() |
Returns the round number that has ended.
|
int |
getTotalTurns() |
Returns the total number of turns reached in the battle when this round ended.
|
int |
getTurns() |
Returns the number of turns that this round reached.
|
public RoundEndedEvent(int round,
int turns,
int totalTurns)
round - the round number that was ended (zero indexed).turns - the number of turns that this round reached.totalTurns - the total number of turns reached in the battle when this round ended.public int getRound()
public int getTurns()
getTotalTurns()public int getTotalTurns()
getTurns()Copyright © 2018. All rights reserved.