Commit graph

50 commits

Author SHA1 Message Date
Matthew Hoops
2bd16f9e84 MOHAWK: Move Myst stack-specific code to its own directory
svn-id: r54648
2010-11-29 21:34:59 +00:00
Bastien Bouclet
efc6ff54a3 MOHAWK: Misc cleanups
svn-id: r54645
2010-11-29 21:03:02 +00:00
Bastien Bouclet
29359ee372 MOHAWK: Set the initial stack back to the intro
svn-id: r54644
2010-11-29 21:02:39 +00:00
Bastien Bouclet
7ea90ddf19 MOHAWK: Create constants for remaining Myst resource types
svn-id: r54634
2010-11-29 21:00:23 +00:00
Bastien Bouclet
149eed5c32 MOHAWK: Persistent scripts cleanup
- Rename InitOpcodes / PersistentOpcodes to Persistent Scripts for consistency
- Get rid of the global var used to tell if the sound receiver script is running

svn-id: r54633
2010-11-29 21:00:05 +00:00
Bastien Bouclet
ed59b28d0b MOHAWK: Do not always update the screen after a card change. Necessary for "animated card changes" to work.
svn-id: r54630
2010-11-29 20:59:17 +00:00
Bastien Bouclet
90b336ec34 MOHAWK: Changed sliders to restore the main background instead of doing their own background caching. It is possible now there is the image cache.
svn-id: r54626
2010-11-29 20:58:10 +00:00
Bastien Bouclet
d3289529eb MOHAWK: Fix flag values used to dertermine if an area can become active.
svn-id: r54622
2010-11-29 20:57:11 +00:00
Bastien Bouclet
92dc0fe5b5 MOHAWK: Only draw a resource conditional subimages if it has the "subimages enabled" flag set.
svn-id: r54620
2010-11-29 20:56:39 +00:00
Bastien Bouclet
34981c61b6 MOHAWK: Fix Myst opcode 14
svn-id: r54616
2010-11-29 20:55:31 +00:00
Bastien Bouclet
92d74fa56d MOHAWK: Disabled hotspots are now unclickable areas. Display blue rects for unreachable zip destinations when drawing resource rects.
svn-id: r54615
2010-11-29 20:55:11 +00:00
Bastien Bouclet
18e1f4a8c3 MOHAWK: Added helpher functions to redraw a resource. Do not redraw all the resources on mouse up.
svn-id: r54613
2010-11-29 20:54:36 +00:00
Bastien Bouclet
8da42b4221 MOHAWK: Don't change current resource when dragging
svn-id: r54607
2010-11-29 20:53:14 +00:00
Bastien Bouclet
e26fb921e9 MOHAWK; Post rebase fixes :
- Restore invoking resource change
- Update the screen after drawing a conditional image

svn-id: r54604
2010-11-29 20:52:33 +00:00
Bastien Bouclet
fc504c72e8 MOHAWK: Update area type 11 position when the mouse moves
svn-id: r54602
2010-11-29 20:52:04 +00:00
Bastien Bouclet
536c6b6ef4 MOHAWK: Rename some fields for type 11 areas
svn-id: r54600
2010-11-29 20:51:35 +00:00
Bastien Bouclet
2e984cf136 MOHAWK : Move area classes to their own file
svn-id: r54598
2010-11-29 20:51:04 +00:00
Bastien Bouclet
16afca4c3d MOHAWK: Add mouse move event for type 10 and 11 resources
svn-id: r54597
2010-11-29 20:50:40 +00:00
Bastien Bouclet
4e420ef6fc MOHAWK: Keep resource type around
svn-id: r54595
2010-11-29 20:50:11 +00:00
Bastien Bouclet
6a4ff1a9b5 MOHAWK : Finished implementing Selenitic sound receiver
svn-id: r54593
2010-11-29 20:49:42 +00:00
Bastien Bouclet
5f8e6e3824 MOHAWK: Start splitting Myst scripts into one class per Stack.
svn-id: r54592
2010-11-29 20:49:14 +00:00
Matthew Hoops
07ea74d37b MOHAWK: Refactor cursor handling
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-25 04:49:11 +00:00
Max Horn
121056c12f MOHAWK: Pass objs by const ref not by value
svn-id: r54443
2010-11-23 22:32:39 +00:00
Matthew Hoops
cb843daec0 MOHAWK: Have MohawkResource::open() return a bool for success/failure
svn-id: r54418
2010-11-22 18:07:33 +00:00
Matthew Hoops
0f2bcd2f9f MOHAWK: Cleanup resource handling
- Renamed getRawData() to getResource()
- Add a getResource() and hasResource() function for named resources
- Other minor formatting changes

