From 113fc467a7170a8a564049c64d1036dd10e6abac Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sun, 30 Jul 2006 09:07:20 +0000 Subject: It's starting to look pretty good, just trying to figure out how to get through everything that needs to be made modular and general. --- src/action.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/action.h (limited to 'src/action.h') 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 @@ +#ifndef ACTION_H +#define ACTION_H + +#include +#include "staticstring.h" + +class Command; + +class Action +{ +public: + Action(); + Action( const char *sName ); + virtual ~Action(); + + void add( Command *pCmd ); + + const char *getName() + { + return sName; + } + bool isDefault() + { + return bDefault; + } + + void debug(); + +private: + bool bDefault; + StaticString sName; + std::list lCommand; +}; + +#endif -- cgit v1.2.3