Class BotEvent
java.lang.Object
dev.robocode.tankroyale.botapi.events.BotEvent
- All Implemented Interfaces:
IEvent
- Direct Known Subclasses:
BotDeathEvent
,BulletFiredEvent
,BulletHitBotEvent
,BulletHitBulletEvent
,BulletHitWallEvent
,CustomEvent
,DeathEvent
,HitBotEvent
,HitByBulletEvent
,HitWallEvent
,ScannedBotEvent
,SkippedTurnEvent
,TeamMessageEvent
,TickEvent
,WonRoundEvent
Bot event occurring during a battle.
-
Constructor Summary
ModifierConstructorDescriptionprotected
BotEvent
(int turnNumber) Initializes a new instance of the Event class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the turn number when the event occurred.boolean
Indicates if this event is critical, and hence should not be removed from event queue when it gets old.
-
Constructor Details
-
BotEvent
protected BotEvent(int turnNumber) Initializes a new instance of the Event class.- Parameters:
turnNumber
- is the turn number when the event occurred.
-
-
Method Details
-
getTurnNumber
public int getTurnNumber()Returns the turn number when the event occurred.- Returns:
- The turn number when the event occurred.
-
isCritical
public boolean isCritical()Indicates if this event is critical, and hence should not be removed from event queue when it gets old.- Returns:
- true if this event is critical; false otherwise. Default is false.
-