summaryrefslogtreecommitdiff
path: root/src/engine.cpp
AgeCommit message (Collapse)AuthorFilesLines
2005-10-09* Made Sprite into an interface implemented by both FloorItem and Being, whichBjørn Lindeijer1-175/+22
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-14/+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-05Fixed some resource cleanup and memory leaks. Also changed the way danglingBjørn Lindeijer1-1/+5
references to resources are reported to be more informative.
2005-09-23Merged most of the changes in biggeruniverse's second memory cleanup patch.Bjørn Lindeijer1-1/+8
2005-09-19Mostly code cleanups related to commits in past two days.Bjørn Lindeijer1-6/+7
* 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-17Added PVPMatthias Hartmann1-4/+14
2005-09-17Indent properly.Bjørn Lindeijer1-12/+18
2005-09-17I already know my own name...and i dont want to trade with myself.Matthias Hartmann1-0/+2
2005-09-14Moved Map manangement code into engine.cpp.Björn Steinbrink1-1/+9
2005-09-13Merged with SDL_NET_TEST branch.Björn Steinbrink1-14/+9
2005-08-27Update stats and status window contents at a single location.Björn Steinbrink1-9/+0
2005-08-25Move extern declaration of the floor item list. Lower indentation level.Björn Steinbrink1-0/+2
2005-08-19Moved gui window construction from engine.cpp to game.cppBjörn Steinbrink1-124/+3
2005-08-15Removed guiTop global variable.Björn Steinbrink1-1/+3
2005-08-14Removed guiGraphics global pointer and removed dependencies on gui.h in some ↵Björn Steinbrink1-21/+21
places.
2005-08-14Make the wrapper functions in the Graphics class conditional on OpenGL support.Björn Steinbrink1-0/+2
2005-08-13Small header cleanup.Björn Steinbrink1-0/+2
2005-08-13Huge header cleanup to reduce dependencies and compile time.Björn Steinbrink1-23/+46
2005-08-10Moved knowledge about whether we use OpenGL into the Graphics class. Added ↵Björn Steinbrink1-8/+1
helper function for being creation to reduce code duplication. Some code simplifications.
2005-08-09Adjust drawing offset to have the player centered in higher resolutions as well.Björn Steinbrink1-6/+9
2005-08-03Converted two global variables to function-local ones.Björn Steinbrink1-3/+3
2005-08-01Small cleanups in the drawing code, the autoTarget checks and some headers.Björn Steinbrink1-48/+21
2005-07-31Added check to stop scrolling at map borders. Small cleanup in the listbox ↵Björn Steinbrink1-0/+16
drawing code.
2005-07-28Added an action enumeration to th Being class and removed the old #define's.Björn Steinbrink1-10/+10
2005-07-27Committing merging opengl and sdl part 3 by AndrejBjørn Lindeijer1-0/+2
2005-07-26OpenGL/SDL combined in the same exe. Not in the cutest way, but we'll find aBjørn Lindeijer1-1/+7
nicer approach after the release.
2005-07-26Added Being::Type enumeration and type-aware findNode(). Fixed font not ↵Björn Steinbrink1-91/+103
being reset after drawing speech. Target marker drawing moved into engine.
2005-07-26- New smilies by ModanungEugenio Favalli1-3/+3
- New skill names - New title song
2005-07-22Merge between moi1392's branch and headCedric Borgese1-4/+8
2005-07-18Created Inventory class. (Really) Small code simplifications and cleanups.Björn Steinbrink1-1/+1
2005-07-17Fixing linking issuesEugenio Favalli1-1/+1
2005-07-16Updated changelog, got rid of remaining extern SDL_Surface *screen cases,Bjørn Lindeijer1-13/+13
fixed double free and cleaned up a bit.
2005-07-16Made Image/SubImage being drawn by Graphics. Removed some redundant code.Björn Steinbrink1-13/+22
2005-07-16Oops forgot two slashes.Yohann Ferreira1-1/+1
2005-07-16Now we don't use the char *homeDir anymore.Yohann Ferreira1-1/+1
2005-07-15- Adding joypad tolerance to config fileEugenio Favalli1-2/+3
- Trying to put updates in the data folder (is this the right way?)
2005-07-14Committed resource manager cleanup patch by Doener, and properly implementedBjørn Lindeijer1-3/+6
the custom mouse cursor option, which is now also dynamically changeable through the setup window.
2005-07-13- Adding the wonderful new font by Bjorn to speech and player namesEugenio Favalli1-1/+3
- Way to system cursor (now you can choose the original sdl cursor in config)
2005-07-12windows compilation fixesEugenio Favalli1-0/+1
2005-07-11Committed header dependencies reducing patch by DoenerBjørn Lindeijer1-6/+23
2005-07-03Added attack target.Bjørn Lindeijer1-12/+24
2005-07-03Working with mapsEugenio Favalli1-1/+0
2005-07-03Minor fixes and cleanupsEugenio Favalli1-1/+1
2005-07-03Fixing code cleanupsEugenio Favalli1-5/+0
2005-07-03- Commenting out buddy and new skills windowsEugenio Favalli1-11/+11
- Some code cleaning - Workaround for colored text not being displayed in SDL mode (disabled)
2005-07-02Ok I forgot to remove the debug loggers...Eugenio Favalli1-3/+0
2005-07-02Music doesn't restart anymore if it's the same between maps.Eugenio Favalli1-6/+13
(I hope Bjorn likes it this way :P)
2005-06-22Detect ghosts at creation time.Bjørn Lindeijer1-23/+1
2005-06-22Ghostbusters in action: no more ghostssrc/tmw ! Please read the (removable) ↵José Ávila1-4/+35
comments inside source code
2005-06-21Image loader now automatically determines whether to use masked drawing orBjørn Lindeijer1-1/+1
an alpha layer.