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-02-05 22:23:15 +0000
committerStijn Buys <ingar@osirion.org>2008-02-05 22:23:15 +0000
commit1ed2e8eb1f1909a35f6fc8d5d6065bcac37c27ea (patch)
treebb1007c12c205b265c1e7515cdc7924496e19cf3 /src/core/cvar.h
parenta51deebd87036ceb87c77a20117977d077b771e3 (diff)
keyboard handling, cvar fixes
Diffstat (limited to 'src/core/cvar.h')
-rw-r--r--src/core/cvar.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core/cvar.h b/src/core/cvar.h
index fa04c49..660f03e 100644
--- a/src/core/cvar.h
+++ b/src/core/cvar.h
@@ -21,9 +21,9 @@ public:
Cvar_t &operator=(int other);
Cvar_t &operator=(float other);
- inline unsigned int flags() const { return cvar_flags; }
- inline float value() const { return(cvar_value); }
- const std::string &text() const { return(cvar_text); }
+ unsigned int flags() const;
+ float value() const;
+ const std::string &text() const;
private:
std::string cvar_text;
@@ -49,7 +49,7 @@ Cvar get(const char *name, const char *value, int flags=0);
* its value will not be changed. If the cvar does not exist,
* it will be created
*/
-Cvar get(const char *name, int value, int flags=0);
+Cvar get(const char *name, float value, int flags=0);
/// set a cvar value
/** If the a cvar with the given name already exists in the registry,
@@ -60,19 +60,19 @@ Cvar set(const char *name, const char *value, int flags=0);
/** If the a cvar with the given name already exists in the registry,
* its value will be replaced
*/
-Cvar set(const char *name, int value, int flags=0);
+Cvar set(const char *name, float value, int flags=0);
/// delete a cvar from the registry
-void unset(const char *cvarname);
+void unset(const char *name);
/// delete a cvar from the registry
-void unset(const std::string &cvarname);
+void unset(const std::string &name);
/// search for a named cvar, returns 0 if not found
-Cvar find(const std::string &cvarname);
+Cvar find(const std::string &name);
/// search for a named cvar, returns 0 if not found
-Cvar find(const char *cvarname);
+Cvar find(const char *name);
/// list the cvar registry
void list();