Class ChatBroadcast

java.lang.Object
java.lang.Thread
it.polimi.ingsw.controller.ChatBroadcast
All Implemented Interfaces:
Runnable

public class ChatBroadcast extends Thread
class which represents the threads for listening to the eventual chat messages for ALL the NON active players
  • Constructor Details

    • ChatBroadcast

      public ChatBroadcast(Game g, int i)
      normal constructor for this type of objects
      Parameters:
      g - the server object that is handling the game
      i - the index of the client that this thread is listening to
  • Method Details

    • run

      public void run()
      main function of the thread, it listens for chat messages and send them back to the interested clients
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread