GKStateMachine.CanEnterState Method

Definition

Overloads

CanEnterState(GKState)

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

CanEnterState(Class)

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

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)

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

[Foundation.Export("canEnterState:")]
protected virtual bool CanEnterState (ObjCRuntime.Class stateClass);
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