Commit Graph

499 Commits

Author SHA1 Message Date
Strangerke
9c82cf4844 TEENAGENT: Some British to American English 2014-02-19 21:45:26 +01:00
Johannes Schickel
47b6111033 TEENAGENT: Make GPL headers consistent in themselves. 2014-02-18 02:39:38 +01:00
Johannes Schickel
859536dd3a TEENAGENT: Indent REGISTER_PLUGIN_* for consistency. 2014-02-17 23:02:38 +01:00
D G Turner
4df249b9ce TEENAGENT: Fix two more missing callbacks.
This fixes bug #6494 "TEENAGENT: Yet another unimplemented callback".
2014-01-13 03:26:43 +00:00
D G Turner
570379bc54 TEENAGENT: Fix missing callback for examining first haystack.
This fixes bug #6492 "TEENAGENT: Engine abort when using hay."
2014-01-10 23:51:44 +00:00
D G Turner
11b320a6ee TEENAGENT: Add missing getDebugger() for engine API. 2013-12-07 01:32:53 +00:00
D G Turner
ef85456859 BUILD: Remove need for engine.mk in each engine directory.
Each engine now only has to provide a single configure.engine file
adding the engine into the configure script, which then produces the
required other files automatically.
2013-11-24 00:48:01 +00:00
D G Turner
1ac01d2333 BUILD: Remove need for engine-plugin.h in engines.
This is now generated automatically by the configure script from the
engine directory names.
2013-11-24 00:48:01 +00:00
D G Turner
00c27a28f9 BUILD: Split engines/plugins_table header down to a file per engine.
This is the third and final commit enabling fully pluggable engines.

Now providing an engine folder contains a configure.engine, engine.mk
and engine-plugin.h file, it will be picked up automatically by the
configure script.
2013-11-24 00:48:01 +00:00
D G Turner
d77cf95a18 BUILD: Split engines.mk down to a single file per engine.
This is the second part of allowing engines to be added dynamically.
Each folder in engines/ which must contain a file named "engine.mk"
containing the make definitions for that engine.
2013-11-24 00:48:01 +00:00
D G Turner
aa947c9474 BUILD: Split configure.engines down to a single file per engine.
This is the first part of allowing engines to be added dynamically.
They are placed into a folder in engines/ which must contain a file
named "configure.engine" to add the engine, which is pulled into the
top level configure script automatically.
2013-11-24 00:45:38 +00:00
Johannes Schickel
378387c903 I18N: Move specification of engine specific files to enginedir/POTFILES.
This allows to keep the engines to specfiy the files for translation close to
the engine sources itself.

Thanks to criezy for his suggestion on this approach.
2013-08-12 17:54:31 +02:00
Johannes Schickel
4ddace8a7a TEENAGENT: Take advantage of Surface::getPixels. 2013-08-03 04:02:52 +02:00
Johannes Schickel
509f96dff3 TEENAGENT: Prefer getBasePtr over direct Surface::pixels access. 2013-08-03 02:52:34 +02:00
Torbjörn Andersson
71ed35502e TEENAGENT: Add missing "break"s to switch cases
I think this is the correct thing to do, and that it won't have
any noticeable effect whatsoever.

Cases 29 and 30 happen in the first half of the game, in the
cantine, while case 42 happens in the second half of the game. By
the time you reach the point where case 42 does something, I don't
think it's possible to get back to cases 29 and 30, so when case
29 falls through neither 30 nor 42 will do anything.

CID 1003730, 1003731
2013-07-19 20:49:15 +02:00
Sven Hesse
989ea7cb56 JANITORIAL: Remove trailing whitespace 2013-07-14 19:01:47 +02:00
Matthew Hoops
0031c41db8 COMMON: Change kPlatformPC to kPlatformDOS
"PC" was very ambiguous and now it matches what we show in the GUI.

