summaryrefslogtreecommitdiff
path: root/src/client.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-22 02:20:43 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-22 02:20:43 +0300
commite71376322cbe85d59ca7d1a9d7f2a3db9ae9b914 (patch)
tree4e9f65c3ef67e6e06e1e1dca140e2d7ef6a22ff7 /src/client.h
parentb6eb53b9abdf48b88cb1978b9af97f2a879d2717 (diff)
parentacc25a7dffefb8b8b4e8022af918794d26048453 (diff)
downloadplus-e71376322cbe85d59ca7d1a9d7f2a3db9ae9b914.tar.gz
plus-e71376322cbe85d59ca7d1a9d7f2a3db9ae9b914.tar.bz2
plus-e71376322cbe85d59ca7d1a9d7f2a3db9ae9b914.tar.xz
plus-e71376322cbe85d59ca7d1a9d7f2a3db9ae9b914.zip
Merge commit 'v1.2.1.22' into stripped
Conflicts: data/fonts/mplus-1p-bold.ttf data/fonts/mplus-1p-regular.ttf src/CMakeLists.txt src/Makefile.am src/guichan/gui.cpp
Diffstat (limited to 'src/client.h')
-rw-r--r--src/client.h30
1 files changed, 28 insertions, 2 deletions
diff --git a/src/client.h b/src/client.h
index b3fc0d676..27e6249bd 100644
--- a/src/client.h
+++ b/src/client.h
@@ -2,7 +2,7 @@
* The ManaPlus Client
* Copyright (C) 2004-2009 The Mana World Development Team
* Copyright (C) 2009-2010 The Mana Developers
- * Copyright (C) 2011 The ManaPlus Developers
+ * Copyright (C) 2011-2012 The ManaPlus Developers
*
* This file is part of The ManaPlus Client.
*
@@ -131,6 +131,7 @@ enum PacketTypes
PACKET_DIRECTION = 8,
PACKET_ATTACK = 9,
PACKET_STOPATTACK = 10,
+ PACKET_ONLINELIST = 11,
PACKET_SIZE
};
@@ -162,6 +163,7 @@ public:
chooseDefault(false),
noOpenGL(false),
safeMode(false),
+ testMode(false),
serverPort(0)
{}
@@ -183,6 +185,8 @@ public:
std::string localDataDir;
std::string screenshotDir;
bool safeMode;
+ bool testMode;
+ std::string test;
std::string serverName;
short serverPort;
@@ -197,7 +201,13 @@ public:
static Client *instance()
{ return mInstance; }
- int exec();
+ void gameInit();
+
+ void testsInit();
+
+ int gameExec();
+
+ int testsExec();
static void setState(State state)
{ instance()->mState = state; }
@@ -255,6 +265,8 @@ public:
static void setFramerate(int fpsLimit);
+ static int getFramerate();
+
static bool isTmw();
void optionChanged(const std::string &name);
@@ -277,19 +289,33 @@ public:
private:
void initRootDir();
+
void initHomeDir();
+
void initConfiguration();
+
+ void initLocalDataDir();
+
+ void initConfigDir();
+
void initUpdatesDir();
+
void initScreenshotDir();
+
void initServerConfig(std::string serverName);
bool copyFile(std::string &configPath, std::string &oldConfigPath);
+
bool createConfig(std::string &configPath);
void accountLogin(LoginData *data);
void storeSafeParameters();
+ void gameClear();
+
+ void testsClear();
+
static Client *mInstance;
Options mOptions;