Class TeamMessageEvent
java.lang.Object
dev.robocode.tankroyale.botapi.events.BotEvent
dev.robocode.tankroyale.botapi.events.TeamMessageEvent
-
Constructor Summary
ConstructorDescriptionTeamMessageEvent
(int turnNumber, Object message, int senderId) Initializes a new instance of the TeamMessageEvent class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the message that was received.int
Returns the ID of the teammate that sent the message.Methods inherited from class dev.robocode.tankroyale.botapi.events.BotEvent
getTurnNumber, isCritical
-
Constructor Details
-
TeamMessageEvent
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.
-
-
Method Details
-
getMessage
Returns the message that was received.- Returns:
- the message that was received.
-
getSenderId
public int getSenderId()Returns the ID of the teammate that sent the message.- Returns:
- the ID of the teammate that sent the message.
-