AIGamePlayerAction

public enum AIGamePlayerAction : String, CaseIterable

An enumeration that represents the moves an agent can make.

MOVEMENT

  • 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]

COSTUMES

  • 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"

ITEMS

  • Pick up a heavy object.

    Declaration

    Swift

    case pickup = "PICK_UP"
  • Drop a heavy object.

    Declaration

    Swift

    case drop = "DROP"

OTHER

  • 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"