Commit graph

72 commits

Author SHA1 Message Date
Bastien Bouclet
79e086ba7b MOHAWK: Turn script commands into SharedPtrs
Commands can be shared between scripts when adding commands
from one script to another.
2017-07-03 08:50:10 +02:00
Bastien Bouclet
efcf38f95f MOHAWK: Factor out stack name-id mapping 2017-07-03 08:50:10 +02:00
Bastien Bouclet
e7146c9bf7 MOHAWK: Move the changeToStack command to a dedicated class 2017-07-03 08:50:10 +02:00
Bastien Bouclet
6d4260719c MOHAWK: Add a convenience method for creating a script with a single command 2017-07-03 08:50:10 +02:00
Bastien Bouclet
14bbf8aab4 MOHAWK: Move the external commands to their respective stacks 2017-07-03 08:50:10 +02:00
Bastien Bouclet
8fcebc12c6 MOHAWK: Fix dumping Riven external commands' arguments 2017-07-03 08:50:10 +02:00
Bastien Bouclet
1a5b2a1e50 MOHAWK: Move MLST loading to RivenCard 2017-07-03 08:50:10 +02:00
Bastien Bouclet
3f1f407c14 MOHAWK: Remove VideoHandle usage 2017-07-03 08:50:10 +02:00
Bastien Bouclet
c623a76767 MOHAWK: Ensure constructing and deleting cards does not have side effects 2017-07-03 08:50:10 +02:00
Bastien Bouclet
9ab0d53cd3 MOHAWK: Add console commands to dump Riven cards and stacks to stdout 2017-07-03 08:50:10 +02:00
Bastien Bouclet
05bed84a85 MOHAWK: Rename the card and stack accessors 2017-07-03 08:50:10 +02:00
Bastien Bouclet
670a3c4558 MOHAWK: Move card id remapping to RivenStack 2017-07-03 08:50:10 +02:00
Bastien Bouclet
3c8decec0a MOHAWK: Move the resource names to RivenStack 2017-07-03 08:50:10 +02:00
Bastien Bouclet
f752066a8e MOHAWK: Introduce a new RivenStack class 2017-07-03 08:50:10 +02:00
Bastien Bouclet
aa0c89da03 MOHAWK: Move running the card leave script to the RivenCard destructor 2017-07-03 08:50:10 +02:00
Bastien Bouclet
9b2c90c0b3 MOHAWK: The ignoreNextMouseUp workaround is not necessary anymore
We now check the mouse up event happens on the same hotspot as the
mouse down event.
2017-07-03 08:50:10 +02:00
Bastien Bouclet
c1331e124f MOHAWK: Move the current hotspot to RivenCard 2017-07-03 08:50:10 +02:00
Bastien Bouclet
871516a969 MOHAWK: Move the effect list to RivenCard 2017-07-03 08:50:10 +02:00
Bastien Bouclet
c1e0b8684b MOHAWK: Move BLST list handling to RivenCard 2017-07-03 08:50:10 +02:00
Bastien Bouclet
4bdf88496d MOHAWK: Move Riven's name lists to a separate class 2017-07-03 08:50:10 +02:00
Bastien Bouclet
099b3b3d8f MOHAWK: Move the hotspot list to RivenCard
Also replace all hardcoded accesses to the hotspot array with hotspot queries.
2017-07-03 08:50:10 +02:00
Bastien Bouclet
67d9a3c71b MOHAWK: Make the RivenHotspot fields private 2017-07-03 08:50:10 +02:00
Bastien Bouclet
17f1903833 MOHAWK: Remove the RivenHotspot enabled field 2017-07-03 08:50:10 +02:00
Bastien Bouclet
23bbf05c91 MOHAWK: Start converting RivenHotspot into a class 2017-07-03 08:50:10 +02:00
Bastien Bouclet
1b062d1e39 MOHAWK: Move the sound lists to RivenCard 2017-07-03 08:50:10 +02:00
Bastien Bouclet
2fbe284a31 MOHAWK: Chane Riven's graphics manager to automatically handle screen updates 2017-07-03 08:50:10 +02:00
Bastien Bouclet
1bb5424ddd MOHAWK: Move PLST handling to the RivenCard class 2017-07-03 08:50:10 +02:00
Bastien Bouclet
abe6889bbe MOHAWK: Remove the current card id from the Riven engine class 2017-07-03 08:50:10 +02:00
Bastien Bouclet
3c2ca08877 MOHAWK: Add a script queue to Riven's script manager 2017-07-03 08:50:10 +02:00
Bastien Bouclet
bc01a276f9 MOHAWK: Add documentation to Riven's script module 2017-07-03 08:50:10 +02:00
Bastien Bouclet
f944b62988 MOHAWK: Change Riven's scripts not to have a type 2017-07-03 08:50:10 +02:00
Bastien Bouclet
9b9fa7e0a5 MOHAWK: Refactor the script manager to read data to Command classes 2017-07-03 08:50:10 +02:00
Bastien Bouclet
2756d6226b MOHAWK: Add a Riven specific sound manager
- Add ambient sound fading
- Fix ambient sound volume to use the list-level volume
2016-08-11 19:53:20 +02:00
Matthew Hoops
7e6c8be7db MOHAWK: Make video handles actual objects 2015-07-17 20:05:00 -04:00
Matthew Hoops
0a899876e7 MOHAWK: Use original stack ID mapping for Riven 2014-05-03 22:55:50 -04:00
Johannes Schickel
abd9e92086 MOHAWK: Make GPL headers consistent in themselves. 2014-02-18 02:39:36 +01:00
Matthew Hoops
5e52b0a5d4 MOHAWK: Split the graphics classes into their own files 2012-03-10 13:55:08 -05: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
Matthew Hoops
a495632e07 MOHAWK: Finish implementation of Riven's stopSound() opcode 2011-06-14 10:46:48 -04:00
Matthew Hoops
5174832e31 MOHAWK: Finish implementation of Riven's storeMovieOpcode opcode 2011-06-14 10:36:49 -04:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16: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
Matthew Hoops
4235358fad MOHAWK: Use direct access on the hashmap for Riven variables now 2011-03-23 23:14:59 -04:00
Matthew Hoops
e82e5e32ff MOHAWK: Begin to implement Riven opcode 38
Also, renamed it to better reflect its purpose
2011-03-22 20:33:38 -04:00
Matthew Hoops
1ca6781859 MOHAWK: Minor cursor call cleanup 2011-03-22 20:13:01 -04:00
Matthew Hoops
ad7400524b MOHAWK: Make Riven use original executables for cursors
It will try both Windows and Macintosh executables. The hardcoded cursors have been removed.
2011-03-07 01:10:01 -05:00
Matthew Hoops
d6a4ff3639 MOHAWK: Recheck the current hotspot if a script has changed the enabled hotspots in Riven
svn-id: r55493
2011-01-24 02:43:07 +00:00
Matthew Hoops
191d85f174 MOHAWK: Implement Riven's stopSound() and fadeAmbientSounds() opcodes
svn-id: r55460
2011-01-23 07:02:49 +00:00
Matthew Hoops
fd3188a6fc MOHAWK: Cleanup Riven opcode 12 (now known as stopSound())
svn-id: r55457
2011-01-23 05:12:50 +00:00
Matthew Hoops
e2d9a34bee MOHAWK: Cleanup some Riven code
svn-id: r55327
2011-01-19 15:22:39 +00:00