diff --git a/audio/ObjectInstance.java b/audio/ObjectInstance.java new file mode 100644 index 0000000..8c7f1ef --- /dev/null +++ b/audio/ObjectInstance.java @@ -0,0 +1,69 @@ +package audio; + +import java.awt.Color; + +public class ObjectInstance { + + private long time; + private int direction; + + private Color color; + + private boolean hold; + private long length; + + public ObjectInstance() + { + time = 0; + direction = 0; + + color = null; + + hold = false; + length = 0; + } + + public long getTime() { + return time; + } + + public void setTime(long time) { + this.time = time; + } + + public int getDirection() { + return direction; + } + + public void setDirection(int direction) { + this.direction = direction; + } + + public Color getColor() { + return color; + } + + public void setColor(Color color) { + this.color = color; + } + + public boolean isHold() { + return hold; + } + + public void setHold(boolean hold) { + this.hold = hold; + } + + public long getLength() { + return length; + } + + public void setLength(long length) { + this.length = length; + } + + + + +} diff --git a/audio/Song.java b/audio/Song.java new file mode 100644 index 0000000..8943e57 --- /dev/null +++ b/audio/Song.java @@ -0,0 +1,118 @@ +package audio; + +import java.io.File; +import java.util.ArrayList; +import java.util.List; + +public class Song { + + private String title; + private String subtitle; + private String author; + private String creator; + private double BPM; + + private File audio; + private File background; + private File banner; + private File file; + + private List songs; + + public Song() + { + title = ""; + subtitle = ""; + author = ""; + creator = ""; + BPM = 0.0; + + audio = null; + background = null; + banner = null; + file = null; + + songs = new ArrayList(); + } + + public void addSongInstance(SongInstance s) + { + songs.add(s); + } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public String getSubtitle() { + return subtitle; + } + + public void setSubtitle(String subtitle) { + this.subtitle = subtitle; + } + + public String getAuthor() { + return author; + } + + public void setAuthor(String author) { + this.author = author; + } + + public String getCreator() { + return creator; + } + + public void setCreator(String creator) { + this.creator = creator; + } + + public double getBPM() { + return BPM; + } + + public void setBPM(double bPM) { + BPM = bPM; + } + + public File getAudio() { + return audio; + } + + public void setAudio(File audio) { + this.audio = audio; + } + + public File getBackground() { + return background; + } + + public void setBackground(File background) { + this.background = background; + } + + public File getBanner() { + return banner; + } + + public void setBanner(File banner) { + this.banner = banner; + } + + public File getFile() { + return file; + } + + public void setFile(File file) { + this.file = file; + } + + public List getSongs() { + return songs; + } +} diff --git a/audio/SongInstance.java b/audio/SongInstance.java new file mode 100644 index 0000000..94eb8e2 --- /dev/null +++ b/audio/SongInstance.java @@ -0,0 +1,35 @@ +package audio; + +import java.util.ArrayList; +import java.util.List; + +public class SongInstance { + + private String difficulty; + + private List objects; + + public SongInstance(String difficulty) + { + this.difficulty = difficulty; + + objects = new ArrayList(); + } + + public void addObjectInstance(ObjectInstance obj) + { + objects.add(obj); + } + + public List getObjects() { + return objects; + } + + public String getDifficulty() { + return difficulty; + } + + public void setDifficulty(String difficulty) { + this.difficulty = difficulty; + } +}