aboutsummaryrefslogtreecommitdiff
path: root/saga/sfuncs.cpp
AgeCommit message (Collapse)Author
2004-12-17- all actors creates on startAndrew Kurushin
- many parts renamed to proper names regression: unexpected actor apeared while intro is played svn-id: r16104
2004-12-17actors rearrangement bugfixAndrew Kurushin
svn-id: r16094
2004-12-03First pass at migrating from the old Reinherit console to the ScummVMTorbjörn Andersson
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-11-26Added looping background noise to the IHNM intro. I don't know if it's theTorbjörn Andersson
correct sound or the correct volume, but the small extension to allow the engine to start looping sounds is worthwhile enough in itself, I think. svn-id: r15895
2004-11-12Slight renamingTorbjörn Andersson
svn-id: r15796
2004-11-12Better names.Torbjörn Andersson
svn-id: r15795
2004-11-07Renamed SF_getObjName() to SF_getObjImage() and unstubbed it. (Untested)Torbjörn Andersson
svn-id: r15728
2004-11-07Unstubbed SF_setObjImage(). (Untested)Torbjörn Andersson
svn-id: r15727
2004-11-07Unstubbed SF_putString(). (Untested, but appears to be just for debugging.)Torbjörn Andersson
svn-id: r15726
2004-11-07Unstubbed SF_sceneID(). (Untested)Torbjörn Andersson
svn-id: r15725
2004-11-07Unstubbed SF_dropObject(). (Untested)Torbjörn Andersson
svn-id: r15724
2004-11-07Initial inventory support.Torbjörn Andersson
svn-id: r15723
2004-11-06Add stub for every script functionEugene Sandulenko
svn-id: r15722
2004-11-01Renamed the "unknown" parameters. I hope I didn't make too many errors.Torbjörn Andersson
svn-id: r15707
2004-10-31Renamed an "unknown" variable.Torbjörn Andersson
svn-id: r15705
2004-10-27Implement some script functions and report stubs.Eugene Sandulenko
svn-id: r15691
2004-10-27removed R_ prefix with few r_ tooPaweł Kołodziejski
svn-id: r15690
2004-10-27Started to rework script threads. Partially moved to thread flags.Eugene Sandulenko
Scene skipping now works, but scripts aren't chained yet. svn-id: r15688
2004-10-21A bunch of mostly panel-related fixes for the ITE intro. Apart from theTorbjörn Andersson
numerous animation glitches, it's looking almost like the real thing now. It's no longer possible to walk away during the intro. This should provide a great incentive to implement the "Escape" feature. ;-) svn-id: r15626
2004-10-20FX_CROWD constants are correct.Eugene Sandulenko
Add some simple stub. svn-id: r15621
2004-10-19Oops, now it plays the correct music again, I hope. The sound effects seemTorbjörn Andersson
a bit better now, too. At least the crowd is no longer cheering when the fair is closed. svn-id: r15617
2004-10-19Cleanup. No need to have a lookup table for something that can be expressedTorbjörn Andersson
by simple arithmetics. svn-id: r15615
2004-10-19Initial, and slightly buggy, support for sound effects.Torbjörn Andersson
svn-id: r15614
2004-10-12Added support for digitized music, plus some other music-related fixes.Torbjörn Andersson
Note that I've only tried this with the music.rsc file from the full Linux version. It seems likely that the Mac version uses the same file format, but I have no way of verifying this. I'm told the demos use compressed audio, so the music files from them probably won't work yet. svn-id: r15527
2004-10-04R_POINT -> Common::Point, R_RECT -> Common::Rect. Less R_ prefixes.Eugene Sandulenko
svn-id: r15414
2004-10-03A few, mostly untested, fixes to the SAGA script engine:Torbjörn Andersson
* The frame pointer is updated. This won't make any difference since we don't actually *use* the frame pointer yet. * Return values from script functions are handled like in the original now, i.e. the function sets thread->retVal and lets the call instruction push it onto the stack. (There are two call instructions, one that handles return values and one that doesn't, so the script function doesn't know if it should push or not.) * Script return values are handled. None of this makes any noticeable difference to the ITE intro. svn-id: r15393
2004-09-25Enough stubs and pops to make the intro scene script finish properly.Torbjörn Andersson
svn-id: r15263
2004-09-23Added support for scene music and the music-playing opcode to make theTorbjörn Andersson
opening scene a bit nicer. svn-id: r15241
2004-09-23Replaced the standard stack with a custom-made. In the original SAGA engineTorbjörn Andersson
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-21The TourneySetup script now runs and finishes cleanly. However, this is notTorbjörn Andersson
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-08-12Merge SDEBUG_*, SF_* and STHREAD_* into Script class.Eugene Sandulenko
svn-id: r14568
2004-08-12Drop SSTACK_ in favor of common/stack.h implementation.Eugene Sandulenko
svn-id: r14566
2004-08-10Move CON_* to a class.Eugene Sandulenko
svn-id: r14538
2004-08-06Move INTERFACE_ to class.Eugene Sandulenko
svn-id: r14478
2004-08-03Move TEXT_* to SagaEngine class.Eugene Sandulenko
svn-id: r14450
2004-08-02Fix #include paths.Eugene Sandulenko
svn-id: r14443
2004-08-02Objectize actor.cppEugene Sandulenko
svn-id: r14441
2004-08-01move SDATA_* into seperate classJoost Peters
svn-id: r14424
2004-08-01merge gfx_mod.h into gfx.h and stick functions into a classJonathan Gray
svn-id: r14419
2004-08-01merge reinherit.h into saga.h and gfx_mod.h, note the error loading ↵Jonathan Gray
animations wasn't caused by this commit :) svn-id: r14405
2004-07-31merge animation.h and animation_mod.h into a classJonathan Gray
svn-id: r14388
2004-07-31remove YS_IGNORE_PARAM macro and some uneeded yslib.h includesJonathan Gray
svn-id: r14385
2004-05-13Added more stubs from script fucntions, some renames for consistency withEugene Sandulenko
disassembly. svn-id: r13835
2004-05-01indentPaweł Kołodziejski
svn-id: r13713
2004-04-30Move from custom unsigned types to those provided by main config.hEugene Sandulenko
svn-id: r13687
2004-04-12WIP for SAGA engine.Eugene Sandulenko
o text formatting is not consistent with rules, just indent utility is too dumb for that o it does not use OSystem, i.e. it runs on direct SDL calls o it may not even compile on your box o if you enable it, expect zillions of warnings o no sound Now it runs ITE intro as reinherit did svn-id: r13564