88 Commits

Author SHA1 Message Date
Eugene Sandulenko
ea42bad781 Update copyright notice
svn-id: r20088
2006-01-18 17:39:49 +00:00
Andrew Kurushin
3a7a7b3291 implement IHNM verb mapper
svn-id: r20003
2006-01-13 20:20:01 +00:00
Eugene Sandulenko
b36677af71 Update FSF address. Eek. Actually that took place on May 1, 2005
svn-id: r19142
2005-10-18 01:30:26 +00:00
Torbjörn Andersson
da43d814cd Oops, made a typo when rewriting that comment.
svn-id: r18973
2005-10-08 21:33:31 +00:00
Torbjörn Andersson
60b85c5137 Cleanup.
svn-id: r18972
2005-10-08 21:28:14 +00:00
Eugene Sandulenko
176f32bfa1 _vm->getSceneHeight() --> _vm->_scene->getHeight() and make it return different
scene height for individual panel modes.

svn-id: r18959
2005-10-08 15:20:11 +00:00
Eugene Sandulenko
f2c542547d Fix bug #1256381 "ITE: Options menu contains wrong item" and gave symbolic
names to text Ids.

svn-id: r18699
2005-08-16 19:04:51 +00:00
Eugene Sandulenko
1ed8d450f0 Fix bug #1257459 "ITE: Game crashes at airport"
svn-id: r18671
2005-08-12 19:43:39 +00:00
Eugene Sandulenko
801bb09bb5 Translate excuse messages and make them work on floppy versions. Earlier
it just crashed there.

svn-id: r18659
2005-08-11 15:28:08 +00:00
Eugene Sandulenko
4e4c1f5b73 Rename event types to comply with our standards.
svn-id: r18647
2005-08-10 15:31:15 +00:00
Eugene Sandulenko
37f2a10ef6 Rename Actor class members to _members.
svn-id: r18645
2005-08-10 14:53:17 +00:00
Eugene Sandulenko
00d676c3d2 EVENT -> Event
svn-id: r18644
2005-08-10 14:11:22 +00:00
Eugene Sandulenko
c6c5c8f868 o Fix some game parameters for IHNM
o Load voices LUT for IHNM

svn-id: r18640
2005-08-09 16:01:04 +00:00
Eugene Sandulenko
aebd226028 oops. debug output slipped in.
svn-id: r18638
2005-08-08 19:46:33 +00:00
Eugene Sandulenko
ccfedf0654 Fix bug #1252277 "ITE: Actions not performed under OS X"
svn-id: r18637
2005-08-08 19:40:55 +00:00
Eugene Sandulenko
4ffa61cb42 Partially fix bug #1253079 'ITE: Several errors in the "rocky chasm" scene'.
Argh! why _several_ errors and not one by one?

svn-id: r18633
2005-08-08 08:15:16 +00:00
Eugene Sandulenko
ec4f7d3d7c Whitespaces
svn-id: r18595
2005-07-29 17:58:00 +00:00
Andrew Kurushin
50c2d8954d finally Resource manager rewritten:
-adds patch file support
-global _vm removed

cleanups

svn-id: r18560
2005-07-19 19:05:52 +00:00
Eugene Sandulenko
57858a8757 Hid most of debug output to deeper levels. We're pretty close to official
launch so it should be invisible to users.

svn-id: r18497
2005-07-05 16:58:36 +00:00
Torbjörn Andersson
20ba16b09c When setting a new verb, clear the "pointer object", i.e. the variable that
keeps track of whatever object the pointer is hovering over. This way, the
pointer object will be updated but with the new verb applied to it. I was
getting tired of having to move the cursor off and on the object whenever I
changed verb.

This isn't exactly how the original engine did it, but it appears to work.

svn-id: r18373
2005-06-10 13:56:51 +00:00
Torbjörn Andersson
064bfed378 Added IHNM "main strings" resource. It's trial-and-error, so it may be the
wrong one, but it does contain the verb strings. Unlike IHNM, it does not
contain the object names. We'll need to do something about that eventually.

