summaryrefslogtreecommitdiff
path: root/src/net/tmwa/tradehandler.cpp
AgeCommit message (Collapse)AuthorFilesLines
2025-03-01Further Download related cleanupsThorbjørn Lindeijer1-3/+3
* Moved the memory buffer and mutex handling into the Download class to simplify the code updating the UI in ServerDialog and UpdaterWindow. * Replaced the "DownloadUpdate" callback function with simply polling Download::getState, since in the end polling was happening anyway. This changes also fixes handling of the Enter key while downloading updates, which no longer cancels the update process. Also, when pressing Escape while things are being downloaded, the first press cancels and only the second press goes back to login. Introduced a ThreadSafe template class, which wraps any type and makes it only accessible by calling lock(). This ensures the data is never accessed without locking the relevant mutex.
2024-10-29Turned the PlayerRelation struct into an enum classThorbjørn Lindeijer1-2/+2
Less code to achieve the same thing (strong type and namespaced values). The permissions related values have been moved to a PlayerPermissions struct, which is also a bit less confusing.
2024-10-23Changed SERVER_NOTICE macro to inline functionThorbjørn Lindeijer1-24/+26
Seems to be no point in using a macro here.
2024-01-26Apply C++11 fixitsThorbjørn Lindeijer1-3/+3
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using
2024-01-24Add error for non tradable items.Andrei Karas1-0/+5
2012-05-05Removed the shared base classes of MessageIn and MessageOutThorbjørn Lindeijer1-3/+3
There wasn't a whole lot gained by sharing a common base class, and it makes extending the manaserv Message{In,Out} classes with a debugging mode unnecessarily complicated. Reviewed-by: Yohann Ferreira
2012-01-28Moved mTrading into the TradeHandlerThorbjørn Lindeijer1-6/+6
Really only the trade handler is concerned about whether the player is currently in a trade or not. Reviewed-by: Erik Schilling
2012-01-26Updated copyrights to 2012Thorbjørn Lindeijer1-1/+1
2012-01-16Renamed some file names for consistency with the class namesThorbjørn Lindeijer1-1/+1
This was already done by ManaPlus. It's a good idea anyway and it makes comparing the code a little easier. Reviewed-by: Yohann Ferreira
2011-04-09Removed the Mana namespaceThorbjørn Lindeijer1-1/+1
It's just an annoyance when it's only applied to a few classes. Either we place everything in this namespace or nothing, and at the moment I don't see any rationale for placing everything in a Mana namespace. Acked-by: Jared Adams
2011-04-09Moved Events to Mana::Event::TypeThorbjørn Lindeijer1-1/+1
Acked-by: Jared Adams
2010-11-11Replace Event names with enums instead of stringsChuck Miller1-1/+1
2010-08-26Merged testing branch into master.Yohann Ferreira1-4/+6
2010-08-16Move more to the event systemJared Adams1-1/+1
Most of Net::InventoryHandler is now done through events. The ActorSpriteManager was also replaced by events. A few odds and ends were taken care of too. Reviewed-by: Bertram
2010-08-12Simplify working with the event systemJared Adams1-1/+1
EventManager has been merged into Event, with some new convinience methods added. Reviewed-by: Chuck Miller
2010-07-18Add event.h to eventmanager.h and listener.h to reduce total number of includesChuck Miller1-1/+0
You'll have to include it anyways 99% of the time
2010-07-18Move the majority of the netcode's server messages to the event systemChuck Miller1-21/+19
There is still a good way to go, but this should get us started Reviewed-by: Jared Adams
2010-07-18Move more from LocalPlayer to PlayerInfoJared Adams1-7/+8
Also cleanup PlayerInfo a bit. Reviewed-by: Chuck Miller
2010-04-17Changed eAthena protocol name to TmwAthena and changed the config files ↵Bertram1-0/+288
accordingly. This makes room for the actual eAthena protocol future inclusion.