summaryrefslogtreecommitdiff
path: root/src/game.cpp
AgeCommit message (Collapse)AuthorFilesLines
2009-04-15Moved tile animations outside of the clock time polling loop. There's noTametomo1-2/+4
need to poll the CPU for them, when they already can compensate for missed clock ticks. Signed-off-by: Tametomo <irarice@gmail.com> Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
2009-04-13Revert forced FPS limitBjørn Lindeijer1-6/+2
Don't force an FPS limit when people don't want it. Just default to limit on 60 fps instead, but do allow it to be disabled. This reverts part of commit 4b7755fcae0de15951c508ec034158007c8b6cf3.
2009-04-13Fix an input bugJared Adams1-1/+1
2009-04-12Fix ChatTab changing to need alt when chattingJared Adams1-9/+13
2009-04-11Remove more support #ifdefsJared Adams1-49/+9
2009-04-09Remove a segfault when exiting the clientJared Adams1-3/+0
2009-04-07Make GeneralHandlers for both networksJared Adams1-75/+13
Also make Net::LogoutHandler
2009-04-06Add TMWServ's SkillHandlerJared Adams1-3/+5
Also namespace both Player- and TradeHandlers
2009-04-05Implement TMWServ's Admin-, Chat-, and MapHandlersJared Adams1-3/+7
2009-04-05Implement TMWServ's NpcHandlerJared Adams1-1/+5
2009-04-06Use a namespace to keep apart implementations of network handlersBjørn Lindeijer1-3/+8
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 Lindeijer1-2/+2
Initialization order, return values, unused variables, missing enumerator.
2009-04-02Make eAthena's CharHandlerJared Adams1-5/+2
Also add ping to MapHandler and fill in eAthena's MapHandler's connect method.
2009-04-02Partially fixed compilation for TMWServ. src/gui/buysell.cpp still needs to ↵Philipp Sehmisch1-1/+1
be fixed.
2009-04-02Some cleanup and renamingBjørn Lindeijer1-1/+1
* 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 Adams1-0/+3
Also expand aAthena's AdminHandler
2009-04-01Create a few more handlers for eAthenaJared Adams1-1/+1
Map, chat, and admin have been finished (to the degree they handle all existing cases).
2009-03-29Fix up eAthena party handling some moreJared Adams1-1/+8
2009-03-28Clean up eAthena party handling a bit moreJared Adams1-13/+4
2009-03-28Allow changing chat tabs with the keyboardJared Adams1-0/+11
Defaults to: [ for previous tab ] for next tab
2009-03-28Removed a lot of useless isVisible() checksBjørn Lindeijer1-1/+0
The draw() method of a widget isn't called when a widget is not visible.
2009-03-27FIx loading of initial map under eAthenaJared Adams1-0/+1
2009-03-27Clean up some ifdefs and start cleanup of partiesJared Adams1-3/+2
2009-03-27Clean up of most of the Network pointersBjørn Lindeijer1-28/+6
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 Lindeijer1-2/+1
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-27Removed unnecessary parenthesis on constructorsBjørn Lindeijer1-11/+11
2009-03-26Major clean up of ChatTab handlingJared Adams1-9/+11
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-26Move ChatWindow over to ChatTabsJared Adams1-0/+3
TMWServ compilation is likely not functional after this, I didn't check. THe next commit will address that.
2009-03-25A host of code style fixesBjørn Lindeijer1-1/+1
Mostly putting & and * in the right place and making some getters const.
2009-03-25Merge branch 'eathena/master'Bjørn Lindeijer1-91/+93
Conflicts: A lot of files.
2009-03-23Merge branch 'aethyra/master'Bjørn Lindeijer1-4/+7
Conflicts: Many files.
2009-03-23Move all TMWServ-specific code to net/tmwservJared Adams1-12/+17
Also fix several instances where the same net handler was being used for both servers, and a few other related oddities.
2009-03-23Merge eA's command handling into CommandHandlerJared Adams1-9/+12
Also drop Aethyra's custom magic code
2009-03-22Fix chat under eAthenaJared Adams1-4/+4
2009-03-22Merged the tmwserv client with the eAthena clientBjørn Lindeijer1-35/+246
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-19Throttle framerates down to save CPU cycles. Now that we're getting highIra Rice1-2/+5
framerates in OpenGL even on older hardware, this should be done to conserve on CPU usage, rather than stressing it with more frames than the monitor can render. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-15Fix some mem leaksJared Adams1-1/+2
2009-03-11Added a new Popup class, which overall is functionally similar to theIra Rice1-2/+2
Window class, but stripped down to the bare essential functionality to just draw and position them. This means no resizing, no close buttons, no ability to move them, etc. This should help reduce the overhead in drawing speech bubbles, as well as other popup type dialogs, but is also not a drop in replacement for the Window class as well. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-11Moved the Skin class outside of the Window class, in order to allowIra Rice1-1/+0
other widget containers to use skins as well, and to make it easier to extend later. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-10Delete local player earlier and fix a rare crashJared Adams1-0/+1
Rare crash is in KeyboardConfig, where the active keys array is accessed before it's initialized. Also remove some debug prints that made it into a previous commit.
2009-03-10Delete local player earlier and fix a rare crashJared Adams1-1/+1
Rare crash is in KeyboardConfig, where the active keys array is accessed before it's initialized. Also remove some debug prints that made it into a previous commit.
2009-03-10Remove some SetupWindow weirdnessJared Adams1-2/+0
2009-03-10Fix some mem leaksJared Adams1-3/+2
2009-03-10Remove some SetupWindow weirdnessJared Adams1-2/+0
2009-03-10Fix some mem leaksJared Adams1-2/+3
2009-03-10Fix some mem leaksJared Adams1-2/+3
2009-03-10Start NPC dialogs out hiddenJared Adams1-0/+5
2009-03-10Start NPC dialogs out hiddenJared Adams1-0/+5
2009-03-09Add an interface for eAthena's storage systemJared Adams1-0/+5
2009-03-08Add an interface for eAthena's storage systemJared Adams1-0/+5