PlayerMoveDirection
public enum PlayerMoveDirection
An enumeration for the different directions a player can move.
-
The direction “north”.
Declaration
Swift
case north
-
The direction “south”.
Declaration
Swift
case south
-
The direction “east”.
Declaration
Swift
case east
-
The direction “west”.
Declaration
Swift
case west
-
The direction associated with an agent’s move action.
Declaration
Swift
static func mappedFromAction(_ action: AIGamePlayerAction) -> PlayerMoveDirection
Parameters
action
The action to get the direction of.
Return Value
The corresponding direction for the action provided, or north if the action is invalid.