diff options
Diffstat (limited to '')
| -rw-r--r-- | src/action.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/action.h b/src/action.h new file mode 100644 index 0000000..12c2cc4 --- /dev/null +++ b/src/action.h | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | #ifndef ACTION_H | ||
| 2 | #define ACTION_H | ||
| 3 | |||
| 4 | #include <list> | ||
| 5 | #include "staticstring.h" | ||
| 6 | |||
| 7 | class Command; | ||
| 8 | |||
| 9 | class Action | ||
| 10 | { | ||
| 11 | public: | ||
| 12 | Action(); | ||
| 13 | Action( const char *sName ); | ||
| 14 | virtual ~Action(); | ||
| 15 | |||
| 16 | void add( Command *pCmd ); | ||
| 17 | |||
| 18 | const char *getName() | ||
| 19 | { | ||
| 20 | return sName; | ||
| 21 | } | ||
| 22 | bool isDefault() | ||
| 23 | { | ||
| 24 | return bDefault; | ||
| 25 | } | ||
| 26 | |||
| 27 | void debug(); | ||
| 28 | |||
| 29 | private: | ||
| 30 | bool bDefault; | ||
| 31 | StaticString sName; | ||
| 32 | std::list<Command *> lCommand; | ||
| 33 | }; | ||
| 34 | |||
| 35 | #endif | ||
