Klasse EditorAppState

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

public class EditorAppState extends BattleshipAppState
EditorState manages the editor mode in the Battleship game, allowing players to place and rotate ships.
  • 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 editor state by detaching nodes and removing listeners.
    protected void
    Enables the editor state by attaching necessary nodes and listeners.
    void
    update(float tpf)
    Updates the editor state, handling cursor movement and enabling buttons.

    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

    Von Klasse geerbte Methoden java.lang.Object

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

    • EditorAppState

      public EditorAppState()
  • Methodendetails

    • enableState

      protected void enableState()
      Enables the editor state by attaching necessary nodes and listeners.
      Angegeben von:
      enableState in Klasse BattleshipAppState
    • disableState

      protected void disableState()
      Disables the editor state by detaching nodes and removing listeners.
      Angegeben von:
      disableState in Klasse BattleshipAppState
    • update

      public void update(float tpf)
      Updates the editor state, handling cursor movement and enabling buttons.
      Angegeben von:
      update in Schnittstelle com.jme3.app.state.AppState
      Setzt außer Kraft:
      update in Klasse com.jme3.app.state.AbstractAppState
      Parameter:
      tpf - Time per frame