Class TeamMessageEvent

  • All Implemented Interfaces:
    IEvent

    public final class TeamMessageEvent
    extends BotEvent
    Event occurring when a bot has received a message from a teammate.
    • Constructor Summary

      Constructors 
      Constructor Description
      TeamMessageEvent​(int turnNumber, Object message, int senderId)
      Initializes a new instance of the TeamMessageEvent class.
    • Constructor Detail

      • TeamMessageEvent

        public TeamMessageEvent​(int turnNumber,
                                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.
    • Method Detail

      • getMessage

        public Object 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.