Commit Graph

490 Commits

Author SHA1 Message Date
Alyssa Milburn
85c8960d8b MOHAWK: Improve LB script parsing
svn-id: r54871
2010-12-11 23:48:29 +00:00
Alyssa Milburn
7c97a86a9a MOHAWK: Add size check when reading LB messages
svn-id: r54870
2010-12-11 19:53:44 +00:00
Alyssa Milburn
60c844efd3 MOHAWK: Add yet more fallbacks for LB page loading
svn-id: r54869
2010-12-11 19:53:28 +00:00
Matthew Hoops
b1e3b48418 MOHAWK: Fix some Myst ME cards that store PICT images in WDIB resources (see myst 4013)
svn-id: r54867
2010-12-11 18:38:27 +00:00
Bastien Bouclet
36851d4eb4 MOHAWK: Implement Myst opcodes 113, 114, 198 : Vault open / close
In progress tower rotation

svn-id: r54866
2010-12-11 17:00:22 +00:00
Matthew Hoops
43aa47dd31 MOHAWK: Fix loading with non-Selenitic red/blue pages in hand
svn-id: r54865
2010-12-11 16:55:25 +00:00
Bastien Bouclet
adc7dc0785 MOHAWK: Fix using wrong coordinates in Myst opcode 28, restoreDefaultRect
svn-id: r54864
2010-12-11 12:59:56 +00:00
Bastien Bouclet
7419d8c087 MOHAWK: Implement Myst opcodes 116, 186, 188, 189, clock tower time controls
svn-id: r54863
2010-12-11 11:40:12 +00:00
Bastien Bouclet
2a8c1ab13a MOHAWK: Change Myst fireplace and green book to use correct vars
svn-id: r54859
2010-12-11 08:33:39 +00:00
Matthew Hoops
eefb3ee787 MOHAWK: Fix another typo (heigth -> height)
svn-id: r54858
2010-12-10 20:09:05 +00:00
Matthew Hoops
9aa7f2e7f0 MOHAWK: Fix a typo
svn-id: r54857
2010-12-10 20:05:38 +00:00
Bastien Bouclet
107a2a25aa MOHAWK: Implement Myst opcode 115, give page to book
svn-id: r54856
2010-12-10 19:51:00 +00:00
Matthew Hoops
6bc638a54b MOHAWK: Fix the Myst drawImage debug command
svn-id: r54850
2010-12-10 02:10:18 +00:00
Alyssa Milburn
4393ef1bd5 MOHAWK: Fix LBPaletteItem to handle variable-size palettes
svn-id: r54846
2010-12-09 21:25:21 +00:00
Alyssa Milburn
0257f2a217 MOHAWK: Implement LBMovieItem
svn-id: r54845
2010-12-09 21:25:05 +00:00
Alyssa Milburn
eecc2bcb12 MOHAWK: Don't redraw the screen every frame in LB
svn-id: r54844
2010-12-09 21:24:46 +00:00
Alyssa Milburn
32ed3b3582 MOHAWK: Allow background videos to be played/manipulated with resource handles
svn-id: r54843
2010-12-09 21:24:31 +00:00
Alyssa Milburn
8be4da02f6 MOHAWK: Add BCOD resource type
svn-id: r54842
2010-12-09 21:24:12 +00:00
Alyssa Milburn
5db43d641e MOHAWK: Use named constants for LB opcodes, add warnings when unimplemented
svn-id: r54833
2010-12-08 15:45:40 +00:00
Alyssa Milburn
8241b1b321 MOHAWK: Implement/stub more LB 3 notifications
svn-id: r54832
2010-12-08 15:45:22 +00:00
Alyssa Milburn
d571279d99 MOHAWK: Handle LB event-run opcodes
svn-id: r54825
2010-12-07 22:59:16 +00:00
Alyssa Milburn
1c21ba1fc0 MOHAWK: Run kLBEventMouseTrackIn in handleMouseDown
svn-id: r54824
2010-12-07 22:59:01 +00:00
Alyssa Milburn
fecaa5655e MOHAWK: Rename LBAction to LBEvent, fix event targeting
svn-id: r54823
2010-12-07 22:58:45 +00:00
Matthew Hoops
0d59c33b35 MOHAWK: Default to the main cursor if no cursor hints are present; fixes a couple cards
svn-id: r54816
2010-12-07 19:41:49 +00:00
Max Horn
6edc86a19b DEBUG: Let GUI::Debugger::preEnter and postEnter (un)pause the engine
svn-id: r54815
2010-12-07 18:54:21 +00:00
Matthew Hoops
ce0f0bd056 MOHAWK: Allow loading both original and ME saves in any version of Myst
svn-id: r54814
2010-12-07 18:33:58 +00:00
Matthew Hoops
2f86db50ef MOHAWK: Fix loading from the launcher in Myst
svn-id: r54813
2010-12-07 18:21:05 +00:00
Matthew Hoops
d06a355341 MOHAWK: Further limit where Myst can be saved
svn-id: r54812
2010-12-07 18:15:07 +00:00
Matthew Hoops
20de55129f MOHAWK: Start Myst back on the dock again
svn-id: r54810
2010-12-07 17:56:08 +00:00
Matthew Hoops
a8c8172315 MOHAWK: Set the default cursor upon loading a game in Myst
svn-id: r54808
2010-12-07 01:58:18 +00:00
Matthew Hoops
a789ee11c2 MOHAWK: Implement loading to different ages in Myst
svn-id: r54807
2010-12-07 01:37:43 +00:00
Matthew Hoops
edf4b1926b MOHAWK: Rewrite the Myst save/load code to use Common::Serializer and name all the variables
svn-id: r54803
2010-12-06 21:10:12 +00:00
Bastien Bouclet
fb854b1483 MOHAWK: Fix Myst library books, fireplace combination book, and bookcase transform animation.
svn-id: r54802
2010-12-06 20:29:45 +00:00
Filippos Karapetis
813d96ec20 MOHAWK: Silenced warning
svn-id: r54800
2010-12-06 19:58:22 +00:00
Alyssa Milburn
99bc2c7a28 MOHAWK: fix LBLiveTextItem::handleMouseDown
svn-id: r54798
2010-12-06 13:50:11 +00:00
Alyssa Milburn
402831b8ca MOHAWK: finish kLBSetPlayInfo reading
svn-id: r54797
2010-12-06 13:49:56 +00:00
Alyssa Milburn
5ee7a44cf6 MOHAWK: fix kLBNotifyChangeMode where there's no mode change
svn-id: r54795
2010-12-05 23:02:12 +00:00
Alyssa Milburn
8dc80912f3 MOHAWK: implement kLBNotifyChangeMode
svn-id: r54794
2010-12-05 22:58:13 +00:00
Alyssa Milburn
237925e5fd MOHAWK: improve LBPaletteItem support
svn-id: r54793
2010-12-05 22:11:07 +00:00
Alyssa Milburn
7c9dc9f117 MOHAWK: handle LB 2/3 kLBNotifyChangeMode, kLBActionNotified matching
svn-id: r54792
2010-12-05 22:10:50 +00:00
Alyssa Milburn
433a10e773 MOHAWK: handle -1 phase for LB 2/3 items
svn-id: r54791
2010-12-05 22:10:20 +00:00
Alyssa Milburn
899f6a9e88 MOHAWK: remove 'internal error' errors
svn-id: r54790
2010-12-05 22:10:00 +00:00
Matthew Hoops
669ad3d217 MOHAWK: Silence a warning
svn-id: r54779
2010-12-05 17:23:57 +00:00
Alyssa Milburn
f84b027e50 MOHAWK: read and use LB 2/3 conditions/commands
svn-id: r54778
2010-12-05 16:19:52 +00:00
Alyssa Milburn
9e6fe3bd88 MOHAWK: add runCommand/checkCondition routines for LB 2/3
svn-id: r54777
2010-12-05 16:19:35 +00:00
Bastien Bouclet
24a0b50ac3 MOHAWK: Implement Myst opcodes 158 to 166: Rocket sliders + check lever + link book
svn-id: r54776
2010-12-05 08:36:41 +00:00
Matthew Hoops
9a8539e1d8 MOHAWK: Fix tMOV resources at the end of the file list (thanks, fuzzie)
svn-id: r54774
2010-12-05 00:45:21 +00:00
Alyssa Milburn
4a8d68f3d3 MOHAWK: implement setGlobalEnable and setGlobalVisible for LB
svn-id: r54771
2010-12-04 23:48:31 +00:00
Alyssa Milburn
e37257fe39 MOHAWK: fix LB menu mode with subpages
svn-id: r54770
2010-12-04 23:48:14 +00:00
Alyssa Milburn
5928532f0b MOHAWK: fix LiveText items without phrases
svn-id: r54769
2010-12-04 23:47:59 +00:00
Alyssa Milburn
8ed8adeeba MOHAWK: tidy up LB hardcoded UI click functions, add poetry mode support
svn-id: r54768
2010-12-04 23:47:43 +00:00
Bastien Bouclet
52217fa434 MOHAWK: Implement Myst opcodes 120 and 210, rocket power generator
svn-id: r54759
2010-12-04 11:54:08 +00:00
Bastien Bouclet
4a8fc942b7 MOHAWK: Give meaningful names to the game global vars and selenitic vars
svn-id: r54758
2010-12-04 09:26:44 +00:00
Alyssa Milburn
27799e354e MOHAWK: move shared setPalette/copyImage routines into GraphicsManager
svn-id: r54743
2010-12-02 21:25:15 +00:00
Alyssa Milburn
eb729b5f2e MOHAWK: implement kLBAnimOpDelay
svn-id: r54742
2010-12-02 21:24:55 +00:00
Bastien Bouclet
bf82f16982 MOHAWK: Implement Myst opcodes 141 to 143, circuit breakers
svn-id: r54741
2010-12-02 21:16:39 +00:00
Bastien Bouclet
a9388af996 MOHAWK: Fix resource type 12
svn-id: r54740
2010-12-02 21:15:47 +00:00
Matthew Hoops
41ad4a431d MOHAWK: Stub off various Myst opcodes
svn-id: r54731
2010-12-02 04:01:07 +00:00
Matthew Hoops
bdc3742ced MOHAWK: Split makingof and preview opcodes into their own class (and now all are separate)
svn-id: r54723
2010-12-01 21:05:08 +00:00
Bastien Bouclet
f3bda71376 MOHAWK: Implement maze runner backtrack button. Last part of Selenitic completed !
svn-id: r54720
2010-12-01 20:37:36 +00:00
Alyssa Milburn
1cb199229a MOHAWK: add stub implementations for more LB script opcodes
svn-id: r54712
2010-12-01 18:22:36 +00:00
Alyssa Milburn
1b27de3829 MOHAWK: fix LBPaletteItem
svn-id: r54711
2010-12-01 18:22:21 +00:00
Alyssa Milburn
a62500db1e MOHAWK: document/handle more LB item data
svn-id: r54710
2010-12-01 18:22:05 +00:00
Alyssa Milburn
4e3233fdba MOHAWK: fix LBLiveTextItem drawing for LB 2+
svn-id: r54709
2010-12-01 18:21:49 +00:00
Alyssa Milburn
3471d8ee45 MOHAWK: rename DelayedEventType values
svn-id: r54708
2010-12-01 18:21:33 +00:00
Alyssa Milburn
ddd691e2d3 MOHAWK: add LBGraphics::copyImageSectionToScreen
svn-id: r54707
2010-12-01 18:21:17 +00:00
Matthew Hoops
77782f4eb3 MOHAWK: Split intro and demo opcodes into their own classes
svn-id: r54706
2010-12-01 17:56:36 +00:00
Matthew Hoops
81209867a2 MOHAWK: Split the demo slideshow opcodes into their own class
svn-id: r54705
2010-12-01 15:24:54 +00:00
Matthew Hoops
65a7d28e21 MOHAWK: Rename the Myst stack/card link maps
svn-id: r54702
2010-12-01 14:57:05 +00:00
Matthew Hoops
26f27d9983 MOHAWK: Split d'ni opcodes into their own class
svn-id: r54699
2010-12-01 14:46:59 +00:00
Matthew Hoops
13c1540522 MOHAWK: Downgrade the Myst unknown op error to a warning as new ones have been uncovered
svn-id: r54694
2010-12-01 03:39:47 +00:00
Matthew Hoops
bdc3e5c353 MOHAWK: Cleanup Myst opcode handling and reduce code duplication
svn-id: r54693
2010-12-01 03:30:00 +00:00
Matthew Hoops
b9cfb52927 MOHAWK: Split mechanical opcodes into their own class
svn-id: r54692
2010-12-01 02:45:31 +00:00
Matthew Hoops
261cf23901 MOHAWK: Split channelwood opcodes into their own class
svn-id: r54691
2010-12-01 02:11:11 +00:00
Matthew Hoops
e4fa2855b6 MOHAWK: Split out stoneship opcodes into their own class
svn-id: r54689
2010-11-30 22:02:03 +00:00
Alyssa Milburn
90b61c0bd4 MOHAWK: add changePage Living Books debug command
svn-id: r54688
2010-11-30 21:06:40 +00:00
Alyssa Milburn
26b372cfd2 MOHAWK: add tryDefaultPage/tryPageStart/prevPage helpers
svn-id: r54687
2010-11-30 21:05:45 +00:00
Bastien Bouclet
9fddad6faf MOHAWK: Set the maze runner initial direction. Remove a hack that is not needed anymore thanks to keeping the old stack when changing stack.
svn-id: r54686
2010-11-30 20:25:21 +00:00
David Turner
3c55c9faf7 MOHAWK: Fix for Valgrind uninit reads in Myst Script Parser.
svn-id: r54683
2010-11-30 17:55:41 +00:00
Matthew Hoops
6b79f5ffe9 MOHAWK: Have the Myst book appear in the intro again
svn-id: r54682
2010-11-30 16:54:03 +00:00
Alyssa Milburn
6041fe117d MOHAWK: some LBSoundItem fixes
svn-id: r54680
2010-11-30 15:35:22 +00:00
Matthew Hoops
b065e94d2c MOHAWK: One last getRawData() to getResource() rename
svn-id: r54679
2010-11-30 15:07:00 +00:00
Matthew Hoops
f82478d4c0 MOHAWK: Fix the Myst fireplace
svn-id: r54678
2010-11-30 15:03:31 +00:00
Matthew Hoops
48c209f2da MOHAWK: Split Myst credits code into a separate class
svn-id: r54677
2010-11-30 15:01:26 +00:00
Matthew Hoops
c6a9cef9fb MOHAWK: Fix changing the stack via an opcode
svn-id: r54676
2010-11-30 14:45:31 +00:00
Alyssa Milburn
868e39c29a MOHAWK: fix LB playback seek behaviour
svn-id: r54675
2010-11-30 14:41:27 +00:00
Alyssa Milburn
8009a86c29 MOHAWK: tidy up LBLiveTextItem code
svn-id: r54674
2010-11-30 14:41:09 +00:00
Alyssa Milburn
e04c0182cd MOHAWK: fix LBAnimation start/seek behaviour
svn-id: r54673
2010-11-30 14:40:51 +00:00
Matthew Hoops
77cec92258 MOHAWK: Remove leftover Selenitic code from the Myst stack
svn-id: r54672
2010-11-30 14:17:59 +00:00
Scott Thomas
348f2d01c8 MOHAWK: Fill in missing detector details (as per FIXME)
svn-id: r54671
2010-11-30 12:45:26 +00:00
Alyssa Milburn
c34410d49d MOHAWK: don't include livingbooks.h from graphics.h
svn-id: r54670
2010-11-30 09:04:47 +00:00
Alyssa Milburn
39532b0eca MOHAWK: don't try reading non-existent messages
svn-id: r54661
2010-11-30 00:11:15 +00:00
Alyssa Milburn
99264d47c3 MOHAWK: silence harmless case of a LB warning
svn-id: r54660
2010-11-30 00:03:35 +00:00
Alyssa Milburn
2c824e3311 MOHAWK: implement hardcoded Living Books 1.0 code
svn-id: r54657
2010-11-29 23:36:49 +00:00
Alyssa Milburn
92d5277816 MOHAWK: implement hard-coded LB language/options GUI
svn-id: r54656
2010-11-29 23:19:59 +00:00
Alyssa Milburn
12c84f21a3 MOHAWK: don't start animations in LBAnimation::seek
svn-id: r54655
2010-11-29 23:19:43 +00:00
Filippos Karapetis
59604fa014 MOHAWK: Silence warnings
svn-id: r54654
2010-11-29 23:14:04 +00:00
Alyssa Milburn
b1b7ffa1f2 MOHAWK: move GF_NO_READONLY check to after actual page load
svn-id: r54652
2010-11-29 21:42:37 +00:00
Alyssa Milburn
790bba6c27 MOHAWK: implement more of LBLiveTextItem
svn-id: r54651
2010-11-29 21:42:00 +00:00
Alyssa Milburn
28ffa2fb87 MOHAWK: read command messages, so LB doesn't just error out
svn-id: r54650
2010-11-29 21:41:21 +00:00
Matthew Hoops
2bd16f9e84 MOHAWK: Move Myst stack-specific code to its own directory
svn-id: r54648
2010-11-29 21:34:59 +00:00
Matthew Hoops
d3c78b8a3d MOHAWK: Don't store the sound name in SndHandle
svn-id: r54647
2010-11-29 21:18:20 +00:00
Johannes Schickel
0b028de573 MOHAWK: Remove superfluous junk (no not Mohawk itself).
svn-id: r54646
2010-11-29 21:14:20 +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
278b8a1429 MOHAWK: Play videos when the maze runner moves.
svn-id: r54643
2010-11-29 21:02:25 +00:00
Bastien Bouclet
a526bdb839 MOHAWK: Add Selenitic opcode 101, maze runner sound help.
svn-id: r54642
2010-11-29 21:02:11 +00:00
Bastien Bouclet
1b50b62157 MOHAWK: Minimal implementation of the maze runner. Selenitic is now completable.
svn-id: r54641
2010-11-29 21:01:57 +00:00
Bastien Bouclet
69ff712a48 MOHAWK: Implement Selenitic maze runner init opcodes 200, 201, 202, 205, 206
svn-id: r54640
2010-11-29 21:01:43 +00:00
Bastien Bouclet
c393f8f9d2 MOHAWK: Implement retrieving the invoking resource from data for init and exit scripts.
svn-id: r54639
2010-11-29 21:01:30 +00:00
Bastien Bouclet
3bd40b0d4b MOHAWK: Implement selenitic opcode 110 used for the maze runner exit logic.
svn-id: r54638
2010-11-29 21:01:15 +00:00
Bastien Bouclet
7ee7b91157 MOHAWK: Complete the list of stack / start cards.
Fix linking back from another age.

