aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk
AgeCommit message (Collapse)Author
2010-11-25MOHAWK: Add missing include, which prevented the CursorMan destructor from ↵Max Horn
being called svn-id: r54470
2010-11-25MOHAWK: Refactor cursor handlingMatthew Hoops
Cursor handling has now been moved to a new CursorManager class (which is subclassed for Myst/Riven) from the GraphicsManager classes. This will be needed for Living Books which will have a class for Windows and Mac cursors (coming soon!). svn-id: r54469
2010-11-25MOHAWK: Cleanup image surface handlingMatthew Hoops
- Renamed ImageData to MohawkSurface - Added offset x/y fields to MohawkSurface - The image cache now stores MohawkSurface pointers - Switched Living Books to 8bpp mode (it requires that in the end anyway) svn-id: r54468
2010-11-24MOHAWK: Change the unused version detection field to 'appName' for use with LBMatthew Hoops
svn-id: r54462
2010-11-23MOHAWK: Pass Common::Strings directly to SaveFileManager, instead of first ↵Max Horn
converting to a C string svn-id: r54444
2010-11-23MOHAWK: Pass objs by const ref not by valueMax Horn
svn-id: r54443
2010-11-23MOHAWK: Find the small marble images by string; should fix German versionMatthew Hoops
svn-id: r54431
2010-11-23MOHAWK: Remove the no longer needed RLE8 hackMatthew Hoops
svn-id: r54430
2010-11-22MOHAWK: Fix a typo fail (thanks, fuzzie)Matthew Hoops
svn-id: r54419
2010-11-22MOHAWK: Have MohawkResource::open() return a bool for success/failureMatthew Hoops
svn-id: r54418
2010-11-22MOHAWK: Fix gspit dome from always openingMatthew Hoops
svn-id: r54417
2010-11-22MOHAWK: Switch slider bitmap ID's to matching via string; fixes some versionsMatthew Hoops
svn-id: r54416
2010-11-21MOHAWK: Fix Living Books v1 sound (courtesy of fuzzie)Matthew Hoops
svn-id: r54397
2010-11-20MOHAWK: Cleanup resource handlingMatthew Hoops
- Renamed getRawData() to getResource() - Add a getResource() and hasResource() function for named resources - Other minor formatting changes svn-id: r54396
2010-11-19MOHAWK: Implement an image cache systemMatthew Hoops
This should greatly improve the performance in Myst (especially Myst ME, which uses the slow JPEG decoder). This should also slightly improve the Riven performance; the sliders now work a bit better. svn-id: r54388
2010-11-19COMMON: Split common/stream.h into several headersMax Horn
svn-id: r54385
2010-11-19MOHAWK: Implement another Riven demo externalMatthew Hoops
xademoquit() is called from card 12 when clicking anywhere but the system requirements (which is why I hadn't noticed it earlier). I've also stubbed another demo function (xaexittomain()), called from an unused card's script for completeness. svn-id: r54359
2010-11-18MOHAWK: Add support for Riven 24bpp images (not yet used)Matthew Hoops
svn-id: r54345
2010-11-18MOHAWK: Cleanup bitmap surface and pack/draw function handlingMatthew Hoops
svn-id: r54338
2010-11-18MOHAWK: Remove unused drawRLE() functionMatthew Hoops
svn-id: r54320
2010-11-18MOHAWK: Implement the old Mohawk bitmap format (thanks to fuzzie)Matthew Hoops
svn-id: r54319
2010-11-18MOHAWK: Cleanup Myst script handlingMatthew Hoops
Scripts are now loaded from a central place and are properly freed at the correct time. This fixes a regression from r54152. svn-id: r54309
2010-11-17MOHAWK: Cache the Myst screen bufferMatthew Hoops
This is needed for use with sliders. The screen is now updated fewer times as well. svn-id: r54300
2010-11-17MOHAWK: Apply patch #2988976: "MYST: Fix drawing partial subimages"Matthew Hoops
svn-id: r54297
2010-11-16GUI: Rename gui/GuiManager.* to gui/gui-manager.*Max Horn
svn-id: r54265
2010-11-16GUI: Move major widgets to new directory gui/widgetsMax Horn
Also renamed the source/header files, now they are more closely aligned to how we rename most other source files svn-id: r54264
2010-11-09MOHAWK: Fix one more memory leak (hopefully the last :))Matthew Hoops
svn-id: r54166
2010-11-09MOHAWK: Fix cache memory leak and some formattingMatthew Hoops
svn-id: r54165
2010-11-09MOHAWK: Fix memory leaks (thanks to digitall for finding)Matthew Hoops
svn-id: r54164
2010-11-09MOHAWK: Close a number of memory leaks in Myst.David Turner
These corrections close a number of leaks reported by running Valgrind with --leak-check=full option, but some still remain, mainly in the image loading and caching. svn-id: r54152
2010-11-07MOHAWK: Remove console FIXME'sMatthew Hoops
svn-id: r54109
2010-11-07MOHAWK: Convert all printf to debugN callsMax Horn
This involves some nasty decisions, like mixing debugN and DebugPrintf calls in the RivenConsole. I added FIXME comments about this. svn-id: r54107
2010-10-15ENGINES: Enhance namespace comments a bitMax Horn
svn-id: r53484
2010-10-15Add doxygen comment for namespaces of several engines.Max Horn
This is an empty template which ideally engine maintainers would update and complete with concrete information... svn-id: r53481
2010-09-18JANITORIAL: Removed most punctuation at end of warning() and error()Torbjörn Andersson
Our warning() and error() functions always add an exclamation mark to the end of the message anyway. svn-id: r52791
2010-09-15MOHAWK: Finish implementation of the Riven Marble PuzzleMatthew Hoops
You can now place the marbles and pressing the button will now only set the power to on if the marbles are in the correct positions. svn-id: r52735
2010-09-12i18n: Translate the Save and Load buttons in myst and rivenThierry Crozat
svn-id: r52692
2010-09-09MOHAWK: Add initial work on the Riven marble puzzleMatthew Hoops
The marbles are currently drawn, and you can pick them up, but you can not place them on the grid yet. svn-id: r52661
2010-09-08MOHAWK: Implement blocking sound in RivenMatthew Hoops
Sounds that set the third argument of the playSound opcode to 1 (wherever they may be) will now block. The volume parameter of playSound is also now honored. Merge the Myst sound blocking code with this too. svn-id: r52643
2010-09-07MOHAWK: Sound cleanupMatthew Hoops
Merge the Riven sound file code with the main Riven resource code and remove the mainSoundFile parameter from Sound::playSound(). Reasoning: The sound id's do not collide with the sound id's in the main data files. The sound archives only exist because the original CD version had the ability to choose between low and high quality audio. svn-id: r52631
2010-09-07MOHAWK: Add stopping sounds to the telescope functionsMatthew Hoops
svn-id: r52628
2010-09-07MOHAWK: Implement xgplateau3160_dopoolsMatthew Hoops
The pools of water will now always show the video of returning to the "off" state. svn-id: r52626
2010-09-07MOHAWK: Fix the boiler puzzle videosMatthew Hoops
svn-id: r52621
2010-09-05MOHAWK: CleanupMatthew Hoops
- Split the main Riven event loop into a separate function for readability and for use in the sunner external functions eventually - Some minor function signature changes (const!) - Rename matchVarToString() to getVar() (I have no idea where that original name came from, considering it takes a string and returns a variable - Use solely Common::String in getVar() svn-id: r52538
2010-09-04MOHAWK: Ignore invalid Riven hotspots againMatthew Hoops
There is at least one example of a bad hotspot in Riven (tspit 371 (377 in the DVD version), hotspot 4). This particular hotspot is a zip hotspot which looks like it has its left and right coordinates reversed. However, the zip hotspot would only take the player to the same card as the non zip hotspot so it seems they removed this hotspot with a hack. This fixes a regression from r52487. svn-id: r52532
2010-09-03MOHAWK: Improve support for the Riven DemoMatthew Hoops
- The exit button now appears and is functional - The intro movies now play on start up - Add shortcuts for returning to the menu/playing the intro videos again - Make the text when hitting a boundary match the original - Change the wording of the browser button message - Note: The demo's extras.mhk (not the full game's!) is required now svn-id: r52509
2010-09-01MOHAWK: Update videos when the delay opcode is calledMatthew Hoops
The fixes a couple scripts which decide to delay through a background video turning into a virtual blocking video. svn-id: r52488
2010-09-01MOHAWK: Cleanup mouse cursor position handling in RivenMatthew Hoops
This fixes some cursors showing up incorrectly if the cursor moved during ie. a video and then the card changes. Also, remove an unneeded rect check in loadHotspots() that's from the ancient times before script size calculation was fixed and some warnings that don't affect gameplay. svn-id: r52487
2010-09-01MOHAWK: Implement xbookclickMatthew Hoops
It is now possible to trap Gehn in the trap book. Side note: Riven is now completable from the beginning provided you know the D'ni number system already (and the marble puzzle is just hacked to always work). svn-id: r52482
2010-08-31MOHAWK: Implement functionality for the dome slidersMatthew Hoops
The sliders are now movable and reset properly. The combination defined in the lab journal works on all the domes too. svn-id: r52476