Class JoinStage

java.lang.Object
com.badlogic.gdx.InputAdapter
com.badlogic.gdx.scenes.scene2d.Stage
tech.underoaks.coldcase.stages.AbstractStage
tech.underoaks.coldcase.stages.JoinStage
All Implemented Interfaces:
com.badlogic.gdx.InputProcessor, com.badlogic.gdx.Screen, com.badlogic.gdx.utils.Disposable

public class JoinStage extends AbstractStage
The JoinStage is a screen in the game where players can connect to a session using a session ID. It allows players to input a session ID, view connection status, and navigate back to the main menu. This screen is part of the game's user interface and extends the AbstractStage.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.badlogic.gdx.scenes.scene2d.Stage

    com.badlogic.gdx.scenes.scene2d.Stage.TouchFocus
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    buildStage(com.badlogic.gdx.InputMultiplexer inputMultiplexer)
    Builds the current Stage
    void
    This method is called when the connection is successfully established.
    void
    This method is called when the connection is disconnected.

    Methods inherited from class tech.underoaks.coldcase.stages.AbstractStage

    hide, keyDown, pause, render, resize, resume, show

    Methods inherited from class com.badlogic.gdx.scenes.scene2d.Stage

    act, act, actorRemoved, addAction, addActor, addCaptureListener, addListener, addTouchFocus, calculateScissors, cancelTouchFocus, cancelTouchFocus, cancelTouchFocusExcept, clear, dispose, draw, getActionsRequestRendering, getActors, getBatch, getCamera, getDebugColor, getHeight, getKeyboardFocus, getRoot, getScrollFocus, getViewport, getWidth, hit, isDebugAll, isInsideViewport, keyTyped, keyUp, mouseMoved, removeCaptureListener, removeListener, removeTouchFocus, screenToStageCoordinates, scrolled, setActionsRequestRendering, setDebugAll, setDebugInvisible, setDebugParentUnderMouse, setDebugTableUnderMouse, setDebugTableUnderMouse, setDebugUnderMouse, setKeyboardFocus, setRoot, setScrollFocus, setViewport, stageToScreenCoordinates, toScreenCoordinates, touchCancelled, touchDown, touchDragged, touchUp, unfocus, unfocusAll

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.badlogic.gdx.Screen

    dispose
  • Constructor Details

    • JoinStage

      public JoinStage()
  • Method Details

    • buildStage

      public void buildStage(com.badlogic.gdx.InputMultiplexer inputMultiplexer)
      Description copied from class: AbstractStage
      Builds the current Stage
      Specified by:
      buildStage in class AbstractStage
      Parameters:
      inputMultiplexer - Delegates to an ordered list of other InputProcessors
    • onConnected

      public void onConnected()
      This method is called when the connection is successfully established. It updates the UI to show that the user is connected and disables the connect button.
      Overrides:
      onConnected in class AbstractStage
    • onDisconnected

      public void onDisconnected()
      This method is called when the connection is disconnected. It updates the UI to show that the user is not connected and enables the connect button.
      Overrides:
      onDisconnected in class AbstractStage