Commit graph

115 commits

Author SHA1 Message Date
Torbjörn Andersson
f756b74d04 Made it possible to terminate dialog windows with Enter. (We could already
terminate them with Esc.) This is so that, for instance, if you type a
savegame name you can press Enter, rather than clicking on the "Save"
button.

I don't know if the original did this as well, but it feels natural to me.

svn-id: r18537
2005-07-12 18:31:48 +00:00
Lars Persson
d1e58e6036 Updated interface.cpp so it compiles for VC6 without errors. Moved loop variable declaration
svn-id: r18532
2005-07-10 15:25:30 +00:00
Andrew Kurushin
c2f1691bad gfx rearangement
code cleanups

svn-id: r18523
2005-07-09 16:23:45 +00:00
Andrew Kurushin
d944bd7793 implemented per scene actors clipping
so last sequence should look much better (not perfect)

svn-id: r18516
2005-07-08 16:56:03 +00:00
Andrew Kurushin
cff8568562 fix converse pal bug
svn-id: r18502
2005-07-06 17:07:58 +00:00
Eugene Sandulenko
cdead6d57b - Stripped down unused SURFACE parameter in palette-related functions
- Fixed scenes glitch when loading saved game. This is done by closing
  load window right after game is loaded which differs from original but
  seems more logical to me
- Fixed wrong palette when Dragon maze was loaded from a savegame. We just
  didn't process Palette resource for it.

svn-id: r18494
2005-07-05 15:15:35 +00:00
Eugene Sandulenko
de14b2337f Implementation of sfShowMap. This was latest unimplemented script function :)
svn-id: r18487
2005-07-03 20:02:56 +00:00
Torbjörn Andersson
d38a41e532 When a key is pressed, go back to repeat phase 0 again. This is so that we
won't continue a fast repeat with the new key. (Annoying example: It could
be tricky to type upper-case letters because if you didn't type the letter
fast enough "Shift" would begin to repeat, and then whatever letter you
typed would start repeating immediately.)

svn-id: r18423
2005-06-21 15:41:35 +00:00
Eugene Sandulenko
2c9d2ffc97 Support for mouse wheel in Options dialog and in Converse panel
svn-id: r18414
2005-06-19 23:41:40 +00:00
Andrew Kurushin
97337c4623 implemented sfGetNumber
now use MagicHat (be carefull not to exceed overall scene number)

svn-id: r18410
2005-06-19 14:06:20 +00:00
Torbjörn Andersson
7b8c800482 Whitespace
svn-id: r18372
2005-06-10 13:49:43 +00:00
Torbjörn Andersson
8c82d94c40 Allow part of the IHNM intro to run again. I haven't verified that these
resource numbers are correct.

svn-id: r18366
2005-06-08 14:41:57 +00:00
Andrew Kurushin
d3587c3a1e fixed lense creation bug ( fade in/out now has separate flag)
svn-id: r18340
2005-06-04 15:02:17 +00:00
Eugene Sandulenko
8a835899fb Implement game load with '-x' comman-line parameter.
Fix couple valgrind and compiler warnings.

svn-id: r18313
2005-06-02 22:14:57 +00:00
Torbjörn Andersson
9be6764c47 Removed unused variables.
svn-id: r18309
2005-06-01 06:24:24 +00:00
Eugene Sandulenko
f8f9ed18a8 Allow entry of space and some letters such as 'r' and 'p' as parts of
save names.

svn-id: r18305
2005-05-31 23:41:27 +00:00
Andrew Kurushin
d1ffc9df2d multiple files save-load implementation
svn-id: r18303
2005-05-31 20:08:46 +00:00
Eugene Sandulenko
0eb4e94116 Almost complete implementation of Puzzle. Now it is possible to solve it
successfully.

Things to do:
 o non-actors speech, it just doesn't get displayed, though generated
 o support for CD voices

svn-id: r18301
2005-05-31 01:03:13 +00:00
Eugene Sandulenko
5cd6d6b6f8 Implement key auto-repeat used in savegame dialog.
svn-id: r18297
2005-05-29 20:57:45 +00:00
Andrew Kurushin
99b9fc7070 implemented DOS version 1 pixel clipping
game options WIP3

svn-id: r18293
2005-05-29 15:39:35 +00:00
Andrew Kurushin
3d1c969377 game options WIP2
svn-id: r18282
2005-05-28 11:06:55 +00:00
Andrew Kurushin
82b86d495e saveload WIP
svn-id: r18232
2005-05-23 18:53:36 +00:00
Eugene Sandulenko
0ccb1b726b Plug in Puzzle. Now it consists mainly of stubs but neverthless lets skip
the Puzzle and continue game pretending like you completed the Puzzle.

svn-id: r18225
2005-05-23 02:23:34 +00:00
Eugene Sandulenko
e787c3d9a6 Implement Interface::drawButtonBox()
svn-id: r18220
2005-05-22 13:49:45 +00:00
Andrew Kurushin
b804538dbe stub drawButtonBox
svn-id: r18218
2005-05-22 12:21:16 +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
91ff7f7a31 fixed interpreter bug (negative address offset - may crush system)
implemented inventory save-load

svn-id: r18071
2005-05-12 15:11:32 +00:00
Torbjörn Andersson
39852157fe Forgot to remove debugging messages.
svn-id: r18035
2005-05-10 17:40:58 +00:00
Torbjörn Andersson
519c023e4b Fixed failed assertion when entering the Elk King's court. It looks like a
hack - perhaps it *is* a hack - but it's what the original engine did too,
as far as I can tell.

svn-id: r17992
2005-05-09 06:36:27 +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
f3049a41f4 fixed non assigned buttons in IHNM
svn-id: r17750
2005-04-22 15:43:42 +00:00
Torbjörn Andersson
2ea2b51ed5 Changed "BYTE" to "int".
svn-id: r17749
2005-04-22 15:26:50 +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
65ade039ec o Fix save/load. Now it restores game properly but still at exit #0.
o Proper background for inset rooms. Crowd is gone now.
o Draw black border around inset rooms.

svn-id: r17744
2005-04-22 01:38:27 +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
Eugene Sandulenko
bd5f93cece Implement inventoryItemPosition()
svn-id: r17724
2005-04-20 23:42:19 +00:00
Andrew Kurushin
d9bb4aae1d fixed speech lock
svn-id: r17689
2005-04-19 11:07:06 +00:00
Torbjörn Andersson
90886d9506 Fixed warnings.
svn-id: r17682
2005-04-19 07:44:01 +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
Andrew Kurushin
343d59c9d4 implemented iso pathfinding
glitches: some tiles draws above figures

svn-id: r16935
2005-02-26 17:37:16 +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
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
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
Andrew Kurushin
0b4fd4adbf - merged ActionMap and ObjectMap
- remove ActionMap.h & ActionMap.cpp
- ObjectMap names move to Scene::_sceneStrings as in original engine
- fix wrong StringsTable::stringsCount calculation

svn-id: r16592
2005-01-18 11:55:31 +00:00
Eugene Sandulenko
c9d0d4c840 Initialize converse properly.
svn-id: r16591
2005-01-18 10:45:36 +00:00