Share via


IGKStrategist Interface

Definition

Interface for a game strategist (AI).

[Foundation.Protocol(Name="GKStrategist", WrapperType=typeof(GameplayKit.GKStrategistWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetBestMoveForActivePlayer", ReturnType=typeof(GameplayKit.IGKGameModelUpdate), Selector="bestMoveForActivePlayer")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Strong, GetterSelector="gameModel", IsProperty=true, IsRequired=true, IsStatic=false, Name="GameModel", PropertyType=typeof(GameplayKit.IGKGameModel), Selector="gameModel", SetterSelector="setGameModel:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Strong, GetterSelector="randomSource", IsProperty=true, IsRequired=true, IsStatic=false, Name="RandomSource", PropertyType=typeof(GameplayKit.IGKRandom), Selector="randomSource", SetterSelector="setRandomSource:")]
public interface IGKStrategist : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="GKStrategist", WrapperType=typeof(GameplayKit.GKStrategistWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetBestMoveForActivePlayer", ReturnType=typeof(GameplayKit.IGKGameModelUpdate), Selector="bestMoveForActivePlayer")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Strong, GetterSelector="gameModel", IsProperty=true, IsRequired=true, IsStatic=false, Name="GameModel", PropertyType=typeof(GameplayKit.IGKGameModel), Selector="gameModel", SetterSelector="setGameModel:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Strong, GetterSelector="randomSource", IsProperty=true, IsRequired=true, IsStatic=false, Name="RandomSource", PropertyType=typeof(GameplayKit.IGKRandom), Selector="randomSource", SetterSelector="setRandomSource:")>]
type IGKStrategist = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

Properties

Name Description
GameModel

Gets or sets the current game state.

Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)
RandomSource

Gets or sets the source of randomness for the strategist.

Methods

Name Description
GetBestMoveForActivePlayer()

Returns what the strategist indicates is the best move for the active player.

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to