summaryrefslogtreecommitdiff
path: root/src/game.cpp
AgeCommit message (Collapse)AuthorFilesLines
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
2005-09-182005-09-18 Duane Bailey <nayryeliab@gmail.com>Duane Bailey1-1/+23
* src/game.cpp: added code so that wehn someone starts carrying more then half thier max weight.
2005-09-18Move the writing logic out of the Graphics class once again... Some cleanups ↵Björn Steinbrink1-2/+36
in the screenshot filename selection code.
2005-09-18Removed unuseful comments. Made the saveScreenshots() function return a ↵Yohann Ferreira1-1/+0
correct value.
2005-09-18Made the saveScreenShot makes its screenshots under user home dir in *nices, ↵Yohann Ferreira1-8/+3
made it more C++ way to avoid a leak, and made it check for existence of a file with same name before writing; In that case the screenshot's number is incremented until it finds an adequate name.
2005-09-18Changed Graphics::saveScreenshot to Graphics::getScreenshot. Now using the ↵Björn Steinbrink1-3/+8
ImageWriter to save that screenshot.
2005-09-172005-09-17 Duane Bailey <nayryeliab@gmail.com>Duane Bailey1-1/+9
* 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-17Added PVPMatthias Hartmann1-5/+7
2005-09-17Indent properly.Bjørn Lindeijer1-9/+10
2005-09-17I already know my own name...and i dont want to trade with myself.Matthias Hartmann1-0/+2
2005-09-17Completed transition to use MessageOut.Eugenio Favalli1-22/+31
2005-09-17Now derived stats are updated on equip/unequip. The status win is also ↵Yohann Ferreira1-0/+18
resizable.
2005-09-17Now the values shown by derived stats in status win are got from the server. ↵Yohann Ferreira1-22/+22
Still, when Equipping/unequipping, you have to warp to get these values updated. Does somebody has an idea how to request an update of these values when equipping/unequipping ?
2005-09-16Improved General GUI Layout.Yohann Ferreira1-12/+18
2005-09-14Fix missing parentheses in a negated check.Björn Steinbrink1-2/+2
2005-09-14Moved Map manangement code into engine.cpp.Björn Steinbrink1-49/+28
2005-09-14Header cleanups.Björn Steinbrink1-0/+1
2005-09-14Made Being::setDamage accept a short instead of a string.Björn Steinbrink1-17/+7
2005-09-14Converted map_path from char array to std::string.Björn Steinbrink1-11/+5
2005-09-13Merged with SDL_NET_TEST branch.Björn Steinbrink1-797/+1005
2005-09-13Simplify remove_node.Björn Steinbrink1-1/+1
2005-09-13Merge createBeing and add_node.Björn Steinbrink1-22/+5
2005-09-09Fixes to dropped items network codeEugenio Favalli1-5/+7
2005-09-08Removed inclusion of malloc.h header as it doens't seem necessary and wasBjørn Lindeijer1-2/+4
problematic on FreeBSD.
2005-09-08Clean the floor items when the map changes.Björn Steinbrink1-0/+2
2005-08-27Fix the bug where sometimes the last entry in the npc list windows is missing.Björn Steinbrink1-4/+2
2005-08-27Update stats and status window contents at a single location.Björn Steinbrink1-2/+0
2005-08-24Simply don't show equipped items in sell dialog since it's annoying. Code ↵Yohann Ferreira1-1/+1
cleanups and improvements to the login sequence.