summaryrefslogtreecommitdiff
path: root/src/client/GameSave.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-12 21:32:57 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-12 21:32:57 (GMT)
commit8ca27520a437bf33fb374d5a88731605cd3739e7 (patch)
treef081511e0f26946016529382c68000d3c6ea5a3a /src/client/GameSave.h
parentca7c0e7370542a97dd03210e13ec2c56679d5ca4 (diff)
downloadpowder-8ca27520a437bf33fb374d5a88731605cd3739e7.zip
powder-8ca27520a437bf33fb374d5a88731605cd3739e7.tar.gz
Use forward declarations more to avoid excessive includes
Diffstat (limited to 'src/client/GameSave.h')
-rw-r--r--src/client/GameSave.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/client/GameSave.h b/src/client/GameSave.h
index 2c86ea1..7f8e7fc 100644
--- a/src/client/GameSave.h
+++ b/src/client/GameSave.h
@@ -12,17 +12,18 @@
#include <string>
#include "Config.h"
#include "Misc.h"
+
#include "simulation/Sign.h"
#include "simulation/Particle.h"
-using namespace std;
+//using namespace std;
-struct ParseException: public exception {
+struct ParseException: public std::exception {
enum ParseResult { OK = 0, Corrupt, WrongVersion, InvalidDimensions, InternalError, MissingElement };
- string message;
+ std::string message;
ParseResult result;
public:
- ParseException(ParseResult result, string message_): message(message_), result(result) {}
+ ParseException(ParseResult result, std::string message_): message(message_), result(result) {}
const char * what() const throw()
{
return message.c_str();