/* * Copyright 2008, 2009, 2010, 2011: * Tobias Fleig (tfg[AT]online[DOT]de), * Michael Haas (mekhar[AT]gmx[DOT]de), * Johannes Kattinger (johanneskattinger[AT]gmx[DOT]de) * * - All rights reserved - * * * This file is part of Centuries of Rage. * * Centuries of Rage 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. * * Centuries of Rage 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 Centuries of Rage. If not, see <http://www.gnu.org/licenses/>. * */ package de._13ducks.cor.mainmenu; import de._13ducks.cor.mainmenu.components.Container; import de._13ducks.cor.mainmenu.components.TextBox; import de._13ducks.cor.mainmenu.components.TiledImage; /** * Konfiguriert und startet den RandomMapBuilder * * @author michael */ public class RandomMapBuilderScreen extends Container { /** * MainMenu-Referenz */ private MainMenu mainMenu; /** * Das Texteingabefeld für PlayerNumber */ private TextBox playerNumberBox; /** * Das Texteingabefeld für Layout */ private TextBox layoutBox; /** * Das Texteingabefeld für Size */ private TextBox sizeBox; /** * Das Texteingabefeld für Theme */ private TextBox themeBox; /** * Konstruktor * * @param m Referenz auf das Hauptmenü */ public RandomMapBuilderScreen(MainMenu m) { super(m, 15, 30, 70, 40); mainMenu = m; // Hintergrund: super.addComponent(new TiledImage(mainMenu, 15, 30, 70, 40, "img/mainmenu/rost.png")); // Textfelder initialisieren: playerNumberBox = new TextBox(mainMenu, 37, 40); super.addComponent(playerNumberBox); layoutBox = new TextBox(mainMenu, 37, 50); super.addComponent(layoutBox); sizeBox = new TextBox(mainMenu, 37, 60); super.addComponent(sizeBox); themeBox = new TextBox(mainMenu, 37, 70); super.addComponent(themeBox); } }