#include <GameConfig.h>
Definition at line 32 of file GameConfig.h.
Public Methods | |
| GameConfig (const char *configFile) | |
Public Attributes | |
| string | mapFileName |
| FLOAT | initCameraHeight |
| int | initPlayerBalance |
|
|
Definition at line 20 of file GameConfig.cpp. References initCameraHeight, and initPlayerBalance.
00021 {
00022 ifstream in(configFile);
00023 if(!in) throw Error(string("Cannot open config file: ")+string(configFile));
00024 // for now only one line in config file
00025 getline(in, this->mapFileName);
00026 // second line contains initial camera height
00027 in >> this->initCameraHeight;
00028 in >> this->initPlayerBalance;
00029
00030 //while( !in.eof() )
00031 //{
00032 // string line;
00033 // getline(in, line);
00034 //}
00035 }
|
|
|
Definition at line 39 of file GameConfig.h. Referenced by GameConfig(). |
|
|
Definition at line 40 of file GameConfig.h. Referenced by GameConfig(), and Overhead::overhead_init(). |
|
|
Definition at line 38 of file GameConfig.h. Referenced by Overhead::overhead_init(). |
1.3-rc2