aboutsummaryrefslogtreecommitdiff
path: root/kyra/kyra.cpp
AgeCommit message (Collapse)Author
2006-01-17Request screen update after mouse movement.Joost Peters
This fixes the invisible cursor in backends which only update/draw the mouse in updateScreen() (i.e. atleast the PSP, PS2 and DC backends) svn-id: r20072
2006-01-14Implemented "cmd_loadPageFromDisk" and "cmd_savePageToDisk".Johannes Schickel
svn-id: r20032
2006-01-14Fixes delay while waiting for the voice in the intro.Johannes Schickel
svn-id: r20025
2006-01-13Reorganized the sound code a bit and fixed bug # 1404414 (Missing speech ↵Johannes Schickel
patterns). svn-id: r20006
2006-01-13Committed patch # 1404734 (KYRA: kyra/kyra.cpp small build warning fix)Johannes Schickel
svn-id: r20004
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-12Fixed some issues with fading sound.Johannes Schickel
svn-id: r19990
2006-01-12Fixed sound while loading games and fixed bug # 1403370.Johannes Schickel
svn-id: r19989
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-10Fix for bug #1401319, decreased width of backed up region when text is ↵Oystein Eftevaag
displayed. svn-id: r19971
2006-01-08Removed exiting the game on ESC, and making yet another sprite width ↵Oystein Eftevaag
adjustment (to fix some graphics glitches). svn-id: r19953
2006-01-08Fixed bug with sequences playing and fixed a bug with an invaild write.Johannes Schickel
svn-id: r19945
2006-01-07Implemented playing of the end sequence, still credits do not show up.Johannes Schickel
svn-id: r19941
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 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-03Fixed wrong formatting in animator.hJohannes Schickel
Reworked the savefiles and extracted the save/load code to saveload.cpp. svn-id: r19900
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
2006-01-01Change load & save quick save keys, to match other engines.Travis Howell
svn-id: r19878
2006-01-01fixed warningsPaweł Kołodziejski
svn-id: r19877
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-30Fixed compilation.Torbjörn Andersson
svn-id: r19862
2005-12-30* Replaced MDT_PREFER_NATIVE/MDT_NATIVE by MDT_PREFER_MIDI/MDT_MIDI).Max Horn
* Changed MidiDriver::createMidi so that if MD_ADLIB is passed, it now *does* instantiate the adlib driver. * Rewrote MidiDriver::detectMusicDriver (code should be clearer now, and hopefully easier to adapt/maintain). Note that the behavior changed slightly (this may require some tweaking). * Added MidiDriver::findMusicDriver which works similar to the old MidiDriver::parseMusicDriver but returns the full MidiDriverDescription and ignores all characters in the passed driver name following a colon ":". * Changed MidiDriver::parseMusicDriver to use MidiDriver::findMusicDriver. * Changed game engines to match the changes made to MidiDriver. * Modified SCUMM engine to not record the selected midi/music driver (in _midiDriver), but rather the music *type* (in _musicType). svn-id: r19859
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-26Started to implement the amulet button callback.Johannes Schickel
Also implemented some of the first jewel functionallity. And cleaned up the resource unloading a bit. svn-id: r19833
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-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-18Fixes bug with no gfx update after updateSentenceCommand.Johannes Schickel
svn-id: r19805
2005-12-14Implemented command line update when picking up or dropping down items.Johannes Schickel
svn-id: r19798
2005-12-13Implemented more of sceneScreenInit and completed transcendScenes.Johannes Schickel
svn-id: r19796
2005-12-13Improved user controlled input handling.Johannes Schickel
Disabled use of _mouseLockCount in screen.cpp for now. (that should fix a bug with not displayed cursor after using the debugger) svn-id: r19794
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-12Increased size of VOC filename buffer to accomodate for 1000.VOC andTorbjörn Andersson
beyond. (Fixes a failed assertion for me.) svn-id: r19785
2005-12-12Reworked the resource manager. Now it doesn't load all package files intoJohannes Schickel
memory but loads the needed part from the original files if needed. Also added CHAPTER1.VRM to the default CD filelist to fix that scummvm quits then looking at items in the CD version. (CHAPTER[2-5].VRM is NOT needed since they are the same files as CHAPTER1.VRM). svn-id: r19784
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