svn-id: r54637
2010-11-29 21:01:02 +00:00
Bastien Bouclet
f8026bf852 MOHAWK: Preinitialise saved card id for use when linking back to Myst from an other age.
svn-id: r54636
2010-11-29 21:00:49 +00:00
Bastien Bouclet
836aab9968 MOHAWK: Fix drawing the last step of an animated update
svn-id: r54635
2010-11-29 21:00:37 +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
bfd272a46e MOHAWK: Add a generic temp var for use by Myst scripts.
svn-id: r54632
2010-11-29 20:59:44 +00:00
Bastien Bouclet
056ebd43d4 MOHAWK: Complete drawing the animated rect if running the animation steps didn't draw the whole rect.
svn-id: r54631
2010-11-29 20:59:30 +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
fcc1dd6749 MOHAWK: Implement 4 types of animated updates for Myst
svn-id: r54629
2010-11-29 20:58:58 +00:00
Bastien Bouclet
f8a4190e75 MOHAWK: More animated update opcodes work for Myst
svn-id: r54628
2010-11-29 20:58:45 +00:00
Bastien Bouclet
b49cb3b35a MOHAWK: Start implementing opcodes using the animated update feature
svn-id: r54627
2010-11-29 20:58:28 +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
a9617cbe28 MOHAWK: Added dirty rects support for Myst
svn-id: r54625
2010-11-29 20:57:54 +00:00
Bastien Bouclet
2ac1fdad32 Revert "MOHAWK: Revert the screen cache since it has a huge performance hit, and is not needed as is."
This reverts commit 291bea1858.