svn-id: r18365
2005-06-08 13:49:56 +00:00
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
Andrew Kurushin
1d31cd1223 fixed give verb
fixed occasional verbs redraw

svn-id: r18113
2005-05-15 17:45:59 +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
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
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
61faa88b93 Indentation.
svn-id: r17048
2005-03-09 07:29:15 +00:00
Andrew Kurushin
343d59c9d4 implemented iso pathfinding
glitches: some tiles draws above figures

svn-id: r16935
2005-02-26 17:37:16 +00:00
Andrew Kurushin
aeaf728dc6 partialy implemented all Iso mode resource loading
todo: loadMulti - may be wrong

svn-id: r16670
2005-01-28 19:25:41 +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
Andrew Kurushin
8543306e56 all opcodes revisited
all ITE opcodes supported (now we should go through scriptFunctions)

svn-id: r16617
2005-01-22 16:32:30 +00:00
Andrew Kurushin
0030e821fe another 19 opcodes
svn-id: r16616
2005-01-22 15:28:24 +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
Eugene Sandulenko
001bb7c74e o Made ITEColors enum public in interface.h. Please use them. These colors
stay in each scene except intro and fade-in/fade-outs.
o Implemented status text coloring during work of auxiliary scripts.

svn-id: r16598
2005-01-19 11:29:29 +00:00
Andrew Kurushin
9353d54f95 implemented Sprite::hitTest
Actors & Objects can be hited

svn-id: r16596
2005-01-18 23:15:41 +00:00
Andrew Kurushin
0ccf59faee partly implemented game objects
svn-id: r16595
2005-01-18 21:13:44 +00:00
Andrew Kurushin
b4b2e52df7 another step in verb implementation:
- objectMap responds to mouse move  (but respond script not run well ?)

loadStrings add some special count check
- so all other LUT based resource should implement this technique

svn-id: r16594
2005-01-18 15:01:21 +00:00
Eugene Sandulenko
dab894fdd4 First batch of converse implementation in scripts. To see it type
'scene_change 33' in debugger.

svn-id: r16588
2005-01-17 20:17:06 +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
Andrew Kurushin
fe424ed5ae - added partial scene change by actor's walking (todo:entrance should be supported)
svn-id: r16568
2005-01-15 23:46:43 +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
326dd0c255 - introduced SagaEngine::getTextString (for i18n it should route to corresponding string array)
- first step in verb implementation: proper button draw, keyboard respond 'w','l' &etc
- added comments and some fields to GameDisplayInfo

svn-id: r16554
2005-01-13 22:42:49 +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
Eugene Sandulenko
ce9f5bd29a Added proper IHNM scripts lut and run scripts, though not much to see.
svn-id: r16509
2005-01-09 21:07:19 +00:00
Andrew Kurushin
bdb1b1eb1c begining of verb implementation
introduced getObjectName

svn-id: r16491
2005-01-08 20:30:07 +00:00
Andrew Kurushin
c0d25cbae1 - script execution stops properly
- placard should work over way:
   set Wait flag for thread (as in opSpeak)
   remove inner loop (processInput...)

svn-id: r16418
2005-01-03 21:17:32 +00:00
Torbjörn Andersson
5f6108052e Changed "sizeof x" to "sizeof(x)" for consistency with the rest of ScummVM,
and used ARRAYSIZE() instead in two cases.

svn-id: r16408
2005-01-02 14:52:11 +00:00
Torbjörn Andersson
9678589779 The 'n_voices' field of the voice LUT was never assigned a value. So if
anyone heard any voices - I did, except under Valgrind - it was pure luck.

svn-id: r16406
2005-01-02 14:30:50 +00:00
Max Horn
2664ca7eb1 oops, correct copyright string
svn-id: r16399
2005-01-01 16:20:17 +00:00