Bastien Bouclet
216d3c5cef
MOHAWK: Leaving from the slides should go to the information screens in Myst Demo.
2011-08-07 16:54:20 +02:00
Alyssa Milburn
57d4bad11c
MOHAWK: Handle subpages in the LB console's changePage.
2011-07-03 18:18:00 +02:00
Max Horn
88913c0139
ALL: Remove trailing whitespaces
...
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-20 00:59:48 +02:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Alyssa Milburn
712c3bc201
MOHAWK: Fix CSTime-only builds.
2011-04-30 11:07:22 +02:00
Ori Avtalion
9414d7a6e2
JANITORIAL: Reduce header dependencies in shared code
...
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Max Horn
0ce2ca4e00
COMMON: Replace MKID_BE by MKTAG
...
MKID_BE relied on unspecified behavior of the C++ compiler,
and as such was always a bit unsafe. The new MKTAG macro
is slightly less elegant, but does no longer depend on the
behavior of the compiler.
Inspired by FFmpeg, which has an almost identical macro.
2011-04-12 16:53:15 +02:00
Matthew Hoops
b101fd6f03
MOHAWK: Allow disabling of Riven compilation
2011-03-28 22:26:23 -04:00
Matthew Hoops
4a7572d893
MOHAWK: Allow disabling compiling cstime
2011-03-28 22:26:23 -04:00
Matthew Hoops
e5811cd6c3
MOHAWK: Allow disabling compilation of Myst
2011-03-28 22:26:23 -04:00
Matthew Hoops
4235358fad
MOHAWK: Use direct access on the hashmap for Riven variables now
2011-03-23 23:14:59 -04:00
Matthew Hoops
4d6c020cf4
MOHAWK: Remove the Riven 'restart' console command
...
This ancient console function has no purpose any longer and is half-broken anyway.
2011-03-22 20:04:46 -04:00
Alyssa Milburn
4d094feb3a
MOHAWK: Allow mode changes from LB's debug console.
...
svn-id: r55706
2011-02-01 12:57:34 +00:00
Alyssa Milburn
86b90fe8a6
MOHAWK: Add some debug commands for CSTime.
...
svn-id: r55417
2011-01-22 11:37:37 +00:00
Alyssa Milburn
b10f072c9e
MOHAWK: Add CSTime engine.
...
svn-id: r55362
2011-01-20 21:35:00 +00:00
Matthew Hoops
2aca6d3838
MOHAWK: Rename some Myst-specific sound functions; cleanup
...
svn-id: r55314
2011-01-18 21:10:58 +00:00
Matthew Hoops
0761ab7b3a
MOHAWK: Rename some VideoManager functions so we have some unified naming between versions
...
svn-id: r55312
2011-01-18 20:30:16 +00:00
Bastien Bouclet
b55e593cdd
MOHAWK: Merge Myst intro opcode 100 with generic opcode 40 into engine method changeStack
...
svn-id: r55152
2011-01-07 19:26:31 +00:00
Bastien Bouclet
c870bf22d1
MOHAWK: Separate background sound handling from other sounds for Myst. Allow the scripts to change the background sound volume.
...
svn-id: r54953
2010-12-18 13:12:56 +00:00
Bastien Bouclet
24808d49eb
MOHAWK: Added the "resources" command to Myst's debug console, which lists the resources in the current card.
...
Allow the "drawRect" debug command to take a resource id as a parameter, to draw the resource's bounding rect.
svn-id: r54933
2010-12-16 16:12:38 +00:00
Bastien Bouclet
d4ce603361
MOHAWK: Rework Myst GFX updates
...
- Initial card state is drawn to the back buffer
- Script driven updates are drawn to the front buffer
Allows opcode 28 (copy back buffer to screen) and opcodes 29/33 (copy image to screen / back buffer) to work properly.
Fixes among others the generator room lights, and the matchbox.
svn-id: r54907
2010-12-14 19:11:16 +00:00
Matthew Hoops
6bc638a54b
MOHAWK: Fix the Myst drawImage debug command
...
svn-id: r54850
2010-12-10 02:10:18 +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
Alyssa Milburn
27799e354e
MOHAWK: move shared setPalette/copyImage routines into GraphicsManager
...
svn-id: r54743
2010-12-02 21:25:15 +00:00
Alyssa Milburn
90b61c0bd4
MOHAWK: add changePage Living Books debug command
...
svn-id: r54688
2010-11-30 21:06:40 +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
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
6a4ff1a9b5
MOHAWK : Finished implementing Selenitic sound receiver
...
svn-id: r54593
2010-11-29 20:49:42 +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
abe6baafb9
MOHAWK: Enable the drawImage debug command for all LB games
...
svn-id: r54491
2010-11-26 06:08:04 +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
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
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
34f570419a
MOHAWK: Cleanup
...
- 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-05 00:48:38 +00:00
Matthew Hoops
c1e63b55e4
MOHAWK: Print the rect of the hotspot in the 'hotspot' command too
...
svn-id: r52300
2010-08-23 14:41:25 +00:00
Matthew Hoops
8d0b207dd5
MOHAWK: Add initial work for the dome sliders
...
While the sliders cannot move yet, the game now knows if the puzzle is complete and whether you're over a slider or not. Drawing the sliders and moving the sliders will come next.
svn-id: r52292
2010-08-23 04:14:30 +00:00
Matthew Hoops
541daf918a
Introduce the RivenScriptManager to keep track of scripts and free them when 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-07-09 16:53:20 +00:00
Matthew Hoops
e5e90eb8a8
Add a debug console command to Riven for displaying combinations to puzzles.
...
svn-id: r50338
2010-06-26 19:09:45 +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
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
Johannes Schickel
aed02365ec
Strip trailing spaces/tabs.
...
svn-id: r47541
2010-01-25 01:39:44 +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
c20df070f3
Make the workaround for the Riven intro background music work in the DVD version too.
...
svn-id: r47371
2010-01-19 05:01:45 +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
Eugene Sandulenko
0ea022d076
Add Mohawk engine code. Part 1/3: main code.
...
svn-id: r46727
2009-12-29 23:18:24 +00:00