aboutsummaryrefslogtreecommitdiff
path: root/saga/sfuncs.cpp
AgeCommit message (Collapse)Author
2005-04-16fixed: sprite hittest, speech draws in screen boundsAndrew Kurushin
svn-id: r17635
2005-04-16fixed ram dialog crashAndrew Kurushin
implemented: sfScriptSpecialWalk,sfScriptWalkRelative,sfScriptMoveRelative svn-id: r17618
2005-04-03- fixed tile doors drawingAndrew Kurushin
- right mouse action fixed svn-id: r17347
2005-03-18- changescene on fair for tentsAndrew Kurushin
- some memory deallocation fixup todo: fix follower stuckiness in tents svn-id: r17180
2005-03-08Apparently, in IHNM opcode #75 can take three parameters. Added stub toTorbjörn Andersson
avoid division by zero. svn-id: r17040
2005-03-08Fixed typo.Torbjörn Andersson
svn-id: r17039
2005-01-28Combine actordata.cpp and objectdata.cpp into itedata.cpp. These areEugene Sandulenko
ITE specific and from other hand IHNM has these data in resources. svn-id: r16662
2005-01-28Let IHNM run again. It has 105 script functions.Eugene Sandulenko
svn-id: r16653
2005-01-27Applied patch #1106775 "SAGA colours". This simplifies code considerably, andEugene Sandulenko
moreover getBlack() didn't always work correctly for some reason. If IHNM uses different colors we will switch to variables, but that could be addressed later or at least when someone will start to work on it more time than now. svn-id: r16647
2005-01-25The sfRand() script function was slightly wrongTorbjörn Andersson
Old behaviour: 0 <= random number <= param Correct behaviour: 0 <= random number < param svn-id: r16636
2005-01-23Another spot of kReplyOnce usage. Thanks to proper memory addressing nowEugene Sandulenko
it is possible to implement. svn-id: r16625
2005-01-23Reenable stub for latter demos in sfScriptGotoScene()Eugene Sandulenko
svn-id: r16623
2005-01-23Fix warningsMax Horn
svn-id: r16622
2005-01-22implemented sfWaitWalk scriptFunctionAndrew Kurushin
svn-id: r16619
2005-01-22- removed returning value from scriptFunctionsAndrew Kurushin
- implement some scriptFunctions svn-id: r16618
2005-01-21problems solved:Andrew Kurushin
- Allow more than one script work at once - Proper implementation of address methods some opcodes may be broken - cause work in progress todo: rewrite opcodes with new address functionality svn-id: r16604
2005-01-18partly implemented game objectsAndrew Kurushin
svn-id: r16595
2005-01-17Now it is possible to lead a conversation with use of keys (1-4).Eugene Sandulenko
Things which are missing: (a) mouse support due to incomplete interface implementation (b) arrows do not pop up by same reason mentioned above (c) scrolling does not work (d) kReplyOnce flag is missing due to wrong threads memory implementation svn-id: r16589
2005-01-17o Proper implementation of sfPlaySound() which knows about CD<->floppyEugene Sandulenko
difference o Fix regression in Mac titles where scene LUT wasn't conversed o Fix sound types in many games. Old Win demo is still wrong. svn-id: r16586
2005-01-17Initialize a few variables to fix Valgrind warnings. (I'm hoping they wereTorbjörn Andersson
the reason the ITE intro crashed for me.) I still get read warnings in Sprite::decodeRLEBuffer() though. Also added a couple of hacks to keep the IHNM intro alive. Once we support IHNM actors, we'll be able to remove them. svn-id: r16579
2005-01-16sfPlayMusic() takes two parameters in IHNM. Since our currentTorbjörn Andersson
implementation is only right for ITE, disable it for IHNM for now. svn-id: r16572
2005-01-15some work in progress on verb stuff:Andrew Kurushin
- many structers and fields renamed to proper names - added missing functions svn-id: r16562
2005-01-11- remove game.h & image.hAndrew Kurushin
- all display information of current game goes to SagaEngine - remove GameFontIds - hide SagaEngine _gameId,_gameType & etc with methods getGameId(), getGameType() svn-id: r16545
2005-01-09- GameModule is goneAndrew Kurushin
- structures renamed - SagaEngine class gives all current game descriptions regression : "verb" is broken cause work in progress svn-id: r16511
2005-01-08begining of verb implementationAndrew Kurushin
introduced getObjectName svn-id: r16491
2005-01-07Eliminate _scene->getMode() and use scene flags insteadEugene Sandulenko
svn-id: r16482
2005-01-07o Fix for popped up actors at initial scene fade outEugene Sandulenko
o Stub for new Wyrmkeep demos with substituted scenes o Converted some script func parameters to apropriate types o More panel fixes svn-id: r16472
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-06Fix actor walking caused by wrong panel stateEugene Sandulenko
svn-id: r16446
2005-01-06Fix warningEugene Sandulenko
svn-id: r16444
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-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