Klasse SeaAppState

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

public class SeaAppState extends BattleshipAppState
Manages the rendering and visual aspects of the sea and sky in the Battleship game. This state is responsible for setting up and updating the sea, sky, and lighting conditions, and controls the camera to create a dynamic view of the game environment.
  • 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 sea and sky state, removing visual elements from the scene and unregistering listeners.
    protected void
    Enables the sea and sky state, setting up the scene and registering any necessary listeners.
    void
    initialize(com.jme3.app.state.AppStateManager stateManager, com.jme3.app.Application application)
    Initializes the state by setting up the sky, lights, and other visual components.
    void
    update(float tpf)
    Updates the state each frame, moving the camera to simulate it circling around the map.

    Von Klasse geerbte Methoden pp.battleship.client.BattleshipAppState

    getApp, getGameLogic, setEnabled, showsDialog

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

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

    Von Klasse geerbte Methoden java.lang.Object

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

    • SeaAppState

      public SeaAppState()
  • Methodendetails

    • initialize

      public void initialize(com.jme3.app.state.AppStateManager stateManager, com.jme3.app.Application application)
      Initializes the state by setting up the sky, lights, and other visual components. This method is called when the state is first attached to the state manager.
      Angegeben von:
      initialize in Schnittstelle com.jme3.app.state.AppState
      Setzt außer Kraft:
      initialize in Klasse BattleshipAppState
      Parameter:
      stateManager - the state manager
      application - the application
    • enableState

      protected void enableState()
      Enables the sea and sky state, setting up the scene and registering any necessary listeners. This method is called when the state is set to active.
      Angegeben von:
      enableState in Klasse BattleshipAppState
    • disableState

      protected void disableState()
      Disables the sea and sky state, removing visual elements from the scene and unregistering listeners. This method is called when the state is set to inactive.
      Angegeben von:
      disableState in Klasse BattleshipAppState
    • update

      public void update(float tpf)
      Updates the state each frame, moving the camera to simulate it circling around the map.
      Angegeben von:
      update in Schnittstelle com.jme3.app.state.AppState
      Setzt außer Kraft:
      update in Klasse com.jme3.app.state.AbstractAppState
      Parameter:
      tpf - the time per frame (seconds)