From 7b5a6b820d5acef36d402bd5a52d783ec68d33c7 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 6 Apr 2008 14:13:36 +0000 Subject: mouse grabbing, Cvar and Func info --- src/core/cvar.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/core/cvar.h') 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; -- cgit v1.2.3