summaryrefslogtreecommitdiff
path: root/src/game.cpp
AgeCommit message (Collapse)AuthorFilesLines
2006-05-03FPS limit can now be set in setup dialog. Default value for FPS is 50. (Code ↵Eugenio Favalli1-5/+11
based on peoro's patch).
2006-05-03Increased fps limit granularity and cleaned some code, fixed some xml ↵Eugenio Favalli1-3/+18
library name in Dev-C++ project file, switched version to 0.0.20.
2006-03-19Removed some useless null pointer checks.Björn Steinbrink1-5/+2
2006-03-09Made all local action listeners structs and moved them into anonymous ↵Björn Steinbrink1-7/+9
namespaces.
2006-03-09Made all class members named like mClassMember.Björn Steinbrink1-15/+15
2006-03-09Use std::auto_ptr in some places.Björn Steinbrink1-34/+22
2006-02-07Made the being directions being stored in a bitfield.Björn Steinbrink1-101/+53
2006-02-06Added a Joystick class.Björn Steinbrink1-93/+28
2006-02-06Added a FloorItemManager class.Björn Steinbrink1-4/+12
2006-02-01Created a Game class.Björn Steinbrink1-62/+71
2006-02-01Made the OkDialog and ConfirmDialog classes proxies for their buttons' ↵Björn Steinbrink1-2/+2
events. Removed the RequestTradeWindow class, replaced with a plain ConfirmDialog. Fixed a memory leak along the way.
2006-01-26Moved some setup code out of the game loop into the setup functions. Setup ↵Björn Steinbrink1-30/+48
functions are now called from the outside.
2006-01-22Make dispatchMessages actually handle more than one message per call.Björn Steinbrink1-3/+1
2006-01-22Merged NETWORK branch (includes BEING_OVERHAUL).Björn Steinbrink1-1307/+137
2006-01-09Fixed canceled/cancelled inconsistency.Eugenio Favalli1-3/+3
2006-01-07Removed --skipupdate option from Dev.Cpp project file, splitted the setup ↵Eugenio Favalli1-9/+10
window into 3 tabs and added a joystick calibration tool.
2006-01-05Remove some useless code.Björn Steinbrink1-8/+3
2006-01-04FreeBSD Fixes from Icy.Yohann Ferreira1-1/+1
2006-01-03Enabled some /commands.Eugenio Favalli1-1/+10
2006-01-03Really disabled /commands and added proper message when logging in and banned.Eugenio Favalli1-24/+24
2005-12-29Removed duplicate pick up codeBjörn Steinbrink1-13/+4
2005-12-29Added popup support to the Gui class. Moved all mouse input handling into ↵Björn Steinbrink1-135/+0
the Gui class.
2005-12-15Fixed setup window behaviour.Eugenio Favalli1-8/+1
2005-10-16Rename {read,write}{Byte,Short,Long} to {read,write}Int{8,16,32}.Björn Steinbrink1-238/+238
2005-10-16Use the ResourceManager to get spritesets.Björn Steinbrink1-1/+2
2005-10-16The connection should be non-blocking now and fixed the problem with sound ↵Eugenio Favalli1-1/+1
not being played at startup.
2005-10-13Make sure Alt shortcuts don't appear in chatbox.Bjørn Lindeijer1-0/+3
2005-10-10Introduced new window shortcuts and corrected position of job xp bar. AlsoBjørn Lindeijer1-78/+49
corrected strange commit by ElvenProgrammer.
2005-10-10Always compile with debug window and hide it on startup. Also added fading outBjørn Lindeijer1-17/+6
effect on damage font (only works in OpenGL).
2005-10-09Corrected the white browser font bug and the black hp/mp bug which were ↵Yohann Ferreira1-3/+24
linked. Added a debug window.
2005-10-09Fixed player names overlapping other players and more cleanups.Bjørn Lindeijer1-4/+3
2005-10-09Fixed display of [TARGET] and Alt keys for toggling windows.Bjørn Lindeijer1-3/+2
2005-10-09Fixed map switch to crash the client.Bjørn Lindeijer1-18/+5
2005-10-09* Made Sprite into an interface implemented by both FloorItem and Being, whichBjørn Lindeijer1-47/+43
hook themselves into the map on construction. The improved fringe layer is working as expected now. * Made sure TMW compiles without warnings even when using "-Wconversion -Wshadow -Wcast-qual -Wwrite-strings -ansi -pedantic", lots of cleanups. * Added two new small tilesets that contain the desert tiles that are twice and three times the height of a normal tile. One well in new_3-1 has been converted to use the new double tiles for testing purposes.
2005-10-07Modified finding NPC as by timonator's suggestion in order to allow NPCs to beBjørn Lindeijer1-1/+1
clicked on their heads too. Also made start to tile engine improvement by adding the Sprite class that is now used by the floor items for being displayed on the map. Finally added documentation to Item class and splitted out Properties class from Map.
2005-10-06Transition to SDL integer types. Some int vs. long issues fixed. Return NULL ↵Björn Steinbrink1-234/+234
when requesting an invalid inventory item.
2005-10-04Move to top the requested windows. Also corrected the default win pos for ↵Yohann Ferreira1-0/+9
inventory and equipment.
2005-10-02Allow to select a monster as target with RSHIFT+CRTLMatthias Hartmann1-1/+1
2005-09-30Change an hardcoded type to a templated type to avoid architecture problems.Cedric Borgese1-1/+1
2005-09-30Avoid a warning on x86_64 arch because std::string:npos is a long and it ↵Cedric Borgese1-1/+1
differs from int on that arch.
2005-09-29Improved a lot windows reset to default size and pos. Also corrected a few ↵Yohann Ferreira1-19/+0
the default win position. And moved the setposition from game to each win, to clarify the code.
2005-09-28Save and load X, Y, Height, and Width to useful wins.Yohann Ferreira1-2/+12
2005-09-26Added a nicer handling of when you get disconnected from the server.Eugenio Favalli1-4/+4
2005-09-23Merged most of the changes in biggeruniverse's second memory cleanup patch.Bjørn Lindeijer1-0/+3
2005-09-20Fixed use of Enter for closing death and weight notices, and changed glColor4fBjørn Lindeijer1-16/+9
to glColor4ub.
2005-09-19Mostly code cleanups related to commits in past two days.Bjørn Lindeijer1-106/+78
* Replaced custom function FIND_PATH with AC_PATH_PROG, used for finding sdl-config. * Removed -lphysfs from Makefile.am which should be added automatically already. * Actually show the overweight message, and only show it once for each time weight goes above half the max weight. * Surfaces passed to SDL_BlitSurface shouldn't be locked according to the manual. * Minimal fps limit is now 10 fps. * Reverted change by Bertram that hardcoded the updatehost value.
2005-09-19Got rid of writeSet() calls.Eugenio Favalli1-18/+7
2005-09-19Removed useless flush() calls.Eugenio Favalli1-1/+0
2005-09-18Increased joypad tolerance which is safer and simplifyed joypad state reset ↵Eugenio Favalli1-7/+5
code.
2005-09-18 Applyed biggeruniverse's patch to fix memory leaks.Eugenio Favalli1-4/+8