// Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // // Copyright(C) 2006 Simon Howard // // This program 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 2 // of the License, or (at your option) any later version. // // This program 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 this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. // #include #include #include "textscreen.h" #define NUM_WADS 10 static char *skills[] = { "I'm too young to die!", "Hey, not too rough.", "Hurt me plenty.", "Ultra-violence", "NIGHTMARE!", }; static char *gamemodes[] = { "Co-operative", "Deathmatch", "Deathmatch 2.0", }; char *wads[NUM_WADS] = {}; int skill = 0; int nomonsters = 0; int deathmatch = 0; int fast = 0; int respawn = 0; int udpport = 4815; static void StartGame(void) { printf("Now we start the game.\n"); exit(0); } static txt_window_action_t *StartGameAction(void) { txt_window_action_t *action; action = TXT_NewWindowAction(KEY_F10, "Start"); TXT_SignalConnect(action, "pressed", StartGame, NULL); return action; } static void OpenWadsWindow(void) { txt_window_t *window; int i; window = TXT_NewWindow("Add WADs"); for (i=0; i