aboutsummaryrefslogtreecommitdiff
path: root/saga/script.h
AgeCommit message (Collapse)Author
2005-01-13- introduced SagaEngine::getTextString (for i18n it should route to ↵Andrew Kurushin
corresponding string array) - first step in verb implementation: proper button draw, keyboard respond 'w','l' &etc - added comments and some fields to GameDisplayInfo svn-id: r16554
2005-01-08rename StringsList to StringsTableAndrew Kurushin
svn-id: r16492
2005-01-08begining of verb implementationAndrew Kurushin
introduced getObjectName svn-id: r16491
2005-01-06- implement faceTowards (script function & etc)Andrew Kurushin
- implement debug actor walk path (press f6) svn-id: r16456
2005-01-06Placard functions are now event-driven, so the blocking palette faders areTorbjörn Andersson
no longer needed. svn-id: r16450
2005-01-06Next batch of panel-related fixes. Still wrong.Eugene Sandulenko
NOTE: lines which start with `;' should contain calls to not yet implemented subsystems like Conversation subsystem svn-id: r16443
2005-01-03- script execution stops properlyAndrew Kurushin
- placard should work over way: set Wait flag for thread (as in opSpeak) remove inner loop (processInput...) svn-id: r16418
2005-01-02o Started putting all panels stuff in order. Still incompleteEugene Sandulenko
o Proper detection for Mac Wyrmkeep CD o Support for wyrmkeep logos svn-id: r16415
2005-01-01oops, correct copyright stringMax Horn
svn-id: r16399
2005-01-01Updated copyrightMax Horn
svn-id: r16398
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-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- 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-15Patch #1081904 ITE: MAC demo supportEugene Sandulenko
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-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-12Slight renamingTorbjörn Andersson
svn-id: r15796
2004-11-07Renamed SF_getObjName() to SF_getObjImage() and unstubbed it. (Untested)Torbjörn Andersson
svn-id: r15728
2004-11-06Add stub for every script functionEugene Sandulenko
svn-id: r15722
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-09Initial attempt at fixing the SData problem. I'm still not sure exactly howTorbjörn Andersson
to fix the script "static" area, though. In addition, initialise a few variables, and test for NULL-ness of a few pointers. This fixes a few crashes I saw with yesterday's CVS snapshot. There's still an unexpected scene change in the intro (I think it triggers on Rhene walking too close to the exit), but at least it no longer crashes. svn-id: r15484
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-08-22 o Eliminate all structure _tags.Eugene Sandulenko
o Fix RSCFile on MSVC8. o Started fixing script opcodes. svn-id: r14686
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-11Move CF_ commands to class and call them from wrappers. This will let usEugene Sandulenko
remove global _vm later. svn-id: r14552
2004-08-03Move TEXT_* to SagaEngine class.Eugene Sandulenko
svn-id: r14450
2004-08-02Fix #include paths.Eugene Sandulenko
svn-id: r14443
2004-08-01Clean up Script class a bit; add get/set functionsJoost Peters
svn-id: r14428
2004-08-01create Script class from SCRIPT_* and ScriptModuleJoost Peters
svn-id: r14425
2004-07-31Extended CVAR_RegisterFunc with callback object parameter.Eugene Sandulenko
Got rid of static structure in animation.cpp svn-id: r14397
2004-05-04Move from ys_binread.cpp and ys_binwrite.cpp to MemoryReadStream.Eugene Sandulenko
In fact there were no binary writes at all. svn-id: r13773
2004-05-01indentPaweł Kołodziejski
svn-id: r13712
2004-04-30Move from custom unsigned types to those provided by main config.hEugene Sandulenko
svn-id: r13687
2004-04-25Fix many warnings; use C++ type system instead of C style typedefs; removed ↵Max Horn
various unused stuff; const correctness; etc. svn-id: r13622