116 Commits

Author SHA1 Message Date
Andrew Kurushin
3b01bef51b fixes some todo (hardcoded resource ids -> customized per game)
preparation for option dialog (wip)

svn-id: r18217
2005-05-22 11:59:22 +00:00
Eugene Sandulenko
cf9049811e Implement sfSimulSpeech2 which is used in lodge when talking to Sakka.
Fixed sfSimulSpeech(), so it plays voices with CD version.

svn-id: r18212
2005-05-22 01:20:47 +00:00
Andrew Kurushin
284ef431e1 fixed loadsave item resource id
partialy fixed protect rat

svn-id: r18174
2005-05-18 18:28:10 +00:00
Eugene Sandulenko
f7df4797a8 Implement proper quitting. Added quitting to sfScriptGotoScene.
svn-id: r18173
2005-05-18 16:18:00 +00:00
Andrew Kurushin
1d31cd1223 fixed give verb
fixed occasional verbs redraw

svn-id: r18113
2005-05-15 17:45:59 +00:00
Andrew Kurushin
3386b6cdd1 fixed boar king crush
svn-id: r18067
2005-05-12 09:12:15 +00:00
Torbjörn Andersson
e0e27b0a09 Cleanup
svn-id: r18045
2005-05-11 06:57:58 +00:00
Max Horn
cca744f69a Comply to our coding conventions
svn-id: r17975
2005-05-08 21:49:52 +00:00
Andrew Kurushin
a81b093e65 fixed sfSceneEq bug
fixed load actors entrance
removed some orphans

svn-id: r17964
2005-05-08 14:04:06 +00:00
Andrew Kurushin
a909052c8d fixed object frawing
implemented sfGetObjImage, sfSetObjImage, sfSetObjName

svn-id: r17789
2005-04-24 15:17:38 +00:00
Andrew Kurushin
edad36ee60 fixed sfDropObject implementation
svn-id: r17767
2005-04-23 12:34:35 +00:00
Andrew Kurushin
ca33ec4563 fixes sfEnableZone ( 'house' problem )
svn-id: r17751
2005-04-22 16:41:44 +00:00
Andrew Kurushin
cdede6caa4 implemented inventory
todo: timeout catchup & capital 'U' & 'D' handling

svn-id: r17748
2005-04-22 14:11:04 +00:00
Eugene Sandulenko
283a9f35ac Add not yet correctly working save/load. Use key F7 for saving
and F8 for loading. Now works only within current scene and restores
to entrance #0 which is wrong.

svn-id: r17726
2005-04-21 01:30:07 +00:00
Andrew Kurushin
d52032c75c converse support improved (still has some bugs)
fixed: now protagonist can't be target object
fixed: statusbar color
added: *mouseButtonPressed in SagaEngine

svn-id: r17672
2005-04-18 20:03:14 +00:00
Eugene Sandulenko
769b2fed46 o Unstubbed sfPreDialog -- we have enough code for that
o Started to restore inventory functionality

svn-id: r17666
2005-04-18 10:26:43 +00:00
Eugene Sandulenko
1cce2fd366 Renamed 2 script functions which are correct.
Moved messages about missinf script functions to top level and made
them more visible

svn-id: r17651
2005-04-17 11:53:25 +00:00
Eugene Sandulenko
44acfd9467 Implement sfGetDeltaFrame and sfEnableZone. Fixes freeze when sanctuary
gates open and also used in world map.

Spelling and indentation fixes here and there.

svn-id: r17640
2005-04-16 20:59:24 +00:00
Andrew Kurushin
bffeb58d06 fixed: sprite hittest, speech draws in screen bounds
svn-id: r17635
2005-04-16 16:55:35 +00:00
Andrew Kurushin
f6d87c8689 fixed ram dialog crash
implemented: sfScriptSpecialWalk,sfScriptWalkRelative,sfScriptMoveRelative

svn-id: r17618
2005-04-16 11:03:34 +00:00
Andrew Kurushin
8ea88c95d6 - fixed tile doors drawing
- right mouse action fixed

svn-id: r17347
2005-04-03 15:32:04 +00:00
Andrew Kurushin
3025db0d07 - changescene on fair for tents
- some memory deallocation fixup

todo: fix follower stuckiness in tents

svn-id: r17180
2005-03-18 17:11:37 +00:00
Torbjörn Andersson
cfe44d6053 Apparently, in IHNM opcode #75 can take three parameters. Added stub to
avoid division by zero.

svn-id: r17040
2005-03-08 15:28:01 +00:00
Torbjörn Andersson
189492eef1 Fixed typo.
svn-id: r17039
2005-03-08 15:06:57 +00:00
Eugene Sandulenko
ff8094aad5 Combine actordata.cpp and objectdata.cpp into itedata.cpp. These are
ITE specific and from other hand IHNM has these data in resources.

svn-id: r16662
2005-01-28 12:54:09 +00:00
Eugene Sandulenko
285f6a6a2b Let IHNM run again. It has 105 script functions.
svn-id: r16653
2005-01-28 03:47:12 +00:00
Eugene Sandulenko
0523480a70 Applied patch #1106775 "SAGA colours". This simplifies code considerably, and
moreover getBlack() didn't always work correctly for some reason. If IHNM
uses different colors we will switch to variables, but that could be addressed
later or at least when someone will start to work on it more time than now.

