summaryrefslogtreecommitdiff
path: root/src/net/network.cpp
AgeCommit message (Collapse)AuthorFilesLines
2006-12-29Improved movement smoothness by avoiding useless changes of sprite direction.Guillaume Melquiond1-1/+1
2006-11-02Network layer refactoring.Björn Steinbrink1-140/+58
2006-08-26Made the Network class a purely static interface, as there is only one instance.Guillaume Melquiond1-20/+27
2006-08-20Changed MessageHandler::handleMessage to take a reference instead of a pointer.Bjørn Lindeijer1-1/+1
Removed unused Packet class. Added stub for handling GPMSG_BEING_ENTER.
2006-08-20Fixed selection of player character and implemented sending of game and chatBjørn Lindeijer1-1/+0
server tokens. It gets you in the game (or what's left of it), but not on any map yet.
2006-08-20Added documentation and did a bit of cleanup.Bjørn Lindeijer1-64/+25
2006-08-20The Network can now connect to the three servers and affected methods now takeBjørn Lindeijer1-52/+101
the server type as a parameter. The MessageOut gained a convenience constructor (same as was added server side). The game states during login sequence have been renamed and redone in order to ensure no communication is attempted to unconnected servers. This allowed the removal of the outgoing message queue. Connecting to the account server has been moved before the login/register phase (dialogs will still need to be updated). Quite a few things are expected to be broken since I'm rather tired at the moment. I've left many TODO entries in the code.
2006-08-19Removed incoming packets queue. Messages are now processed as they come in.Bjørn Lindeijer1-22/+16
2006-08-14Completed porting of character creation/deletion, fixed some issues with ↵Eugenio Favalli1-3/+5
network code.
2006-08-13Verify the gender to prevent crashing when something is wrong with the ↵Bjørn Lindeijer1-5/+9
communication.
2006-07-31Corrected an off by one error in packet size.Bjørn Lindeijer1-4/+5
2006-07-30Updated TMW to be compatible with Guichan 0.5.0 (merged from guichan-0.5.0Bjørn Lindeijer1-2/+9
branch).
2006-07-25Fixed Linux compiling issues and merged update system fix for Windows.Bjørn Lindeijer1-4/+4
2006-07-25Switched client to use enet and modified login sequence to work with the new ↵Eugenio Favalli1-283/+72
protocol from tmwserv.
2006-03-15Fixed connection not being shut down completely in case of an error.Björn Steinbrink1-4/+7
2006-02-24Another bunch of cosmetic cleanups, ie mostly typedefs...Björn Steinbrink1-13/+4
2006-02-04Unify the various login dialogs to use LoginData.Björn Steinbrink1-10/+6
2006-01-22Make dispatchMessages actually handle more than one message per call.Björn Steinbrink1-11/+11
2006-01-22Merged NETWORK branch (includes BEING_OVERHAUL).Björn Steinbrink1-220/+285
2005-12-30Applied pcloud's patch that enhances chat window functionality while hidden.Bjørn Lindeijer1-3/+3
2005-12-30Added a new item, improved smooth login sequence, added a registration ↵Eugenio Favalli1-0/+25
window (a lot of duplicated code to be removed).
2005-10-16The connection should be non-blocking now and fixed the problem with sound ↵Eugenio Favalli1-30/+101
not being played at startup.
2005-09-27Dont crash if there is an unknown error at login.Cedric Borgese1-12/+23
Remove a bug that do x86_64 arch fail to connect to server : long is 8 bytes on that arch, use int for 4 bytes integer.
2005-09-26Now error message is displayed properly when the map server is offline.Eugenio Favalli1-0/+2
2005-09-26Added a nicer handling of when you get disconnected from the server.Eugenio Favalli1-8/+5
2005-09-22removed win2mac supportDuane Bailey1-4/+1
2005-09-19Got rid of writeSet() calls.Eugenio Favalli1-10/+0
2005-09-172005-09-17 Duane Bailey <nayryeliab@gmail.com>Duane Bailey1-2/+2
* src/netmessagein.cpp, src/net/messageout.cpp, src/net/network.cpp: changed ifdefs to ifs
2005-09-172005-09-17 Duane Bailey <nayryeliab@gmail.com>Duane Bailey1-2/+2
* src/net/messagin.cpp, src/net/messageout.cpp, src/net/network.cpp: removed replaced MACOSX defines with big endian defines * src/graphics.cpp, src/graphics.h: added screenshot method * src/game.cpp: added code, so that when one presses 'alt-p' (for picture), it takes a screenshot and saves it to a png * src/Makefile.am, config.ac: added png library stuff
2005-09-17Completed transition to use MessageOut.Eugenio Favalli1-35/+0
2005-09-14Header cleanups.Björn Steinbrink1-8/+8
2005-09-13Merged with SDL_NET_TEST branch.Björn Steinbrink1-107/+254
2005-07-11Committed header dependencies reducing patch by DoenerBjørn Lindeijer1-1/+1
2005-05-02Made config.xml, tmw.log and chatlog.txt always appear in ~/.tmw on *nix.Bjørn Lindeijer1-7/+7
2005-03-25Fix compile issues on Windows.Bjørn Lindeijer1-1/+1
2005-03-25Fix a few more log and error calls to make sure it compiles...Bjørn Lindeijer1-9/+10
2005-02-21Updates to change log, file lists, lots of doxygen comments and small changes.Bjørn Lindeijer1-1/+1
2005-02-20Added basic functionality for the new skill dialog. Class support, ↵Kiyoshi Kyokai1-1/+1
initialization, creation, deconstruction, etc. You can activate it with ALT+n.
2005-02-14Simplified logging for the sake of simplicity.Bjørn Lindeijer1-18/+21
2005-02-06Fixing inventory (still needed to add a proper way to choose items, now ↵Eugenio Favalli1-1/+6
creating a item widget)
2005-01-05Removed bugging cancel button from npc dialog and fixed npc sprites.Bjørn Lindeijer1-2/+2
2004-12-26- final touch to writing mechanism of the config systemAlexander Baldeck1-73/+73
- tmw now can read and write its ini file - some fixes in login.cpp to get it to work properly - Init method -> init - Write method -> write - minor code "beautification" in several files
2004-12-23Fixed up iptostring() memory leak.Aaron Marks1-3/+3
2004-12-11Core sprite classes of the new graphic engineEugenio Favalli1-2/+2
2004-12-10Use a consistent tab-less header throughout the code.Bjørn Lindeijer1-22/+20
2004-09-26*** empty log message ***Eugenio Favalli1-0/+177