Commit Graph

97917 Commits

Author SHA1 Message Date
Eugene Sandulenko
7537528034 JANITORIAL: Whitespace fixes 2020-06-06 18:43:18 +02:00
djsrv
c01b88c2e8 DIRECTOR: LINGO: Clean up lingo-object.cpp 2020-06-06 18:34:06 +02:00
djsrv
2daf4721c9 DIRECTOR: LINGO: Implement b_factory
Removed the inheritanceLevel check in b_objectp because it should
return 1 if called with an object return by b_factory, for some
reason...
2020-06-06 18:34:06 +02:00
djsrv
2d9dea678a DIRECTOR: LINGO: Remove unnecessary instructions
Global and instance vars are both just added to the respective vartables
on parse instead of upon execution.
2020-06-06 18:34:06 +02:00
djsrv
be4c440128 DIRECTOR: LINGO: Remove legacy me code 2020-06-06 18:34:06 +02:00
djsrv
759c53c868 DIRECTOR: LINGO: Call perFrameHook with arguments 2020-06-06 18:34:06 +02:00
djsrv
7549b819bb DIRECTOR: LINGO: Implement primary event handlers 2020-06-06 18:34:06 +02:00
djsrv
ca9e952d41 DIRECTOR: LINGO: Implement Lingo::push/popContext 2020-06-06 18:34:06 +02:00
djsrv
dbeabf0be3 DIRECTOR: LINGO: Fix lazy datum printing 2020-06-06 18:34:06 +02:00
djsrv
68e6b915a3 DIRECTOR: LINGO: Fix vars in global scope 2020-06-06 18:34:06 +02:00
djsrv
99755d8cf5 DIRECTOR: LINGO: Improve object printing
This differentiates the parent and child objects with a number.
2020-06-06 18:34:06 +02:00
djsrv
5de9a9816e DIRECTOR: LINGO: Lazy evaluate first ID in arglist
This avoids conflicts between variable names and method names.
2020-06-06 18:34:06 +02:00
djsrv
47f19d8515 DIRECTOR: LINGO: Fix extra arg warning on method 2020-06-06 18:34:06 +02:00
djsrv
4e4f26f963 DIRECTOR: LINGO: Fix var assign/fetch with obj val 2020-06-06 18:34:06 +02:00
djsrv
516d2ef17f DIRECTOR: LINGO: Implement kThePerFrameHook 2020-06-06 18:34:06 +02:00
djsrv
f0e598e402 DIRECTOR: LINGO: Fix b_objectp 2020-06-06 18:34:06 +02:00
djsrv
964b3eddc2 DIRECTOR: LINGO: Implement m_dispose 2020-06-06 18:34:06 +02:00
djsrv
5443cb2b32 DIRECTOR: LINGO: Fix user-defined mNew 2020-06-06 18:34:06 +02:00
djsrv
8274f76dee DIRECTOR: LINGO: Clean up factory code 2020-06-06 18:34:06 +02:00
djsrv
c855e1ad6e DIRECTOR: LINGO: Add factory debugging 2020-06-06 18:34:06 +02:00
djsrv
e39fa92178 DIRECTOR: LINGO: Implement object array 2020-06-06 18:34:06 +02:00
djsrv
ccba7503e0 DIRECTOR: LINGO: Implement me 2020-06-06 18:34:06 +02:00
djsrv
fddf6dd193 DIRECTOR: LINGO: Implement instance vars 2020-06-06 18:34:06 +02:00
djsrv
eef6fbe831 DIRECTOR: LINGO: Implement m_new 2020-06-06 18:34:06 +02:00
djsrv
95a70de5c3 DIRECTOR: LINGO: Clean up LC::call 2020-06-06 18:34:06 +02:00
djsrv
041326bdd1 DIRECTOR: LINGO: Implement factory method calls 2020-06-06 18:34:06 +02:00
djsrv
182402fdfa DIRECTOR: LINGO: Create and populate factory objs 2020-06-06 18:34:06 +02:00
Antoniou Athanasios
c2a12908c2
COMMON: Use assert for CLIP() if bounds are not properly ordered (#2298)
COMMON: Use assert in debug builds to prevent bad ordering of bounds

The only macro to check against for debug vs release builds that I found is RELEASE_BUILD
2020-06-06 17:53:47 +03:00
Eugene Sandulenko
b53a7db0da ALL: Switch to Common::hypotenuse() 2020-06-06 15:08:52 +02:00
Eugene Sandulenko
b1c5e63de0 JANITORIAL: Whitespace fixes 2020-06-06 15:08:33 +02:00
Eugene Sandulenko
83c8035fbc MATH: Added hypotenuse() call 2020-06-06 15:08:17 +02:00
Eugene Sandulenko
07fbcc26f4 DIRECTOR: LINGO: Do not error() inside Lingo, but issue warning 2020-06-06 13:24:19 +02:00
Eugene Sandulenko
6c6fde7e59 DIRECTOR: LINGO: Fix version for 'the text of field' 2020-06-06 13:04:47 +02:00
Lothar Serra Mari
aca3975843 BASE: Fix missing newline in command line output 2020-06-06 13:01:28 +02:00
Eugene Sandulenko
aaaffa96d4 DIRECTOR: LINGO: Added undocumented 'the text of field' entity 2020-06-06 12:59:06 +02:00
Eugene Sandulenko
1bf7358751 DIRECTOR: LINGO: Added test for additional 'the' entity syntax 2020-06-06 12:48:08 +02:00
Eugene Sandulenko
547e16653c DIRECTOR: LINGO: Clean up obsolete tokens 2020-06-06 12:33:36 +02:00
Eugene Sandulenko
2680916528 DIRECTOR: LINGO: Moved thenetitywithid to simpleexpr 2020-06-06 12:31:06 +02:00
Eugene Sandulenko
6bea770e6d COMMON: Fix PS2 build 2020-06-06 00:09:35 +02:00
Eugene Sandulenko
666b80bfaa DIRECTOR: LINGO: 'number of xxx' were added in D3, not D4 2020-06-05 23:50:20 +02:00
djsrv
bf28430074 DIRECTOR: LINGO: Don't check for \n in script text
Script text only needs to start with "--", no newline necessary.
2020-06-05 23:37:19 +02:00
djsrv
ecf09c214c DIRECTOR: LINGO: Skip garbage before macro in D2-3 2020-06-05 23:37:19 +02:00
Bastien Bouclet
5afec16c3b SCI: Fix stack use after scope in detection code 2020-06-05 20:11:26 +02:00
Andrei Prykhodko
bfeb6cda0b PETKA: added engine field to VideoSystem 2020-06-05 21:01:15 +03:00
Andrei Prykhodko
b4b46779d4 PETKA: removed usage of g_vm in Engine methods 2020-06-05 20:57:07 +03:00
Andrei Prykhodko
a36e9c6970 PETKA: added Engine field to QSystem 2020-06-05 20:55:55 +03:00
Andrei Prykhodko
eaf599e04f PETKA: added override to Engine dor 2020-06-05 20:51:53 +03:00
Andrei Prykhodko
785d2b6c20 PETKA: use vm field in QManager 2020-06-05 20:51:07 +03:00
Andrei Prykhodko
afd2e589be PETKA: added vm field to SoundMgr 2020-06-05 20:48:16 +03:00
Andrei Prykhodko
57b0f41d2f CREDITS: added Petka entry 2020-06-05 20:40:59 +03:00