C:/Documents and Settings/jegan/Desktop/projectX/SaveCommand.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 SaveCommand::_id = "save";
00008 
00009 void SaveCommand::execute()
00010 {
00011         Level::instance()->save();
00012 }
00013 
00014 std::string SaveCommand::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 }

Generated on Fri May 5 00:20:19 2006 for ProjectX by  doxygen 1.4.6-NO