summaryrefslogtreecommitdiff
path: root/src/variable.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-12-23 00:52:32 -0700
committerMike Buland <eichlan@xagasoft.com>2011-12-23 00:52:32 -0700
commit7a53f0e95a5ffe13a21fc8d2076e34ee96693ac0 (patch)
tree7b8a69448e3399786a71b0bd8295ccdfa0b6f68c /src/variable.h
parent58a71e57e3824a3a0c5385af91421674395990dc (diff)
downloadstage-7a53f0e95a5ffe13a21fc8d2076e34ee96693ac0.tar.gz
stage-7a53f0e95a5ffe13a21fc8d2076e34ee96693ac0.tar.bz2
stage-7a53f0e95a5ffe13a21fc8d2076e34ee96693ac0.tar.xz
stage-7a53f0e95a5ffe13a21fc8d2076e34ee96693ac0.zip
The game is actually being built now.
Diffstat (limited to 'src/variable.h')
-rw-r--r--src/variable.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/variable.h b/src/variable.h
index 8bc12a6..9a35d48 100644
--- a/src/variable.h
+++ b/src/variable.h
@@ -9,6 +9,7 @@
9class Variable 9class Variable
10{ 10{
11friend uint32_t Bu::__calcHashCode<Variable>( const Variable &k ); 11friend uint32_t Bu::__calcHashCode<Variable>( const Variable &k );
12friend Bu::Formatter &operator<<( Bu::Formatter &f, const Variable &v );
12public: 13public:
13 enum Type 14 enum Type
14 { 15 {
@@ -32,6 +33,8 @@ public:
32 Variable( const Bu::String &sValue ); 33 Variable( const Bu::String &sValue );
33 virtual ~Variable(); 34 virtual ~Variable();
34 35
36 static Variable newSituationName( const Bu::String &s );
37
35 Type getType() const { return eType; } 38 Type getType() const { return eType; }
36 39
37 Variable to( Type e ) const; 40 Variable to( Type e ) const;
@@ -79,6 +82,8 @@ namespace Bu
79 template<> bool __cmpHashKeys<Variable>( const Variable &a, const Variable &b ); 82 template<> bool __cmpHashKeys<Variable>( const Variable &a, const Variable &b );
80}; 83};
81 84
85Bu::Formatter &operator<<( Bu::Formatter &f, const Variable &v );
86
82typedef Bu::List<Variable> VariableList; 87typedef Bu::List<Variable> VariableList;
83typedef Bu::Hash<Bu::String, Variable> VariableHash; 88typedef Bu::Hash<Bu::String, Variable> VariableHash;
84 89