aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/myst_stacks/mechanical.cpp
AgeCommit message (Collapse)Author
2018-07-15MOHAWK: MYST: Have Mech fortress west direction persists after returningDavid Fioramonti
Fixes Trac#10575. When stepping away or pressing the buttom for the mechanical age fortress rotator after setting it west it would be south. This is because some variables used for a workaround were being reset everytime the rotator puzzle was being reinitalized (in o_fortressRotation_int). Which happens when the player steps back up to the rotator controls. This change simply removes the variables being reset so they retain the variables they had before. Those variables are already initalized in the Mechanical constructor.
2018-07-15MOHAWK: MYST: Don't set Mech direction when elevator button is pressedDavid Fioramonti
The direction that the fortress is pointing is calculated when the user locks on using the left throttle (after the gears have stopped). It also happens when the user hits the button. There is only a difference in the two behaviors when the user has changed the direction, but not locked on. The 2nd case can lead to the direction be different than what the last locked on direction was. Since the user can lock the direction to say north, turn it to west, not lock on and hit the button, which will set the direction to west. This can lead to confusion since a direction sound isn't played in this case. This change removes code, to prevent the recalculation of the direction when the button is pressed so that direction is always what it was last locked onto.
2018-06-24MOHAWK: MYST: Turn FortressRotation into a Direction enumDavid Fioramonti
2018-06-13MOHAWK: MYST: Make the scripts time accounting pause safeBastien Bouclet
2018-06-13MOHAWK: MYST: Move the current stack id to ScriptParserBastien Bouclet
2018-06-13MOHAWK: MYST: Extract a Card class out of the main engine classBastien Bouclet
This is to allow having multiple cards loaded at the same time in the future.
2018-04-25MOHAWK: MYST: Turn held page state into an enumdafioram
Previously, the held page stage was an unsigned int 16 with values 0-13. The enum will make its state more clear.
2018-03-31MOHAWK: Fix some clang-tidy warningsBastien Bouclet
2017-08-10MOHAWK: Myst: Stop gears video before calling elevator on mechanicalBastien Bouclet
Fixes #10108.
2017-07-30MOHAWK: Myst: Set the mixer sound type to SFX for videosBastien Bouclet
Also simplify video filename construction.
2017-07-22MOHAWK: Myst: Don't cast function pointers when registering commandsBastien Bouclet
2017-07-22MOHAWK: Myst: Improve script execution tracingBastien Bouclet
2017-07-22MOHAWK: Myst: Switch to bounds checked opcode argumentsBastien Bouclet
2017-07-22MOHAWK: Myst: Rewrite the sound codeBastien Bouclet
It now more closely matches the original. Effect sounds are now stopped when resuming background sounds. Fixes #9574, Fixes #9920.
2017-07-22MOHAWK: Myst: Move the sound code to its own classBastien Bouclet
2017-07-22MOHAWK: Myst: Update the screen only once per frameBastien Bouclet
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-22MOHAWK: Myst: Change blocking sounds to use the main loopBastien Bouclet
2017-07-22MOHAWK: Myst: Change blocking movies and waits to use the main loopBastien Bouclet
2017-07-22MOHAWK: Get rid of VideoHandleBastien Bouclet
2017-07-05MOHAWK: Myst: Poll for events every 10ms when waitingBastien Bouclet
2016-03-05MOHAWK: Add a method to get a video handle from a MystAreaVideoBastien Bouclet
Use it to fix the fortress rotation controls once more
2016-02-22MOHAWK: Silence a warningBastien Bouclet
2016-02-07MOHAWK: Fix Myst's fortress simulator using a hackBastien Bouclet
The proper solution implies support for playing movies with edit lists backwards in QT code.
2016-02-07MOHAWK: Fix uninitialized memory accesses in the Myst stacksBastien Bouclet
2016-02-07MOHAWK: Don't downcast _invokingResource using static_castBastien Bouclet
2016-02-07MOHAWK: Rename Myst's Area classesBastien Bouclet
2015-07-17MOHAWK: Move further VideoManager functionality to VideoEntryMatthew Hoops
2015-07-17MOHAWK: Make video handles actual objectsMatthew Hoops
2014-06-02MOHAWK: Use float constants in Myst code.Johannes Schickel
This silences some float conversion warnings.
2014-02-18MOHAWK: Make GPL headers consistent in themselves.Johannes Schickel
2013-01-03MOHAWK: Silence warningsMatthew Hoops
2012-12-16MOHAWK: Fix an uninitialized var usage in MechanicalBastien Bouclet
Thanks to digitall for the report
2012-12-16MOHAWK: Add the remaining Myst transition effectsBastien Bouclet
2012-12-16MOHAWK: Implement most of Myst's transition systemBastien Bouclet
2012-12-16MOHAWK: Implement the last two Myst opcodesBastien Bouclet
2012-12-16MOHAWK: Add a workaround for Myst ME fortress rotation bugBastien Bouclet
2012-12-16MOHAWK: Implement Mechanical fortress rotationBastien Bouclet
Both the simulation and the actual rotation.
2012-03-10MOHAWK: Split the graphics classes into their own filesMatthew Hoops
2011-07-02MOHAWK: Misc Mechanical fixes. Many thanks to Patrick Monnerat for the patch.Bastien Bouclet
- Adds break statements where missing in Mechanical::toggleVar() and Mechanical::setVarValue() - Restore proper numbering of Achenar and Sirrus panel state variables, which were wrongly swapped. - When bird is singing, play sound continuously. - When operating the fortress elevator, keep the engine sound active while the elevator is moving.
2011-05-14MOHAWK: Implement Mechanical opcodes 115, 116, 117, 118, 119 and 120. ↵Bastien Bouclet
Fortress rotation simulator controls. QuickTime Custom framerate and backwards playback is required for the actual simulation to be implemented (opcode 206).
2011-05-14MOHAWK: Implement Mechanical opcodes 109, 110, 111, 112, 113 and 114. ↵Bastien Bouclet
Fortress rotation controls. QuickTime Custom framerate and backwards playback is required for the actual rotation to be implemented (opcode 205).
2011-05-12MOHAWK: Implement Mechanical opcodes 101, 103 and 202. Singing Bird.Bastien Bouclet
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
2011-03-05MOHAWK: Implement Mechanical opcode 122, elevator go down timerBastien Bouclet
2011-02-22MOHAWK: Implement Mechanical elevator top movieBastien Bouclet
2011-02-22MOHAWK: Implement Mechanical elevator moviesBastien Bouclet
2011-02-22MOHAWK: Implement Mechanical elevator rotationBastien Bouclet
2011-02-15MOHAWK: Shorten Myst stack classes namesBastien Bouclet
2011-02-15MOHAWK: Put togeter the Myst stack classes in a namespaceBastien Bouclet