Commit Graph

125 Commits

Author SHA1 Message Date
D G Turner
4e26e1969f TEENAGENT: Add three more missing callbacks. 2012-07-31 15:08:32 +01:00
D G Turner
d62bb98659 TEENAGENT: Resolve two FIXMEs by adding missing callbacks. 2012-07-31 14:40:47 +01:00
D G Turner
b01fdfeec6 TEENAGENT: Add symbols for remaining missing message strings.
By doing this, have tracked down most of the remaining missing trivial
callbacks using these strings. Some strings are either unused or are
used in odd places, marked these with FIXME.

Also discovered another unimplemented non-trivial callback.
2012-07-31 13:17:56 +01:00
D G Turner
8c37d72897 TEENAGENT: Migrate most of the remaining callbacks from cseg usage. 2012-07-31 01:21:34 +01:00
D G Turner
470bdfd5a9 TEENAGENT: Some more migration of callbacks from cseg usage. 2012-07-30 14:22:24 +01:00
D G Turner
79f281c791 TEENAGENT: Even more migration of callbacks from cseg usage. 2012-07-30 00:10:57 +01:00
D G Turner
7337e03e5b TEENAGENT: Further migration of callbacks from cseg usage. 2012-07-29 14:02:43 +01:00
D G Turner
fe7fbe8c33 TEENAGENT: Migrate even more callbacks from cseg usage. 2012-07-29 11:02:31 +01:00
D G Turner
df3d3e2946 TEENAGENT: Migrate more callbacks from cseg usage. 2012-07-29 07:59:51 +01:00
D G Turner
e2d6381645 TEENAGENT: Switch Callback ordering to use switch before cseg data.
This now emits warning output if a callback is not explicitly
implemented in the switch statement. This is to migrate away from
loading and using the cseg data in favor of explicit code blocks.

Also, some implementation of callbacks using cseg previously.
2012-07-29 06:00:27 +01:00
D G Turner
d4591dcfb5 TEENAGENT: Further addition of variable locations used in Callbacks. 2012-07-28 10:57:26 +01:00
D G Turner
955f5b5180 TEENAGENT: Add symbols for functions called by TimerCallback(). 2012-07-28 09:44:16 +01:00
D G Turner
7032dd5a1d TEENAGENT: Symbolise most of remaining addresses in TeenAgent engine.
Also, change address 0 usage to 0x0000 for readability.
2012-07-28 09:05:16 +01:00
D G Turner
be4be025b9 TEENAGENT: Add constant values for screen width and height.
It is unlikely these will be changed, but the symbols make the code more
readable.
2012-07-28 07:31:41 +01:00
D G Turner
890b83e3d8 TEENAGENT: Use prexisting defined symbols in Callbacks code. 2012-07-28 06:05:20 +01:00
D G Turner
7bc646f8ca TEENAGENT: Migrated remaining recursive processCallback calls. 2012-07-26 22:35:22 +01:00
D G Turner
07bb1ae7cf TEENAGENT: Add symbols for Mansion intrusion attempt function addresses. 2012-07-26 21:32:39 +01:00
D G Turner
cce5d3e30f TEENAGENT: Migrate mansion intrusion callback lookup table to switch. 2012-07-26 10:22:54 +01:00
D G Turner
72adca69f3 TEENAGENT: Migrate most recursive processCallback() calls to functions. 2012-07-26 06:06:44 +01:00
D G Turner
9128f8a8de TEENAGENT: Further recursive processCallback() migration work.
Added extra debug output to processCallback cseg functions. Used this to
resolve the FIXME unknown functions. 0x61fe is trivial callback, but
0x50c5 is a typo. Corrected.
2012-07-26 01:49:46 +01:00
D G Turner
ebef5fefea TEENAGENT: Symbol migration associated with recursive processCallback(). 2012-07-26 00:39:05 +01:00
D G Turner
88a1989a79 TEENAGENT: Replace reject message table lookup with explicit values.
Also, this adds explicit offset indexes for indexed message tables
contents.
2012-07-23 04:04:42 +01:00
D G Turner
af7fca1a7e TEENAGENT: Split out functions to avoid need for processCallback(). 2012-07-23 00:50:19 +01:00
D G Turner
f9d3cb8e28 TEENAGENT: Fix another invalid string offset.
This typo caused an incorrect string output when Mark examines the
car trunk when it is empty.
2012-07-22 22:35:00 +01:00
D G Turner
c373ed4ea4 TEENAGENT: Symbol migration associated with remaning display*Message().
Have also corrected typo in offset i.e. 0x39b7 was incorrect, it appears
that 0x3ab7 was intended.
2012-07-22 04:55:46 +01:00
D G Turner
7c0b3e0167 TEENAGENT: Improve readability of displayMessage() calls. 2012-07-18 03:29:52 +01:00
D G Turner
567ca1e506 TEENAGENT: Improve readability of displayAsyncMessage() calls. 2012-07-18 02:55:38 +01:00
D G Turner
7f4ba475fe TEENAGENT: Symbol migration associated with displayCutsceneMessage(). 2012-07-17 17:09:13 +01:00
D G Turner
320f1e3059 TEENAGENT: Improve readability of displayCutsceneMessage() calls. 2012-07-17 14:15:47 +01:00
D G Turner
e181e3d499 TEENAGENT: Add symbol for Mansion attempt counter. 2012-07-17 03:10:38 +01:00
D G Turner
91b13b30b3 TEENAGENT: Symbol migration associated with displayCredits(). 2012-07-17 02:21:40 +01:00
D G Turner
5563abae6d TEENAGENT: Further symbol migration for processCallback() usage. 2012-07-17 00:04:27 +01:00
D G Turner
85cf79a57f TEENAGENT: Minor formatting fixes for consistency.
This is mainly ensuring that all hexadecimal usages i.e. addresses are
 in lowercase for consistency, but also includes some minor comment
