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, 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
    • Method Detail

      • getMessage

        public java.lang.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.