Changes in src/Actions/MethodAction.cpp [cc04b7:5b0b98]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/MethodAction.cpp
rcc04b7 r5b0b98 10 10 #include <string> 11 11 12 #include "MethodAction.hpp" 12 #include "Actions/MethodAction.hpp" 13 #include "Helpers/Assert.hpp" 13 14 14 15 using namespace std; … … 21 22 22 23 MethodAction::~MethodAction() 23 { 24 // TODO Auto-generated destructor stub 24 {} 25 26 27 Action::state_ptr MethodAction::performCall() { 28 executeMethod(); 29 // we don't have a state to save so we return Action::success 30 return Action::success; 25 31 } 26 32 33 Action::state_ptr MethodAction::performUndo(Action::state_ptr) { 34 ASSERT(0,"Cannot undo a MethodAction"); 35 return Action::success; 36 } 27 37 28 void MethodAction::call() { 29 executeMethod(); 30 } 31 void MethodAction::undo() { 32 38 Action::state_ptr MethodAction::performRedo(Action::state_ptr){ 39 ASSERT(0,"Cannot redo a MethodAction"); 40 return Action::success; 33 41 } 34 42 … … 36 44 return false; 37 45 } 46 47 bool MethodAction::shouldUndo(){ 48 return true; 49 }
Note:
See TracChangeset
for help on using the changeset viewer.