diff options
author | Stijn Buys <ingar@osirion.org> | 2008-03-09 11:04:35 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-03-09 11:04:35 +0000 |
commit | 912ebb62d5e8602a196a59887ef4d41cf0d6edbf (patch) | |
tree | 248fa306aa28762108e900de8d7c8b655a603fef /src/filesystem/inifile.h | |
parent | 07c0040f3433cc637fecbb712fb3b6f5ad1ab5de (diff) |
fixed sphere black hole, added basic HUD with speed and direction indicator, basic shaped entities readable from world.ini
Diffstat (limited to 'src/filesystem/inifile.h')
-rw-r--r-- | src/filesystem/inifile.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/filesystem/inifile.h b/src/filesystem/inifile.h index 632d432..568eade 100644 --- a/src/filesystem/inifile.h +++ b/src/filesystem/inifile.h @@ -10,6 +10,8 @@ #include <string> #include <fstream> +#include "math/vector3f.h" +#include "math/color.h" #include "filesystem/file.h" namespace filesystem { @@ -57,9 +59,20 @@ public: return last_read_was_key; } + bool got_key(const char * keylabel); + /// check if the last read key=value pair matches keylabel and store the value in valuestring bool got_key_string(const char * keylabel, std::string & valuestring); + bool got_key_color(const char * keylabel, math::Color & color); + + bool got_key_float(const char * keylabel, float & f); + + bool got_key_angle(const char * keylabel, float & f); + + bool got_key_vector3f(const char * keylabel, math::Vector3f & v); + + inline unsigned int line() const { return line_number; } |