Class GKState

  • All Implemented Interfaces:
    NSObject

    public class GKState
    extends NSObject
    Represents a single state in a state machine. By default, states allow transitions freely to and from the states in the machine. If a more restricted set of valid transitions are needed in the state machine, you may override isValidNextState: where applicable.
    See Also:
    GKStateMachine
    • Constructor Detail

      • GKState

        protected GKState​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static GKState alloc()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • state

        public static GKState state()
        Creates a new state to be used in a state machine.
        See Also:
        GKStateMachine
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • didEnterWithPreviousState

        public void didEnterWithPreviousState​(GKState previousState)
        Called by GKStateMachine when this state is entered.
        Parameters:
        previousState - the state that was exited to enter this state. This is nil if this is the state machine's first entered state.
      • isValidNextState

        public boolean isValidNextState​(org.moe.natj.objc.Class stateClass)
        Returns YES if the given class is a valid next state to enter. By default GKState will return YES for any class that is subclass of GKState. Override this in a subclass to enforce limited edge traversals in the state machine.
        Parameters:
        stateClass - the class to be checked
        Returns:
        YES if the class is kind of GKState and the state transition is valid, else NO.
      • stateMachine

        public GKStateMachine stateMachine()
        The state machine that this state is associated with. This is nil if this state hasn't been added to a state machine yet.
      • updateWithDeltaTime

        public void updateWithDeltaTime​(double seconds)
        Called by GKStateMachine when it is updated
        Parameters:
        seconds - the time in seconds since the last update
      • willExitWithNextState

        public void willExitWithNextState​(GKState nextState)
        Called by GKStateMachine when this state is exited
        Parameters:
        nextState - the state that is being entered next