Commit Graph

102 Commits

Author SHA1 Message Date
Johannes Schickel
7566a12352 Moved common kyra2/kyra3 item to KyraEngine_v2.
svn-id: r31819
2008-05-02 15:08:45 +00:00
Johannes Schickel
52003bc195 Added missing files, compiling should work again.
svn-id: r31818
2008-05-02 14:48:19 +00:00
Johannes Schickel
4b5f3266cf Started to refactor kyra2/kyra3 code to a common base. (regressions possible, compiling currently broken)
svn-id: r31817
2008-05-02 14:46:30 +00:00
Johannes Schickel
ec9a03964c - Renamed ScriptInterpreter -> EMCInterpreter
- Renamed ScriptState -> EMCState, ScriptData -> EMCData
- Removed 'Script' from function names inside EMCInterpreter
- Fixed KyraEngine::readSettings and KyraEngine::writeSettings for kyra3

svn-id: r31773
2008-04-29 15:12:09 +00:00
Johannes Schickel
ca7f7e2a3b Various cleanup.
svn-id: r31772
2008-04-29 14:33:29 +00:00
Johannes Schickel
a55d13e0a3 - Added volume param to KyraEngine::snd_playSoundEffect (0xFF per default as in original)
- Renamed KyraEngine_v3::playSoundEffect to KyraEngine_v3::snd_playSoundEffect
- Renamed KyraEngine_v3::playMusicTrack to KyraEngine_v3::snd_playWanderScoreViaMap
- Renamed KyraEngine_v3::o3_playMusicTrack to KyraEngine_v3::o3_playWanderScoreViaMap

svn-id: r31770
2008-04-29 14:08:08 +00:00
Johannes Schickel
c841481aa3 Cleanup.
svn-id: r31674
2008-04-23 19:36:21 +00:00
Johannes Schickel
f173041811 - moved kyra functor code to common/func.h
- adapted debugger code to use functor code from common/func.h
- adapted kyra engine to use functor code from common/func.h

svn-id: r31614
2008-04-20 15:47:11 +00:00
Johannes Schickel
bf46b5f178 - reworked tim handling
- moved tim interpreter to new class TIMInterpreter

svn-id: r31569
2008-04-19 13:52:09 +00:00
Florian Kagerer
1d086550a7 - complete support for the playable HOF demo
svn-id: r31560
2008-04-18 19:11:58 +00:00
Johannes Schickel
1f91dc0384 - some refactoring for Kyra3
- removed unneeded map code in KyraEngine_v3

svn-id: r31488
2008-04-12 23:17:21 +00:00
Johannes Schickel
4b58a431da Implemented support for Towns (and hopefully DOS floppy too) menus.
svn-id: r31438
2008-04-06 16:54:51 +00:00
Florian Kagerer
22efb801d4 svn-id: r31431 2008-04-06 14:57:01 +00:00
Johannes Schickel
22992f4aa5 Implemented opcode 33 o2_loadSoundfile.
svn-id: r31425
2008-04-06 14:11:43 +00:00
Johannes Schickel
0aecc4fb03 Implemented game options menu.
svn-id: r31378
2008-04-04 08:13:35 +00:00
Johannes Schickel
f4e6109b33 - fixed savegame description loading in kyra1
- added Kyra2 load menu, currently just accessable from startup menu though

svn-id: r31331
2008-03-30 18:27:46 +00:00
Johannes Schickel
7605a9a517 Changed HoF GUI code to use common GUI code now.
svn-id: r31295
2008-03-28 16:15:00 +00:00
Johannes Schickel
f7d14259c9 Implemented command text fadeout.
svn-id: r31285
2008-03-28 01:28:02 +00:00
Johannes Schickel
98f9a47619 Implemented opcodes:
- 38: o2_countItemsInScene
 - 57: o2_setTimerDelay
 - 84: o2_getSceneExitToFacing
 - 137: o2_removeItemFromScene

svn-id: r31279
2008-03-28 00:13:43 +00:00
Johannes Schickel
72484b204b - Implemented opcodes:
-> 51: o2_getElapsedSecs
  -> 52: o2_getTimerDelay
- Added warnings to o2_delaySecs and o2_delay for unimplemented subfunctions

svn-id: r31277
2008-03-27 23:53:49 +00:00
Johannes Schickel
bf26f82cbb Implemented opcode 74: o2_setSceneAnimPos2.
svn-id: r31276
2008-03-27 23:46:30 +00:00
Johannes Schickel
7a683ae436 Implemented opcodes:
- 164: o2_getSfxDriver
 - 165: o2_getVocSupport
 - 166: o2_getMusicDriver

svn-id: r31275
2008-03-27 23:12:45 +00:00
Johannes Schickel
3bea667a10 - Implemented support for --list-saves in Kyra engine
- Added support for variable length savegame name field
- Changed savegame identifier
- Increased savegame file version

svn-id: r31268
2008-03-27 18:03:00 +00:00
Johannes Schickel
a169619526 - Implemented opcode 97: o2_isAnySoundPlaying
- reworked sound channel handling in HoF
  => fixed some voice related bugs

svn-id: r31209
2008-03-21 16:18:27 +00:00
Johannes Schickel
cbc4c789da Implemented showing of credits after completing game.
svn-id: r31186
2008-03-18 19:06:53 +00:00
Johannes Schickel
80a73d4ae6 Renamed opcode 95 to o2_showItemString.
svn-id: r31185
2008-03-18 18:20:13 +00:00
Johannes Schickel
9dc4bcb407 - Impelemented opcodes:
-> 95: o2_showPickUpString
  -> 107: o2_waitForConfirmationClick
  -> 161: o2_getRainbowRoomData
  -> 162: o2_drawSceneShapeEx
