Commit Graph

56 Commits

Author SHA1 Message Date
Max Horn
ac59693be2 A ton of code formatting fixes; also fixed warnings about single line loops like 'while(cond);' by inserting newlines
svn-id: r36127
2009-01-29 05:26:12 +00:00
Filippos Karapetis
40661e5698 Use CLIP template for clipping in the AGI engine
svn-id: r29854
2007-12-13 19:44:27 +00:00
Max Horn
0758feea62 cleanup
svn-id: r29792
2007-12-09 14:48:36 +00:00
Max Horn
1ed6cae306 Fix compiler warning
svn-id: r29761
2007-12-08 10:13:44 +00:00
Eugene Sandulenko
99acbe79af Move AGI engine back to custom line drawing routine as it caused regressions
svn-id: r29735
2007-12-06 12:46:29 +00:00
Filippos Karapetis
ee5fc9675a Remove now obsolete comment
svn-id: r29729
2007-12-05 23:28:30 +00:00
Stuart George
6cf80bbe86 Fixes Mickey and Gold rush. Not the cleanest fix but tested and works
svn-id: r29658
2007-11-28 23:42:08 +00:00
Stuart George
44ac9cb7ae Fix regression from r28850 that rewrote all pattern data. Fixes agi v3 circle plot patterns
svn-id: r29653
2007-11-28 01:11:09 +00:00
Eugene Sandulenko
9e65796914 Switch AGI to common drawLine() as well
svn-id: r29636
2007-11-25 12:03:09 +00:00
Filippos Karapetis
cd3f548407 Objects in Mickey's Space Adventure are shown correctly now
svn-id: r29612
2007-11-22 20:54:46 +00:00
Max Horn
982a2fce75 Refactore the AGI floodfill code
svn-id: r29600
2007-11-22 08:20:28 +00:00
Filippos Karapetis
634595e073 Cleanup
svn-id: r29592
2007-11-21 16:55:24 +00:00
Johannes Schickel
b39ee7ec3c Fixed usage of Common::Stack.
svn-id: r29591
2007-11-21 00:41:51 +00:00
Filippos Karapetis
f05712548e Oops, Common::Stack should be used instead of Common::FixedStack
svn-id: r29590
2007-11-21 00:39:12 +00:00
Filippos Karapetis
e069ce6129 Common::FixedStack is used now for AGI flood fill routines
svn-id: r29589
2007-11-21 00:34:32 +00:00
Filippos Karapetis
cee2a60569 Make sure that picture fill doesn't go out of the picture's bounds, since pre-AGI pictures have different dimensions
svn-id: r29034
2007-09-22 23:56:08 +00:00
Filippos Karapetis
7212d00454 Removed an unnecessary picture update when drawing crystal objects in Mickey
svn-id: r29004
2007-09-21 08:55:26 +00:00
Filippos Karapetis
381fba98c5 The animation of the crystals in Mickey is shown correctly now
svn-id: r29003
2007-09-21 08:41:27 +00:00
Eugene Sandulenko
341b8f1e67 Last pieces of Troll's Tale. Only missing thing is sound
svn-id: r28992
2007-09-20 21:55:15 +00:00
Eugene Sandulenko
14b89bcf46 Implement inventory in Troll's Tale
svn-id: r28987
2007-09-20 18:18:10 +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
Filippos Karapetis
85b1bc594d Don't free the picture buffer inside decodePicture(). The buffer should (and is) freed from the functions that decodePicture() is being called from
svn-id: r28964
2007-09-19 08:21:42 +00:00
Eugene Sandulenko
a8751e4d73 Fix picture drawing in Troll's Tale. Implement room navigation.
svn-id: r28946
2007-09-18 20:23:06 +00:00
Max Horn
3abc11611e Code formatting fixes
svn-id: r28945
2007-09-18 20:16:33 +00:00
Eugene Sandulenko
13a73a70b6 WIP for Troll's Tale
svn-id: r28939
2007-09-18 16:20:44 +00:00
Matthew Hoops
be013e6c45 fix regression: free the picture data after decoding a PreAGI picture
svn-id: r28894
2007-09-11 20:17:36 +00:00
Matthew Hoops
c1c7b5f563 PreAGI does not need an AGI resource loader, as it only needs to load pictures and doesn't use directories. So, this allows Winnie to decode pictures without using the loader
svn-id: r28893
2007-09-11 20:09:39 +00:00
Max Horn
127900b33c Fixed various warnings
svn-id: r28879
2007-09-08 11:17:13 +00:00
Filippos Karapetis
2d974a22d4 Objects in Mickey are shown correctly now. Also, reduced the places where the screen gets updated
svn-id: r28862
2007-09-06 01:18:13 +00:00
Eugene Sandulenko
c5d18bf020 Move static variables to class.
svn-id: r28855
2007-09-05 19:35:30 +00:00
Filippos Karapetis
5a97b3d9be Some updates for Mickey:
- Click to move functionality (improvement over the original game). It's now possible to navigate around using the mouse as well, together with the menu commands. The mouse cursor changes when the player hovers it at the picture's edges, towards a direction where Mickey is able to move to (north, south, east or west)
- waitAnyKey has been moved into Mickey's code (because of the animation part)
- Implemented the circle flag for AGI picture decoding

