[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Feuerkraft-CVS] rev 308 - trunk/src
From: |
Ingo Ruhnke |
Subject: |
[Feuerkraft-CVS] rev 308 - trunk/src |
Date: |
Sun, 07 Dec 2003 21:35:51 +0100 |
Author: grumbel
Date: 2003-12-07 21:35:51 +0100 (Sun, 07 Dec 2003)
New Revision: 308
Removed:
trunk/src/feuerkraft_options.cxx
trunk/src/feuerkraft_options.hxx
Log:
- removed some unused stuff
Deleted: trunk/src/feuerkraft_options.cxx
===================================================================
--- trunk/src/feuerkraft_options.cxx 2003-12-07 20:14:13 UTC (rev 307)
+++ trunk/src/feuerkraft_options.cxx 2003-12-07 20:35:51 UTC (rev 308)
@@ -1,78 +0,0 @@
-// $Id: feuerkraft_options.cxx,v 1.3 2003/06/03 14:11:22 grumbel Exp $
-//
-// Feuerkraft - A Tank Battle Game
-// Copyright (C) 2000 Ingo Ruhnke <address@hidden>
-//
-// 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 "feuerkraft_options.hxx"
-
-FeuerkraftOptions::FeuerkraftOptions ()
-{
- // Set defaults for all options
- screen_width = 800;
- screen_height = 600;
- joystick = -1;
-
- // FIXME: This needs to be more flexible of course
- config_file = "/home/ingo/.feuerkraft/config";
-}
-
-FeuerkraftOptions::~FeuerkraftOptions ()
-{
-}
-
-void
-FeuerkraftOptions::parse_args (int argc, char** argv)
-{
- // add getopt_long parser here
-}
-
-void
-FeuerkraftOptions::parse_config_file (const std::string& filename)
-{
-}
-
-bool
-FeuerkraftOptions::show_intro ()
-{
- return false;
-}
-
-bool
-FeuerkraftOptions::show_outro ()
-{
- return false;
-}
-
-int
-FeuerkraftOptions::get_screen_width ()
-{
- return 800;
-}
-
-int
-FeuerkraftOptions::get_screen_height ()
-{
- return 600;
-}
-
-std::string
-FeuerkraftOptions::get_config_file ()
-{
- return config_file;
-}
-
-/* EOF */
Deleted: trunk/src/feuerkraft_options.hxx
===================================================================
--- trunk/src/feuerkraft_options.hxx 2003-12-07 20:14:13 UTC (rev 307)
+++ trunk/src/feuerkraft_options.hxx 2003-12-07 20:35:51 UTC (rev 308)
@@ -1,66 +0,0 @@
-// $Id: feuerkraft_options.hxx,v 1.2 2003/06/03 14:11:22 grumbel Exp $
-//
-// Feuerkraft - A Tank Battle Game
-// Copyright (C) 2000 Ingo Ruhnke <address@hidden>
-//
-// 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.
-
-#ifndef FEUERKRAFTOPTIONS_HXX
-#define FEUERKRAFTOPTIONS_HXX
-
-#include <string>
-
-/** This class holds all the options that can be set on startup or
- probally at runtime. Options include things like disable/enable
- sound, screen size, effects etc.
-
- FIXME: Runtime changes of options should use signals or something like that
-*/
-class FeuerkraftOptions {
-private:
- int screen_width;
- int screen_height;
- std::string config_file;
- int joystick;
-
-public:
- FeuerkraftOptions ();
- ~FeuerkraftOptions ();
-
- void parse_args (int argc, char** argv);
- void parse_config_file (const std::string& filename);
-
- /*--- Options ----*/
-
- /** Show the intro screen */
- bool show_intro ();
-
- /** Show the outro screen */
- bool show_outro ();
-
- /** Return the width of the screen */
- int get_screen_width ();
-
- /** Return the height of the screen */
- int get_screen_height ();
-
- /** Return the name of the config file to read (default:
- ~/.feuerkraft/config) */
- std::string get_config_file ();
-};
-
-#endif
-
-/* EOF */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Feuerkraft-CVS] rev 308 - trunk/src,
Ingo Ruhnke <=