summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-01-25 02:31:59 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-01-25 02:31:59 +0100
commit9ba5bdf74be00f6ed9984c161b16698a13d5eec9 (patch)
tree8a5c7bb377f64f7e098a96490fea58eec2d02dac /src/game.cpp
parentb973c2c9fd718b16ad9dc6e6b082c3f17dc5c98c (diff)
downloadmana-client-9ba5bdf74be00f6ed9984c161b16698a13d5eec9.tar.gz
mana-client-9ba5bdf74be00f6ed9984c161b16698a13d5eec9.tar.bz2
mana-client-9ba5bdf74be00f6ed9984c161b16698a13d5eec9.tar.xz
mana-client-9ba5bdf74be00f6ed9984c161b16698a13d5eec9.zip
Added a child class to the equipment window specialized for tAthena.
(As requested by Thorbjorn.) Now the foundation to set up per-protocol equipment display is ready.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 92005dba..4da19bf8 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -155,7 +155,17 @@ static void createGuiWindows()
minimap = new Minimap;
chatWindow = new ChatWindow;
tradeWindow = new TradeWindow;
- equipmentWindow = new EquipmentWindow(PlayerInfo::getEquipment());
+ switch (Net::getNetworkType())
+ {
+ case ServerInfo::TMWATHENA:
+ equipmentWindow = new TmwAthena::TaEquipmentWindow(
+ PlayerInfo::getEquipment());
+ break;
+ case ServerInfo::MANASERV:
+ default:
+ equipmentWindow = new EquipmentWindow(PlayerInfo::getEquipment());
+ break;
+ }
statusWindow = new StatusWindow;
inventoryWindow = new InventoryWindow(PlayerInfo::getInventory());
skillDialog = new SkillDialog;