Class TickEvent
java.lang.Object
dev.robocode.tankroyale.botapi.events.BotEvent
dev.robocode.tankroyale.botapi.events.TickEvent
-
Constructor Summary
ConstructorDescriptionTickEvent
(int turnNumber, int roundNumber, int enemyCount, 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.int
Returns the enemy count.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, int enemyCount, 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.enemyCount
- is the number of enemies left in the round.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.
-
getEnemyCount
public int getEnemyCount()Returns the enemy count.- Returns:
- The enemy count.
-
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.
-