svn-id: r28853
2007-09-05 15:43:56 +00:00
Eugene Sandulenko
0d279e8de0 - Replace plotPattern() function with one based on specs.
- Add PreAGI differences to plotPattern function.
- This effectively fixes Mickey title.

svn-id: r28850
2007-09-04 11:20:42 +00:00
Filippos Karapetis
b555a15697 Some updates for Mickey: objects are shown now (though still incorrectly), implemented some incomplete code for the ship's blinking lights, implemented the scene animation function
svn-id: r28848
2007-09-03 15:03:50 +00:00
Max Horn
3c2994f72b Make static data tables const (helps the optimizer a bit)
svn-id: r28846
2007-09-03 12:23:19 +00:00
Filippos Karapetis
b4d77e60cf The dimensions of the picture resources in preagi games is different for each game. Mickey's pictures are shown correctly now
svn-id: r28819
2007-09-02 13:23:07 +00:00
Filippos Karapetis
762aaca73b The picture files in Mickey have a different width
svn-id: r28818
2007-09-02 12:56:55 +00:00
Filippos Karapetis
38c21d6539 Merged all the different picture decoding functions
svn-id: r28811
2007-09-02 00:49:03 +00:00
Eugene Sandulenko
fae7dcadbd Fix regression
svn-id: r28809
2007-09-01 23:02:36 +00:00
Eugene Sandulenko
7f08865ec5 An early WIP of PreAGI (TrollVM) support
svn-id: r28787
2007-09-01 14:58:46 +00:00
Eugene Sandulenko
ce71254b9f Add older picture formats parsers
svn-id: r28784
2007-09-01 11:39:51 +00:00
Kari Salminen
f55d08a2d9 Fix saving & restoring with AGI256 and AGI256-2 games.
(Should save, restore and use decodePicture's agi256-parameter correctly now).

svn-id: r27730
2007-06-26 16:06:58 +00:00
Kari Salminen
a741f3c010 Fix priority screen showing when using AGI256 or AGI256-2.
svn-id: r27707
2007-06-25 14:40:40 +00:00
Kari Salminen
dbac0054c1 Make drawing & blitting always use the correct screen
(Always 16 color screen for vector stuff, 256 color screen for everything else in AGI256 mode).

svn-id: r27570
2007-06-20 23:36:59 +00:00
Kari Salminen
582fa4cdf0 Add AGI256 picture resource decoding support to PictureMgr::decodePicture.
svn-id: r27568
2007-06-20 23:12:38 +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
Stuart George
843b304031 Fixed picture drawing bug in pattern data (should only affect v3 + sq1 games only). Fixes Goldrush intro. Does not seem to break any other v3 game or SQ2
svn-id: r25222
2007-01-27 01:59:37 +00:00
David Symonds
080d7083d0 Fix a minor compiler warning.
svn-id: r25105
2007-01-16 13:12:05 +00:00
Paweł Kołodziejski
b47eb95316 Formating names in source code
svn-id: r25101
2007-01-16 12:40:51 +00:00
Eugene Sandulenko
1403c8e6b0 Slighty modified patch #1631229: "Revamp of AGI savegame system"
svn-id: r25069
2007-01-12 02:29:20 +00:00
David Symonds
ee1d36b915 Removed almost all the remaining hires code.
svn-id: r25037
2007-01-06 17:53:15 +00:00