Class TeamMessageEvent
- java.lang.Object
-
- dev.robocode.tankroyale.botapi.events.BotEvent
-
- dev.robocode.tankroyale.botapi.events.TeamMessageEvent
-
-
Constructor Summary
Constructors Constructor Description TeamMessageEvent(int turnNumber, java.lang.Object message, int senderId)
Initializes a new instance of the TeamMessageEvent class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getMessage()
Returns the message that was received.int
getSenderId()
Returns the ID of the teammate that sent the message.-
Methods inherited from class dev.robocode.tankroyale.botapi.events.BotEvent
getTurnNumber, isCritical
-
-
-
-
Constructor Detail
-
TeamMessageEvent
public TeamMessageEvent(int turnNumber, java.lang.Object message, int senderId)
Initializes a new instance of the TeamMessageEvent class.- Parameters:
turnNumber
- is the turn number when the team message was received.message
- is the message that was received.senderId
- is the id of the teammate that sent the message.
-
-