00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef editgameoptionsH
00023 #define editgameoptionsH
00024
00025 #include "../gameoptions.h"
00026 #include "../paradialog.h"
00027 #include "../gamemap.h"
00028
00029
00030 extern void editGameOptions ( bool mainApp = true );
00031
00032 class GetVideoModes {
00033 public:
00034 typedef vector<ASCString> VList;
00035 typedef pair<int,int> ModeRes;
00036 private:
00037 SDL_Rect **modes;
00038 VList list;
00039
00040 vector <ModeRes > listedmodes;
00041
00042 static bool comparator( const ModeRes& a, const ModeRes& b );
00043
00044 public:
00045 GetVideoModes();
00046
00047 VList& getList() { return list; };
00048
00049 int getx( int index );
00050
00051 int gety( int index );
00052
00053 int findmodenum( int x, int y );
00054
00055 ModeRes getBest();
00056
00057 };
00058
00059
00060 #endif
00061