aboutsummaryrefslogtreecommitdiff
path: root/engines/made/script.cpp
AgeCommit message (Collapse)Author
2015-01-27MADE: Initialize some variables, remove a useless variableStrangerke
2014-02-18MADE: Make GPL headers consistent in themselves.Johannes Schickel
2011-10-09MADE: Minimize #include usage.Johannes Schickel
2011-06-02MADE: Remove all instances of s(n)printfMax Horn
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2010-02-27Check if we should quit on every opcode call instead of after every 500. ↵Matthew Hoops
Fixes bug #2960238. svn-id: r48149
2009-10-04Applied patch #2872409 "MADE engine fixes" by agent-q, with one small ↵Filippos Karapetis
modification (initialized _soundStarted in the ScriptFunctions constructor) svn-id: r44589
2009-03-14Reduced CPU usage of the MADE engine by about 10% (by profiling the code)Filippos Karapetis
- Added delays in places where the screen gets updated - Moved event polling inside sfPollEvent() (cause that's where events are polled), instead of after each opcode svn-id: r39392
2009-03-14Do not update the screen while waitingFilippos Karapetis
svn-id: r39390
2009-03-14Pushed up the simple script stack function in the header file (this helps ↵Filippos Karapetis
isolate them too, so that script.cpp only contains script command functions now) svn-id: r39389
2009-03-07Whitespace cleanup: Convert space followed by tab to just tabMax Horn
svn-id: r39203
2009-01-25Added some unused opcodes in RodneyFilippos Karapetis
svn-id: r36057
2009-01-17Make sure that "quit" events are handled immediately. This fixes a warning - orTorbjörn Andersson
possibly worse - about an invalid opcode when quitting the game. svn-id: r35879
2009-01-01Whoa! Removing trailing spaces.Eugene Sandulenko
svn-id: r35648
2008-12-15- Implemented cmd_restart (for the restart functionality in Return to Zork)Benjamin Haisch
svn-id: r35378
2008-11-07Implemented RTL supportBenjamin Haisch
svn-id: r34933
2008-10-04- Declared all stack functions as inlineBenjamin Haisch
- Sleep some ms after 500 opcodes to reduce CPU load - Fixed odd bug in LGoP2 where text disappeared quickly without waiting for user input by returning 0x38 in sfShowPage svn-id: r34746
2008-06-12Updated script dumper to show opcode offset.Benjamin Haisch
svn-id: r32668
2008-05-21- Moved event polling from sfPollEvent to runScriptBenjamin Haisch
- LGOP2: Fixed problem where Barth's gun was drawn at the wrong position svn-id: r32205
2008-05-21Removed obsolete comment and code in ScriptInterpreter::dumpScriptBenjamin Haisch
svn-id: r32204
2008-05-20- Implemented "stand-alone" script dumper/disassembler; it can be enabled by ↵Benjamin Haisch
defining DUMP_SCRIPTS in script.h and starting with at least debug level 1. - Commented which script opcodes and extended functions are actually used or not. svn-id: r32202
2008-05-20Some updates to the script dumperFilippos Karapetis
svn-id: r32200
2008-05-18Rewrote the MADE script dumper, hopefully in a more efficient wayFilippos Karapetis
svn-id: r32167
2008-05-17Slight cleanup and small bugfix for dumpScript()'s cmd_callFilippos Karapetis
svn-id: r32151
2008-05-17Initial incomplete version of a MADE script dumperFilippos Karapetis
svn-id: r32150
2008-05-14Merged the three ScriptFunctionsXXX classes into ScriptFunctionsBenjamin Haisch
svn-id: r32105
2008-05-13Implemented savegame saving/loading for LGOP2.Benjamin Haisch
svn-id: r32081
2008-05-07- cmd_return now exits the game if it returns from the main functionBenjamin Haisch
- Implemented cmd_exit - PmvPlayer now exits "more gracefully" when the application is closed while playing svn-id: r31930
2008-05-06Silencing two signess compiler warningsSven Hesse
svn-id: r31897
2008-05-06- The Manhole: New and Enhanced is now (partially) playableBenjamin Haisch
- Implemented cmd_objectp - Changed how the script externals array is set up - Cleanup svn-id: r31895
2008-05-05- Renamed XmidiResource to GenericResourceBenjamin Haisch
- Added MIDI resource type - Added ScriptFunctionsLgop2 and ScriptFunctionsMhne (for Leather Goddesses of Phobos 2 and The Manhole: New and Enhanced, resp.) - Many changes for LGOP2 and The Manhole: N&E Note about the new ScriptFunctions classes: I copied the ScriptFunctionsRtz class and so duplicated a lot of code. Most of the opcode functions are the same in all games but there might be differences. Once all common opcode functions have been figured out, they'll be moved to a common place (like the ScriptFunctions class). svn-id: r31871
2008-04-29Turned printf into warning.Benjamin Haisch
svn-id: r31780
2008-04-25Fixed cmd_rand and cmd_randomize and some cleanup.Benjamin Haisch
svn-id: r31718
2008-04-25Implemented cmd_rand() and cmd_randomize()Filippos Karapetis
svn-id: r31714
2008-04-24Unimplemented commands and opcodes throw a warning nowFilippos Karapetis
svn-id: r31693
2008-04-23Fixed palette issues when showing the inventory and the menu.Benjamin Haisch
Moved drawing code from drawFlex/drawAnimFrame to drawSurface. Implemented opcodes: - o1_VISUALFX - o1_SCREENLOCK - o1_SETTIMER - o1_SETGROUND - o1_SETCLIP - o1_SETEXCLUDE svn-id: r31675
2008-04-20Changed spaces to tabs.Torbjörn Andersson
svn-id: r31610
2008-04-20Initial import of the work in progress MADE engineFilippos Karapetis
svn-id: r31599