summaryrefslogtreecommitdiff
path: root/src/net
AgeCommit message (Collapse)AuthorFilesLines
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.
2009-03-25Merge branch 'origin/master'Bjørn Lindeijer2-0/+102
Conflicts: .mailmap
2009-03-25Merge branch 'eathena/master'Bjørn Lindeijer14-133/+188
Conflicts: A lot of files.
2009-03-24Forgot to add eAthena's item handlerJared Adams2-0/+102
2009-03-23Merge branch 'aethyra/master'Bjørn Lindeijer2-3/+2
Conflicts: Many files.
2009-03-23Move all TMWServ-specific code to net/tmwservJared Adams56-129/+129
Also fix several instances where the same net handler was being used for both servers, and a few other related oddities.
2009-03-23Remove the CHATSKILL structJared Adams1-9/+0
2009-03-23Remove extra function for skill messagesJared Adams1-95/+89
2009-03-22Move handling of eA skill messages to SkillHandlerJared Adams1-1/+129
2009-03-22Fixed map name saving in the engine class. Somehow, the const getsIra Rice1-3/+2
overridden after map_path, so the saved map path needs to get saved before that. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-22Merged the tmwserv client with the eAthena clientBjørn Lindeijer91-2507/+7819
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!
2009-03-18Fix up the NPC interraction widnows a bitJared Adams2-9/+3
2009-03-18Fix up the NPC interraction widnows a bitJared Adams2-9/+3
2009-03-10Extended hit type handlingsniper1-6/+9
The client can now differentiate between the following hit types: - hit (normal) - critical (full attack) - multi (more than one hit at once, currently not used) - reflect (reflected damage, currently not used) - flee (dodging criticals) The Being's showCrit method is now merged into takeDamage. Being's takeDamage and handleAttack now both get the opponent, the amount of damage and the attack type as parameter.
2009-03-10Made it so that when windows load previous states, they are neverIra Rice1-2/+1
smaller than the minimum width and height (a check that should have been enforced in the first place), as well as modified the NPC list and text dialogs to remember where they were when they were moved or resized last. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-10Extended hit type handlingsniper1-6/+9
The client can now differentiate between the following hit types: - hit (normal) - critical (full attack) - multi (more than one hit at once, currently not used) - reflect (reflected damage, currently not used) - flee (dodging criticals) The Being's showCrit method is now merged into takeDamage. Being's takeDamage and handleAttack now both get the opponent, the amount of damage and the attack type as parameter.
2009-03-10Expand the scope where item links workKess Vargavind1-1/+1
This patch makes item links work in any chatLog() message, not only chatSend() as before. I enabled it for the "You picked <nr> <item>" message by explicitly adding [] around the item name in the string.
2009-03-10Expand the scope where item links workKess Vargavind1-1/+1
This patch makes item links work in any chatLog() message, not only chatSend() as before. I enabled it for the "You picked <nr> <item>" message by explicitly adding [] around the item name in the string.
2009-03-09Send the correct packet for the NPC close buttonJared Adams2-8/+11
Both packets do the same, but we should be explicit anyways. Also, seperate out NPC client packets.
2009-03-09Send the correct packet for the NPC close buttonJared Adams2-9/+11
Both packets do the same, but we should be explicit anyways. Also, seperate out NPC client packets.
2009-03-09Add an interface for eAthena's storage systemJared Adams2-26/+60
2009-03-08Forgot the actual storage windowJared Adams2-7/+8
2009-03-08Add an interface for eAthena's storage systemJared Adams1-20/+53
2009-03-05Got rid of Sint{8,16,32} and Uint32 for being IDBjørn Lindeijer10-34/+34
Using unsigned rarely makes sense, especially when the server doesn't use it either. Other uses of unsigned should be reviewed. In all other cases, int is the fastest integer type on any architecture. Using 8 or 16 bits can basically only be a memory optimization.
2009-03-06Got rid of Sint{8,16,32} and Uint32 for being IDBjørn Lindeijer10-34/+34
Using unsigned rarely makes sense, especially when the server doesn't use it either. Other uses of unsigned should be reviewed. In all other cases, int is the fastest integer type on any architecture. Using 8 or 16 bits can basically only be a memory optimization.