summaryrefslogtreecommitdiff
path: root/src/net/ea/inventoryhandler.cpp
AgeCommit message (Collapse)AuthorFilesLines
2009-04-05Implement TMWServ's NpcHandlerJared Adams1-2/+2
2009-04-06Use a namespace to keep apart implementations of network handlersBjørn Lindeijer1-0/+4
Since we'll have three "InventoryHandler" classes, etc. this shows an example of how we can compile with all of them at the same time using namespaces. We'll have: Net::InventoryHandler - the interface EAthena::InventoryHandler - the eAthena implementation TmwServ::InventoryHandler - the tmwserv implementation Maybe we'll find a better way later, but for now this works. I'm not convinced yet that using namespaces is better than just using longer class names like EAthenaInventoryHandler.
2009-04-02Some cleanup and renamingBjørn Lindeijer1-2/+12
* Removed superfluous 'virtual' keyword in *Handler implementations * Renamed NPCHandler to NpcHandler * Renamed InvyHandler to InventoryHandler * Made all *Handler interface methods pure virtual * Used forward declarations in net.h * Renamed {start,end}Shoping to {start,end}Shopping
2009-04-02Fixed an inventory offset that I missed previouslyBjørn Lindeijer1-3/+3
When confirming item add for trade, the inventory offset was not substracted from the item index.
2009-04-01Make eAthena's inventory handlerJared Adams1-0/+63
Also cleanup some related #ifdefs in LocalPlayer.
2009-03-27Moved the inventory and storage offset handling into netcodeBjørn Lindeijer1-39/+65
No need to complicate the item containers and inventory classes with a silly offset used by the eAthena server. Also fixed the logToStandardOut option by reading it from the config after the configuration has been initialized.
2009-03-27Clean up chat and chat tabs some moreJared Adams1-1/+2
2009-03-27Include statement cleanup for net/ea/ directory.Bjørn Lindeijer1-16/+18
2009-03-26Major clean up of ChatTab handlingJared Adams1-3/+3
ChatTabs now manage their own adding/removal from the chat window, which lost most of it's chat related messages. Whisper handling is stil done by the ChatWindow, but it no longer manages any other tabs. ChannelTab handling is now the sole responsability of the Channels they are attached to. The general tab is handled by Game.
2009-03-25Merge branch 'eathena/master'Bjørn Lindeijer1-32/+73
Conflicts: A lot of files.
2009-03-22Merged the tmwserv client with the eAthena clientBjørn Lindeijer1-0/+227
This merge involved major changes on both sides, and as such took several weeks. Lots of things are expected to be broken now, however, we now have a single code base to improve and extend, which can be compiled to support either eAthena or tmwserv. In the coming months, the plan is to work towards a client that supports both eAthena and tmwserv, without needing to be recompiled. Conflicts: Everywhere!