This also corrects sword2's platform to Windows.
2013-05-02 18:43:10 -04:00
D G Turner
80af0e2394 TEENAGENT: Convert Dialog text color symbols to an enum. 2012-10-10 14:43:19 +01:00
D G Turner
115593a6c1 TEENAGENT: Convert Inventory item ids to an enum. 2012-10-10 14:42:21 +01:00
D G Turner
c92ff8db33 TEENAGENT: Fix constant naming to comply with Coding Conventions.
Adding missing CamelCase k-prefixes.
2012-10-09 09:14:44 +01:00
D G Turner
e8f9c61065 TEENAGENT: Modify callback comment into readable FIXME. 2012-10-02 05:08:33 +01:00
D G Turner
30dfaa7c34 TEENAGENT: Cleanup TeenagentEngine class.
This removes the underscores in various variables as per project
coding standard.
2012-09-26 02:15:25 +01:00
D G Turner
5d1143a9e0 TEENAGENT: Cleanup Surface class.
This removes the underscores in various variables as per project coding
standard.
2012-09-24 16:10:06 +01:00
D G Turner
e33f2779c6 TEENAGENT: Cleanup Scene class.
This removes the underscores in various variables as per project
coding standard.
2012-09-24 06:05:49 +01:00
D G Turner
c9185c9b11 TEENAGENT: Cleanup Object classes.
This removes the underscores in various variables as per project coding
standard.
2012-09-24 02:51:26 +01:00
D G Turner
86475a0b06 TEENAGENT: Further cleanup for Font class. 2012-09-24 01:22:08 +01:00
D G Turner
0903351974 TEENAGENT: Cleanup Font class.
This fixes a mismatched function prototype wrt. the definition and
removes the underscores in various variables as per project coding
standard. Also, minor reordering of functions for readability.
2012-09-23 18:53:22 +01:00
D G Turner
82e9011d24 TEENAGENT: Cleanup Inventory class.
This removes the underscores in various variables as per project coding
standard.
2012-09-23 18:12:34 +01:00
D G Turner
fba9c88ea7 TEENAGENT: Minor cleanups to Animation Class.
Renaming to remove underscores in member variables and minor method
reordering for readability.
2012-09-16 10:45:41 +01:00
D G Turner
d501c4d4ae TEENAGENT: Cleanup Actor class.
This fixes a mismatched function prototype wrt. the definition and
removes the underscores in various variables as per project coding
standard.
2012-09-13 15:53:18 +01:00
D G Turner
b7b2a4ee88 TEENAGENT: Clean up SurfaceList Class.
This removes an unecessary type and unused parameter from the load
method and renames to remove underscores from variable names as per
the project coding conventions.
2012-09-13 10:55:10 +01:00
D G Turner
bdba8bfb82 TEENAGENT: Add missing (disabled?) callback implementation. 2012-09-12 08:33:13 +01:00
D G Turner
df6c4fbdf0 TEENAGENT: Annotate Symbols for Inventory Object Callback Table. 2012-09-12 06:32:54 +01:00
D G Turner
31cb5ce3f1 TEENAGENT: Remove final usages of code segment blob.
The loading of cseg is now replaced by skipping, so that the external
dat file remains the same, but RAM usage is reduced.

The callbacks code will now error on unknown callback addresses, which
should not happen as all cases should now be covered, though the
callback tables need to be checked to ensure this is guaranteed.
2012-09-02 04:56:20 +01:00
D G Turner
7f8d15d008 TEENAGENT: Add missing callback for examining left window in house #2. 2012-08-06 18:37:16 +01:00
D G Turner
6c06a837ea TEENAGENT: Migrate Dialog Stack Address usages to symbols. 2012-08-05 21:47:38 +01:00
D G Turner
2e848941e5 TEENAGENT: Correct minor text color bug. 2012-08-03 16:47:31 +01:00
D G Turner
dc009160bb TEENAGENT: Add symbols for dialog and message text colors. 2012-08-03 16:28:58 +01:00
D G Turner
75e121806d TEENAGENT: Ensure MusicPlayer is stopped on destruction. 2012-08-02 13:01:37 +01:00
D G Turner
95ba78c27d TEENAGENT: Fix for bug #3428161 "PSP: No music in TeenAgent".
This could occur on other platforms too and was a race hazard between
mixer thread startup and music being valid i.e. If the music doesn't
already exist, when the mixer callback is done, this deletes the channel
as idle. Reordered the calls to fix this.

Also, removed unecessary music->start() as this is done by setMusic(n)
on successful load anyway.
2012-08-02 13:00:28 +01:00
D G Turner
5c03af4a76 TEENAGENT: Implement missing callback for talking to Bird in Act 1. 2012-08-02 09:35:17 +01:00
D G Turner
21d7db6578 TEENAGENT: Added missing callback for pushing House #2 doorbell.
This is incomplete, but an improvement. It also shows where one of the
missing messages is used.
2012-08-02 08:44:14 +01:00
D G Turner
4c395c9da9 TEENAGENT: Fix minor regression when looking at Cellar Spider.
This code appeared to be missing. After comparing with the original
interpreter under DOSBox which showed the expected behaviour if it
was present, have added it.
2012-08-02 07:48:38 +01:00
D G Turner
520234c200 TEENAGENT: Migrate remaining callback flag variables to symbols. 2012-08-01 19:26:46 +01:00
D G Turner
ed86d58bda TEENAGENT: Even more migration of callback flag variables to symbols. 2012-08-01 16:17:37 +01:00
D G Turner
502a284b85 TEENAGENT: Some more migration of callback flag variables to symbols. 2012-08-01 14:44:51 +01:00
D G Turner
efc1e16151 TEENAGENT: Further migration of callback flag variables to symbols. 2012-08-01 13:18:20 +01:00
D G Turner
455be31ff3 TEENAGENT: Migrate some callback flag variables to symbols. 2012-08-01 08:24:40 +01:00
D G Turner
e11e72d5a7 TEENAGENT: Replace two missed inventory item ids with symbols. 2012-08-01 07:00:29 +01:00
D G Turner
92aa3123cb TEENAGENT: Add symbols for inventory items. 2012-08-01 06:40:49 +01:00