diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2011-12-23 00:52:32 -0700 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2011-12-23 00:52:32 -0700 |
| commit | 7a53f0e95a5ffe13a21fc8d2076e34ee96693ac0 (patch) | |
| tree | 7b8a69448e3399786a71b0bd8295ccdfa0b6f68c /src/variable.h | |
| parent | 58a71e57e3824a3a0c5385af91421674395990dc (diff) | |
| download | stage-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.h | 5 |
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 @@ | |||
| 9 | class Variable | 9 | class Variable |
| 10 | { | 10 | { |
| 11 | friend uint32_t Bu::__calcHashCode<Variable>( const Variable &k ); | 11 | friend uint32_t Bu::__calcHashCode<Variable>( const Variable &k ); |
| 12 | friend Bu::Formatter &operator<<( Bu::Formatter &f, const Variable &v ); | ||
| 12 | public: | 13 | public: |
| 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 | ||
| 85 | Bu::Formatter &operator<<( Bu::Formatter &f, const Variable &v ); | ||
| 86 | |||
| 82 | typedef Bu::List<Variable> VariableList; | 87 | typedef Bu::List<Variable> VariableList; |
| 83 | typedef Bu::Hash<Bu::String, Variable> VariableHash; | 88 | typedef Bu::Hash<Bu::String, Variable> VariableHash; |
| 84 | 89 | ||
