AIGameDecision
class AIGameDecision : NSObject, GKGameModelUpdate
An abstract class that represents a decision an agent can make.
-
The value of this action.
Declaration
Swift
var value: Int -
The action that will be performed.
Declaration
Swift
var action: AIGamePlayerAction -
Instantiate a game decision.
Declaration
Swift
init(by action: AIGamePlayerAction, with value: Int)Parameters
actionThe action that will be performed in this decision.
valueThe value of this action.