svn-id: r54624
2010-11-29 20:57:41 +00:00
Bastien Bouclet
359cece3b7 MOHAWK: Implement opcode 3 "take / drop page", and the corresponding getters and setters for selenitic
svn-id: r54623
2010-11-29 20:57:27 +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
3b1440b0d4 MOHAWK: Implement / fix Myst opcode 4.
svn-id: r54621
2010-11-29 20:56:56 +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
0cff3be66f MOHAWK: More Myst common opcodes checking / renaming
svn-id: r54619
2010-11-29 20:56:21 +00:00
Bastien Bouclet
c7e488c201 MOHAWK: Rename and fix / explain a few Myst opcodes
svn-id: r54618
2010-11-29 20:56:04 +00:00
Bastien Bouclet
fa7ec5ae4c MOHAWK: Describe Myst opcode 9
svn-id: r54617
2010-11-29 20:55:50 +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
0ac6af59d1 MOHAWK: Check / Fixed / Renamed some simple opcodes.
svn-id: r54614
2010-11-29 20:54:52 +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
d8b5319f15 MOHAWK: Fixed some warnings
svn-id: r54612
2010-11-29 20:54:23 +00:00
Bastien Bouclet
95e97094fb MOHAWK: Completed the sound lock puzzle
svn-id: r54611
2010-11-29 20:54:11 +00:00
Bastien Bouclet
00e13f4c25 MOHAWK : Implemented selenitic sound lock slider opcodes and adjusted sliders behaviour.
svn-id: r54610
2010-11-29 20:53:56 +00:00
Bastien Bouclet
462a150b8a MOHAWK: Implement value setters for the selenitic sound lock sliders
svn-id: r54609
2010-11-29 20:53:38 +00:00
Bastien Bouclet
c832151fa5 MOHAWK: Implement slider value setting
svn-id: r54608
2010-11-29 20:53:26 +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
b4913548d0 MOHAWK: Implement sliders
svn-id: r54606
2010-11-29 20:53:00 +00:00
Bastien Bouclet
291bea1858 MOHAWK: Revert the screen cache since it has a huge performance hit, and is not needed as is.
svn-id: r54605
2010-11-29 20:52:46 +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
200cafd40f MOHAWK: Start implementing type 10 areas
svn-id: r54603
2010-11-29 20:52:20 +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
dab856c33f MOHAWK: Fix selenitic sound receiver left button
svn-id: r54601
2010-11-29 20:51:48 +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
a85346cb16 MOHAWK : Change areas inheritance to match the original
svn-id: r54599
2010-11-29 20:51:18 +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
49ed251573 MOHAWK: Name selenitic opcodes, and implement opcode 204
svn-id: r54596
2010-11-29 20:50:25 +00:00
Bastien Bouclet
4e420ef6fc MOHAWK: Keep resource type around
svn-id: r54595
2010-11-29 20:50:11 +00:00
Bastien Bouclet
117f46a884 MOHAWK : Cleanup selenium opcodes
svn-id: r54594
2010-11-29 20:49:56 +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
cef8d20fb2 MOHAWK: Divide GType_LIVINGBOOKSV3 into V2 and V3
svn-id: r54570
2010-11-29 12:51:53 +00:00
Matthew Hoops
6a456a0e0e MOHAWK: Set Maggie's Farmyard Adventure as an LB game
The game will start, but has many problems as it uses a later version of the LB code. Also, make sure we check for filename being empty to stop an assertion in the MacCursorManager.

