main/java/edu/sdccd/cisc191/wizardGame/gui/screen/levels/AbstractLevel.java
/**
     * Loads all images dynamically in level resource directory into levelImages
     * LinkedList<BufferedImage>.
     */
Loads all images dynamically in level resource directory into levelImages
LinkedList.
Loads all images dynamically in level resource directory into levelImages LinkedList .
public void bufferLevelImages() {
        File file= new File("src/main/resources/levels");
        int numLevels = file.list().length;
        for (int i = 0; i < numLevels; i++) {
            this.levelImages.add(loader.loadImage("/levels/level_" + (i + 1) + ".png"));  
        }
    }
public void bufferLevelImages ( ) { File file = new File ( "src/main/resources/levels" ) ; int numLevels = file . list ( ) . length ; for ( int i = 0 ; i < numLevels ; i ++ ) { this . levelImages . add ( loader . loadImage ( "/levels/level_" + ( i + 1 ) + ".png" ) ) ; } }
Loads all images dynamically in level resource directory into levelImages
 LinkedList<BufferedImage>.
Loads all images dynamically in level resource directory into levelImages LinkedList<BufferedImage > .
// Count all level images in resources // Load all level into levelImages list in order // +1 to offset index 0