Klasse BattleAppState

java.lang.Object
com.jme3.app.state.AbstractAppState
pp.battleship.client.BattleshipAppState
pp.battleship.client.gui.BattleAppState
Alle implementierten Schnittstellen:
com.jme3.app.state.AppState

public class BattleAppState extends BattleshipAppState
Represents the state responsible for managing the battle interface within the Battleship game. This state handles the display and interaction of the battle map, including the opponent's map. It manages GUI components, input events, and the layout of the interface when this state is enabled.
  • Feldübersicht

    Von Klasse geerbte Felder com.jme3.app.state.AbstractAppState

    initialized
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    protected void
    Disables the battle state by removing GUI components and unregistering input listeners.
    protected void
    Enables the battle state by initializing, laying out, and adding GUI components.

    Von Klasse geerbte Methoden pp.battleship.client.BattleshipAppState

    getApp, getGameLogic, initialize, setEnabled, showsDialog

    Von Klasse geerbte Methoden com.jme3.app.state.AbstractAppState

    cleanup, getId, isEnabled, isInitialized, postRender, render, setId, stateAttached, stateDetached, update

    Von Klasse geerbte Methoden java.lang.Object

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

    • BattleAppState

      public BattleAppState()
  • Methodendetails

    • enableState

      protected void enableState()
      Enables the battle state by initializing, laying out, and adding GUI components. Attaches the components to the GUI node and registers input listeners.
      Angegeben von:
      enableState in Klasse BattleshipAppState
    • disableState

      protected void disableState()
      Disables the battle state by removing GUI components and unregistering input listeners. Also handles cleanup of resources, such as the opponent's map view.
      Angegeben von:
      disableState in Klasse BattleshipAppState