private String titleName; // 현재 실행 곡 이름
private String difficulty; // 난이도 설정
private String musicTitle; // 음악제목 생성
private Music gameMusic; // 게임뮤직 생성
public Game(String titleName, String difficulty, String musicTitle) {
// 변수 초기화 및 생성자
this.titleName = titleName;
this.difficulty = difficulty;
this.musicTitle = musicTitle;
gameMusic = new Music(this.musicTitle, false);
gameMusic.start();
}
public class Track {
.
.생략
.
private String titleName; // 곡 제목
.
.생략
.
public String getTitleName() {
return titleName;
}
public void setTitleName(String titleName) {
this.titleName = titleName;
}
public Track(String titleImage, String startImage, String gameImage, String startMusic, String gameMusic, String titleName) {
super();
.
.생략
.
this.titleName = titleName;
}
}