/*
* This file is part of jSpaceWar.
*
* jSpaceWar is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* jSpaceWar is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with jSpaceWar. If not, see <http://www.gnu.org/licenses/>.
*/
package com.mlarktar.spacewar;
import java.awt.Font;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import com.mlarktar.spacewar.sprites.ScrollingText;
/**
* @author malar
*
* This class contains the text shown in the About screen
*/
public class AboutText {
private List lines;
private static final int VERSION = 1;
private static final int SUB_VERSION = 0;
public AboutText() {
ScrollingText line;
lines = new ArrayList();
line = new ScrollingText("jSpaceWar " + VERSION + "." + SUB_VERSION, ScrollingText.BOTTOM);
line.setAboutFont("SansSerif", Font.BOLD, 32);
lines.add(line);
lines.add(new ScrollingText("", ScrollingText.BOTTOM));
lines.add(new ScrollingText("", ScrollingText.BOTTOM));
line = new ScrollingText("Programming", ScrollingText.BOTTOM);
line.setAboutFont("Monospaced", 0, 14);
lines.add(line);
line = new ScrollingText("Mariano Alarcón", ScrollingText.BOTTOM);
line.setAboutFont("SansSerif", 0, 20);
lines.add(line);
lines.add(new ScrollingText("", ScrollingText.BOTTOM));
line = new ScrollingText("Sound Effects and Music", ScrollingText.BOTTOM);
line.setAboutFont("Monospaced", 0, 14);
lines.add(line);
line = new ScrollingText("Diego Pérez", ScrollingText.BOTTOM);
line.setAboutFont("SansSerif", 0, 20);
lines.add(line);
lines.add(new ScrollingText("", ScrollingText.BOTTOM));
line = new ScrollingText("Original Game By", ScrollingText.BOTTOM);
line.setAboutFont("Monospaced", 0, 14);
lines.add(line);
line = new ScrollingText("Bill Seiler", ScrollingText.BOTTOM);
line.setAboutFont("SansSerif", 0, 20);
lines.add(line);
}
public Iterator getIterator() {
return lines.iterator();
}
}