|
|||||||||
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.BattleStartedEvent
public class BattleStartedEvent
A BattleStartedEvent is sent to onBattleStarted()
when a new battle is started.
IBattleListener
,
BattleCompletedEvent
,
BattleFinishedEvent
Constructor Summary | |
---|---|
BattleStartedEvent(BattleRules battleRules,
int robotsCount,
boolean isReplay)
Called by the game to create a new BattleStartedEvent. |
Method Summary | |
---|---|
BattleRules |
getBattleRules()
Returns the rules that will be used in the battle. |
int |
getRobotsCount()
Returns the number of robots participating in the battle. |
boolean |
isReplay()
Checks if this battle is a replay or a new battle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BattleStartedEvent(BattleRules battleRules, int robotsCount, boolean isReplay)
battleRules
- the rules that will be used in the battle.robotsCount
- the number of robots participating in the battle.isReplay
- a flag specifying if this battle is a replay or real battle:
true
if the battle is a replay; false
otherwise.Method Detail |
---|
public BattleRules getBattleRules()
public int getRobotsCount()
public boolean isReplay()
true
if the battle is a replay; false
otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |