Class LJ_GDX_ai.StateMachine_BQ.LIP

java.lang.Object
com.prineside.luaj.mapping.InterfaceProxy
com.prineside.luaj.mapping.parts.LJ_GDX_ai.StateMachine_BQ.LIP
All Implemented Interfaces:
com.badlogic.gdx.ai.fsm.StateMachine, com.badlogic.gdx.ai.msg.Telegraph, com.esotericsoftware.kryo.KryoSerializable
Enclosing class:
LJ_GDX_ai.StateMachine_BQ

public static class LJ_GDX_ai.StateMachine_BQ.LIP extends InterfaceProxy implements com.badlogic.gdx.ai.fsm.StateMachine
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    changeState(com.badlogic.gdx.ai.fsm.State p1)
    Performs a transition to the specified state.
    com.badlogic.gdx.ai.fsm.State
    Returns the current state of this state machine.
    com.badlogic.gdx.ai.fsm.State
    Returns the global state of this state machine.
    com.badlogic.gdx.ai.fsm.State
    Returns the last state of this state machine.
    boolean
    handleMessage(com.badlogic.gdx.ai.msg.Telegram p1)
    Handles received telegrams.
    boolean
    isInState(com.badlogic.gdx.ai.fsm.State p1)
    Indicates whether the state machine is in the given state.
    boolean
    Changes the state back to the previous state.
    void
    setGlobalState(com.badlogic.gdx.ai.fsm.State p1)
    Sets the global state of this state machine.
    void
    setInitialState(com.badlogic.gdx.ai.fsm.State p1)
    Sets the initial state of this state machine.
    void
    Updates the state machine.

    Methods inherited from class com.prineside.luaj.mapping.InterfaceProxy

    getLuaObj, read, write

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • changeState

      public void changeState(com.badlogic.gdx.ai.fsm.State p1)
      Description copied from interface: com.badlogic.gdx.ai.fsm.StateMachine
      Performs a transition to the specified state.
      Specified by:
      changeState in interface com.badlogic.gdx.ai.fsm.StateMachine
      Parameters:
      p1 - the state to transition to
    • getCurrentState

      public com.badlogic.gdx.ai.fsm.State getCurrentState()
      Description copied from interface: com.badlogic.gdx.ai.fsm.StateMachine
      Returns the current state of this state machine.
      Specified by:
      getCurrentState in interface com.badlogic.gdx.ai.fsm.StateMachine
    • getGlobalState

      public com.badlogic.gdx.ai.fsm.State getGlobalState()
      Description copied from interface: com.badlogic.gdx.ai.fsm.StateMachine
      Returns the global state of this state machine.

      Implementation classes should invoke the update method of the global state every time the FSM is updated. Also, they should never invoke its enter and exit method.

      Specified by:
      getGlobalState in interface com.badlogic.gdx.ai.fsm.StateMachine
    • getPreviousState

      public com.badlogic.gdx.ai.fsm.State getPreviousState()
      Description copied from interface: com.badlogic.gdx.ai.fsm.StateMachine
      Returns the last state of this state machine.
      Specified by:
      getPreviousState in interface com.badlogic.gdx.ai.fsm.StateMachine
    • handleMessage

      public boolean handleMessage(com.badlogic.gdx.ai.msg.Telegram p1)
      Description copied from interface: com.badlogic.gdx.ai.fsm.StateMachine
      Handles received telegrams.

      Implementation classes should first route the telegram to the current state. If the current state does not deal with the message, it should be routed to the global state.

      Specified by:
      handleMessage in interface com.badlogic.gdx.ai.fsm.StateMachine
      Specified by:
      handleMessage in interface com.badlogic.gdx.ai.msg.Telegraph
      Parameters:
      p1 - the received telegram
      Returns:
      true if telegram has been successfully handled; false otherwise.
    • isInState

      public boolean isInState(com.badlogic.gdx.ai.fsm.State p1)
      Description copied from interface: com.badlogic.gdx.ai.fsm.StateMachine
      Indicates whether the state machine is in the given state.
      Specified by:
      isInState in interface com.badlogic.gdx.ai.fsm.StateMachine
      Parameters:
      p1 - the state to be compared with the current state
      Returns:
      true if the current state's type is equal to the type of the class passed as a parameter.
    • revertToPreviousState

      public boolean revertToPreviousState()
      Description copied from interface: com.badlogic.gdx.ai.fsm.StateMachine
      Changes the state back to the previous state.
      Specified by:
      revertToPreviousState in interface com.badlogic.gdx.ai.fsm.StateMachine
      Returns:
      True in case there was a previous state that we were able to revert to. In case there is no previous state, no state change occurs and false will be returned.
    • setGlobalState

      public void setGlobalState(com.badlogic.gdx.ai.fsm.State p1)
      Description copied from interface: com.badlogic.gdx.ai.fsm.StateMachine
      Sets the global state of this state machine.
      Specified by:
      setGlobalState in interface com.badlogic.gdx.ai.fsm.StateMachine
      Parameters:
      p1 - the global state.
    • setInitialState

      public void setInitialState(com.badlogic.gdx.ai.fsm.State p1)
      Description copied from interface: com.badlogic.gdx.ai.fsm.StateMachine
      Sets the initial state of this state machine.
      Specified by:
      setInitialState in interface com.badlogic.gdx.ai.fsm.StateMachine
      Parameters:
      p1 - the initial state.
    • update

      public void update()
      Description copied from interface: com.badlogic.gdx.ai.fsm.StateMachine
      Updates the state machine.

      Implementation classes should invoke first the update method of the global state (if any) then the update method of the current state.

      Specified by:
      update in interface com.badlogic.gdx.ai.fsm.StateMachine