Class CustomEvent
- java.lang.Object
-
- dev.robocode.tankroyale.botapi.events.BotEvent
-
- dev.robocode.tankroyale.botapi.events.CustomEvent
-
-
Constructor Summary
Constructors Constructor Description CustomEvent(int turnNumber, Condition condition)
Initializes a new instance of the CustomEvent class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Condition
getCondition()
Returns the condition that was met to trigger this custom event.-
Methods inherited from class dev.robocode.tankroyale.botapi.events.BotEvent
getTurnNumber, isCritical
-
-
-
-
Constructor Detail
-
CustomEvent
public CustomEvent(int turnNumber, Condition condition)
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 Detail
-
getCondition
public Condition getCondition()
Returns the condition that was met to trigger this custom event.- Returns:
- The condition that was met to trigger this custom event.
-
-