- Did I mention that HoF is completable now?

svn-id: r31184
2008-03-18 18:07:05 +00:00
Johannes Schickel
83390027c2 - Implemented opcodes:
-> 12: o2_setCharacterFacing
  -> 14: o2_moveCharacter
  -> 61: o2_loadZShapes
  -> 83: o2_setPathfinderFlag
  -> 90: o2_setSceneAnimPos
  -> 160: o2_updateTwoSceneAnims
- Implemented dino riding sequence
- Fixed bug in KyraEngine_v2::initSceneScreen which caused some gfx glitches

svn-id: r31183
2008-03-18 17:00:26 +00:00
Johannes Schickel
2af4fc1034 - Implemented opcodes:
-> 21: o2_backUpScreen
  -> 22: o2_restoreScreen
  -> 28: o2_addItemToInventory
  -> 50: o2_wipeDownMouseItem
  -> 67: o2_loadPalette384
  -> 68: o2_setPalette384
  -> 165: o2_disableTimer
  -> 166: o2_enableTimer
  -> 167: o2_setTimerCountdown
- renamed some timer functions

svn-id: r31182
2008-03-18 15:50:43 +00:00
Johannes Schickel
4c880c77a4 Fixed pathfinder post processing in HoF, this should smooth walk paths a lot.
svn-id: r31179
2008-03-18 13:29:12 +00:00
Florian Kagerer
68a603139d -missed animator_v2.cpp in last commit
svn-id: r31171
2008-03-17 23:45:33 +00:00
Florian Kagerer
760b44da10 - implement opcode 29: o2_drawShape
svn-id: r31170
2008-03-17 23:32:26 +00:00
Johannes Schickel
845d65d8b7 Implemented opcode 98: o2_setDeathHandlerFlag
svn-id: r31168
2008-03-17 23:27:33 +00:00
Johannes Schickel
1042c6dccf Implemented opcodes:
- 70: o2_backUpInventoryGfx
 - 71: o2_disableSceneAnim
 - 72: o2_enableSceneAnim
 - 73: o2_restoreInventoryGfx

svn-id: r31167
2008-03-17 23:01:50 +00:00
Johannes Schickel
8752939fe4 Implemented opcodes:
- 91: o2_blockInRegion
 - 92: o2_blockOutRegion

svn-id: r31166
2008-03-17 22:42:12 +00:00
Johannes Schickel
f6f61a5bc3 - Fixed opcode 115 (fixed dragon scene)
- renamed opcode 155 to o2_addToSceneAnimPosAndUpdate

svn-id: r31165
2008-03-17 22:32:30 +00:00
Florian Kagerer
d71523ae15 remove unnecessary code duplication
svn-id: r31163
2008-03-17 21:15:24 +00:00
Johannes Schickel
c7ede8337e Let Kyra1 and Kyra2 use a common savegame version number. (cleanup)
svn-id: r31155
2008-03-17 18:13:28 +00:00
Johannes Schickel
91a800cf02 Implemented quick (via hotkeys) save/load suppot for HoF.
svn-id: r31154
2008-03-17 18:10:52 +00:00
Florian Kagerer
b9339221e4 - implement debugger commands: gamespeed and pass_codes
- implement opcode 151: meanWhileScene()
- fix dragon flight scene: this is still totally messed up, but at least the screen doesn't stay blank any more

svn-id: r31152
2008-03-17 01:34:24 +00:00
Florian Kagerer
04a2ac1485 - implement zanthIdleChat()
- bug fix for zanthRandomChat()

svn-id: r31147
2008-03-16 17:16:17 +00:00
Johannes Schickel
79cc924d0e Implemented opcode 16: o2_soundFadeOut
svn-id: r31146
2008-03-16 15:35:12 +00:00
Johannes Schickel
042666ca04 Implemented opcode 34: o2_removeItemSlotFromInventory
svn-id: r31145
2008-03-16 15:30:57 +00:00
Johannes Schickel
2bbaadbf95 Implemented opcodes:
- 15: o2_customCharacterChat
 - 18: o2_restoreTalkTextMessageBkgd
 - 94: o2_setCauldronState
 - 154: o2_setupSceneAnimation

svn-id: r31144
2008-03-16 15:28:05 +00:00
Johannes Schickel
f0d54b4513 Reworked skipFlag handling.
svn-id: r31143
2008-03-16 14:32:49 +00:00
Johannes Schickel
3bfa70bc3e Implemented opcode 30: o2_addItemToCurScene
svn-id: r31140
2008-03-16 13:39:40 +00:00
Johannes Schickel
2a95c653eb - Impelemented opcode 155: o2_stopSceneAnimation
- fixed crash while switching chapters

svn-id: r31139
2008-03-16 13:31:18 +00:00
Florian Kagerer
b75c790c7a - add opcode 146 - resetInputColorCode()
- add updateWaterFlasks()
- some fixes for mouse pointer positioning in sjis mode
- bug fix for tim player

svn-id: r31136
2008-03-16 02:00:14 +00:00
Johannes Schickel
3da00ccc79 - cleanup
- enabled some chat related code in KyraEngine_v2::runLoop and KyraEngine_v2::handleInputUnkSub

svn-id: r31134
2008-03-15 21:11:22 +00:00
Johannes Schickel
db3e317ab3 Implemented opcodes:
- 27: o2_displayWsaSequence
 - 99: o2_setDrawNoShapeFlag
 - 129: o2_chapterChange
 - 159: o2_processPaletteIndex

svn-id: r31133
2008-03-15 21:03:35 +00:00