svn-id: r16647
2005-01-27 20:07:04 +00:00
Torbjörn Andersson
8bfbc143a8 The sfRand() script function was slightly wrong
Old behaviour:     0 <= random number <= param
Correct behaviour: 0 <= random number < param

svn-id: r16636
2005-01-25 18:16:02 +00:00
Eugene Sandulenko
86dc6a3d85 Another spot of kReplyOnce usage. Thanks to proper memory addressing now
it is possible to implement.

svn-id: r16625
2005-01-23 21:52:43 +00:00
Eugene Sandulenko
b646d63dad Reenable stub for latter demos in sfScriptGotoScene()
svn-id: r16623
2005-01-23 17:06:15 +00:00
Max Horn
8f51510dec Fix warnings
svn-id: r16622
2005-01-23 14:30:59 +00:00
Andrew Kurushin
4f68706f3c implemented sfWaitWalk scriptFunction
svn-id: r16619
2005-01-22 21:40:54 +00:00
Andrew Kurushin
01a863414e - removed returning value from scriptFunctions
- implement some scriptFunctions

svn-id: r16618
2005-01-22 19:21:38 +00:00
Andrew Kurushin
58ec0f0aad problems solved:
- Allow more than one script work at once
- Proper implementation of address methods

some opcodes may be broken - cause work in progress
todo: rewrite opcodes with new address functionality

svn-id: r16604
2005-01-21 21:55:54 +00:00
Andrew Kurushin
0ccf59faee partly implemented game objects
svn-id: r16595
2005-01-18 21:13:44 +00:00
Eugene Sandulenko
a5c87d3620 Now it is possible to lead a conversation with use of keys (1-4).
Things which are missing:
  (a) mouse support due to incomplete interface implementation
  (b) arrows do not pop up by same reason mentioned above
  (c) scrolling does not work
  (d) kReplyOnce flag is missing due to wrong threads memory implementation

svn-id: r16589
2005-01-17 23:11:31 +00:00
Eugene Sandulenko
5200b8f1fa o Proper implementation of sfPlaySound() which knows about CD<->floppy
difference
o Fix regression in Mac titles where scene LUT wasn't conversed
o Fix sound types in many games. Old Win demo is still wrong.

svn-id: r16586
2005-01-17 18:49:00 +00:00
Torbjörn Andersson
f8865304bd Initialize a few variables to fix Valgrind warnings. (I'm hoping they were
the reason the ITE intro crashed for me.) I still get read warnings in
Sprite::decodeRLEBuffer() though.

Also added a couple of hacks to keep the IHNM intro alive. Once we support
IHNM actors, we'll be able to remove them.

svn-id: r16579
2005-01-17 07:21:08 +00:00
Torbjörn Andersson
eb2bffd185 sfPlayMusic() takes two parameters in IHNM. Since our current
implementation is only right for ITE, disable it for IHNM for now.

svn-id: r16572
2005-01-16 17:06:40 +00:00
Andrew Kurushin
2f20dd57c2 some work in progress on verb stuff:
- many structers and fields renamed to proper names
- added missing functions

svn-id: r16562
2005-01-15 20:12:49 +00:00
Andrew Kurushin
244b227b19 - remove game.h & image.h
- all display information of current game goes to SagaEngine
- remove GameFontIds
- hide SagaEngine _gameId,_gameType & etc with methods getGameId(), getGameType()

svn-id: r16545
2005-01-11 21:10:36 +00:00
Andrew Kurushin
31ceb0bb71 - GameModule is gone
- structures renamed
- SagaEngine class gives all current game descriptions
regression : "verb" is broken cause work in  progress

svn-id: r16511
2005-01-09 23:41:22 +00:00
Andrew Kurushin
bdb1b1eb1c begining of verb implementation
introduced getObjectName

svn-id: r16491
2005-01-08 20:30:07 +00:00
Eugene Sandulenko
c316ab62cf Eliminate _scene->getMode() and use scene flags instead
svn-id: r16482
2005-01-07 22:18:53 +00:00
Eugene Sandulenko
1fe593995d o Fix for popped up actors at initial scene fade out
o Stub for new Wyrmkeep demos with substituted scenes
o Converted some script func parameters to apropriate types
o More panel fixes

svn-id: r16472
2005-01-07 00:57:43 +00:00
Andrew Kurushin
00c98c519e - implement faceTowards (script function & etc)
- implement debug actor walk path (press f6)

svn-id: r16456
2005-01-06 19:15:01 +00:00
Torbjörn Andersson
cfe84492ad Placard functions are now event-driven, so the blocking palette faders are
no longer needed.

svn-id: r16450
2005-01-06 16:07:46 +00:00
Eugene Sandulenko
028a8e4302 Fix actor walking caused by wrong panel state
svn-id: r16446
2005-01-06 14:49:47 +00:00
Eugene Sandulenko
b62ae808c8 Fix warning
svn-id: r16444
2005-01-06 14:04:09 +00:00
Eugene Sandulenko
26d5810b81 Next batch of panel-related fixes. Still wrong.
NOTE: lines which start with `;' should contain calls to not yet
implemented subsystems like Conversation subsystem

svn-id: r16443
2005-01-06 14:02:53 +00:00