robocode.control.events
Class BattleStartedEvent
public class BattleStartedEvent
- Pavel Savara (original)
- Flemming N. Larsen (contributor)
BattleStartedEvent
public BattleStartedEvent(BattleRules battleRules,
int robotsCount,
boolean isReplay)
Creates a new BattleStartedEvent.
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.
getBattleRules
public BattleRules getBattleRules()
Returns the rules that will be used in the battle.
- the rules that will be used in the battle.
getRobotsCount
public int getRobotsCount()
Returns the number of robots participating in the battle.
- the number of robots participating in the battle.
isReplay
public boolean isReplay()
Checks if this battle is a replay or real battle.
true
if the battle is a replay; false
otherwise.