Assessement
public struct Assessement
A structure that defines a state assessement.
-
Can the agent escape?
Declaration
Swift
let canEscape: Bool
-
Is the agent near the exit?
Declaration
Swift
let nearExit: Bool
-
Is the agent near an input device?
Declaration
Swift
let nearInput: Bool
-
Is the closest input nearby active?
Declaration
Swift
let inputActive: Bool
-
Is the closest input device relevant to opening the exit?
Declaration
Swift
let inputRelevant: Bool
-
Does the closest input require a heavy object?
Declaration
Swift
let requiresObject: Bool
-
Does the closest input require a specific costume?
Declaration
Swift
let requiresCostume: Bool
-
Is the agent wearing the right costume?
Declaration
Swift
let wearingCostume: Bool
-
Does the agent have an object in its inventory?
Declaration
Swift
let hasObject: Bool
-
Is the agent near an object?
Declaration
Swift
let nearObject: Bool
-
Are all of the inputs that send signals to the exit door active?
Declaration
Swift
let allInputsActive: Bool
-
Returns a copy of the assessement as an example for decision trees.
Declaration
Swift
func toList() -> [AnyHashable]
-
Returns a copy of the assessement as a dictionary suitable for decision trees.
Declaration
Swift
func toDict() -> [AnyHashable : NSObjectProtocol]