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