src/main/java/cursor/rybak/game/MazeSetUp.java
/**
     * Initialize game start location
     *
     * @param mazeMap map maze
     * @param maze    maze instance
     * @param team    team
     * @return start location
     */
Initialize game start location
@param mazeMap map maze
@param maze    maze instance
@param team    team
@return start location
Initialize game start location @param mazeMap map maze @param maze maze instance @param team team @return start location
private static Location initStartLocation(Map<String, Location> mazeMap,
                                              AbstractMaze maze,
                                              Team team) {
        Location startLocation = mazeMap.get(
                generateLocationMapKey(maze.getTeamStartPoint()[0], maze.getTeamStartPoint()[1])
        );
        startLocation.setTeam(team);
        startLocation.setDescription(LocationsDescription.START_POINT.getDescription());
        startLocation.setMainLine(ListUtil.copy(startLocation.getLineA()));
        startLocation.setCrossLine(ListUtil.copy(startLocation.getLineB()));
        return startLocation;
    }
private static Location initStartLocation ( Map < String , Location > mazeMap , AbstractMaze maze , Team team ) { Location startLocation = mazeMap . get ( generateLocationMapKey ( maze . getTeamStartPoint ( ) [ 0 ] , maze . getTeamStartPoint ( ) [ 1 ] ) ) ; startLocation . setTeam ( team ) ; startLocation . setDescription ( LocationsDescription . START_POINT . getDescription ( ) ) ; startLocation . setMainLine ( ListUtil . copy ( startLocation . getLineA ( ) ) ) ; startLocation . setCrossLine ( ListUtil . copy ( startLocation . getLineB ( ) ) ) ; return startLocation ; }
Initialize game start location
 @param mazeMap map maze
 @param maze    maze instance
 @param team    team
 @return start location
Initialize game start location @param mazeMap map maze @param maze maze instance @param team team @return start location
// ALWAYS pass to MainLine and Cross line COPY of LineA and LineB