svn-id: r54566
2010-11-29 06:35:50 +00:00
David Turner
207b9a25df MOHAWK: Add Detection Entry For "ABC By Dr Seuss" Living Book Game
svn-id: r54565
2010-11-29 01:34:56 +00:00
Matthew Hoops
2d924afa9d MOHAWK: Add basic Living Books support (all credit goes to fuzzie!)
v1 and v3 (both Windows and Mac) are working, v1 support is in better shape.

svn-id: r54558
2010-11-28 22:55:15 +00:00
Matthew Hoops
3d4ca8e405 MOHAWK: Add an isPlaying() and stopSound(id) function to Sound (for LB and others)
svn-id: r54514
2010-11-27 21:36:04 +00:00
Matthew Hoops
73ee52c670 MOHAWK: Fix non-LZ compressed old Mohawk bitmaps (thanks, fuzzie)
svn-id: r54501
2010-11-26 15:06:35 +00:00
Matthew Hoops
21c6bbde5d MOHAWK: Fill in meanings of known resources
svn-id: r54497
2010-11-26 14:28:33 +00:00
Matthew Hoops
abe6baafb9 MOHAWK: Enable the drawImage debug command for all LB games
svn-id: r54491
2010-11-26 06:08:04 +00:00
Max Horn
5ae718d148 MOHAWK: Add missing include, which prevented the CursorMan destructor from being called
svn-id: r54470
2010-11-25 11:18:20 +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
Matthew Hoops
4c733c4278 MOHAWK: Cleanup image surface handling
- 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-25 02:59:56 +00:00
Matthew Hoops
f5b1b9fa75 MOHAWK: Change the unused version detection field to 'appName' for use with LB
svn-id: r54462
2010-11-24 21:12:21 +00:00
Max Horn
be822d8bc2 MOHAWK: Pass Common::Strings directly to SaveFileManager, instead of first converting to a C string
svn-id: r54444
2010-11-23 22:32:55 +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
90cabfef38 MOHAWK: Find the small marble images by string; should fix German version
svn-id: r54431
2010-11-23 18:29:45 +00:00
Matthew Hoops
799757132f MOHAWK: Remove the no longer needed RLE8 hack
svn-id: r54430
2010-11-23 18:15:45 +00:00
Matthew Hoops
26bf0e8176 MOHAWK: Fix a typo fail (thanks, fuzzie)
svn-id: r54419
2010-11-22 18:09:31 +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
9d4827b5e1 MOHAWK: Fix gspit dome from always opening
svn-id: r54417
2010-11-22 17:51:54 +00:00
Matthew Hoops
cc6c7e33bf MOHAWK: Switch slider bitmap ID's to matching via string; fixes some versions
svn-id: r54416
2010-11-22 17:50:30 +00:00
Matthew Hoops
5616bde4e7 MOHAWK: Fix Living Books v1 sound (courtesy of fuzzie)
svn-id: r54397
2010-11-21 00:02:25 +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
Max Horn
2180b2d6b5 COMMON: Split common/stream.h into several headers
svn-id: r54385
2010-11-19 17:03:07 +00:00
Matthew Hoops
769b460f0d MOHAWK: Implement another Riven demo external
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-19 03:52:06 +00:00
Matthew Hoops
d94844f205 MOHAWK: Add support for Riven 24bpp images (not yet used)
svn-id: r54345
2010-11-18 20:40:48 +00:00
Matthew Hoops
411866ee18 MOHAWK: Cleanup bitmap surface and pack/draw function handling
svn-id: r54338
2010-11-18 19:06:38 +00:00
Matthew Hoops
ffc6ed643f MOHAWK: Remove unused drawRLE() function
svn-id: r54320
2010-11-18 13:48:49 +00:00
Matthew Hoops
48416a7f03 MOHAWK: Implement the old Mohawk bitmap format (thanks to fuzzie)
svn-id: r54319
2010-11-18 13:31:12 +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
Max Horn
668adaa461 GUI: Rename gui/GuiManager.* to gui/gui-manager.*
svn-id: r54265
2010-11-16 10:19:01 +00:00
Max Horn
427dc1ae93 GUI: Move major widgets to new directory gui/widgets
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-16 10:11:57 +00:00
Matthew Hoops
45f4f84e03 MOHAWK: Fix one more memory leak (hopefully the last :))
svn-id: r54166
2010-11-09 18:58:44 +00:00
Matthew Hoops
0dd4a46102 MOHAWK: Fix cache memory leak and some formatting
svn-id: r54165
2010-11-09 18:52:29 +00:00
Matthew Hoops
a4978587d8 MOHAWK: Fix memory leaks (thanks to digitall for finding)
svn-id: r54164
2010-11-09 18:38:35 +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
Matthew Hoops
025a14b326 MOHAWK: Remove console FIXME's
svn-id: r54109
2010-11-07 02:08:02 +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
Max Horn
4ccce19876 ENGINES: Enhance namespace comments a bit
svn-id: r53484
2010-10-15 12:48:19 +00:00
Max Horn
34cc54eaa9 Add doxygen comment for namespaces of several engines.
This is an empty template which ideally engine maintainers
would update and complete with concrete information...

svn-id: r53481
2010-10-15 12:28:56 +00:00
Torbjörn Andersson
c91a07229a JANITORIAL: Removed most punctuation at end of warning() and error()
Our warning() and error() functions always add an exclamation mark
to the end of the message anyway.

svn-id: r52791
2010-09-18 10:55:16 +00:00