Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
GameNoodle/src/gfx/Screen.java
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
23 lines (17 sloc)
510 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package gfx; | |
import java.awt.Dimension; | |
import javax.swing.JPanel; | |
import level.LevelHandler; | |
// This class will contain and render a specific level/entities | |
// The game.Game class will contain one screen at a time to display that level. | |
public class Screen extends JPanel { | |
private String levelName; | |
private LevelHandler level; | |
public Screen(LevelHandler level) { | |
this.level = level; | |
this.setPreferredSize(new Dimension(700, 600)); | |
} | |
public String getLevelName() { | |
return levelName; | |
} | |
} |