Class TickEvent
- java.lang.Object
-
- dev.robocode.tankroyale.botapi.events.BotEvent
-
- dev.robocode.tankroyale.botapi.events.TickEvent
-
-
Constructor Summary
Constructors Constructor Description TickEvent(int turnNumber, int roundNumber, BotState botState, java.util.Collection<BulletState> bulletStates, java.util.Collection<BotEvent> events)
Initializes a new instance of the TickEvent class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BotState
getBotState()
Returns the current state of this bot.java.util.Collection<BulletState>
getBulletStates()
Returns the Current state of the bullets fired by this bot.java.util.Collection<BotEvent>
getEvents()
Returns the events that occurred for the bot within the turn.int
getRoundNumber()
Returns the current round number.-
Methods inherited from class dev.robocode.tankroyale.botapi.events.BotEvent
getTurnNumber, isCritical
-
-
-
-
Constructor Detail
-
TickEvent
public TickEvent(int turnNumber, int roundNumber, BotState botState, java.util.Collection<BulletState> bulletStates, java.util.Collection<BotEvent> events)
Initializes a new instance of the TickEvent class.- Parameters:
turnNumber
- is the current turn number in the battle.roundNumber
- is the current round number in the battle.botState
- is the current state of this bot.bulletStates
- is the current state of the bullets fired by this bot.events
- is the events occurring in the turn relevant for this bot.
-
-
Method Detail
-
getRoundNumber
public int getRoundNumber()
Returns the current round number.- Returns:
- The current round number.
-
getBotState
public BotState getBotState()
Returns the current state of this bot.- Returns:
- The current state of this bot.
-
getBulletStates
public java.util.Collection<BulletState> getBulletStates()
Returns the Current state of the bullets fired by this bot.- Returns:
- The Current state of the bullets fired by this bot.
-
getEvents
public java.util.Collection<BotEvent> getEvents()
Returns the events that occurred for the bot within the turn.- Returns:
- The events that occurred for the bot within the turn.
-
-