Share via


GKStateMachine.CanEnterState Method

Definition

Overloads

Name Description
CanEnterState(GKState)

Returns true if a transition from the current state of the state machine leads to state. Otherwise, returns false.

CanEnterState(Class)
CanEnterState(Type)

Whether a transition from CurrentState to stateType is valid.

CanEnterState(GKState)

Returns true if a transition from the current state of the state machine leads to state. Otherwise, returns false.

public bool CanEnterState(GameplayKit.GKState state);
member this.CanEnterState : GameplayKit.GKState -> bool

Parameters

state
GKState

Returns

Applies to

CanEnterState(Class)

[Foundation.Export("canEnterState:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
protected virtual bool CanEnterState(ObjCRuntime.Class stateClass);
[<Foundation.Export("canEnterState:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member CanEnterState : ObjCRuntime.Class -> bool
override this.CanEnterState : ObjCRuntime.Class -> bool

Parameters

stateClass
Class

Returns

Attributes

Applies to

CanEnterState(Type)

Whether a transition from CurrentState to stateType is valid.

public bool CanEnterState(Type stateType);
member this.CanEnterState : Type -> bool

Parameters

stateType
Type

Must be a subclass of GKState

Returns

Applies to