00001 #pragma once
00002
00003 #include <string.h>
00004
00005 #include "defines.h"
00006 #include "configfile.h"
00007 #include "messages.h"
00008 #include "FileLog.h"
00009
00010 namespace zak {
00011
00016 class ZAKENGINE_API GameConfig {
00017 public:
00024 bool Load(char *filename);
00025
00031 bool Save(char *filename);
00032
00037 void SetLanguage(char *language);
00038
00043 void SetCaption(char *caption);
00044
00049 void SetWidth(int width);
00050
00055 void SetHeight(int height);
00056
00061 void SetBits(int bits);
00062
00067 void SetRefreshRate(int refreshrate);
00068
00073 void SetLockFPS (int lockFPS);
00074
00079 void SetFullscren(bool fullscreen);
00080
00085 void SetVSync(bool vsync);
00086
00091 void SetCursorVisible(bool cursorVisible);
00092
00097 void SetSound(bool sound);
00098
00103 const char *GetLanguage() { return _language; }
00104
00109 const char *GetCaption() { return _caption; }
00110
00115 int GetWidth() { return _width; }
00116
00121 int GetHeight() { return _height; }
00122
00127 int GetBits() { return _bits; }
00128
00134 int GetLockFPS() { return _lockFPS; }
00135
00140 int GetRefreshRate() { return _refreshRate; }
00141
00146 bool GetFullscreen() { return _fullscreen; }
00147
00152 bool GetVSync() { return _vsync; }
00153
00158 bool GetCursorVisible() { return _cursorVisible; }
00159
00164 bool GetSound() { return _sound; }
00165
00166 GameConfig();
00167 ~GameConfig();
00168
00169 private:
00170 char _language[100];
00171 char _caption[100];
00172 int _width;
00173 int _height;
00174 int _bits;
00175 bool _fullscreen;
00176 bool _vsync;
00177 int _refreshRate;
00178 int _lockFPS;
00179 bool _sound;
00180 bool _cursorVisible;
00181 };
00182
00183
00184 }
00185