- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

# C:/Documents and Settings/jegan/Desktop/projectX/RestoreCommand.cpp

Go to the documentation of this file.

    00001 #include "Command.h"
    00002 #include "Level.h"
    00003 #include "List.h"
    00004
    00005 using namespace std;
    00006
    00007 const string RestoreCommand::_id = "restore";
    00008
    00009 void RestoreCommand::execute()
    00010 {
    00011         Level::instance()->restore();
    00012 }
    00013
    00014 std::string RestoreCommand::getString()
    00015 {
    00016         List *command = new List();
    00017         command->snoc(new Atom(_id));
    00018
    00019         string commandString = command->getString();
    00020         delete command;
    00021
    00022         return commandString;
    00023 }