Max Horn
a556368c99
Update mouse coordinates onn *all* mouse events, i.e. also after click events
...
svn-id: r29657
2007-11-28 15:00:41 +00:00
Nicola Mettifogo
919c0a2833
* added adapter from Graphics::Surface to Frames
...
* changed all Disk routines to return Frames* instead of Graphics::Surface*
* changed displayItemComment to use new gfx routines
* merged code for Examine zones into displayComment
svn-id: r29615
2007-11-22 21:51:33 +00:00
Nicola Mettifogo
d8e8050015
* added (incomplete) explicit state machine handling in engine class (see _inputMode)
...
* added service routines to Gfx
* changed displayCharacterComment to work with the new state machine and gfx routines
svn-id: r29613
2007-11-22 21:19:44 +00:00
Nicola Mettifogo
6af9577e84
* moved label drawing into Gfx, to be drawn directly in the framebuffer
...
* changed low level blitting function to accept Graphics::Surface to ease development
* temporarily disabled labels/subtitles in BRA
svn-id: r29593
2007-11-21 20:04:14 +00:00
Nicola Mettifogo
f8e1da5b60
* made engine use Inventory and InventoryRenderer
...
* inventory drawing is now performed directly in the framebuffer instead of using the game screen buffer
* specialized jobs to handle inventory drawing have been deleted as they had become obsolete
svn-id: r29571
2007-11-19 20:46:28 +00:00
Nicola Mettifogo
d86246308d
Walk and script handling are now directly handled by the main loop, instead of relying on the job list.
...
svn-id: r29568
2007-11-19 20:23:01 +00:00
Nicola Mettifogo
28289fb694
Cleanup.
...
svn-id: r29562
2007-11-18 21:32:22 +00:00
Nicola Mettifogo
7731af9833
Partly decoupled rendering from game data update. Graphics routines to draw/erase animations and labels are now invoked explicitly instead of being handled in the job list.
...
svn-id: r29561
2007-11-18 21:16:27 +00:00
Nicola Mettifogo
9e58b0253d
Removed other paranoia code from the original engine (as in revision 29505).
...
svn-id: r29558
2007-11-18 18:04:41 +00:00
Nicola Mettifogo
6471eb84f2
Cleanup.
...
svn-id: r29556
2007-11-18 13:22:38 +00:00
Nicola Mettifogo
a3abaaa709
Refactored main input code.
...
svn-id: r29532
2007-11-17 09:39:20 +00:00
Nicola Mettifogo
0dc9a12db9
Removed an unclear (paranoid?) continue statement from the original engine. We are just doing a screen update more than the original this way. If this is bad, then we can go back, but for now, let the execution flow.
...
svn-id: r29505
2007-11-14 22:31:53 +00:00
Nicola Mettifogo
10caba3562
* centralized kEngineChangeLocation flag handling
...
* simplified runGame, moving flags testing into called routines
svn-id: r29504
2007-11-14 22:24:26 +00:00
Nicola Mettifogo
9038ee9115
Fixed regression: loading from the start screens was messing up game flags.
...
svn-id: r29439
2007-11-06 20:49:50 +00:00
Nicola Mettifogo
684db15b34
* Pushed specific code from base class down to Nippon Safes.
...
* Some refactoring of the main loop.
svn-id: r29407
2007-11-04 10:45:10 +00:00
Eugene Sandulenko
c640d1c604
Patch #1825276 : "DETECTION: advanced detector engine simplification"
...
svn-id: r29386
2007-11-03 21:06:58 +00:00
Nicola Mettifogo
610d9a2ce7
Fixed overflow after fadeout in the last game location (bug #1824026 ).
...
svn-id: r29374
2007-11-02 08:34:56 +00:00
Nicola Mettifogo
ca1b941d02
Donna now returns to her normal outfit after swimming.
...
svn-id: r29373
2007-11-01 23:31:28 +00:00
Nicola Mettifogo
793553c1b4
Made debug console available when displaying slides (like intermissions and menu).
...
svn-id: r29370
2007-11-01 21:23:48 +00:00
Nicola Mettifogo
555336cebe
Fix for bug #1822819 . Donna now changes her look into Suzy after makeup.
...
svn-id: r29361
2007-11-01 17:39:58 +00:00
Nicola Mettifogo
512e57c690
Added new LocationName class to simplify handling of location switches.
...
svn-id: r29353
2007-11-01 13:47:18 +00:00
Nicola Mettifogo
ecbd31160e
Fix for bug #1822680 .
...
svn-id: r29326
2007-10-30 19:41:55 +00:00
Nicola Mettifogo
9d14d74e8d
Temporarily force quits when user presses exit key combination. A TODO comment has been added to places where behavior should be changed to allow the engine to exit gracefully.
...
svn-id: r29270
2007-10-27 21:29:38 +00:00
Nicola Mettifogo
aa01449f29
Relaxed freeZones policy for deciding which zones to preserve across location switches. Special zones are now never deleted even if strictly not needed. This will fix some occasional crashes related to inventory management.
...
svn-id: r29241
2007-10-21 15:41:21 +00:00
Nicola Mettifogo
c68871860a
Added new debug level for inventory routines.
...
svn-id: r29239
2007-10-21 13:10:36 +00:00
Nicola Mettifogo
1c52ea0562
Decoupled password request from actual rendering of the dialogue screen, thus making it possible to fix bug #1765300 . This bug was present in the original game, causing garbled text to appear when asking for password (only in the English version).
...
svn-id: r29213
2007-10-13 21:49:38 +00:00
Nicola Mettifogo
8a73ce38bb
Added beep sound to Nippon Safes for Amiga.
...
svn-id: r29171
2007-10-07 19:18:41 +00:00
Nicola Mettifogo
05abbf49a2
Moved most of inventory-related code inside classes Inventory and InventoryRenderer. Shift is not completed, as new code doesn't handle selections yet (falling back to existent code).
...
svn-id: r29060
2007-09-23 20:17:50 +00:00
Nicola Mettifogo
50fb8b2734
Fixed broken compile on MSVC.
...
svn-id: r29026
2007-09-22 19:31:24 +00:00
Nicola Mettifogo
d7ae40b65d
Refactored a lot of Character-related code and put it into the Character class.
...
svn-id: r29025
2007-09-22 18:45:43 +00:00
Eugene Sandulenko
77eea722af
Modified patch #1738058 : "Action recorder".
...
svn-id: r28968
2007-09-19 13:55:05 +00:00
Nicola Mettifogo
258901bab9
Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
...
svn-id: r28966
2007-09-19 08:40:12 +00:00
Nicola Mettifogo
ef0df159f1
* moved Table handling to objects.cpp
...
* added helper functions to load tables from files
* fixed occasional lock-ups on location change because of broken Table deallocation
svn-id: r28933
2007-09-17 18:22:52 +00:00
Nicola Mettifogo
c37de0131b
Revised debug levels and added many debug strings for parsers.
...
svn-id: r28921
2007-09-16 08:43:34 +00:00
Max Horn
4cc9d17c34
Adding various FIXME comments to bogus (non-self-explanatory) existing FIXME comments; and some other related cleanup
...
svn-id: r28890
2007-09-11 09:20:39 +00:00
Nicola Mettifogo
21e4f4f176
Simplified global label management and added subtitles for BRA.
...
svn-id: r28828
2007-09-02 18:34:11 +00:00
Nicola Mettifogo
60a6d5aa53
Jobs are now members of the engine and are handled with a table, instead of being external functions.
...
svn-id: r28824
2007-09-02 15:17:41 +00:00
Nicola Mettifogo
9c608fcacb
Implemented more opcodes.
...
svn-id: r28746
2007-08-26 09:01:19 +00:00
Nicola Mettifogo
39e4a9b180
Added an abstract base class for representing multiple-frames for animations. Changed user code to rely on the new interface. Cnv has been turned into an implementation of the new interface, and it is now known as a concrete class only to Disk and Font code for Nippon Safes.
...
svn-id: r28734
2007-08-25 20:34:10 +00:00
Nicola Mettifogo
8f2e600601
Merged most parser contexts into a single structure, added some new fields to support BRA.
...
svn-id: r28727
2007-08-25 16:45:06 +00:00
Nicola Mettifogo
37cdd1c69a
First step in restructuring engine code:
...
- code has been consolidated in fewer files
- new table-driven parsers/execution
- some functions has been pushed down the engine hierarchy
- Parallaction_br now inherits from Parallaction_ns
svn-id: r28711
2007-08-24 20:14:51 +00:00
Nicola Mettifogo
eb0798d580
Now using stacks to keep track of multiple levels when parsing location scripts.
...
svn-id: r28639
2007-08-16 19:47:22 +00:00
Nicola Mettifogo
f0f46113ee
Changed more parsing routines to use tables instead of switch statements.
...
svn-id: r28637
2007-08-16 17:28:18 +00:00
Nicola Mettifogo
32164ff210
Defined new Table for location scripts level-0 statements, and changed parseLocation to use a function pointer array instead of a big switch statement.
...
svn-id: r28620
2007-08-14 18:58:47 +00:00
Nicola Mettifogo
3c43ebd49f
Added invalid opcode entries in slot 0 of opcode lists, and adjusted indices to avoid small decrements.
...
svn-id: r28603
2007-08-13 23:58:17 +00:00
Nicola Mettifogo
681ae6ca85
Moved opcode initialization to new routine.
...
svn-id: r28602
2007-08-13 23:49:38 +00:00
Nicola Mettifogo
a2a450dfae
Changed Table to return 0 instead of -1 when lookup fails. Lookup already yields 1-based values when the item is found.
...
svn-id: r28600
2007-08-13 23:17:17 +00:00
Nicola Mettifogo
10ee427772
Changed signature of disk routines for backgrounds to something resembling revisions prior to 28524, yet keeping the new useful BackgroundInfo struct. Those routines can now be used to fill specific fields of the struct, instead of having them create a new one at each call.
...
This feature is needed by BRA, since background, mask and path are specified by different instructions in the script.
svn-id: r28566
2007-08-12 17:13:21 +00:00
Nicola Mettifogo
ee7102d0e7
Pushed menu handling into Parallaction_ns.
...
svn-id: r28556
2007-08-12 12:44:26 +00:00
Nicola Mettifogo
9167422ce3
Moved cursor handling from Gfx to engine subclasses.
...
svn-id: r28534
2007-08-11 20:44:22 +00:00
Nicola Mettifogo
4c89de8fc0
Cleanup.
...
svn-id: r28525
2007-08-11 13:13:56 +00:00
Nicola Mettifogo
8c2ae45ab4
Overhaul of background/mask/path handling:
...
- added new BackgroundInfo structure
- added helper functions to aid management of BackgroundInfo. Engine is now responsible for allocation/deallocation.
- simplified loading and handling of background resources.
svn-id: r28524
2007-08-11 13:07:21 +00:00
Nicola Mettifogo
d800f33ff1
Turned StaticCnv struct into stock Graphics::Surface, and changed all relevant code.
...
svn-id: r28484
2007-08-07 15:08:45 +00:00
Nicola Mettifogo
d30c3650a3
MaskBuffer and PathBuffer are now correctly freed before they are deallocated, and so is background Surface.
...
svn-id: r28483
2007-08-07 14:53:58 +00:00
Nicola Mettifogo
797f114aac
- Renamed BitBuffer to MaskBuffer
...
- Added PathBuffer to handle 1-bit buffers for walkable areas
- Changed relevant walk code to use PathBuffer objects for querying screen dimensions.
svn-id: r28478
2007-08-06 22:03:17 +00:00
Nicola Mettifogo
7c20288ba1
Removed useless mask width and size data members from engine.
...
svn-id: r28474
2007-08-06 19:43:33 +00:00
Nicola Mettifogo
b89bd7462c
Oops. Last cleanup left out one very important line.
...
svn-id: r28317
2007-07-29 21:08:39 +00:00
Nicola Mettifogo
283b89daf8
Cleanup.
...
svn-id: r28315
2007-07-29 19:17:53 +00:00
Nicola Mettifogo
b01232f08a
- Added parser strings for Big Red Adventure
...
- Pushed parser strings initialization down to engine subclasses
svn-id: r28295
2007-07-29 16:29:41 +00:00
Nicola Mettifogo
04027589ab
Cleanup and some new comments.
...
svn-id: r28290
2007-07-29 14:32:30 +00:00
Nicola Mettifogo
7e7b07132e
Moved specialized initialization code into subclasses.
...
svn-id: r28289
2007-07-29 14:24:31 +00:00
Nicola Mettifogo
6320e6db3c
Now yielding control to system after updateScreen is invoked to get smoother mouse movements.
...
svn-id: r28269
2007-07-28 14:21:16 +00:00
Nicola Mettifogo
b8f55ec742
Screen is now refreshed when waiting for left clicks. Solves bug #1762618 .
...
svn-id: r28265
2007-07-28 13:27:48 +00:00
Nicola Mettifogo
67869d2c10
- Moved disk code for Nippon Safes in new file disk_ns.cpp, adding _ns suffix to classes and member functions.
...
- Added function stubs into new file disk_br.cpp for Big Red Adventure [IT STILL CRASHES!].
- Modified engine to create the proper Disk manager object.
svn-id: r28246
2007-07-27 19:02:19 +00:00
Nicola Mettifogo
236634662c
Made screen size parameters properties of engine instead of compile-time constants.
...
svn-id: r28219
2007-07-26 18:30:27 +00:00
Nicola Mettifogo
a641ee4fbe
Changed inventory graphics update from synchronous to lazy.
...
svn-id: r27975
2007-07-08 20:15:43 +00:00
Nicola Mettifogo
d1b9002bb0
Cleanup inventory code.
...
svn-id: r27974
2007-07-08 19:56:12 +00:00
Nicola Mettifogo
674f2e93c2
Location background sound (different from music) now implemented.
...
svn-id: r27958
2007-07-08 08:13:32 +00:00
Travis Howell
3c94b096f6
Fix introduction in Amiga multi-lingual version. Specifically characters for the introduction are only available in disk1
...
svn-id: r27897
2007-07-04 11:17:37 +00:00
Nicola Mettifogo
caa69a55fc
Made changeCharacter restore the previous open Archive after completing its duties: this fixes known crash when mini-Dino activates robot, and possibly many unknown others.
...
svn-id: r27684
2007-06-23 21:53:13 +00:00
Max Horn
9f1e47aa53
Compare Common::KEYCODE_ against KeyState::keycode, not KeyState::ascii
...
svn-id: r27666
2007-06-23 14:19:54 +00:00
Nicola Mettifogo
83172bc8b0
Changed input routine to use KEYCODE.
...
svn-id: r27664
2007-06-23 14:10:44 +00:00
Nicola Mettifogo
f6e2c67cbb
Mouse is now properly hidden during dialogues, and is restored after load/save dialog boxes are closed. Moreover, kEngineMouse constant has been renamed to better match its meaning.
...
svn-id: r27539
2007-06-18 20:11:49 +00:00
Travis Howell
987aaa6d81
Reduce code duplication.
...
svn-id: r27459
2007-06-16 11:13:36 +00:00
Travis Howell
ae3a2b70fb
Fix quit command failing in certain locations (ie character/language selection) for now.
...
svn-id: r27458
2007-06-16 10:47:27 +00:00
Nicola Mettifogo
85ce1d85ca
All known versions of Nippon Safes are now enabled with all features except for half-brite effects. Please keep an eye out for regression.
...
svn-id: r27437
2007-06-15 21:40:02 +00:00
Travis Howell
388b8689a6
Add basic support for Amiga version.
...
svn-id: r27411
2007-06-15 04:05:57 +00:00
Nicola Mettifogo
df324b90d8
Fixed crash on exit (bug #1726185 ).
...
svn-id: r27105
2007-06-05 11:49:01 +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
Nicola Mettifogo
7d2809108e
Fixed the largest memory leaks.
...
svn-id: r26905
2007-05-21 21:06:30 +00:00
Nicola Mettifogo
6e76e46e0e
Fixed regression: wrong job ordering caused a bunch of graphic glitches.
...
svn-id: r26878
2007-05-19 20:49:36 +00:00
Nicola Mettifogo
342d1aa48f
Reverting my last change.
...
svn-id: r26866
2007-05-18 20:05:08 +00:00
Nicola Mettifogo
f243227f09
Replaced explicit bitmasks with function calls.
...
svn-id: r26855
2007-05-16 19:23:14 +00:00
Nicola Mettifogo
ae63466446
cleanup
...
svn-id: r26834
2007-05-13 14:38:05 +00:00
Nicola Mettifogo
09c816e695
New debug messages.
...
svn-id: r26832
2007-05-13 12:41:42 +00:00
Nicola Mettifogo
1c6ab01f9e
Fixed crashes when changing location in the introduction and removed useless code from the original engine.
...
svn-id: r26813
2007-05-12 19:33:00 +00:00
Nicola Mettifogo
346f0746d6
Added Audio debug level and fixed a bug when freeing music streams.
...
svn-id: r26804
2007-05-12 12:56:35 +00:00
Nicola Mettifogo
e2f8d9c80b
Menu handling simplification.
...
svn-id: r26760
2007-05-06 09:59:05 +00:00
Nicola Mettifogo
a4cc51b8c5
Added embryonic debugger, and some adjustments to make basic commands work.
...
svn-id: r26755
2007-05-06 08:52:27 +00:00
Nicola Mettifogo
d6c60a5407
Fix compilation (sigh).
...
svn-id: r26724
2007-05-01 16:21:16 +00:00
Nicola Mettifogo
81d6873608
Refactored music code for dos version and added music to Amiga versions.
...
svn-id: r26619
2007-04-27 20:06:42 +00:00
Nicola Mettifogo
c43960b958
- Fonts are now preloaded at start.
...
- Replaced font string names with enums.
- Some slight simplification to Disk.
svn-id: r26518
2007-04-15 20:57:56 +00:00
Nicola Mettifogo
7e0c88592f
Fixed some memory leaks.
...
svn-id: r26483
2007-04-15 08:32:28 +00:00
Nicola Mettifogo
ab85ecdcb7
- Moved Zone and Animation to List<>.
...
- Removed any reference to Node from codebase.
svn-id: r26452
2007-04-11 20:01:06 +00:00
Nicola Mettifogo
6f8e77eb76
Moved Jobs to ManagedList. Since Jobs must be ordered according to their priority, a new insertSorted method has been added to the implementation.
...
svn-id: r26451
2007-04-10 18:46:34 +00:00
Nicola Mettifogo
cfcf281b86
Cleanup of Zone/Animation removal code. Only the good god of void pointers knows how it managed to work until now.
...
svn-id: r26430
2007-04-09 11:07:38 +00:00
Nicola Mettifogo
a0dbf44ee1
- moved walk code to List<>
...
- some adjustments to #include statements
svn-id: r26424
2007-04-09 10:03:15 +00:00
Nicola Mettifogo
5a8b8ca92d
cleanup
...
svn-id: r26409
2007-04-07 16:40:27 +00:00
Nicola Mettifogo
162247ad3e
Changed Commands to use List<>
...
svn-id: r26407
2007-04-07 15:18:26 +00:00
Nicola Mettifogo
59b1538685
Reduced dependency between project files, and prepared defs.h for deletion as soon as List<>'s usage is implemented.
...
svn-id: r26400
2007-04-07 10:02:59 +00:00
Nicola Mettifogo
9367371107
Turned free___() routines into proper destructors for Zone, Animation and Program, and added memo comments for porting the engine to Common::List<>.
...
svn-id: r26399
2007-04-07 09:31:24 +00:00
Nicola Mettifogo
700fba21ed
Enabled lazy removal for Job instances.
...
svn-id: r26396
2007-04-06 18:44:58 +00:00
Nicola Mettifogo
972b0d036a
Characters now only store the set of frames they actually need. Basically, mini characters and normal characters are now completely separated.
...
svn-id: r26381
2007-04-04 20:59:31 +00:00
Nicola Mettifogo
20c2bba084
Added GF_DEMO flag and ability to load the correct location at start.
...
svn-id: r26340
2007-04-01 12:42:30 +00:00
Nicola Mettifogo
a6ad021b30
Function changeCharacter is now responsible for loading character specific Zones and such
...
svn-id: r26339
2007-04-01 12:17:38 +00:00
Nicola Mettifogo
711865ef63
- implemented destructor for Cnv, thus removing calls to Gfx::freeCnv()
...
- enforced use of getFramePtr instead of Cnv::_array member
svn-id: r26317
2007-03-29 18:34:31 +00:00
Nicola Mettifogo
3903309af3
Overhaul of palette management to bring it back to its original form. Gfx palette code has been updated, and _c_endComment (callable from scripts) has been implemented. As a by-product, palette cycling now finally works!
...
svn-id: r26314
2007-03-28 20:12:00 +00:00
Nicola Mettifogo
303b66391b
engine can now handle amiga and dos splash screens
...
svn-id: r26312
2007-03-27 22:03:00 +00:00
Nicola Mettifogo
7b9c74acae
Added new class Table, and updated Disk accordingly. Tables can be populated after their creation or wrapped around existing arrays. Thus, the old functions (initTable, freeTable and searchTable) have been removed.
...
svn-id: r26295
2007-03-24 21:18:08 +00:00
Nicola Mettifogo
afe981d340
started infrastructure for amiga demo:
...
- added Disk skeleton
- adapted Archive to handle different structure for archives
- moved Disk creation from engine constructor into init() [still sub-optimal]
svn-id: r26293
2007-03-24 17:14:04 +00:00
Nicola Mettifogo
fe5660400f
made Animation a subclass of Zone (finally!)
...
svn-id: r26244
2007-03-19 21:49:41 +00:00
Nicola Mettifogo
992f535724
Made loadFrames return a new Cnv instead of accepting a parameter.
...
svn-id: r26231
2007-03-18 21:08:28 +00:00
Nicola Mettifogo
548a522733
changed Animation::_cnv to be a pointer, in view of changes to Disk::loadFrames()
...
svn-id: r26229
2007-03-18 20:35:12 +00:00
Nicola Mettifogo
7e310422c3
- added constructors for most structs
...
- structs are now allocated via new instead of malloc's
- respective free's have been replaced with delete
svn-id: r26228
2007-03-18 20:18:19 +00:00
Nicola Mettifogo
c1f84742f9
changed remaining stuff to Common::Point and got rid of custom Point and Rect
...
svn-id: r26216
2007-03-18 17:22:07 +00:00
Nicola Mettifogo
0e370a4162
converted DoorData and Zone to Common::Point
...
svn-id: r26215
2007-03-18 17:17:21 +00:00
Nicola Mettifogo
919985e4df
converted input and labels to Common::Point
...
svn-id: r26214
2007-03-18 17:12:48 +00:00
Nicola Mettifogo
13385a5f2d
Made loadObjects return a new Cnv instead of accepting a parameter.
...
svn-id: r26202
2007-03-18 10:34:41 +00:00
Nicola Mettifogo
ec58e9ac05
Made loadHead return a new Cnv instead of accepting a parameter.
...
svn-id: r26200
2007-03-18 10:25:46 +00:00
Nicola Mettifogo
35cebe2444
Made loadTalk return a new Cnv instead of accepting a parameter.
...
svn-id: r26199
2007-03-18 10:20:38 +00:00
Nicola Mettifogo
8240027712
Bug fixed: inventory wasn't refreshed when loading a savegame if character was not switched. To make things clearer, character are now forced to reload all of their data on switch/load.
...
svn-id: r26190
2007-03-18 08:29:45 +00:00
Nicola Mettifogo
5ffd410e30
fixed usage of reference operator
...
svn-id: r26189
2007-03-18 08:15:54 +00:00
Nicola Mettifogo
d7f31cf55d
Flattened anonymous union in Zone. Its members have been partially merged.
...
svn-id: r26181
2007-03-17 19:48:48 +00:00
Max Horn
ed54ea9155
Moved Event/EventType/keyboard enum from common/system.h (part of class OSystem) to common/events.h (part of namespace Common). Porters may have to make minor changes to their backends to get them to compile again
...
svn-id: r26180
2007-03-17 19:02:05 +00:00
Nicola Mettifogo
f272d19570
cleanup
...
svn-id: r26179
2007-03-17 17:52:30 +00:00
Nicola Mettifogo
48460e2ea6
- Made Node a superclass for Zone, WalkNode, Command, Instruction, Program and Job.
...
- Moved Job list management inside Parallaction (because constructors for global variables are not always invoked on some platforms)
svn-id: r26164
2007-03-17 13:14:50 +00:00
Nicola Mettifogo
cb5c3840ed
minor cleanup
...
svn-id: r26161
2007-03-17 08:06:45 +00:00
Nicola Mettifogo
1f7e889fe9
renamed freeCharacterFrames() to freeCharacter() for consistency
...
svn-id: r26160
2007-03-17 07:56:45 +00:00
Nicola Mettifogo
b515721ed8
some renaming to shorten lines
...
svn-id: r26159
2007-03-17 07:55:16 +00:00
Nicola Mettifogo
1ef774b2ee
gathered character related stuff into a new struct Character, and modified calling code accordingly
...
svn-id: r26158
2007-03-17 07:52:47 +00:00
Max Horn
15d9bc42ea
Force all code to use EventManager::pollEvent instead of OSystem::pollEvent
...
svn-id: r26156
2007-03-17 00:53:21 +00:00
Nicola Mettifogo
18fb5b485b
moved remaining background related functions to disk.cpp, and changed Gfx accordingly
...
svn-id: r26145
2007-03-15 21:56:21 +00:00
Nicola Mettifogo
88ed622702
moved background path buffer management into walk.cpp
...
svn-id: r26117
2007-03-12 22:52:27 +00:00
Nicola Mettifogo
6f0dda093a
renamed Graphics class to Gfx and Parallaction::_graphics to Parallaction::_gfx to shorten lines and avoid aliasing with framework's Graphics
...
svn-id: r26111
2007-03-12 20:41:25 +00:00
Nicola Mettifogo
afc35317f7
The only uses for StaticCnv::_data2 were by Get and Door zones, so a new field has been added to those structure and _data2 has been deleted. Some graphic routines has been renamed to better reflect this change, too.
...
svn-id: r26107
2007-03-12 19:58:10 +00:00
Nicola Mettifogo
a1b5d99835
removed some dead code and formatting
...
svn-id: r26089
2007-03-11 15:10:45 +00:00
Nicola Mettifogo
3b5c330cef
wrapped active location data into a new structure
...
svn-id: r26085
2007-03-11 14:14:08 +00:00
Nicola Mettifogo
06434f6eef
some simplification for changeLocation
...
svn-id: r26083
2007-03-11 13:01:11 +00:00
Nicola Mettifogo
f17cd6a577
some refactoring for music management
...
svn-id: r26080
2007-03-11 10:50:52 +00:00
Nicola Mettifogo
7d03e1ebf4
more refactoring
...
svn-id: r26076
2007-03-11 00:04:50 +00:00
Nicola Mettifogo
08cc2e4b27
changed kEngineMiniDonna to a more appropriate kEngineTransformedDonna
...
svn-id: r26075
2007-03-10 22:56:32 +00:00
Nicola Mettifogo
93d910bf2d
simplified character mode handling
...
svn-id: r26074
2007-03-10 22:55:09 +00:00
Nicola Mettifogo
72ef7093fa
some refactoring
...
svn-id: r26072
2007-03-10 22:13:47 +00:00
Nicola Mettifogo
479c8bdc18
character loading/freeing routines now also handle Heads and Talks, instead of having scattered code around
...
svn-id: r26059
2007-03-10 14:52:33 +00:00
Nicola Mettifogo
b440bc1a03
wrapped loader routines into a new class named Disk. The new class is also responsible for handling Archives in place of the Parallaction engine.
...
svn-id: r25972
2007-03-04 13:27:29 +00:00
Nicola Mettifogo
c727205dae
replaced memAlloc/memFree with standard malloc/free
...
svn-id: r25962
2007-03-04 08:58:23 +00:00
Nicola Mettifogo
6d958e9f30
added loaders for static images like pickable items and for characters frames
...
svn-id: r25940
2007-03-02 23:13:13 +00:00
Nicola Mettifogo
cacff9a9f2
wrapped archive routines into a new class named Archive. File-level static variables have been made members of the new class.
...
svn-id: r25866
2007-02-25 20:35:47 +00:00
Eugene Sandulenko
b825fb858f
Add support for MIDI music. THough the music is not yet heard since
...
there are no instrument assignments yet.
svn-id: r25774
2007-02-21 21:42:37 +00:00
Nicola Mettifogo
5886d3ed7f
cleanup and small fixes
...
svn-id: r25738
2007-02-20 09:17:28 +00:00