Page 165 - MDP2022-3
P. 165
public int getTime() {
return time;
}
public void setTime(int time) {
this.time = time;
}
public String getNoteName() {
return noteName;
}
public void setNoteName(String noteName) {
this.noteName = noteName;
}
public Beat(int time, String noteName) {
super();
this.time = time;
this.noteName = noteName;
}
}
# DynamicBeat클래스
package dynamic_beat_16;
public class DynamicBeat extends JFrame {
private Image screenImage;
private Graphics screenGraphics;
private int mouseX, mouseY;
private String scoreInput;
private String titleName;
public boolean isMainScreen = false;
public boolean isGameScreen = false;
public boolean isResultScreen = false;
public boolean isRankScreen = false;
public boolean isFirstScreen = true;
ArrayList<Track> trackList = new ArrayList<Track>();
private Image titleImage;
private Image levelImage;
private Image selectedImage;
private Music selectedMusic;
private Music introMusic = new Music("introMusic.mp3", true);
private int nowSelected = 0;
public static Game game;
public DynamicBeat() {