Class ChatEvent


  • public class ChatEvent
    extends Event
    Event class for chats
    Author:
    Darius Dinger
    • Constructor Detail

      • ChatEvent

        public ChatEvent​(String tag)
        Creating chat event handler
        Parameters:
        tag - Tag of the chat object in the network
    • Method Detail

      • sendMessage

        public void sendMessage​(String msg)
        Sending a message to the network
        Parameters:
        msg - Message to send
      • getMessage

        public String getMessage()
        Getting last message from network or null, if no messsage came
        Returns:
        Last message or null
      • event

        protected void event​(String event)
        Specified by:
        event in class Event
      • reset

        public void reset()
        Description copied from class: Event
        Resetting the event
        (Call every frame, AFTER event gets processed)
        Specified by:
        reset in class Event