C:/Documents and Settings/mtauraso/Desktop/proj3/projectX/EndLevelCommand.cpp

Go to the documentation of this file.
00001 #include "Command.h"
00002 #include "Person.h"
00003 #include "Level.h"
00004 #include "List.h"
00005 
00006 
00007 using namespace std;
00008 
00009 const std::string EndLevelCommand::_id = "endLevel";
00010 
00011 EndLevelCommand::EndLevelCommand()
00012 {
00013 }
00014 
00015 EndLevelCommand::EndLevelCommand(List *command)
00016 {
00017 }
00018 
00019 void EndLevelCommand::execute()
00020 {
00021         exit(1);
00022 }
00023 
00024 std::string EndLevelCommand::getString()
00025 {
00026         List *command = new List();
00027         command->snoc(new Atom(_id));
00028         string commandString = command->getString();
00029         delete command;
00030 
00031         return commandString;
00032 }

Generated on Sat Apr 22 15:05:20 2006 for ProjectX by  doxygen 1.4.6-NO