diff options
Diffstat (limited to 'src/situation.cpp')
-rw-r--r-- | src/situation.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/situation.cpp b/src/situation.cpp index 8221b50..86dd5c5 100644 --- a/src/situation.cpp +++ b/src/situation.cpp | |||
@@ -48,6 +48,17 @@ void Situation::exec( class GameState &gState, Situation::Mode m ) | |||
48 | } | 48 | } |
49 | } | 49 | } |
50 | 50 | ||
51 | void Situation::addCommand( Command *pCmd ) | ||
52 | { | ||
53 | csLocal.addCommand( pCmd ); | ||
54 | } | ||
55 | |||
56 | bool Situation::execCommand( class GameState &gState, | ||
57 | const Bu::StringList &lCmd ) | ||
58 | { | ||
59 | return csLocal.dispatch( gState, lCmd ); | ||
60 | } | ||
61 | |||
51 | Bu::Formatter &operator<<( Bu::Formatter &f, Situation::Mode m ) | 62 | Bu::Formatter &operator<<( Bu::Formatter &f, Situation::Mode m ) |
52 | { | 63 | { |
53 | switch( m ) | 64 | switch( m ) |