src/main/java/cursor/rybak/model/team/Team.java
/**
     * Move Team icon on maze
     *
     * @param guide                      abstraction GUIDE (holder of maze map)
     * @param currentLocationCoordinates coordinates of current location
     * @param newLocation                destination location
     */
Move Team icon on maze
@param guide                      abstraction GUIDE (holder of maze map)
@param currentLocationCoordinates coordinates of current location
@param newLocation                destination location
Move Team icon on maze @param guide abstraction GUIDE ( holder of maze map ) @param currentLocationCoordinates coordinates of current location @param newLocation destination location
private void moveTeamOnMaze(Guide guide,
                                String currentLocationCoordinates,
                                Location newLocation) {
        String[] currentPosition = currentLocationCoordinates.split("\\|");
        String[] newPosition = newLocation.getCoordinates().split("\\|");
        guide.getPlayground().getMaze()
                [Integer.parseInt(currentPosition[0])]
                [Integer.parseInt(currentPosition[1])] = PATH;
        if (LineTypes.lineTypeA.equals(newLocation.getMainLineType())) {
            if (newLocation.isMainReverse()) {
                guide.getPlayground().getMaze()
                        [Integer.parseInt(newPosition[0])]
                        [Integer.parseInt(newPosition[1])] = TEAM_VECTOR_DOWN;
            } else {
                guide.getPlayground().getMaze()
                        [Integer.parseInt(newPosition[0])]
                        [Integer.parseInt(newPosition[1])] = TEAM_VECTOR_UP;
            }
        } else {
            if (newLocation.isMainReverse()) {
                guide.getPlayground().getMaze()
                        [Integer.parseInt(newPosition[0])]
                        [Integer.parseInt(newPosition[1])] = TEAM_VECTOR_LEFT;
            } else {
                guide.getPlayground().getMaze()
                        [Integer.parseInt(newPosition[0])]
                        [Integer.parseInt(newPosition[1])] = TEAM_VECTOR_RIGHT;
            }
        }
    }
private void moveTeamOnMaze ( Guide guide , String currentLocationCoordinates , Location newLocation ) { String [ ] currentPosition = currentLocationCoordinates . split ( "\\|" ) ; String [ ] newPosition = newLocation . getCoordinates ( ) . split ( "\\|" ) ; guide . getPlayground ( ) . getMaze ( ) [ Integer . parseInt ( currentPosition [ 0 ] ) ] [ Integer . parseInt ( currentPosition [ 1 ] ) ] = PATH ; if ( LineTypes . lineTypeA . equals ( newLocation . getMainLineType ( ) ) ) { if ( newLocation . isMainReverse ( ) ) { guide . getPlayground ( ) . getMaze ( ) [ Integer . parseInt ( newPosition [ 0 ] ) ] [ Integer . parseInt ( newPosition [ 1 ] ) ] = TEAM_VECTOR_DOWN ; } else { guide . getPlayground ( ) . getMaze ( ) [ Integer . parseInt ( newPosition [ 0 ] ) ] [ Integer . parseInt ( newPosition [ 1 ] ) ] = TEAM_VECTOR_UP ; } } else { if ( newLocation . isMainReverse ( ) ) { guide . getPlayground ( ) . getMaze ( ) [ Integer . parseInt ( newPosition [ 0 ] ) ] [ Integer . parseInt ( newPosition [ 1 ] ) ] = TEAM_VECTOR_LEFT ; } else { guide . getPlayground ( ) . getMaze ( ) [ Integer . parseInt ( newPosition [ 0 ] ) ] [ Integer . parseInt ( newPosition [ 1 ] ) ] = TEAM_VECTOR_RIGHT ; } } }
Move Team icon on maze
 @param guide                      abstraction GUIDE (holder of maze map)
 @param currentLocationCoordinates coordinates of current location
 @param newLocation                destination location
Move Team icon on maze @param guide abstraction GUIDE ( holder of maze map ) @param currentLocationCoordinates coordinates of current location @param newLocation destination location