aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/riven.cpp
AgeCommit message (Collapse)Author
2012-12-16JANITORIAL: Replace some spaces with tabsTorbjörn Andersson
2012-12-16MOHAWK: Allow changing video ratesBastien Bouclet
getVideoDuration now returns an Timestamp
2012-07-25MOHAWK: Fix delete[] formatting.Johannes Schickel
2012-06-10GUI: Add helper to SaveLoadChooser, which uses the currently active target.Johannes Schickel
This reduces the code duplication in all client code, which formerly duplicated the querying of the plugin, game id etc. and now simply calls the newly added method runModalWithCurrentTarget() on a SaveLoadChooser object.
2012-06-10MOHAWK: Do not call close on SaveLoadChooser.Johannes Schickel
This is actually always called when a dialog closes, thus manual closing is not required. It furthermore is actually *bad* to call this from outside the dialog's code, since it will remove the top dialog from the dialog stack and thus mess up the GUI in case multiple dialogs are opened.
2012-06-10GUI: Get rid of SaveLoadChooser::setSaveMode.Johannes Schickel
We already pass the title and process button name to the constructor of SaveLoadChooser and then do not offer any way of changing it, thus changing the edit mode of the chooser is kind of pointless and was never actually used. Instead we pass the mode on SaveLoadChooser construction now.
2012-05-12VIDEO: Change getElapsedTime() into getTime()Matthew Hoops
This name change accompanies a slight meaning change; now it means the current time position from the beginning of the video and not from starting the video.
2012-03-16MOHAWK: Improve Riven save/load error messagesMatthew Hoops
2012-03-10MOHAWK: Split the graphics classes into their own filesMatthew Hoops
2011-08-15MOHAWK: Stub off Riven transition speed codeMatthew Hoops
2011-08-11MOHAWK: Implement the rest of the sunners codeMatthew Hoops
2011-06-28MOHAWK: Rework archive handlingMatthew Hoops
A new base class has been introduced (aptly named "Archive"), which is much cleaner than inheriting from MohawkArchive. In addition, the underlying resource retrieving code has been merged to reduce dupliplication.
2011-06-20ALL: Remove trailing whitespacesMax Horn
This tries to make our code a bit more compliant with our code formatting conventions. For future use, this is the command I used: git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-14MOHAWK: Finish implementation of Riven's storeMovieOpcode opcodeMatthew Hoops
2011-06-02ENGINES: Change 2nd param of Engine::saveGameState to Common::StringMax Horn
2011-05-17COMMON: Registers RandomSources in constructor with the event recorderMax Horn
This also removes the dependency of engines on the event recorder header and API, and will make it easier to RandomSources that are not properly registered.
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-03-23MOHAWK: Use direct access on the hashmap for Riven variables nowMatthew Hoops
2011-03-23MOHAWK: Begin using a hashmap to store Riven variablesMatthew Hoops
2011-03-22MOHAWK: Handle launcher load fails more gracefullyMatthew Hoops
2011-03-21MOHAWK: Minor cleanup and consistency fixesMatthew Hoops
2011-03-21MOHAWK: Implement the hardcoded Catherine idle videosMatthew Hoops
2011-03-20MOHAWK: Implement the Ytram trapMatthew Hoops
2011-03-09MOHAWK: Fix typo in the Riven missing executable dialogMatthew Hoops
2011-03-07MOHAWK: Fix Riven's cursor in the main menuMatthew Hoops
Actually call the showCursor() function now...
2011-03-07MOHAWK: Error message consistencyMatthew Hoops
2011-03-07MOHAWK: Improve error handling when data isn't foundMatthew Hoops
2011-03-07MOHAWK: Make Riven use original executables for cursorsMatthew Hoops
It will try both Windows and Macintosh executables. The hardcoded cursors have been removed.
2011-02-07GUI: Rename SaveLoadChooser::runModal to runModalWithPluginAndTargetMax Horn
This avoids hiding an overloaded virtual method, which in turn can cause weird bugs (see also the next commit). svn-id: r55815
2011-01-24MOHAWK: Recheck the current hotspot if a script has changed the enabled ↵Matthew Hoops
hotspots in Riven svn-id: r55493
2011-01-21MOHAWK: Add support for installer files from Riven and other Broderbund gamesMatthew Hoops
svn-id: r55368
2011-01-18MOHAWK: Rename some VideoManager functions so we have some unified naming ↵Matthew Hoops
between versions svn-id: r55312
2010-12-21MOHAWK: Remove sound.h include from resource.hAlyssa Milburn
svn-id: r54988
2010-11-30MOHAWK: don't include livingbooks.h from graphics.hAlyssa Milburn
svn-id: r54670
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-22MOHAWK: Have MohawkResource::open() return a bool for success/failureMatthew Hoops
svn-id: r54418
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-09-12i18n: Translate the Save and Load buttons in myst and rivenThierry Crozat
svn-id: r52692
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-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-07-09Introduce the RivenScriptManager to keep track of scripts and free them when ↵Matthew Hoops
required. The old way of using SharedPtr was quite hacky and didn't work properly when talking to Gehn in ospit. svn-id: r50761
2010-06-29Update comment on CD swapping in Riven.Matthew Hoops
svn-id: r50479
2010-06-29Silence a valgrind warning.Matthew Hoops
svn-id: r50478
2010-06-29Fix the load game dialog in Riven DVD's menu, borrowed from Parallaction.Matthew Hoops
svn-id: r50477
2010-06-26Fix saving while viewing the inventory in Riven and cleanup the save/load code.Matthew Hoops
svn-id: r50333