From 13a73a70b6309323e5d5efc8f417c679e630ba9a Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 18 Sep 2007 16:20:44 +0000 Subject: WIP for Troll's Tale svn-id: r28939 --- engines/agi/picture.h | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'engines/agi/picture.h') diff --git a/engines/agi/picture.h b/engines/agi/picture.h index d037eebd17..50689b5b3a 100644 --- a/engines/agi/picture.h +++ b/engines/agi/picture.h @@ -50,9 +50,12 @@ enum AgiPictureVersion { }; enum AgiPictureFlags { - kPicFNone, - kPicFCircle, - kPicFStep + kPicFNone = (1 >> 0), + kPicFCircle = (1 >> 1), + kPicFStep = (1 >> 2), + kPicFf3Stop = (1 >> 3), + kPicFf3Cont = (1 >> 4), + kPicFTrollMode = (1 >> 5) }; class AgiBase; @@ -71,8 +74,8 @@ private: INLINE int isOkFillHere(int x, int y); void fillScanline(int x, int y); void agiFill(unsigned int x, unsigned int y); - void xCorner(); - void yCorner(); + void xCorner(bool skipOtherCoords = false); + void yCorner(bool skipOtherCoords = false); void fill(); int plotPatternPoint(int x, int y, int bitpos); void plotBrush(); @@ -93,7 +96,7 @@ public: void setPattern(uint8 code, uint8 num); - void setPictureType(int type); + void setPictureVersion(AgiPictureVersion version); void setPictureData(uint8 *data, int len); void setPictureFlags(int flags) { _flags = flags; } @@ -103,6 +106,11 @@ public: _yOffset = offY; } + void setDimensions(int w, int h) { + _width = w; + _height = h; + } + void putPixel(int x, int y, uint8 color) { _scrColor = color; _priOn = false; @@ -124,7 +132,7 @@ private: uint8 _minCommand; - int _pictureType; + AgiPictureVersion _pictureVersion; int _width, _height; int _xOffset, _yOffset; -- cgit v1.2.3