Paweł Kołodziejski
71119aafe2
GRIM: Make Lua_V1::DriveActorTo() stub
2022-01-16 22:12:14 +01:00
Paweł Kołodziejski
6c850c8f2e
GRIM: LUA: Print function name in list of arguments
2022-01-16 08:50:38 +01:00
Paweł Kołodziejski
662481db00
GRIM: LUA: Cleanup variables name
2022-01-14 09:01:44 +01:00
Paweł Kołodziejski
690f9d2a5c
GRIM,LUA: Janitorial
2022-01-06 18:26:30 +01:00
Paweł Kołodziejski
5dad979952
Revert "GRIM: Use exceptions instead of jumps"
...
This reverts commit 7b42887895 .
2017-11-30 19:56:43 +01:00
Joel Teichroeb
7b42887895
GRIM: Use exceptions instead of jumps
2017-11-30 08:31:25 +01:00
Joel Teichroeb
0f3da43694
GRIM: Change NULL to nullptr.
2014-05-30 17:43:08 -07:00
Christian Krause
187d34d319
EMI: fix pause handling
...
On vista point it may happen that two sequences for the rock landings
are executed at the same time. Although they intend to be locked via
pause_scripts(), changing the set will call unpause_scripts() and unlock
all of them.
The patch will use the optional parameter for (un)pause_scripts() to
determine whether the pause calls should be counting (e.g. when
switching a set or opening the inventory) or not.
2013-12-24 00:14:49 +01:00
Christian Krause
4b6cf2055b
GRIM/EMI: Count pause/unpause calls of LUA scripts
...
Scripts that have explicitly been paused must not be resumed when
pause_scripts and unpause_scripts are called, e.g. when opening the
inventory, pausing the game or changing sets.
This patch splits the existing paused flag in two separate ones:
- LState::all_paused is controlled by pause/unpause_scripts (plural)
- LState::paused is controlled by pause/unpause_script (singular)
For compatibility with Grim savegames both flags are stored in a single
byte, with bit 0 having the same meaning as the former boolean.
2013-12-09 23:40:34 +01:00
Joel Teichroeb
88c7bcb35b
GRIM: Remove redundant code
2013-01-22 20:33:37 -08:00
Joel Teichroeb
0dcfaf8fb1
GRIM: Do not include unneeded headers
2012-04-04 16:11:05 -07:00
Joel Teichroeb
aa814e3334
GRIM: Enhance the way that colors are given to lua.
2012-01-27 11:47:28 -08:00
Joel Teichroeb
d72bea895b
EMI: Implement sleep_for in the engine
2012-01-23 17:33:15 -08:00
Joel Teichroeb
ee81d2bbb3
GRIM: Cleaned some dependancies between files
2011-12-17 21:48:17 -08:00
Giulio Camuffo
353c42effe
GRIM: Use the new foreach macro.
...
Modify a bit PoolObject::Pool to allow it to be used with foreach.
2011-11-21 22:07:12 +01:00
Giulio Camuffo
7b1f87f928
GRIM: Boost of the debug system, using debug channels.
2011-10-10 18:17:22 +02:00
Giulio Camuffo
1fbbd24aee
GRIM: Port Actor, Bitmap, Color, Font, Primitive, ObjectState, Scene, TextObj to PoolObject.
...
These are the classes that go into Lua, and so are kept in a pool,
indexed with an id.
2011-09-07 23:08:59 +02:00
Giulio Camuffo
5f59fff5b3
GRIM: Move the debug levels enum in a separate header.
2011-07-23 15:37:14 +02:00
Giulio Camuffo
d7160401ac
GRIM: Make LState::paused a bool.
2011-07-20 22:50:54 +02:00
Giulio Camuffo
5012ebfbc9
GRIM: New, cleaner, lua_runtasks().
2011-07-20 22:27:41 +02:00
Joel Teichroeb
733b34febc
Changed const char * to const Common::String &.
2011-05-22 12:56:37 +08:00
Pawel Kolodziejski
356c9c8c07
sync with scummvm
2011-05-18 23:33:39 +02:00
Pawel Kolodziejski
0f5de71f70
sync with scummvm
2011-05-08 15:38:26 +02:00
Giulio Camuffo
7e3e63dbbd
GRIM: Rename GrimEngine's getters.
2011-05-05 11:25:08 +02:00
Giulio Camuffo
07d6e51c24
GRIM: Rename Color's getters.
2011-05-05 10:58:29 +02:00
Giulio Camuffo
6f29d7c55a
GRIM: Remove two leftover casts to residualptr.
2011-05-03 17:15:46 +02:00
Giulio Camuffo
465c3d64ec
GRIM: Renamed some Actor's getters to getFoo() or isFoo().
2011-05-03 17:14:24 +02:00
Giulio Camuffo
ce716e4580
GRIM: Store USERDATAs with a new struct { int32 id; int32 tag }.
...
This way we don't have to deal with casts between integers and void*
anymore.
2011-05-03 16:51:30 +02:00
Giulio Camuffo
29d6b3c5c1
New residualptr type typedeffed to int32 or int64 depending on the arch.
2011-05-02 19:12:15 +02:00
Joel Teichroeb
26b80baece
GRIM: Update lstate to match the latest changes.
2011-05-02 13:00:23 +08:00
Pawel Kolodziejski
90c407b028
fix few typos
2011-04-27 20:45:07 +02:00
Giulio Camuffo
39c232ddbe
GRIM: Default taskFunc.ttype to LUA_T_NIL when initting a LState.
2011-04-23 18:15:50 +02:00
Pawel Kolodziejski
0640dcf2c7
synced with scummvm to 2011-Apr-13
2011-04-14 12:41:26 +02:00
Pawel Kolodziejski
55415ee174
fix compilation using msvc
2011-04-10 11:24:03 +02:00
Giulio Camuffo
5212ffe10d
Do not try to remove an userdata object from lua if lua is closed.
2011-03-23 23:13:53 +01:00
Pawel Kolodziejski
75ff27666b
adopted save/restore lua state to recent changes based on disassembly
2009-06-18 16:23:25 +00:00
Pawel Kolodziejski
abaa548181
synced with scummvm
2009-06-18 11:52:26 +00:00
Pawel Kolodziejski
3a2d539f09
re-implemented multi threading in lua based on disassembly
2009-06-16 22:55:12 +00:00
Pawel Kolodziejski
807fffbbfa
remove L macro
2009-06-11 07:01:01 +00:00
Pawel Kolodziejski
05c9caa0f5
fix for compiling on aos4
2009-06-05 06:53:20 +00:00
Pawel Kolodziejski
169878ddc8
* verified PrintDebug, PrintError, PrintWarning, FunctionName, CheckForFile, MakeColor, GetColorComponents, ReadRegistryValue, WriteRegistryValue
...
* cleanup
2009-05-30 10:15:59 +00:00
Pawel Kolodziejski
a4467bd1d0
convert residual into multi engine support (not all things done yet, WIP)
2009-05-25 19:21:58 +00:00
Pawel Kolodziejski
8b8e7e07d2
added namespace Grim
2009-05-25 06:49:57 +00:00
Pawel Kolodziejski
a34d883844
update path includes for recent directory changes
2009-05-24 19:13:58 +00:00
Pawel Kolodziejski
f58c073a0a
move/rename engine into engines/grim
2009-05-24 18:55:19 +00:00