class LoveStory {
public int yearHappening = 2006;
public ArrayList<String> scenes={"Find Tree", "Ethernal Live", "die"};
void addScene( int i, String scene) {
scenes.add(0, scene);
}
void removeScene( int i) {
scenes.remove(0);
}
}
class Movie {
static void playMovie () {
LoveStory present = new LoveStory();
LoveStory past = new LoveStory();
past.yearHappening -= 500;
past.addScene(0, "Meet Queen");
past.addScene(1, "Accept Quest");
LoveStory future= new LoveStory();
past.yearHappening += 500;
past.remove(0);
past.addScene(1, "Talk to Three");
past.addScene(1, "Talk to Three");
past.addScene(1, "Talk to Three");
int i = 0;
while (i < present.scenes.lenght() || i < past.scenes.lenght() || i < past.scenes.lenght() ) {
if ( present.scenes.lenght() > i ) System.out.println( present.scenes.get(i);
if ( present.scenes.lenght() > i ) System.out.println( present.scenes.get(i);
if ( present.scenes.lenght() > i ) System.out.println( present.scenes.get(i);
}
}
}
Movie.play();
public int yearHappening = 2006;
public ArrayList<String> scenes={"Find Tree", "Ethernal Live", "die"};
void addScene( int i, String scene) {
scenes.add(0, scene);
}
void removeScene( int i) {
scenes.remove(0);
}
}
class Movie {
static void playMovie () {
LoveStory present = new LoveStory();
LoveStory past = new LoveStory();
past.yearHappening -= 500;
past.addScene(0, "Meet Queen");
past.addScene(1, "Accept Quest");
LoveStory future= new LoveStory();
past.yearHappening += 500;
past.remove(0);
past.addScene(1, "Talk to Three");
past.addScene(1, "Talk to Three");
past.addScene(1, "Talk to Three");
int i = 0;
while (i < present.scenes.lenght() || i < past.scenes.lenght() || i < past.scenes.lenght() ) {
if ( present.scenes.lenght() > i ) System.out.println( present.scenes.get(i);
if ( present.scenes.lenght() > i ) System.out.println( present.scenes.get(i);
if ( present.scenes.lenght() > i ) System.out.println( present.scenes.get(i);
}
}
}
Movie.play();