Commit Graph

60 Commits

Author SHA1 Message Date
Paul Gilbert
b9a0e32c3c Changed NPC schedules to be loaded when an NPC is activated - this avoids an issue with the Castle Skorl's pre-activation room number being invalid room #99
svn-id: r34748
2008-10-05 10:25:35 +00:00
Filippos Karapetis
6a9acd7a5e Replaced ManagedList with Common::SharedPtr in the rest of the lure engine
svn-id: r31420
2008-04-06 12:00:37 +00:00
Jordi Vilalta Prat
66e9d4f5e8 Removed trailing spaces.
svn-id: r30664
2008-01-27 19:47:41 +00:00
Paul Gilbert
2195528ca0 Got rid of the experimental NPC Schedule store in favour of moving the NPC schedules from the active hotspot class back into the hotspot data class, similiar to how the original game implements them
svn-id: r30629
2008-01-24 08:14:48 +00:00
Paul Gilbert
99e2c7c1d6 Fixed bug with saving of cached actor schedules and added saving of talk data flags
svn-id: r30582
2008-01-20 03:38:16 +00:00
Paul Gilbert
d804bad551 Replaced the Blacksmith hack with an NPC Schedules list that stores the active schedule of an NPC when it's deactivated in case it's later reactivated again.
svn-id: r30378
2008-01-10 13:37:34 +00:00
Paul Gilbert
1d4efdcaa1 Added proper reset of barmen data when game is restarted, and added missing barman data to savegames
svn-id: r30367
2008-01-10 09:42:51 +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
Paul Gilbert
2b9859f2ff Redeveloped the processing of language item article prefixes to match how the original handles the various languages
svn-id: r29833
2007-12-12 08:49:09 +00:00
Chris Apers
1cfadf725c Hack to workaround struct padding added by some compilers (mainly on PalmOS)
svn-id: r29777
2007-12-09 10:39:57 +00:00
Paul Gilbert
4031b98349 Reworked the RoomResource structure to make the game easier to compile on PalmOS
svn-id: r29687
2007-12-02 01:17:51 +00:00
Paul Gilbert
547716a0df Added a talkerId field to hotspots to better handle characters being talked to
svn-id: r29254
2007-10-24 10:09:06 +00:00
Paul Gilbert
d0d454c5da Added new string Ids used for inventory display
svn-id: r29165
2007-10-07 11:06:48 +00:00
Paul Gilbert
cb2f6ce092 Fixed action lists to sort correctly for non-English languages
svn-id: r29144
2007-09-30 12:35:37 +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
Paul Gilbert
a19f337a0c Changed ManagedList to make it more thread safe
svn-id: r28914
2007-09-16 04:03:50 +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
ca96ba431c Completed the restart/restore dialog screen and functionality
svn-id: r28714
2007-08-25 06:08:02 +00:00
Paul Gilbert
9a9d0cb0a5 Cleaned up structures for room exit joins
svn-id: r28550
2007-08-12 11:16:43 +00:00
Paul Gilbert
d03e3e9c87 Added code for hotspot fields I didn't originally understand
svn-id: r28457
2007-08-05 02:56:51 +00:00
Max Horn
e1bcd70436 Re-added __attribute__(packed)
svn-id: r27830
2007-07-01 18:18:43 +00:00
Paul Gilbert
8b3821e9ff Lots of bugfixes - game is now completable
svn-id: r27606
2007-06-22 12:36:04 +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
30142129c0 Added saving of scheduled scripts, and set script activation times to match original game
svn-id: r26991
2007-05-28 11:36:08 +00:00
Paul Gilbert
4a40ecb4df Added saving of the room walkable paths
svn-id: r26883
2007-05-20 07:25:53 +00:00
Paul Gilbert
d2e56f7b66 Added saving of room exit join data in savefiles
svn-id: r26776
2007-05-07 12:10:32 +00:00
Paul Gilbert
643735e8a4 Bugfix for random destination setting so NPCs don't walk outside the valid walkable areas of a room
svn-id: r26747
2007-05-05 01:00:01 +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
Max Horn
d4660cce55 Removing more semicola
svn-id: r26597
2007-04-26 19:08:53 +00:00
Paul Gilbert
fdea5abb34 Added code to prevent NPCs from moving when being talked to
svn-id: r26546
2007-04-19 06:46:56 +00:00
Paul Gilbert
2d617677df Bugfix to have Ratpouch correctly follow player, and new object animation handlers added
svn-id: r26487
2007-04-15 10:49:59 +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
68225f7896 Implemented handling for barmen (rooms 29, 32, and 35)
svn-id: r26464
2007-04-14 03:48:24 +00:00
Paul Gilbert
4f8c66b4cc Added saving of the random actions set state, and implemented NPC opcode 29, which allows for an NPC to be given a custom talk record
svn-id: r25875
2007-02-26 02:50:23 +00:00
Paul Gilbert
7ac767a2ba Added proper support for the random actions your sidekick can do in each room
svn-id: r25780
2007-02-22 06:29:09 +00:00
Max Horn
81ec51b8f7 Turned two comments into doxygen comments
svn-id: r25451
2007-02-09 17:47:55 +00:00
Paul Gilbert
87b3f2c6d8 Added new flag for blocked characters and extra checking of dynamic support records versus static schedule entry records
svn-id: r25441
2007-02-09 10:58:06 +00:00
Paul Gilbert
1996046121 Changed the coveredFlag to have an initial state distinct from true or false
svn-id: r25299
2007-01-31 02:28:04 +00:00
Travis Howell
5c72acb536 Set ROOM_EXIT_ANIMATION constant, to fix compile for now. Not sure if value is correct
svn-id: r24625
2006-11-05 08:22:33 +00:00
Paul Gilbert
1a96e26bf6 Added functionality to allow saving/loading the game state
svn-id: r24070
2006-10-02 12:48:56 +00:00
Paul Gilbert
d9b5129fb8 Transferred all previously hard-coded English in-game text to a resource
svn-id: r23831
2006-09-07 11:21:20 +00:00
Paul Gilbert
f871f569e6 Added data for room header flags and actions
svn-id: r23781
2006-08-27 11:38:55 +00:00
Paul Gilbert
ea90eb0699 Renamed hotspot talking destination character field to make it's use clearer
svn-id: r23695
2006-08-07 13:26:30 +00:00
Paul Gilbert
2b4518d8a9 Added a field value for the current hotspot header flags mask byte
svn-id: r23628
2006-07-30 12:09:51 +00:00
Torbjörn Andersson
c32076e5d0 Use #include "..." instead of #include <...> for pack-start.h and pack-end.h
for consistency with other #includes.

svn-id: r23585
2006-07-23 16:13:26 +00:00
Torbjörn Andersson
eabe720a0e Changed __lure_res_h__ to LURE_RES_H etc for consistency.
svn-id: r23584
2006-07-23 15:32:14 +00:00
Torbjörn Andersson
602548cea3 Removed GCC_PACK that must have been re-added by accident.
svn-id: r23581
2006-07-23 15:01:21 +00:00
Paul Gilbert
6585033705 Added extra hotspot flags bytes needed for asking Ratpouch for an object, and changed differing word read macros to use a single standard
svn-id: r23579
2006-07-23 13:19:33 +00:00
Max Horn
2859b64702 Fix struct packing issues (macros are not resolve in #pragma params, at least for GCC)
svn-id: r23569
2006-07-22 17:28:48 +00:00
Max Horn
f59cf1fcdc Removing GCC_PACK, we fully rely on START_PACK_STRUCTS / END_PACK_STRUCTS now (hiya eriktorbjorn, this one is for you *ggg*)
svn-id: r23547
2006-07-21 21:25:17 +00:00