diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2009-12-21 18:03:28 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2009-12-21 18:03:28 +0000 |
| commit | 51e21a316be6e052251b3dfc7d671061ebd67cee (patch) | |
| tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /src/action.cpp | |
| parent | ad6f4dfcc671d3f8d458c42b0992956f2a2cf979 (diff) | |
| download | build-51e21a316be6e052251b3dfc7d671061ebd67cee.tar.gz build-51e21a316be6e052251b3dfc7d671061ebd67cee.tar.bz2 build-51e21a316be6e052251b3dfc7d671061ebd67cee.tar.xz build-51e21a316be6e052251b3dfc7d671061ebd67cee.zip | |
Removed the old trunk contents. About to load up m3
Diffstat (limited to 'src/action.cpp')
| -rw-r--r-- | src/action.cpp | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/src/action.cpp b/src/action.cpp deleted file mode 100644 index 2588caa..0000000 --- a/src/action.cpp +++ /dev/null | |||
| @@ -1,53 +0,0 @@ | |||
| 1 | #include "action.h" | ||
| 2 | |||
| 3 | Action::Action() | ||
| 4 | { | ||
| 5 | } | ||
| 6 | |||
| 7 | Action::~Action() | ||
| 8 | { | ||
| 9 | } | ||
| 10 | |||
| 11 | void Action::addCommand( eAction act, const std::string &sWhat, bool bIsGroup ) | ||
| 12 | { | ||
| 13 | lCmds.push_back( Cmd( act, sWhat, bIsGroup ) ); | ||
| 14 | } | ||
| 15 | |||
| 16 | void Action::begin() | ||
| 17 | { | ||
| 18 | i = lCmds.begin(); | ||
| 19 | } | ||
| 20 | |||
| 21 | bool Action::isEnded() | ||
| 22 | { | ||
| 23 | return i == lCmds.end(); | ||
| 24 | } | ||
| 25 | |||
| 26 | void Action::next() | ||
| 27 | { | ||
| 28 | i++; | ||
| 29 | } | ||
| 30 | |||
| 31 | Action::eAction Action::getAct() | ||
| 32 | { | ||
| 33 | return (*i).act; | ||
| 34 | } | ||
| 35 | |||
| 36 | std::string Action::getWhat() | ||
| 37 | { | ||
| 38 | return (*i).sWhat; | ||
| 39 | } | ||
| 40 | |||
| 41 | bool Action::isGroup() | ||
| 42 | { | ||
| 43 | return (*i).bIsGroup; | ||
| 44 | } | ||
| 45 | |||
| 46 | void Action::setMode( eAction nAct ) | ||
| 47 | { | ||
| 48 | for( CmdList::iterator j = lCmds.begin(); j != lCmds.end(); j++ ) | ||
| 49 | { | ||
| 50 | (*j).act = nAct; | ||
| 51 | } | ||
| 52 | } | ||
| 53 | |||
