summaryrefslogtreecommitdiff
path: root/src/net
AgeCommit message (Collapse)AuthorFilesLines
2009-04-06Moved many MessageOut constructions aroundBjørn Lindeijer11-251/+126
No real point in having these abstracted away twice. We're using network interfaces now instead of functions structured in namespaces.
2009-04-06Fixed compile warning about initialization orderBjørn Lindeijer1-1/+3
Also made CMakeLists.txt consistent with Makefile.am regarding the BuySellDialog.
2009-04-06Remove unneeded includesJared Adams1-17/+0
2009-04-06Add TMWServ's SkillHandlerJared Adams14-22/+169
Also namespace both Player- and TradeHandlers
2009-04-05Implement TMWServ's Admin-, Chat-, and MapHandlersJared Adams15-31/+404
2009-04-05Implement TMWServ's NpcHandlerJared Adams11-33/+140
2009-04-06Use a namespace to keep apart implementations of network handlersBjørn Lindeijer5-4/+27
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-05Fixed compile warningsBjørn Lindeijer4-22/+28
Initialization order, return values, unused variables, missing enumerator.
2009-04-03Fill in TMWServ's TradeHandlerJared Adams10-5/+194
Also started temparary implementation of the Net::getXHandler() methods and started using them.
2009-04-02Start TMWServ's PlayerHandler and InventoryHandlerJared Adams7-5/+152
2009-04-02Make eAthena's CharHandlerJared Adams8-11/+78
Also add ping to MapHandler and fill in eAthena's MapHandler's connect method.
2009-04-02Fix inventory offset when populating sell dialogJared Adams1-1/+1
2009-04-02Don't use assertions in MessageInBjørn Lindeijer2-61/+57
Not nice if some data corruption would cause the client to crash unnecessarily.
2009-04-02Some cleanup and renamingBjørn Lindeijer22-198/+248
* 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-02Add some missing handler for eAthenaJared Adams6-6/+196
Also expand aAthena's AdminHandler
2009-04-02Fixed an inventory offset that I missed previouslyBjørn Lindeijer2-5/+6
When confirming item add for trade, the inventory offset was not substracted from the item index.
2009-04-01Fix "unnamed" monstersJared Adams1-2/+6
2009-04-01Fix sending chat to eAthenaJared Adams1-2/+2
2009-04-01Forgot a few files for eAthena's admin handlerJared Adams2-0/+161
2009-04-01Create a few more handlers for eAthenaJared Adams6-124/+105
Map, chat, and admin have been finished (to the degree they handle all existing cases).
2009-04-01Make eAthena's inventory handlerJared Adams3-4/+83
Also cleanup some related #ifdefs in LocalPlayer.
2009-04-01Build eAthena's PlayerHandlerJared Adams3-5/+127
2009-03-31Implement a few more handlers for eAthenaJared Adams11-149/+175
Party, skill, and trade handlers made for eAthena.
2009-03-31Make network handler functions virtualJared Adams29-208/+220
2009-03-31Add first draft of net handlersJared Adams16-1/+817
eAthena NPC handler has been implemented and is being used for NPC interraction.
2009-03-29Fix up eAthena party handling some moreJared Adams6-157/+167
2009-03-28Clean up eAthena party handling a bit moreJared Adams7-90/+67
2009-03-28Remove #ifdefs related to Being creationJared Adams2-7/+41
Also move the Monster type offset handling into the eAthena netcode.
2009-03-28Removed a lot of useless isVisible() checksBjørn Lindeijer1-1/+2
The draw() method of a widget isn't called when a widget is not visible.
2009-03-27Moved the inventory and storage offset handling into netcodeBjørn Lindeijer3-54/+98
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 some ifdefs and start cleanup of partiesJared Adams6-4/+395
2009-03-27Clean up of most of the Network pointersBjørn Lindeijer1-2/+0
Now that messages can be sent without requiring a pointer to the Network instance, a lot of cleanup was possible.
2009-03-27Made eAthena's Network class statically accessibleBjørn Lindeijer4-12/+18
Now the instance doesn't need to be passed into the MessageOut class anymore. Expect a lot of cleanup in the next commit.
2009-03-27Clean up chat and chat tabs some moreJared Adams9-11/+16
2009-03-27Fixed inventory window. Not resizable though.Bjørn Lindeijer2-4/+4
Resizing of the inventory window may come back later. Also did some more code cleanups, moving defines to enums, getting rid of eAthena-specific offset handling (to be done in the network layer), etc. Mantis-issue: 666
2009-03-27Fixed position of dots on minimapBjørn Lindeijer1-0/+1
Also made mPx and mPy private and synchronize with mPos on setPosition(). The side effects of setting destination and clearing the path have been removed from setPosition(). Only the tmwserv PlayerHandler seemed to rely on that feature. Mantis-issue: 672
2009-03-27Fix some problems with NPC dialogsJared Adams1-0/+2
NPCListDialog couldn't be opened because of infinite recursion, and it and NPCTextDialog both had resize bugs.
2009-03-27Merge branch 'aethyra/master'Bjørn Lindeijer1-5/+4
Conflicts: src/beingmanager.cpp src/gui/confirm_dialog.cpp src/gui/inventorywindow.cpp src/gui/inventorywindow.h src/gui/label.cpp src/gui/label.h src/gui/popup.cpp src/gui/popup.h src/gui/scrollarea.cpp src/gui/skin.cpp src/gui/skin.h src/gui/speechbubble.cpp src/gui/window.cpp src/gui/window.h src/localplayer.h src/main.cpp src/net/ea/playerhandler.cpp src/resources/ambientoverlay.h src/resources/dye.cpp src/resources/imagewriter.cpp src/resources/itemdb.cpp src/shopitem.cpp
2009-03-27Fixed some compiler warningsBjørn Lindeijer1-5/+4
Fixed a faulty == statement that should have been an assignment and a mismatched 'else' block.
2009-03-27Moved choosing of random death message to a functionBjørn Lindeijer1-55/+58
Also dynamically calculated the size of the array, so that you don't have to count the messages manually. :P
2009-03-27Changed the includes for the net/tmwserv/ directoryBjørn Lindeijer48-281/+285
2009-03-27Include statement cleanup for net/ea/ directory.Bjørn Lindeijer32-239/+264
2009-03-26Major clean up of ChatTab handlingJared Adams12-68/+69
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-26Add whisper tabs for TMWServJared Adams1-6/+1
2009-03-26Add WhisperTabsJared Adams1-7/+4
2009-03-27Compile warning fixesBjørn Lindeijer1-1/+1
Mostly unsigned/signed mismatches and an unused variable.
2009-03-26Some code cleanups (mostly reducing how many calculations need to beIra Rice1-3/+3
done in certain statements, rearranging arguements to make them look cleaner, or overall making the code slightly more flexible) Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-26Add ChannelTab for chat channelsJared Adams2-9/+14
This fixes TMWServ compilation form the previous commit.
2009-03-26Fixes to file headers and header guardsBjørn Lindeijer46-223/+223
Mostly removal of branding for tmwserv related files, as was done for the eAthena client before.
2009-03-25A host of code style fixesBjørn Lindeijer3-4/+4
Mostly putting & and * in the right place and making some getters const.