Class WatchPlayer

java.lang.Object
edu.wisc.game.websocket.WatchPlayer

public class WatchPlayer extends Object
  • Constructor Details

    • WatchPlayer

      public WatchPlayer()
  • Method Details

    • start

      public void start(jakarta.websocket.Session session)
    • end

      public void end()
    • incoming

      public void incoming(String message)
      Expects
              WATCH pid
              IAM pid
              CHAT text
              
    • onError

      public void onError(Throwable t) throws Throwable
      Throws:
      Throwable
    • tellAbout

      public static <T> void tellAbout(String pid, T msg)
      Methods handling important events during the game call this method to let watchers now about the most recent event
    • tellHim

      public static void tellHim(String pid, WatchPlayer.Ready msg)
    • sendHimChat

      public static void sendHimChat(String pid, String s)