summaryrefslogtreecommitdiff
path: root/src/net/manaserv/playerhandler.cpp
AgeCommit message (Collapse)AuthorFilesLines
2010-02-21Made tick counter and framerate limiter work during login sequenceThorbjørn Lindeijer1-3/+1
Much code was moved from main() to the new Client::exec(). This new event loop now integrates with the Game class, so that the tick counter and framerate limiter apply universally. The Client class is also responsible for some things that used to be global variables. Mantis-issue: ...
2010-02-22Modify copyright headersFreeyorp1-1/+2
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer1-4/+3
2010-02-19Fixed a crash when trying to switch serversThorbjørn Lindeijer1-2/+2
Ownership of the charInfo global variable wasn't well defined. It was being locked, unlocked and generally modified from a lot of places, and somewhere in this mess it ended up crashing when switching servers. Now the CharHandler instances, for eAthena and manaserv respectively, own this list of characters. A new class, Net::Character wraps up the slot index in combination with the player dummy. The list is passed on to the CharSelectDialog each time it changes. Both related and unrelated cleanups were made as well. Reviewed-by: Jared Adams
2010-02-13Make NPC dialogs instance instead of globalJared Adams1-43/+0
This change allows players to talk to multiple NPCs at a time (if the server agrees). Manaserv's netcode allows multiple commerce instances too. eAthena's is limited to one commerce instance, due to protocol limitations.
2010-02-09Got successfully rid of tile width/height fallback values as asked by Jaxad.Bertram1-5/+5
But I added some logs when speed and other actions where refused due to game/map uninitialized. This could help.
2010-02-09Separated fallback defaults for tile width and height.Bertram1-2/+2
2010-02-09Made the Beings' logic be able to handle any tile height/width.Bertram1-1/+1
This is the First step to get rid of most hardcoded 32 values.
2010-02-07Updated Copyright year to 2010!Bertram1-1/+1
Also added the update copyright tool from the Wormux Team. ( And not forgetting credit's due. :P )
2010-02-06Merged the Engine class into the Game classThorbjørn Lindeijer1-4/+6
There was little point in keeping the Engine class separate. It wasn't an engine at all, but only kept track of the currently active map, a job more suitable for the Game class anyway.
2010-02-03Factorized speed translation from tile per seconds to pixels per ticks.Bertram1-3/+7
2010-02-01Reduced CPU consumption by setting speed per ticks value only once.Bertram1-1/+5
2010-01-31Unify eAthena and manaserv support in to one build.Daniel Bradshaw1-3/+7
Finish support for server types in the server dialog. Using the new server type function, strip out ifdefs, replacing them with if blocks for later merging in smaller atomic commits. Remove any remaining references to the support defs, including in build system.
2010-01-12Standardize header orderJared Adams1-7/+7
Also remove some extra new lines and fix eAthena's PartyTab define guards.
2010-01-10Remove some support ifdefsJared Adams1-2/+1
2010-01-10Change code styleAndrei Karas1-2/+4
2009-12-02Centralize netcode handler instances in NetJared Adams1-1/+1
Instead of each netcode making the global variables and Net referencing them, Net now makes them and the netcodes reference them. Also remove an innappropriate ChatHandler reference from eA's AdminHandler.
2009-11-03Simplify ManaServ netcode some moreJared Adams1-11/+16
2009-11-03Remove more _SUPPORT ifdefs and do some cleanupJared Adams1-11/+21
2009-10-24REplace instances of TMW with ManaJared Adams1-0/+411