private DiscreteMovement.MovingDirection GetCurMovingDirection(AIStateController controller) { System.Object value = controller.getValue(CUR_MOVING_DIR); return(value == null ? default(DiscreteMovement.MovingDirection) : (DiscreteMovement.MovingDirection)value); }