summaryrefslogtreecommitdiff
path: root/src/game.cpp
AgeCommit message (Collapse)AuthorFilesLines
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.
2005-08-23Some code cleanups in the sell dialog. Made the dialog accept items instead ↵Björn Steinbrink1-2/+4
of looking them up in the inventory itself.
2005-08-22Enable Enter to deathNotice Dialog to resurrect. Todo: See how to remove a ↵Yohann Ferreira1-0/+9
bit duplicated code.
2005-08-22Converted the buy & sell diaogs asserts into ifs to avoid game crashing, and ↵Yohann Ferreira1-0/+2
made additional checks on buy sell events to have buttons enabled only when they're useful.
2005-08-21Cleaned and fixed an error in my previous commitEugenio Favalli1-30/+8
2005-08-19Moved gui window construction from engine.cpp to game.cppBjörn Steinbrink1-0/+122
2005-08-18Updated reference to latest libxml, fixed a bug in updating skills, updated ↵Eugenio Favalli1-25/+6
skill names database.
2005-08-13Updated dev-cpp project file, removed unnecessary header, fixed some include ↵Eugenio Favalli1-0/+1
paths.
2005-08-13Huge header cleanup to reduce dependencies and compile time.Björn Steinbrink1-41/+51
2005-08-10Moved knowledge about whether we use OpenGL into the Graphics class. Added ↵Björn Steinbrink1-51/+29
helper function for being creation to reduce code duplication. Some code simplifications.
2005-08-03Now the 'Apply' and 'Cancel' buttons of the setup window work correctly.Yohann Ferreira1-2/+2