svn-id: r54396
2010-11-20 23:53:14 +00:00
Matthew Hoops
7fb352e38a MOHAWK: Implement an image cache system
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-19 21:25:36 +00:00
Matthew Hoops
d971396572 MOHAWK: Cleanup Myst script handling
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-18 05:47:16 +00:00
Matthew Hoops
ecb42156ce MOHAWK: Cache the Myst screen buffer
This is needed for use with sliders. The screen is now updated fewer times as well.

svn-id: r54300
2010-11-17 19:58:19 +00:00
Matthew Hoops
4e445b9467 MOHAWK: Apply patch #2988976: "MYST: Fix drawing partial subimages"
svn-id: r54297
2010-11-17 18:22:22 +00:00
David Turner
63d023964e MOHAWK: Close a number of memory leaks in Myst.
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-09 11:02:06 +00:00
Max Horn
b4787d9430 MOHAWK: Convert all printf to debugN calls
This involves some nasty decisions, like mixing debugN and DebugPrintf
calls in the RivenConsole. I added FIXME comments about this.

svn-id: r54107
2010-11-07 01:03:29 +00:00
Thierry Crozat
fc11604e73 i18n: Translate the Save and Load buttons in myst and riven
svn-id: r52692
2010-09-12 21:35:49 +00:00
Matthew Hoops
58139baf37 MOHAWK: Sound cleanup
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-07 20:18:30 +00:00
Matthew Hoops
2f31b05651 Move Mohawk's QuickTime code to graphics/ (and QDM2 to sound, disabled when Mohawk is not enabled) so SCI can use the code.
svn-id: r49165
2010-05-23 18:33:55 +00:00
Max Horn
970745e60c Move DebugChannel related code to new header
svn-id: r48935
2010-05-04 11:59:22 +00:00
Max Horn
5568a8473b Get rid of Engine::_gameDataDir.
This greatly reduces indirect dependencies on several header files
from common.

svn-id: r48933
2010-05-04 11:56:52 +00:00
Max Horn
460d69e885 COMMON: Move DebugChannel stuff into a new DebugMan singleton
svn-id: r48821
2010-04-27 21:40:52 +00:00
Matthew Hoops
3fe570cd70 Cleanup the Myst resource caching code a bit and add support for caching Myst ME MJMP sound 'jumps'
svn-id: r48579
2010-04-06 23:38:43 +00:00
Max Horn
cac0ac66e2 COMMON: Get rid of Common::StringList
svn-id: r48287
2010-03-18 15:54:40 +00:00
David Turner
2ab3e0fb3c Mohawk : Adding resource cache class and integrating into Myst engine.
The resource caching trades increased memory usage against disk access.

This functionality can be disabled and enabled by the console "cache" command.

svn-id: r48080
2010-02-17 19:59:08 +00:00
David Turner
384acffeb1 Mohawk : Corrected Myst Opcode 200/300 in Intro/Demo stack to correctly call Intro movies.
svn-id: r48062
2010-02-14 19:01:02 +00:00
Max Horn
a652b603c9 MOHAWK: Don't remove save_slot config entries the user may have added on purpose
svn-id: r47723
2010-01-30 19:03:11 +00:00
Johannes Schickel
aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Matthew Hoops
0388e359e0 Always loop sounds declared in the VIEW resources of Myst. While Myst specifies in the metadata of its sound resources, Myst ME does not have that feature so we have to specify the looping. Looping now works in Myst ME.
svn-id: r47431
2010-01-22 04:24:04 +00:00
Matthew Hoops
c04f8d00b1 Rename MohawkFile to MohawkArchive and OldMohawkFile to LivingBooksArchive_v1 (the latter originally having an ambiguous meaning) and move them to resource.* Also, renaming the Living Books game types to remove the ambiguous old/new.
svn-id: r47429
2010-01-22 03:43:57 +00:00
Matthew Hoops
3738507d7f Add support for the flyby videos in Myst ME Macintosh.
svn-id: r47388
2010-01-19 19:21:31 +00:00
Max Horn
f31c452a5f MOHAWK: Reduce header interdependencies
svn-id: r46782
2009-12-30 23:02:14 +00:00
Max Horn
a753f606ec MOHAWK: Stop using String::emptyString
svn-id: r46780
2009-12-30 23:01:16 +00:00
Torbjörn Andersson
1a66ad80a4 Re-indentet switch() blocks to follow ScummVM indentation style. (I've always
found this style a bit unusual, but I value consistency.)

svn-id: r46734
2009-12-30 07:14:09 +00:00
Eugene Sandulenko
0ea022d076 Add Mohawk engine code. Part 1/3: main code.
svn-id: r46727
2009-12-29 23:18:24 +00:00