Class TickEvent
java.lang.Object
dev.robocode.tankroyale.botapi.events.BotEvent
dev.robocode.tankroyale.botapi.events.TickEvent
-
Constructor Summary
ConstructorDescriptionTickEvent
(int turnNumber, int roundNumber, BotState botState, Collection<BulletState> bulletStates, Collection<BotEvent> events) Initializes a new instance of the TickEvent class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the current state of this bot.Returns the Current state of the bullets fired by this bot.Returns the events that occurred for the bot within the turn.int
Returns the current round number.Methods inherited from class dev.robocode.tankroyale.botapi.events.BotEvent
getTurnNumber, isCritical
-
Constructor Details
-
TickEvent
public TickEvent(int turnNumber, int roundNumber, BotState botState, Collection<BulletState> bulletStates, 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 Details
-
getRoundNumber
public int getRoundNumber()Returns the current round number.- Returns:
- The current round number.
-
getBotState
Returns the current state of this bot.- Returns:
- The current state of this bot.
-
getBulletStates
Returns the Current state of the bullets fired by this bot.- Returns:
- The Current state of the bullets fired by this bot.
-
getEvents
Returns the events that occurred for the bot within the turn.- Returns:
- The events that occurred for the bot within the turn.
-