formatting correction.
2012-07-12 21:03:47 +01:00
D G Turner
8dcc426911 TEENAGENT: Replace most of early return calls in processCallbacks().
This results in a cleaner and simpler function, prior to any further
refactoring.
2012-07-12 00:01:26 +01:00
D G Turner
53a7e522ea TEENAGENT: Start replacing hardcoded addresses with symbols. 2012-07-11 19:28:36 +01:00
D G Turner
923c05faf5 TEENAGENT: Migrate Dialog functions to using dialog numbers.
This removes the hardcoded address/offsets from the callback functions.
2012-07-11 18:21:46 +01:00
D G Turner
cffff61081 TEENAGENT: Replace static Dialog functions with normal class.
This avoids the need to pass the engine pointer, vm to every function
and removes the need for the functions to be static.
2012-07-11 14:34:09 +01:00
D G Turner
0e6ba29ede TEENAGENT: Migrate engine to using debugflags.
This required some restructuring of the header dependencies.
2012-07-08 00:36:05 +01:00
D G Turner
62c4c09225 TEENAGENT: Enable commented out debug statements.
Commented out code is not good practice. Will change these statements
to using debugflags instead in a future commit.
2012-07-07 17:04:42 +01:00
D G Turner
313502e2ee TEENAGENT: Remove static Resources class Instance.
This is replaced by an engine instance. This should prevent issues
with Return To Launcher and may remove issues with file handles.
2012-07-07 13:46:28 +01:00
Vladimir Menshakov
d6a3247058 TEENAGENT: Added robot's dialogue animation. 2011-11-03 00:46:47 +04:00
Vladimir Menshakov
33ed1b1d47 TEENAGENT: removed another duplicated if 2011-11-02 23:47:43 +04:00
Vladimir Menshakov
6b0acdb2aa TEENAGENT: fixed typo (duplicate if) 2011-11-02 23:43:44 +04:00
Johannes Schickel
8a7f3e69ff TEENAGENT: Improve code formatting.
I used astyle and fixed some incorrect changes from it manually.
2011-10-23 02:07:23 +02:00
Max Horn
05a7b160b3 TEEN: Use only one RandomSource and give that one a name.
This change ensures that only RandomSource is used which also is
registered with the event recorder. Moreover, it gets rid of a static
RandomSource instance inside Actor::renderIdle.
2011-05-17 12:17:26 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Vladimir Menshakov
6e26a20b1c fixed big fan room
svn-id: r48382
2010-03-24 19:34:08 +00:00
Vladimir Menshakov
76ef5d4aea -added overlay rendering flag
-fixed music played too late on some scenes

svn-id: r48349
2010-03-21 07:38:09 +00:00
Vladimir Menshakov
a8a327616b better flag/scene checking for the last intrusion attempt
svn-id: r48132
2010-02-26 07:37:35 +00:00