private int getMaxStep ( ) { if ( path != null ) { final int steps ; if ( pathStopped ) { steps = currentStep ; } else { steps = path . getLength ( ) ; } return steps ; } return 0 ; }
Get total number of steps .