Klasse BattleshipAppState

java.lang.Object
com.jme3.app.state.AbstractAppState
pp.battleship.client.BattleshipAppState
Alle implementierten Schnittstellen:
com.jme3.app.state.AppState
Bekannte direkte Unterklassen:
BattleAppState, EditorAppState, SeaAppState

public abstract class BattleshipAppState extends com.jme3.app.state.AbstractAppState
Abstract class representing a state in the Battleship game. Extends the AbstractAppState from jMonkeyEngine to manage state behavior.
  • Feldübersicht

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

    initialized
  • Konstruktorübersicht

    Konstruktoren
    Modifizierer
    Konstruktor
    Beschreibung
    protected
    Creates a new BattleshipAppState that is initially disabled.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    protected abstract void
    This method is called when the state is disabled.
    protected abstract void
    This method is called when the state is enabled.
    Returns the BattleshipApp instance associated with this BattleshipAppState.
    pp.battleship.game.client.ClientGameLogic
    Returns the client game logic handler.
    void
    initialize(com.jme3.app.state.AppStateManager stateManager, com.jme3.app.Application application)
    Initializes the state manager and application.
    void
    setEnabled(boolean enabled)
    Sets the enabled state of the BattleshipAppState.
    boolean
    Checks if any dialog is currently displayed.

    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

    • BattleshipAppState

      protected BattleshipAppState()
      Creates a new BattleshipAppState that is initially disabled.
      Siehe auch:
  • Methodendetails

    • initialize

      public void initialize(com.jme3.app.state.AppStateManager stateManager, com.jme3.app.Application application)
      Initializes the state manager and application.
      Angegeben von:
      initialize in Schnittstelle com.jme3.app.state.AppState
      Setzt außer Kraft:
      initialize in Klasse com.jme3.app.state.AbstractAppState
      Parameter:
      stateManager - The state manager
      application - The application instance
    • getApp

      public BattleshipApp getApp()
      Returns the BattleshipApp instance associated with this BattleshipAppState.
      Gibt zurück:
      The BattleshipApp instance.
    • getGameLogic

      public pp.battleship.game.client.ClientGameLogic getGameLogic()
      Returns the client game logic handler.
      Gibt zurück:
      the client game logic handler
    • showsDialog

      public boolean showsDialog()
      Checks if any dialog is currently displayed.
      Gibt zurück:
      true if any dialog is currently shown, false otherwise
    • setEnabled

      public void setEnabled(boolean enabled)
      Sets the enabled state of the BattleshipAppState. If the new state is the same as the current state, the method returns.
      Angegeben von:
      setEnabled in Schnittstelle com.jme3.app.state.AppState
      Setzt außer Kraft:
      setEnabled in Klasse com.jme3.app.state.AbstractAppState
      Parameter:
      enabled - The new enabled state.
    • enableState

      protected abstract void enableState()
      This method is called when the state is enabled. It is meant to be overridden by subclasses to perform specific actions when the state is enabled.
    • disableState

      protected abstract void disableState()
      This method is called when the state is disabled. It is meant to be overridden by subclasses to perform specific actions when the state is disabled.