Class SendChat

java.lang.Object
java.lang.Thread
it.polimi.ingsw.chat.SendChat
All Implemented Interfaces:
Runnable

public class SendChat extends Thread
class which represent the thread for keep reading input messages from the terminal (by the NON active users)
  • Constructor Details

    • SendChat

      public SendChat(PlayerTUI p, BufferedReader brPlayer)
      the normal constructor for this thread
      Parameters:
      p - the player that is writing messages on the terminal
  • Method Details

    • run

      public void run()
      the main function of the thread, it reads messages from the terminal and send them to the right clients
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread