Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/MethodAction.cpp

    r5b0b98 rcc04b7  
    1010#include <string>
    1111
    12 #include "Actions/MethodAction.hpp"
    13 #include "Helpers/Assert.hpp"
     12#include "MethodAction.hpp"
    1413
    1514using namespace std;
     
    2221
    2322MethodAction::~MethodAction()
    24 {}
     23{
     24  // TODO Auto-generated destructor stub
     25}
    2526
    2627
    27 Action::state_ptr MethodAction::performCall() {
     28void MethodAction::call() {
    2829  executeMethod();
    29   // we don't have a state to save so we return Action::success
    30   return Action::success;
    3130}
     31void MethodAction::undo() {
    3232
    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;
    4133}
    4234
     
    4436  return false;
    4537}
    46 
    47 bool MethodAction::shouldUndo(){
    48   return true;
    49 }
Note: See TracChangeset for help on using the changeset viewer.