Advanced Strategic Command
editgameoptions.h
Go to the documentation of this file.
1 /*
2  This file is part of Advanced Strategic Command; http://www.asc-hq.de
3  Copyright (C) 1994-2010 Martin Bickel and Marc Schellenberger
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program; see the file COPYING. If not, write to the
17  Free Software Foundation, Inc., 59 Temple Place, Suite 330,
18  Boston, MA 02111-1307 USA
19 */
20 
21 
22 #ifndef editgameoptionsH
23 #define editgameoptionsH
24 
25 #include "../gameoptions.h"
26 #include "../paradialog.h"
27 #include "../gamemap.h"
28 
29 
30 extern void editGameOptions ( bool mainApp = true );
31 
33  public:
34  typedef vector<ASCString> VList;
35  typedef pair<int,int> ModeRes;
36  private:
37  SDL_Rect **modes;
38  VList list;
39 
40  vector <ModeRes > listedmodes;
41 
42  static bool comparator( const ModeRes& a, const ModeRes& b );
43 
44  public:
45  GetVideoModes();
46 
47  VList& getList() { return list; };
48 
49  int getx( int index );
50 
51  int gety( int index );
52 
53  int findmodenum( int x, int y );
54 
55  ModeRes getBest();
56 
57 };
58 
59 
60 #endif
61 
pair< int, int > ModeRes
void editGameOptions(bool mainApp=true)
VList & getList()
int getx(int index)
int findmodenum(int x, int y)
vector< ASCString > VList
int gety(int index)