diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-01-25 02:31:59 +0100 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-01-25 02:31:59 +0100 |
commit | 9ba5bdf74be00f6ed9984c161b16698a13d5eec9 (patch) | |
tree | 8a5c7bb377f64f7e098a96490fea58eec2d02dac /src/game.cpp | |
parent | b973c2c9fd718b16ad9dc6e6b082c3f17dc5c98c (diff) | |
download | mana-9ba5bdf74be00f6ed9984c161b16698a13d5eec9.tar.gz mana-9ba5bdf74be00f6ed9984c161b16698a13d5eec9.tar.bz2 mana-9ba5bdf74be00f6ed9984c161b16698a13d5eec9.tar.xz mana-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.cpp | 12 |
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; |