Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-04-06 14:13:36 +0000
committerStijn Buys <ingar@osirion.org>2008-04-06 14:13:36 +0000
commit7b5a6b820d5acef36d402bd5a52d783ec68d33c7 (patch)
treea1cb65e071441277865ca5f4e315611cdd51c0e5 /src/core/cvar.h
parent25d2c764443723eb7a3dd5f8bf0b76586c1ff10b (diff)
mouse grabbing, Cvar and Func info
Diffstat (limited to 'src/core/cvar.h')
-rw-r--r--src/core/cvar.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/cvar.h b/src/core/cvar.h
index 8ced7a4..06b7f2a 100644
--- a/src/core/cvar.h
+++ b/src/core/cvar.h
@@ -27,13 +27,16 @@ public:
enum Flags {Archive=1, ReadOnly=2, Game=4, Info=8};
/// create a new variable
- Cvar(const char *name = 0, unsigned int flags = 0);
+ Cvar(const char *name, unsigned int flags = 0);
/*----- inspectors ------------------------------------------------ */
/// returns the name of the variable
inline std::string const &name() { return cvar_name; }
+ /// returns the info of the variable
+ inline std::string const &info() { return cvar_info; }
+
/// returns the flags of the variable
inline unsigned int flags() const { return cvar_flags; }
@@ -45,6 +48,9 @@ public:
/*----- mutators -------------------------------------------------- */
+ /// set the info string
+ void set_info(const char *);
+
/// char * assignment operator
Cvar &operator=(const char *other);
@@ -110,6 +116,7 @@ public:
static Cvar *net_timeout; // network timeout in seconds
private:
std::string cvar_name;
+ std::string cvar_info;
std::string cvar_str;
unsigned int cvar_flags;
float cvar_value;