Commit Graph

55 Commits

Author SHA1 Message Date
Andrew Kurushin
bbbd3b5fbf iso mode drawing work in progress
svn-id: r16802
2005-02-18 00:00:00 +00:00
Andrew Kurushin
ea78766c46 first step in ISO mode implementation - trying to draw iso scene
svn-id: r16763
2005-02-09 20:30:45 +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
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
Andrew Kurushin
9d1f2b670e -small pathfind fix
-pathfind speedup

svn-id: r16576
2005-01-16 20:30:57 +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
Torbjörn Andersson
8c708cce8e A few subtitle-related changes:
* Added speechCoords to the SpeechData structure so that talking actors
  don't drag their speech subtitles with them just because they're moving
  and talking at the same time. (Could this also be useful for non-actor
  speech?) If the actor has multiple strings, the coordinates are updated
  for each new string.

* Made speechColor and outlineCoor arrays so that simultaneous speech (i.e.
  where several actors are talking at the same time) multi-coloured. This
  is completely untested, though.

* Used getBlack() to get the black colour for the text outline. The
  original uses a constant, but we could always make getBlack() return
  that constant, if we want to.

svn-id: r16550
2005-01-13 07:47:04 +00:00
Andrew Kurushin
f3b8221dd6 rewritten sprite class
- sprites decoded on first load
- some speed optimization
- actors uses kExtended flag to append spriteList

svn-id: r16497
2005-01-09 15:07:49 +00:00
Andrew Kurushin
9c7a604c8b rename StringsList to StringsTable
svn-id: r16492
2005-01-08 21:06:06 +00:00
Andrew Kurushin
bdb1b1eb1c begining of verb implementation
introduced getObjectName

svn-id: r16491
2005-01-08 20:30:07 +00:00
Andrew Kurushin
37a858d6f5 - compiles debug path displaying only if ACTOR_DEBUG defined
- removed some temporary variable

svn-id: r16469
2005-01-06 23:02:53 +00:00
Andrew Kurushin
198d85eecd small fixes to previous
svn-id: r16465
2005-01-06 22:22:20 +00:00
Andrew Kurushin
59a93737db non tile mode full actor path finding - preview
svn-id: r16464
2005-01-06 21:57:10 +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
19f604b6ef Whitespace change.
svn-id: r16442
2005-01-06 12:42:05 +00:00
Andrew Kurushin
c93c1cab8f - path finding work in progress
svn-id: r16438
2005-01-05 19:03:49 +00:00
Andrew Kurushin
b514251efe - some walking addition
svn-id: r16426
2005-01-04 18:54:29 +00:00
Andrew Kurushin
e733d05fef - added setup of followers position at start of scene
svn-id: r16423
2005-01-04 16:10:43 +00:00
Max Horn
2664ca7eb1 oops, correct copyright string
svn-id: r16399
2005-01-01 16:20:17 +00:00
Max Horn
47280d9433 Updated copyright
svn-id: r16398
2005-01-01 16:09:25 +00:00
Eugene Sandulenko
75f31d28c9 o COde formatting
o Improved debug output
o Do not produce a lot of frameCount < 0 messages
o Okk now appears after first scene
o implemented yet another animation function
o Renamed SF_* -> sf* for functions I know are correct

svn-id: r16390
2004-12-30 18:45:48 +00:00
Andrew Kurushin
41a5251e28 - some work in progress
svn-id: r16375
2004-12-29 21:49:25 +00:00
Andrew Kurushin
6b4264d3a8 - fixed fingolfin notification
svn-id: r16369
2004-12-29 14:33:14 +00:00
Andrew Kurushin
d6a4ffc2b0 - many actor walk related functions added
- implemented script functions for scriptDoors (except iso mode)
- introduced getDisplayWidth() getDisplayHeight() getStatusYOffset getPathYOffset()

svn-id: r16363
2004-12-28 21:27:18 +00:00
Max Horn
1b82711302 There is no 'max' function on some of our targets
svn-id: r16309
2004-12-25 13:19:45 +00:00
Andrew Kurushin
a66080b80a - some "actors walk" work progression
svn-id: r16308
2004-12-25 11:17:03 +00:00
Andrew Kurushin
2289ea371b - remove old stuff
- work on "walking" in progress

