AIGamePlayerAction
public enum AIGamePlayerAction : String, CaseIterable
An enumeration that represents the moves an agent can make.
-
Move the agent left.
Declaration
Swift
case moveLeft = "MOVE_LEFT"
-
Move the agent right.
Declaration
Swift
case moveRight = "MOVE_RIGHT"
-
Move the agent up.
Declaration
Swift
case moveUp = "MOVE_UP"
-
Move the agent down.
Declaration
Swift
case moveDown = "MOVE_DOWN"
-
Stop all movement and/or action.
Declaration
Swift
case stop = "STOP"
-
Returns the cases specific to player movement.
Declaration
Swift
static func movement() -> [AIGamePlayerAction]
-
Switch to the next costume the agent has.
Declaration
Swift
case switchToNextCostume = "NEXT_COSTUME"
-
Switch to the previous costume the agent has.
Declaration
Swift
case switchToPreviousCostume = "PREV_COSTUME"
-
Pick up a heavy object.
Declaration
Swift
case pickup = "PICK_UP"
-
Drop a heavy object.
Declaration
Swift
case drop = "DROP"
-
Deploy a USB costume clone.
Declaration
Swift
case deployClone = "DEPLOY"
-
Retract a USB costume clone.
Declaration
Swift
case retractClone = "RETRACT"
-
Activate an input.
Declaration
Swift
case activate = "ACTIVATE"