Class CustomEvent
java.lang.Object
dev.robocode.tankroyale.botapi.events.BotEvent
dev.robocode.tankroyale.botapi.events.CustomEvent
-
Constructor Summary
ConstructorDescriptionCustomEvent
(int turnNumber, Condition condition) Initializes a new instance of the CustomEvent class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the condition that was met to trigger this custom event.Methods inherited from class dev.robocode.tankroyale.botapi.events.BotEvent
getTurnNumber, isCritical
-
Constructor Details
-
CustomEvent
Initializes a new instance of the CustomEvent class.- Parameters:
turnNumber
- is the turn number when the condition was met.condition
- is the condition that has been met.
-
-
Method Details
-
getCondition
Returns the condition that was met to trigger this custom event.- Returns:
- The condition that was met to trigger this custom event.
-