svn-id: r16298
2004-12-24 20:44:39 +00:00
Andrew Kurushin
241155c882 - aninamation cycle now approach to original
svn-id: r16290
2004-12-24 12:47:16 +00:00
Andrew Kurushin
3d9784f94d - rewriten actors action handling (now uses all original flags etc)
- added some script functions (swapactors...)
- many things were renamed according scummvm covention
- resource id definintions should begin with "RID_" prefix

- intro temporary broken - work in progress
todo:
- walking hanling also should be rewriten
- timings for speech and actor cycling should be more accurate

svn-id: r16263
2004-12-22 21:04:50 +00:00
Andrew Kurushin
ea3b0d1100 - rewritten actors speech engine :
1) there are three types of speech: one acor, multiple actor, non actor
  2) slow speech implemented
  3) uses native engine flags (async,noanimate...) instead of semaphores
- proper timings implemented

svn-id: r16237
2004-12-21 06:49:07 +00:00
Andrew Kurushin
3f55bee199 - implemented perspective actors calculation
TODO: decodeRLESprite must do scale

svn-id: r16135
2004-12-19 13:38:11 +00:00
Andrew Kurushin
34dd84f339 now actors will not stuck in the middle of dialog
svn-id: r16123
2004-12-18 21:38:56 +00:00
Andrew Kurushin
62224e135b - updating actors state so they can be clipped on drawing (intro now runs without artefact)
- order list now uses only in draw section
- drawList rename to drawActors

svn-id: r16122
2004-12-18 20:33:02 +00:00
Andrew Kurushin
1724d00962 sprite loading fix in win demo
svn-id: r16119
2004-12-18 16:08:59 +00:00
Andrew Kurushin
79ce4de942 - all actors creates on start
- many parts renamed to proper names

regression: unexpected actor apeared while intro is played

svn-id: r16104
2004-12-17 20:38:17 +00:00
Andrew Kurushin
28e5422fd8 actors rearrangement bugfix
svn-id: r16094
2004-12-17 11:18:56 +00:00
Eugene Sandulenko
8ce9683bca Fix warning
svn-id: r16061
2004-12-15 20:11:39 +00:00
Eugene Sandulenko
502b279d24 Patch #1081904 ITE: MAC demo support
o Endianness-aware resource loading
o Removed ys_dl_list in favor of our object implementation
o Cleanup in actor code
o Partial support for ITE Mac rereleased demo

svn-id: r16051
2004-12-15 00:24:12 +00:00
Torbjörn Andersson
c64c7eb4d4 First pass at migrating from the old Reinherit console to the ScummVM
console.

Some things are likely to have broken. For instance, I believe the old
console was could be visible during gameplay, while ScummVM's is modal. So
any place where we output something to the console during gameplay should
probably be removed.

Some things I've stubbed out. Basically any code that registers a variable.

Most of the debugging commands are untested.

Syntax may have changed because of different command-line parsing. (I never
actually used the old console, so I don't know for sure. :-)

Actually, I'm not that interested in reproducing the old console commands
faithfully. What we should do now is to make the immediately useful console
stuff work. Anything that remains unimplemented should probably be removed.

svn-id: r15976
2004-12-03 19:15:44 +00:00
Torbjörn Andersson
b0110fe5b2 Whitespace fixes
svn-id: r15704
2004-10-31 13:51:01 +00:00
Paweł Kołodziejski
c7e5ab1f2d removed R_ prefix with few r_ too
svn-id: r15690
2004-10-27 21:32:28 +00:00
Gregory Montoir
43a62296cd pass arguments by reference-to-const rather than by value, it's usually more efficient...
svn-id: r15477
2004-10-08 19:58:49 +00:00
Eugene Sandulenko
bf905b2eeb More de-C'fying. Pass Point object instead of direct reference.
svn-id: r15458
2004-10-07 23:26:41 +00:00
Eugene Sandulenko
8b7740d8af R_POINT -> Common::Point, R_RECT -> Common::Rect. Less R_ prefixes.
svn-id: r15414
2004-10-04 23:09:38 +00:00
Eugene Sandulenko
b197c3dac8 Move SPRITE_ to a class
svn-id: r14451
2004-08-03 01:07:34 +00:00
Eugene Sandulenko
166b05aed4 Fix #include paths.
svn-id: r14443
2004-08-02 16:20:35 +00:00
Eugene Sandulenko
98816ad3ae Objectize actor.cpp
svn-id: r14441
2004-08-02 15:47:42 +00:00