Max Horn
64bcb731bf
LURE: Rename method random() -> getRandom()
...
Also get rid of a slight bias for 0 in the random numbers (it was
selected twice as often as any other number).
2011-05-17 12:31:21 +02:00
Max Horn
4cbe4ede66
COMMON: Registers RandomSources in constructor with the event recorder
...
This also removes the dependency of engines on the event recorder header
and API, and will make it easier to RandomSources that are not properly
registered.
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
Paul Gilbert
f94752f752
LURE: Partial fix for #3008511 Goewin getting stuck
...
This workaround prevents the Weregate from closing whilst Goewin is still within it
svn-id: r52971
2010-10-02 00:08:13 +00:00
Paul Gilbert
5e66329117
LURE: Workaround for bug #3047234 in English EGA version
...
svn-id: r52378
2010-08-25 09:28:29 +00:00
Max Horn
f242266f6d
Change a couple places from 'end of namespace' to 'End of namespace', for consistency
...
svn-id: r44634
2009-10-04 21:26:33 +00:00
Filippos Karapetis
5028d5a68b
Reverted my commit #44290 - apparently, it was a bad idea, as g_engine is a hack
...
svn-id: r44311
2009-09-24 17:07:27 +00:00
Filippos Karapetis
a70351e5ea
Changed some references from LureEngine to the global g_engine (e.g. calls to shouldQuit()), to minimize places where LureEngine is referenced
...
svn-id: r44290
2009-09-24 06:53:03 +00:00
Johannes Schickel
ac5a6552ca
Switched LURE to use a single central RandomSource instance, instead of (sometimes) creating a new RandomSource every function call.
...
svn-id: r43715
2009-08-24 23:04:25 +00:00
Johannes Schickel
7e71865e91
Move the event recorder to its own class (EventRecoder inside common/EventRecorder.[h/cpp]).
...
svn-id: r42751
2009-07-25 12:59:46 +00:00
Torbjörn Andersson
0999534749
The error() and warning() functions add ! and newline automatically. (I didn't
...
look at debug() and debugC(), since I'm really bored with this now. :-)
svn-id: r41061
2009-05-31 10:02:16 +00:00
Johannes Schickel
2ef8a32a01
Fixed various g++ warnings ("format not a string literal and no format arguments").
...
svn-id: r35096
2008-11-16 20:20:31 +00:00
Max Horn
9b160804ab
Renamed Engine::quit to Engine::shouldQuit (previously, it was easily confused with Engine::quitGame); also cleaned up engine.h a bit
...
svn-id: r34700
2008-09-30 12:27:38 +00:00
Christopher Page
17ce8db211
Lure works with the new GMM implementation
...
svn-id: r32996
2008-07-10 22:34:48 +00:00
Christopher Page
6e3474896c
Kyra and Lure are now using the new _quit flag
...
svn-id: r32772
2008-06-25 00:55:18 +00:00
Paul Gilbert
76b1f4bcea
Added a debugger command 'script' to allow execution of script engine methods
...
svn-id: r31568
2008-04-19 00:34:02 +00:00
Torbjörn Andersson
ff688574c4
Changed spaces to tabs.
...
svn-id: r31362
2008-04-02 04:23:00 +00:00
Jordi Vilalta Prat
66e9d4f5e8
Removed trailing spaces.
...
svn-id: r30664
2008-01-27 19:47:41 +00:00
Paul Gilbert
00796bb598
Bugfix for transformation sparkle to finish if the player changes room partway through animation
...
svn-id: r30609
2008-01-22 09:46:11 +00:00
Paul Gilbert
019624e3c1
Added code fragment to correctly set the walk to position for Goewin (for interacting with her) both when she's in the Apothecary and when she's out walking
...
svn-id: r30515
2008-01-16 10:06:19 +00:00
Paul Gilbert
8b9c7b2137
Corrected the name of script method #39 which closes the town hall door
...
svn-id: r30371
2008-01-10 10:48:04 +00:00
Paul Gilbert
6eb64102a4
Fix to remove a tab character from the GPL header
...
svn-id: r30238
2008-01-05 12:45:14 +00:00
Torbjörn Andersson
0b74448ded
An element was missing in the initialisation of sounds during the endgame
...
sequence. It seems to correspond to the original's end_seq_data, so this should
be the correct value. I hope.
svn-id: r29877
2007-12-16 13:28:00 +00:00
Paul Gilbert
706e779236
Hooked up the sound code to use the configuration for sfx and music, and added code from the original game that used the high bit of sounds to distinguish between the two
...
svn-id: r29873
2007-12-16 08:19:56 +00:00
Paul Gilbert
11e29ca4d4
Bugfix to make any animation the player is doing uninterruptable
...
svn-id: r29690
2007-12-02 04:52:01 +00:00
Paul Gilbert
eadb5b7292
Added sounds to endgame animation sequence
...
svn-id: r29548
2007-11-18 05:11:38 +00:00
Paul Gilbert
b95a102011
Fixes to parameters of script methods
...
svn-id: r29508
2007-11-15 11:33:16 +00:00
Paul Gilbert
24303fb953
Expanded talk routines so that characters now properly stand still only when they're meant to
...
svn-id: r29471
2007-11-10 22:47:11 +00:00
Paul Gilbert
9fc974209b
Bugfix for NPC conversations so they'll only stand still when they should, and pause correctly during scripted animations
...
svn-id: r29445
2007-11-07 09:39:48 +00:00
Paul Gilbert
9a1b13e965
Changed startSpeakingToNoone to pause the speaking character
...
svn-id: r29252
2007-10-24 10:04:24 +00:00
Paul Gilbert
b4cff6b9bd
Converted fields in data that were originally offsets (such as tick proc offsets) to use indexes, allowing for more generic handling of different language versions
...
svn-id: r29073
2007-09-23 22:17:57 +00:00
Eugene Sandulenko
77eea722af
Modified patch #1738058 : "Action recorder".
...
svn-id: r28968
2007-09-19 13:55:05 +00:00
Paul Gilbert
b2e97060ad
Initial sound implementation
...
svn-id: r28917
2007-09-16 04:06:49 +00:00
Max Horn
efbef7880b
Fixed code formatting (hanging braces); added static/const keywords to data tables; merged Hotspot::doLookAt and doLookThrough code
...
svn-id: r28880
2007-09-08 11:18:35 +00:00
Paul Gilbert
234c2a5770
Fixed up several sound system script methods
...
svn-id: r28712
2007-08-25 06:03:24 +00:00
Travis Howell
9a9f801e93
Remove left over debug ocde.
...
svn-id: r28555
2007-08-12 12:26:46 +00:00
Paul Gilbert
4cf99284a7
Added missing calls to the sound system
...
svn-id: r28549
2007-08-12 11:15:36 +00:00
Paul Gilbert
707e62e669
Implemented remaining script methods
...
svn-id: r27605
2007-06-22 12:31:27 +00:00
Max Horn
218e132e37
Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
...
svn-id: r27024
2007-05-30 21:56:52 +00:00
Paul Gilbert
5e0fd79a5a
Implemented new script methods
...
svn-id: r26992
2007-05-28 11:36:59 +00:00
Paul Gilbert
8740e81d1f
Bugfix to save whether each NPC has been identified, and correctly transform back from Selena
...
svn-id: r26935
2007-05-25 22:59:24 +00:00
Paul Gilbert
d449697aa5
Cleaned up the script engine opcodes, added debug names for recently added script methods, and bugfix to method that was causing a crash in the first room
...
svn-id: r26681
2007-04-30 07:58:09 +00:00
Paul Gilbert
885f687ae5
Reworked hotspot actions so that talking to characters work properly
...
svn-id: r26675
2007-04-29 11:30:29 +00:00
Paul Gilbert
307506df9c
General bugfixes, added animation handlers for creating potion and freeing Goewin, and in-progress work on completing original game's action precheck code
...
svn-id: r26572
2007-04-22 22:42:01 +00:00
Paul Gilbert
e01efe4004
Added new script methods
...
svn-id: r26485
2007-04-15 10:43:31 +00:00
Paul Gilbert
98bd127504
Gave proper names to previously unknown/partially-known constants
...
svn-id: r26467
2007-04-14 11:00:29 +00:00
Paul Gilbert
8be6153533
Added script method for barmen serving player
...
svn-id: r26463
2007-04-14 03:46:30 +00:00
Paul Gilbert
5a313074bc
Bugfix to correctly remove an item from a character's inventory when it is deactivated
...
svn-id: r26338
2007-04-01 11:48:54 +00:00
Paul Gilbert
c4cbf9dc92
Added some asserts to setSupportData method to ensure the passed variables are valid
...
svn-id: r25647
2007-02-17 03:41:41 +00:00
Paul Gilbert
6391e49ee5
Improved character blocked/bumped handling
...
svn-id: r25440
2007-02-09 10:56:31 +00:00