Class GKStateMachine

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

public class GKStateMachine
extends NSObject
Since:
Available in iOS 9.0 and later.
  • Constructor Details

    • GKStateMachine

      public GKStateMachine()
    • GKStateMachine

      protected GKStateMachine​(NSObject.Handle h, long handle)
    • GKStateMachine

      protected GKStateMachine​(NSObject.SkipInit skipInit)
    • GKStateMachine

      public GKStateMachine​(NSArray<GKState> states)
  • Method Details

    • getCurrentState

      public GKState getCurrentState()
    • init

      protected long init​(NSArray<GKState> states)
    • update

      public void update​(double sec)
    • getState

      public GKState getState​(Class<? extends GKState> stateClass)
    • canEnterState

      public boolean canEnterState​(Class<? extends GKState> stateClass)
    • enterState

      public boolean enterState​(Class<? extends GKState> stateClass)