Commit Graph
26 Commits
Author SHA1 Message Date
Bastien Bouclet 2de359f23d MOHAWK: MYST: Make the scripts time accounting pause safe 2018-06-13 08:00:29 +02:00
Bastien Bouclet 47ddd9c214 MOHAWK: MYST: Move the current stack id to ScriptParser 2018-06-13 07:55:55 +02:00
Bastien Bouclet 13b3371f1a MOHAWK: MYST: Extract a Card class out of the main engine class
This is to allow having multiple cards loaded at the same time in the
future.
2018-06-13 07:55:55 +02:00
David Fioramonti 52e247e239 MOHAWK: MYST: Make Dni/Atrus endings an enum
The global variable "ending" tracks various
states that Atrus can be in.

This variable determines what video of
Atrus will be playing and if the brother
books have been destroyed.

Despite this variable being called ending
there are other endings not captured by
this variable (like the brother endings).

Also change spelling of Dini to Dni for one
usage of ActiveAge from a previous commit.
2018-04-27 19:22:00 +02:00
Bastien Bouclet 3d2509a89c MOHAWK: MYST: Reset the main cursor when starting the credits
The credit stack does not have the data required to display all the
cursors, especially the page cursors.

Fixes Trac#10501.
2018-04-26 22:12:58 +02:00
Bastien Bouclet 84b2dc5cc8 MOHAWK: Fix some clang-tidy warnings 2018-03-31 13:36:09 +02:00
Bastien Bouclet 757459bd49 MOHAWK: Myst: Don't cast function pointers when registering commands 2017-07-22 20:38:56 +02:00
Bastien Bouclet a99397f126 MOHAWK: Myst: Improve script execution tracing 2017-07-22 20:38:56 +02:00
Bastien Bouclet 3e99dd8ccc MOHAWK: Myst: Switch to bounds checked opcode arguments 2017-07-22 20:38:56 +02:00
Bastien Bouclet 64303abb07 MOHAWK: Myst: Update the screen only once per frame
Change all inner loops to call the same frame function.

Remove the draw delay code. Now that we have proper frame pacing it is
not necessary anymore to wait before drawing to make sure the previous
frame stayed on the screen long enough.

Fixes #9915, #9922, #9923.
2017-07-22 20:38:56 +02:00
Ori Avtalion 253e18c440 JANITORIAL: Reduce GUI header dependencies 2016-04-14 13:30:14 +03:00
Bastien Bouclet cfa2d62d5d MOHAWK: Fix error at the end of the Myst credits 2016-03-05 20:49:12 +01:00
Bastien Bouclet 22882f54e1 MOHAWK: Fix uninitialized memory accesses in the Myst stacks 2016-02-07 15:27:03 +01: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
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
Bastien Bouclet 369db4fdfd MOHAWK: Shorten Myst stack classes names 2011-02-15 21:43:38 +01:00
Bastien Bouclet fc605427a8 MOHAWK: Put togeter the Myst stack classes in a namespace 2011-02-15 21:43:37 +01:00
David Turner e395aeff05 MOHAWK: Removed direct OSystem Quit calls from Myst Mohawk Interpreter.
This avoids the same issue that caused leakage in other engines.

svn-id: r55584
2011-01-28 08:37:27 +00:00
Matthew Hoops c35fa646ce MOHAWK: Move Myst's o_quit opcode to the base class
svn-id: r55304
2011-01-18 17:42:34 +00:00
Bastien Bouclet d202e4c9dc MOHAWK: Change Myst credits stack not to use the var store
svn-id: r55170
2011-01-08 17:40:29 +00:00
David Turner cc30fa378e MOHAWK: Add Framework getVar() code to Myst Credits Stack Script Parser.
svn-id: r55016
2010-12-22 21:08:26 +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 bdc3e5c353 MOHAWK: Cleanup Myst opcode handling and reduce code duplication
svn-id: r54693
2010-12-01 03:30:00 +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