Commit Graph

59 Commits

Author SHA1 Message Date
Sven Hesse
3295d6ec6b GOB: Make o6_playVmdOrMusic use the new VideoPlayer interface
svn-id: r51891
2010-08-08 00:53:27 +00:00
Sven Hesse
a802e1e64f VIDEO: Stub a VideoDecoder-like CoktelDecoder
This creates a new CoktelDecoder class using the VideoDecoder
interface, which will eventually become the new way to decode
PreIMD, IMD and VMD videos.
Since the VideoPlayer in gob is not yet ready for this, we're
disabling all video playback in the gob engine for now.

svn-id: r51850
2010-08-08 00:33:59 +00:00
Johannes Schickel
cbbb78d9f2 Enforce conversion formatting on pointer casts in the DEV code.
svn-id: r49068
2010-05-17 22:46:53 +00:00
Johannes Schickel
aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Arnaud Boutonné
6a9cc3b1e0 - Implement _pattern variable
- Add oPlaytoons_putPixel and Playtoons specific spriteOperation (using _pattern)

svn-id: r44103
2009-09-15 12:15:22 +00:00
Arnaud Boutonné
3e0d3ed380 code formatting
svn-id: r43769
2009-08-27 12:20:21 +00:00
Arnaud Boutonné
6044cea5a0 Playtoons - delayed bgstop only when frame == -9
svn-id: r43765
2009-08-27 10:35:39 +00:00
Sven Hesse
081fa85b14 Playtoons uses a variable space that exceeds 32767 bytes. Changing a few variables to unsigned makes the construction mode not crash anymore (though it now hangs in a loop)
svn-id: r43713
2009-08-24 22:37:09 +00:00
Arnaud Boutonné
00857eabe1 Some modifications in o6_playVmdOrMusic: Less warnings in console Windows, and first animations on interface icons. still problematic : cursor should not disappear during animation, and animation should loop
svn-id: r43709
2009-08-24 21:53:15 +00:00
Sven Hesse
256a27350a Changed the scroll-handling to be more like the original. This fixes bug #2832362 ("GOB3: Scrolling locked after cutscene")
svn-id: r43147
2009-08-08 21:43:07 +00:00
Sven Hesse
edfaf7bc3c Added an enum for the hotspot states
svn-id: r42155
2009-07-05 21:40:51 +00:00
Sven Hesse
50108e9135 Renaming the last occurences of "Collision" to "Hotspot"
svn-id: r42153
2009-07-05 21:39:55 +00:00
Sven Hesse
aeb020602a More state-related encapsulation
svn-id: r42144
2009-07-05 19:56:40 +00:00
Sven Hesse
7e11c18fa2 Putting the Urban noCD check into Init_v6::initGame()
svn-id: r42130
2009-07-05 11:29:54 +00:00
Sven Hesse
18550c1314 Moving the "Collision" stuff to Hotspots in hotspots.cpp/.h
svn-id: r42123
2009-07-05 11:27:54 +00:00
Sven Hesse
e861fab808 Added a Key and ShortKey enum
svn-id: r42121
2009-07-05 11:27:11 +00:00
Sven Hesse
d03dc08b64 Wrapping resources (out of TOT, EXT, IM? and EX? files) loading into its own class
svn-id: r41839
2009-06-24 21:49:37 +00:00
Sven Hesse
c3aafec1fb Renaming parse.h and parse.cpp to expression.h and expression.cpp
svn-id: r41773
2009-06-22 16:30:35 +00:00
Sven Hesse
7d005f62c3 Putting evalBoolResult() and evalExpr() into Script
svn-id: r41760
2009-06-22 10:29:32 +00:00
Sven Hesse
7fbad08fd1 Implemented a call stack
svn-id: r41754
2009-06-22 10:14:18 +00:00
Sven Hesse
962fc19b57 Encapsulating script file access
svn-id: r41753
2009-06-22 10:13:37 +00:00
Sven Hesse
dd9e62e31e Adding DataIO::existData()
svn-id: r41752
2009-06-22 10:12:33 +00:00
Sven Hesse
1dafcabb43 Encapsulated access to _resultStr
svn-id: r41751
2009-06-22 10:11:53 +00:00
Sven Hesse
f6717373b5 Encapsulated access to Parse::_resultInt
svn-id: r41750
2009-06-22 10:11:25 +00:00
Sven Hesse
6c47f9f4f8 Changed opcodeGob to be functor-based
svn-id: r41603
2009-06-17 04:16:51 +00:00
Sven Hesse
8615c57791 Changed opcodeFunc to be functor-based
svn-id: r41602
2009-06-17 04:16:21 +00:00
Sven Hesse
25c92dfdef Changed opcodeDraw to be functor-based
svn-id: r41601
2009-06-17 04:15:45 +00:00
Sven Hesse
434be5c65a Renamed _inter_resStr to _resultStr
svn-id: r41575
2009-06-15 23:11:29 +00:00
Sven Hesse
1b67620d99 Renaming _inter_resVal to _resultInt
svn-id: r41574
2009-06-15 23:11:08 +00:00
Sven Hesse
67a9ff7dd3 Moving _inter_resVal and _inter_resStr from Global to Parse
svn-id: r41573
2009-06-15 23:10:51 +00:00
Sven Hesse
190dd0d077 Using the TYPE_ enum where applicable
svn-id: r41568
2009-06-15 23:09:23 +00:00
Sven Hesse
42007f9d04 Propagating variable name changes
svn-id: r41565
2009-06-15 23:08:28 +00:00
Sven Hesse
64a920d52f Renamed the evaluateStore opcodes to assign, because that's what they are
svn-id: r41312
2009-06-06 23:39:58 +00:00
Max Horn
0989bb0b90 GOB: Got rid of class ReferenceCounter; changed SurfaceDesc::Ptr to SurfaceDescPtr (a Common::SharedPtr); and changed many SurfaceDesc pointers to references
svn-id: r41299
2009-06-06 20:03:13 +00:00
Sven Hesse
1656f69183 Replacing NULL with 0, since that's normally the C++-way
svn-id: r41059
2009-05-31 03:32:16 +00:00
Sven Hesse
10b1b28610 Splitting a few helper functions out of gob.h
svn-id: r40765
2009-05-21 17:12:33 +00:00
Sven Hesse
bfb29080f1 Remove superfluous indeo3-includes
svn-id: r40743
2009-05-20 20:05:53 +00:00
Sven Hesse
c88b077fcc Some minor clean-up
svn-id: r40166
2009-04-27 18:56:28 +00:00
Sven Hesse
84b6db7bf3 Fixing some 16bit graphics
svn-id: r35585
2008-12-27 22:48:00 +00:00
Sven Hesse
74024ff3e5 Moving the dither code to graphics/
svn-id: r35526
2008-12-24 15:57:43 +00:00
Sven Hesse
4ceecdb25f Preliminary save/load support for Urban Runner
svn-id: r35418
2008-12-18 02:48:15 +00:00
Sven Hesse
d0e2107b7e Only do the no-cd-workaround if all resource files can be found
svn-id: r35409
2008-12-17 13:07:56 +00:00
Sven Hesse
3591f8859e Workaround for Urban Runner's CD number detection daftness.
Basically, now we claim to run in no-CD-mode (by pretending "NO_CD.TXT" exists) and open CD2.ITK, CD3.ITK and CD4.ITK manually

svn-id: r35407
2008-12-17 00:41:00 +00:00
Sven Hesse
adae869c8a Experimental semi-transparency for fillRect, used in the green/red menu areas of Urban Runner
svn-id: r35406
2008-12-16 23:27:35 +00:00
Sven Hesse
ebd2f53713 If the music file to play has no extension, add one. Fixes the music when you die
svn-id: r35397
2008-12-16 20:40:18 +00:00
Sven Hesse
f825ccd63f Script fix. Magnifier, Memory and Save/Load, while still not working correctly, don't crash the game anymore
svn-id: r35385
2008-12-15 16:01:39 +00:00
Sven Hesse
6b043aa05b Support for Urban Runner's new cursors (frames out of 16bit color VMDs)
svn-id: r35376
2008-12-15 05:16:23 +00:00
Sven Hesse
f785068dc3 Some more Urban Runner changes. Still no cylindrical smoking device, though
svn-id: r35371
2008-12-15 00:27:05 +00:00
Sven Hesse
adb564e76a More changed collision stuff for Urban Runner
svn-id: r35364
2008-12-14 21:21:18 +00:00
Sven Hesse
8770cef478 16bit background "music" for Urban Runner
svn-id: r35353
2008-12-14 04:13:48 +00:00