aboutsummaryrefslogtreecommitdiff
path: root/saga/sfuncs.cpp
AgeCommit message (Collapse)Author
2005-01-01oops, correct copyright stringMax Horn
svn-id: r16399
2005-01-01Updated copyrightMax Horn
svn-id: r16398
2004-12-31Slight adjustment of placard text position. It's still not identical to theTorbjörn Andersson
original, but I don't consider that to be a problem. svn-id: r16395
2004-12-30o COde formattingEugene Sandulenko
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-30Renamed the "placard" opcode functions. They should be reasonably bug freeTorbjörn Andersson
now. svn-id: r16387
2004-12-29- some work in progressAndrew Kurushin
svn-id: r16375
2004-12-29PALETTE_FADE_DURATION -> kNormalFadeDurationEugene Sandulenko
svn-id: r16373
2004-12-29Implemented the "placard" functions, because they're such a nice visualTorbjörn Andersson
feedback that something right is happening. svn-id: r16371
2004-12-28- many actor walk related functions addedAndrew Kurushin
- implemented script functions for scriptDoors (except iso mode) - introduced getDisplayWidth() getDisplayHeight() getStatusYOffset getPathYOffset() svn-id: r16363
2004-12-28Implement rest of animation-related opcodes.Eugene Sandulenko
svn-id: r16353
2004-12-28o Fixed animation playbackEugene Sandulenko
o Implemented almost all animation opcodes svn-id: r16352
2004-12-25- some "actors walk" work progressionAndrew Kurushin
svn-id: r16308
2004-12-24- remove old stuffAndrew Kurushin
- work on "walking" in progress svn-id: r16298
2004-12-24- resolved protagonist swapping problemAndrew Kurushin
svn-id: r16296
2004-12-24- opCCall* on debuglevel==9 shows script function nameAndrew Kurushin
svn-id: r16289
2004-12-24- fix of 8 to 4 direction conversionAndrew Kurushin
- added sfSetActorState function svn-id: r16288
2004-12-22- rewriten actors action handling (now uses all original flags etc)Andrew Kurushin
- 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-21- rewritten actors speech engine :Andrew Kurushin
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-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