Torbjörn Andersson
caed46c816
Added support for scene music and the music-playing opcode to make the
...
opening scene a bit nicer.
svn-id: r15241
2004-09-23 06:53:46 +00:00
Torbjörn Andersson
c7338cccdb
Replaced the standard stack with a custom-made. In the original SAGA engine
...
it appears that scripts are allowed to access the stack like any other
memory area, so it's probably important that our stacks behave as closely
to the original as possible.
I don't know if this implementation does that yet, but it's a start.
svn-id: r15240
2004-09-23 06:46:44 +00:00
Torbjörn Andersson
7389ca8884
Start the scene script as well, just to make things more interesting. This
...
doesn't do anything to fix any of the underlying problems, but it still
runs pretty well.
svn-id: r15232
2004-09-22 07:05:23 +00:00
Torbjörn Andersson
d49f0b90a0
The TourneySetup script now runs and finishes cleanly. However, this is not
...
as exciting as it first sounds, because even before this patch the script
would run in its entirety - it just didn't know when to stop.
I guess the exciting things don't happen until the next script is triggered
(TorneyScene?). I think it will be easier to start fixing the numerous
deficiencies (stack handling, SData, missing script functions, etc.) when
we have something more concrete to work with.
svn-id: r15215
2004-09-21 06:35:00 +00:00
Torbjörn Andersson
c1671bdbca
Update the script's program counter in a more sane way. The opening script
...
runs for much longer now, but - unsurprisingly - it doesn't work yet.
svn-id: r15192
2004-09-19 14:49:00 +00:00
Jonathan Gray
d1d308ff74
R_GAMETYPE -> GID, remove unused supported flag and trim some unused bits of GAME
...
svn-id: r14793
2004-08-27 01:32:10 +00:00
Jonathan Gray
d71604c20c
add some comments about unimplemented opcodes
...
svn-id: r14790
2004-08-26 23:28:10 +00:00
Eugene Sandulenko
bfd0b42700
o Eliminate all structure _tags.
...
o Fix RSCFile on MSVC8.
o Started fixing script opcodes.
svn-id: r14686
2004-08-22 18:28:42 +00:00
Paweł Kołodziejski
d62ff5dca7
fixed warnings
...
svn-id: r14603
2004-08-14 09:10:14 +00:00
Eugene Sandulenko
3fe739efb2
Merge SDEBUG_*, SF_* and STHREAD_* into Script class.
...
svn-id: r14568
2004-08-12 23:57:45 +00:00
Eugene Sandulenko
ec5d498703
Drop SSTACK_ in favor of common/stack.h implementation.
...
svn-id: r14566
2004-08-12 21:39:11 +00:00
Eugene Sandulenko
f2c3731f7b
Launch scene start script.
...
svn-id: r14561
2004-08-12 01:11:11 +00:00
Eugene Sandulenko
a8ea40756f
Move ITE_* and IHNM_* to Scene class.
...
svn-id: r14560
2004-08-11 23:42:02 +00:00
Eugene Sandulenko
f9b1c3991c
Start animations too.
...
svn-id: r14559
2004-08-11 22:47:45 +00:00
Eugene Sandulenko
94b377ce73
Handle fades in scene load routine.
...
Introduce immediate events.
svn-id: r14558
2004-08-11 22:27:39 +00:00
Eugene Sandulenko
39137da10d
Fix scene description structure data types and rename it.
...
svn-id: r14556
2004-08-11 18:02:03 +00:00
Eugene Sandulenko
23d5d1fb82
Move SYSINPUT_* and TRANSITION_* to SagaEngine class
...
svn-id: r14555
2004-08-11 14:04:12 +00:00
Eugene Sandulenko
57b1582149
Move CF_ commands to class and call them from wrappers. This will let us
...
remove global _vm later.
svn-id: r14552
2004-08-11 00:27:43 +00:00
Eugene Sandulenko
aba3176b0e
Correct ESC key behaviour.
...
svn-id: r14551
2004-08-11 00:16:23 +00:00
Eugene Sandulenko
6c060161e6
Correct scene transitions. Now intro seems to be complete.
...
svn-id: r14548
2004-08-10 23:52:19 +00:00
Eugene Sandulenko
6e87774d33
oops
...
svn-id: r14545
2004-08-10 23:07:05 +00:00
Eugene Sandulenko
b13fc9f366
Improved intro. Now it correctly shows game title.
...
svn-id: r14544
2004-08-10 23:04:52 +00:00
Eugene Sandulenko
720ea20bed
Moved PALANIM_* to a class.
...
svn-id: r14540
2004-08-10 19:20:33 +00:00
Eugene Sandulenko
fe7ac87bc7
Move EVENT_* to a class.
...
svn-id: r14539
2004-08-10 19:00:30 +00:00
Eugene Sandulenko
632042dae4
Move CON_* to a class.
...
svn-id: r14538
2004-08-10 18:31:33 +00:00
Torbjörn Andersson
f8cc6c2241
Initialise variables to stop the ITE intro from crashing.
...
svn-id: r14520
2004-08-08 18:03:52 +00:00
Eugene Sandulenko
2c0c065fe4
No longer needed.
...
svn-id: r14479
2004-08-06 01:43:57 +00:00
Eugene Sandulenko
602cd289f3
Move INTERFACE_ to class.
...
svn-id: r14478
2004-08-06 01:39:17 +00:00
Eugene Sandulenko
51b5acfc9c
Move SCENE_* to class.
...
svn-id: r14463
2004-08-04 20:28:57 +00:00
Eugene Sandulenko
11078570dc
Move state static variable to appropriate class
...
svn-id: r14462
2004-08-04 18:07:57 +00:00
Eugene Sandulenko
ab326af54e
Rename some class variables in Font class.
...
Fix compilation.
svn-id: r14452
2004-08-03 01:12:08 +00:00
Eugene Sandulenko
b197c3dac8
Move SPRITE_ to a class
...
svn-id: r14451
2004-08-03 01:07:34 +00:00
Eugene Sandulenko
415400f24e
Move TEXT_* to SagaEngine class.
...
svn-id: r14450
2004-08-03 00:40:16 +00:00
Eugene Sandulenko
fe1ab79bee
Move FONT_* to class.
...
svn-id: r14449
2004-08-03 00:06:18 +00:00
Eugene Sandulenko
166b05aed4
Fix #include paths.
...
svn-id: r14443
2004-08-02 16:20:35 +00:00
Jonathan Gray
79e2af8787
no longer needed
...
svn-id: r14442
2004-08-02 15:53:33 +00:00
Eugene Sandulenko
98816ad3ae
Objectize actor.cpp
...
svn-id: r14441
2004-08-02 15:47:42 +00:00
Jonathan Gray
dcf5805440
create objectMap class
...
svn-id: r14440
2004-08-02 15:44:18 +00:00
Jonathan Gray
632612680b
move isomap into a class
...
svn-id: r14439
2004-08-02 14:51:48 +00:00
Jonathan Gray
e4c813670f
remove timer wrapper functions
...
svn-id: r14437
2004-08-02 12:41:40 +00:00
Jonathan Gray
7846a6ed61
move static vars to private members
...
svn-id: r14434
2004-08-02 11:27:50 +00:00
Joost Peters
2a7f885477
Clean up Script class a bit; add get/set functions
...
svn-id: r14428
2004-08-01 23:47:19 +00:00
Eugene Sandulenko
873c886910
Made all MemoryReadStream local variables. This plugged a giantic constant
...
leakage in the engine.
svn-id: r14427
2004-08-01 23:24:22 +00:00
Joost Peters
936142bf40
rename load() to loadMap()
...
svn-id: r14426
2004-08-01 22:52:45 +00:00
Joost Peters
4aaea2131e
create Script class from SCRIPT_* and ScriptModule
...
svn-id: r14425
2004-08-01 22:48:40 +00:00
Joost Peters
48cddda4b9
move SDATA_* into seperate class
...
svn-id: r14424
2004-08-01 19:53:29 +00:00
Eugene Sandulenko
ea694ffd68
Pass SagaEngine object to Anim and ActionMap objects
...
svn-id: r14422
2004-08-01 13:34:20 +00:00
Eugene Sandulenko
f97621d6e4
Remove unneeded code
...
svn-id: r14421
2004-08-01 13:29:39 +00:00
Jonathan Gray
c8d9018909
init _gfx in a less hacky manner
...
svn-id: r14420
2004-08-01 12:06:12 +00:00
Jonathan Gray
0bbeb61f5e
merge gfx_mod.h into gfx.h and stick functions into a class
...
svn-id: r14419
2004-08-01 11:48:53 +00:00