|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrobocode.control.events.BattleEvent
robocode.control.events.RoundEndedEvent
public class RoundEndedEvent
A RoundEndedEvent is sent to onRoundEnded() when the current round of a battle has ended.
IBattleListener,
RoundStartedEvent| Constructor Summary | |
|---|---|
RoundEndedEvent(int round,
int turns,
int totalTurns)
Called by the game to create a new RoundEndedEvent. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public int getRound()
public int getTurns()
getTotalTurns()public int getTotalTurns()
getTurns()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||