aboutsummaryrefslogtreecommitdiff
path: root/kyra/script_v1.cpp
AgeCommit message (Collapse)Author
2006-02-11Moved engines to the new engines/ directoryMax Horn
svn-id: r20582
2006-02-11Kyra cleanup path step 2Oystein Eftevaag
* Moved more code out of kyra.cpp. Specifically moved Kyra1 specific sequence helper functions to sequence.cpp (and updateKyragemFading() from animator.cpp for the same reason), and some generic animation functions to animator.cpp. This is mainly in preparation for Kyra2. * Additionally, cleaned up my last bugfix a little bit :) svn-id: r20493
2006-02-11Fixes the bug when displaying the falling leafe scene in room 12 and text ↵Johannes Schickel
bugs which overwride the interface. (also in the scene with the ruby tree) svn-id: r20483
2006-02-091. Replaced the $Header$ tags in the Kyra filesOystein Eftevaag
2. Added code to let the player skip past dialogue by leftclicking or hitting '.' 3. Removed the waitTicks() function and replaced all usage with delay() 4. Corrected various speed issues, the intro should run at the correct pace now 5. Talkie versions will no longer display the story screen during the intro, as in the original. 6. Moved the delay() function adjacent to other delay functions. svn-id: r20438
2006-02-09Moved tons of code out of kyra.cpp, and removed three redundant functions ↵Oystein Eftevaag
(two stubs to sound functions, and one duplicate function (one with 'posion' in the name, one with 'poison'). The bulk of the moved code is moved to the newly created files items.cpp, scene.cpp and sequences.cpp svn-id: r20437
2006-01-18Update copyright noticeEugene Sandulenko
svn-id: r20088
2006-01-14Implemented "cmd_loadPageFromDisk" and "cmd_savePageToDisk".Johannes Schickel
svn-id: r20032
2006-01-14Fixed bug # 1401236. (KYRA: Erroneous animation in the pantheon of moonlight).Johannes Schickel
svn-id: r20026
2006-01-13Reorganized the sound code a bit and fixed bug # 1404414 (Missing speech ↵Johannes Schickel
patterns). svn-id: r20006
2006-01-13Implemented a few drawing functions used by the menu, corrected a few incorrectOystein Eftevaag
opcode debug messages, and blocked unnecessary sprite anim script looping. svn-id: r19992
2006-01-12Implemented 'ingame' sound handling, and named the unknown opcodes from the ↵Johannes Schickel
cd version and 'implemented' them. svn-id: r19988
2006-01-11Fixed for bug report # 1401360.Johannes Schickel
Also added some delay calls while waiting in some script functions. svn-id: r19982
2006-01-10Preliminary implementation of cmd_restoreBrandonsMovementDelay, to fix the ↵Oystein Eftevaag
walking speed issue reported on the forums svn-id: r19974
2006-01-10Fixes debug call of cmd_resetScaleMode.Johannes Schickel
svn-id: r19973
2006-01-06Implemented the end sequence, (only the rest of the winning end sequenceJohannes Schickel
is missing yet and one text part that malcolm says). => Kyra *should* be completeable now. Also used KyraEngine:: in all debug calls from the KyraEngine class. And fixes a bug while drawing shapes. svn-id: r19928
2006-01-04Added a little 'hack' for cmd_pauseTicks until it is fully implementedJohannes Schickel
and fixed some wsa playing functions. svn-id: r19908
2006-01-04Added a simple gui dialog if brandon dies (currently using scummvms gui system)Johannes Schickel
Implemented cmd_setDeathHandlerFlag and fixed debug call for cmd_drinkPotionAnimation. svn-id: r19907
2006-01-04Implemented cmd_shrinkBrandonDown and cmd_shrinkBrandonDown.Johannes Schickel
svn-id: r19902
2006-01-03Fixed some bugs with the timers.Johannes Schickel
also implemented: cmd_dispelMagicAnimation and cmd_runWSAFrames and implemented color fading of the kyragem in room 210. svn-id: r19898
2006-01-02More 'cleanup' for kyra.Johannes Schickel
Moved scene object drawing into its own class (see animator.h and .cpp) (this needs some more cleanup!) Moved text displaying into its own class (see text.h and .cpp) Also moved timer code to timers.cpp and button code to gui.cpp. Also changed wrong (c) information in debugger.h and debugger.cpp svn-id: r19890
2006-01-02Started to clean up the kyra engine.Johannes Schickel
Done: - moving all wsa specific things into a new class svn-id: r19888
2005-12-31Implemented:Johannes Schickel
- cmd_drinkPotionAnimation - cmd_fillFlaskWithWater - cmd_getIdolGem - cmd_itemOnGroundHere - cmd_queryCrystalState - cmd_setCrystalState - cmd_setBrandonScaleXAndY - cmd_resetScaleMode - cmd_getScaleDepthTableValue - cmd_setScaleDepthTableValue - cmd_brandonHealingSequence svn-id: r19871
2005-12-31Commited patches 1394374 and 1394374 with minor changes.Johannes Schickel
Thanks to clemmy for that. svn-id: r19870
2005-12-29Implemented:Johannes Schickel
- cmd_pauseTicks - cmd_setLogicPage - cmd_fatPrint - cmd_playWinterScrollSequence Also implemented functionallity of the other three jewels of the amulet. svn-id: r19847
2005-12-28Implemented:Johannes Schickel
- cmd_magicInMouseItem - cmd_poisonDeathNow - cmd_poisonBrandonAndRemaps - cmd_playFluteAnimation Also implemented healing function for brandon. And implemented poison death sequence. svn-id: r19841
2005-12-26Fixed bug with input handling and implemented: cmd_getBirthstoneGem.Johannes Schickel
svn-id: r19834
2005-12-24Started to implement button handling (atm only the inventory works)Johannes Schickel
Also implemented following opcodes: - cmd_waitForConfirmationMouseClick - cmd_drawItemShapeIntoScene - cmd_setFireberryGlowPalette - cmd_findBrightestFireberry - cmd_sceneToDirection - cmd_createAmuletJewel - cmd_getCharactersMovementDelay - cmd_setNoDrawShapesFlag - cmd_checkClickOnNPC - cmd_getFoyerItem - cmd_setFoyerItem - cmd_passiveProtection - cmd_fillRect Fixed bugs in some opcodes (mostly wrong debug calls) Also changed debuglevel of all sprite functions to level 6 (from 5). svn-id: r19831
2005-12-23Implemented cmd_magicOutMouseItem and also extended enterNewSceneJohannes Schickel
and initSceneScreen. svn-id: r19830
2005-12-22Small bugfixes with enterNewScene and cmd_pauseSeconds.Johannes Schickel
Implemented opcode: cmd_setSceneFile svn-id: r19829
2005-12-22Completed implementation of processItemDropJohannes Schickel
also changed implementation of itemDropDown a bit. Implemented new opcodes: - cmd_fadeSpecialPalette - cmd_setCustomPaletteRange svn-id: r19828
2005-12-22Fixed bug with an endless loop while clicking on herman after giving him the ↵Johannes Schickel
saw. svn-id: r19827
2005-12-20Fixed another gfx bug, this time sprite related, in the temple.Johannes Schickel
svn-id: r19816
2005-12-20Implemented cmd_makeAmuletAppear.Johannes Schickel
svn-id: r19815
2005-12-20Fixes gfx bug in the temple and the cave, also correctedJohannes Schickel
the encodeShape and drawShape function for CD version. svn-id: r19814
2005-12-14Implemented cmd_setScaleMode and changed some old debug calls with debugJohannes Schickel
level 9 to debug level 3. svn-id: r19799
2005-12-13Fixed a bug with transcendScenes in CD version there the old fileJohannes Schickel
is still loaded then. Also implemented: cmd_changeCharactersXAndY cmd_setCharactersLocation cmd_setCharactersCurrentFrame svn-id: r19790
2005-12-12Fixed displaying of brynns note for cd version.Johannes Schickel
svn-id: r19786
2005-12-10Implemented drawing of Brynns note.Johannes Schickel
svn-id: r19774
2005-12-10Implemented basic saving and loading. Use Ctrl+(0-9) to save, andOystein Eftevaag
Alt+(0-9) to load. Also extended the FastMode functionality to cover the main game, hit Ctrl-F to speed animations and chats. Set '.' to skip Brandon's chats, removed a redundant showMouse() and hideMouse() pair, and simplified some screen updating code. svn-id: r19773
2005-12-10Implemented cmd_bkgdScrollSceneAndMasksRight.Johannes Schickel
svn-id: r19772
2005-12-09Changed use of setTimerCountdown to new implemented setTimerDelay.Johannes Schickel
svn-id: r19771
2005-12-09Fixed bug with wrongly used shapes of items in a room.Johannes Schickel
Also implemented usage of NPC.EMC in the input function. And implemented following opcodes: - cmd_getCharactersLocation - cmd_setBrandonStatusBit - cmd_queryScenePhasingFlag - cmd_resetScenePhasingFlag - cmd_setScenePhasingFlag - cmd_phaseInSameScene - cmd_popMobileNPCIntoScene - cmd_setCharactersMovementDelay - cmd_queryBrandonStatusBit And a fix for the pathfinder and various other functions using the character positions values so they are now able to handle negative positions. svn-id: r19769
2005-12-09Implemented item dropping into a scene and renamed unkItemFunction to ↵Johannes Schickel
processItemDrop. svn-id: r19765
2005-12-09Finished item pick up code.Johannes Schickel
Changed writing of stack access in the script functions. Also fixed typo with cmdPoisonBrandonAndRemaps. svn-id: r19764
2005-12-09Commited patch # 1376551 (debug console, text fade, misc). Thanks to vinterstum.Johannes Schickel
svn-id: r19763
2005-12-08Fixed bug with item drawing.Johannes Schickel
Added support for item placing. (not user input controlled) svn-id: r19761
2005-11-27Added voices for cd version in the game.Johannes Schickel
Also increased RESFILE_VERSION for the new kyra.dat for the cd version. svn-id: r19717
2005-11-27More string fixes for CD version, due to stack order differences.Travis Howell
svn-id: r19715
2005-11-27Fix characters talking in CD version, stack order is different.Travis Howell
svn-id: r19714
2005-11-27Implemented cmd_runSceneAnimUntilDone and cmd_displayWSAFrameOnHidPage.Johannes Schickel
Also fixed cursor hotspot position. svn-id: r19707