diff options
author | David Athay <ko2fan@gmail.com> | 2008-02-28 12:31:04 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2008-02-28 12:31:04 +0000 |
commit | fb3cbeddd6f5d59e3f83da059b2a1d4bed2cb80f (patch) | |
tree | 65e3086f341bb92154e99806f3b6255d9696ed4b /src/game.cpp | |
parent | ac2de5e0bd7dfc79e344b6724ee6a13db9994aa4 (diff) | |
download | mana-fb3cbeddd6f5d59e3f83da059b2a1d4bed2cb80f.tar.gz mana-fb3cbeddd6f5d59e3f83da059b2a1d4bed2cb80f.tar.bz2 mana-fb3cbeddd6f5d59e3f83da059b2a1d4bed2cb80f.tar.xz mana-fb3cbeddd6f5d59e3f83da059b2a1d4bed2cb80f.zip |
Work in Progress commit of guilds.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index cf6dc547..24eeb88d 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -52,6 +52,7 @@ #include "gui/debugwindow.h" #include "gui/equipmentwindow.h" #include "gui/gui.h" +#include "gui/guildwindow.h" #include "gui/help.h" #include "gui/inventorywindow.h" #include "gui/itemshortcutwindow.h" @@ -73,6 +74,7 @@ #include "net/beinghandler.h" #include "net/buysellhandler.h" #include "net/chathandler.h" +#include "net/guildhandler.h" #include "net/inventoryhandler.h" #include "net/itemhandler.h" #include "net/network.h" @@ -117,6 +119,7 @@ EquipmentWindow *equipmentWindow; //ChargeDialog *chargeDialog; TradeWindow *tradeWindow; //BuddyWindow *buddyWindow; +GuildWindow *guildWindow; HelpWindow *helpWindow; DebugWindow *debugWindow; ItemShortcutWindow *itemShortcutWindow; @@ -198,6 +201,7 @@ void createGuiWindows() //chargeDialog = new ChargeDialog(); tradeWindow = new TradeWindow; //buddyWindow = new BuddyWindow(); + guildWindow = new GuildWindow(player_node); helpWindow = new HelpWindow(); debugWindow = new DebugWindow(); itemShortcutWindow = new ItemShortcutWindow(); @@ -244,6 +248,7 @@ void destroyGuiWindows() //delete newSkillWindow; delete tradeWindow; //delete buddyWindow; + delete guildWindow; delete helpWindow; delete debugWindow; delete itemShortcutWindow; @@ -253,6 +258,7 @@ Game::Game(): mBeingHandler(new BeingHandler()), mBuySellHandler(new BuySellHandler()), mChatHandler(new ChatHandler()), + mGuildHandler(new GuildHandler()), mInventoryHandler(new InventoryHandler()), mItemHandler(new ItemHandler()), mNpcHandler(new NPCHandler()), @@ -295,6 +301,7 @@ Game::Game(): Net::registerHandler(mBeingHandler.get()); Net::registerHandler(mBuySellHandler.get()); Net::registerHandler(mChatHandler.get()); + Net::registerHandler(mGuildHandler.get()); Net::registerHandler(mInventoryHandler.get()); Net::registerHandler(mItemHandler.get()); Net::registerHandler(mNpcHandler.get()); @@ -338,7 +345,7 @@ bool saveScreenshot(SDL_Surface *screenshot) do { screenshotCount++; filename.str(""); -#if (defined __USE_UNIX98 || defined __FreeBSD__ || defined __APPLE__) +#if (defined __USE_UNIX98 || defined __FreeBSD__) filename << PHYSFS_getUserDir() << ".tmw/"; #elif defined __APPLE__ filename << PHYSFS_getUserDir() << "Desktop/"; @@ -606,6 +613,7 @@ void Game::handleInput() equipmentWindow->setVisible(false); helpWindow->setVisible(false); debugWindow->setVisible(false); + guildWindow->setVisible(false); } break; } |