aboutsummaryrefslogtreecommitdiff
path: root/engines/director/score.h
diff options
context:
space:
mode:
authorEugene Sandulenko2016-11-08 21:51:51 +0100
committerEugene Sandulenko2016-11-08 21:51:51 +0100
commit25a233339439ed2cdf6b52f82c57f1adaa59e0bc (patch)
tree399d2986426fb681444ab8b9dcfef6c0dd6746e5 /engines/director/score.h
parent2b8a41b980950df8ff9f481c61d964c93236c746 (diff)
downloadscummvm-rg350-25a233339439ed2cdf6b52f82c57f1adaa59e0bc.tar.gz
scummvm-rg350-25a233339439ed2cdf6b52f82c57f1adaa59e0bc.tar.bz2
scummvm-rg350-25a233339439ed2cdf6b52f82c57f1adaa59e0bc.zip
DIRECTOR: Split out cast-related classes into separate file
Diffstat (limited to 'engines/director/score.h')
-rw-r--r--engines/director/score.h124
1 files changed, 2 insertions, 122 deletions
diff --git a/engines/director/score.h b/engines/director/score.h
index a60f2d7c5a..ca148aff85 100644
--- a/engines/director/score.h
+++ b/engines/director/score.h
@@ -34,26 +34,14 @@ namespace Graphics {
namespace Director {
class Archive;
+struct CastInfo;
class DirectorEngine;
class DirectorSound;
class Frame;
+struct Label;
class Lingo;
class Sprite;
-enum CastType {
- kCastBitmap = 1,
- kCastFilmLoop = 2,
- kCastText = 3,
- kCastPalette = 4,
- kCastPicture = 5,
- kCastSound = 6,
- kCastButton = 7,
- kCastShape = 8,
- kCastMovie = 9,
- kCastDigitalVideo = 10,
- kCastScript = 11
-};
-
enum ScriptType {
kMovieScript = 0,
kSpriteScript = 1,
@@ -62,114 +50,6 @@ enum ScriptType {
kMaxScriptType = 2
};
-struct Cast {
- CastType type;
- Common::Rect initialRect;
- byte modified;
-};
-
-struct BitmapCast : Cast {
- BitmapCast(Common::SeekableSubReadStreamEndian &stream);
-
- Common::Rect boundingRect;
- uint16 regX;
- uint16 regY;
- uint8 flags;
- uint16 someFlaggyThing;
- uint16 unk1, unk2;
-};
-
-enum ShapeType {
- kShapeRectangle,
- kShapeRoundRect,
- kShapeOval,
- kShapeLine
-};
-
-struct ShapeCast : Cast {
- ShapeCast(Common::SeekableSubReadStreamEndian &stream);
-
- ShapeType shapeType;
- uint16 pattern;
- byte fgCol;
- byte bgCol;
- byte fillType;
- byte lineThickness;
- byte lineDirection;
-};
-
-enum TextType {
- kTextTypeAdjustToFit,
- kTextTypeScrolling,
- kTextTypeFixed
-};
-
-enum TextAlignType {
- kTextAlignRight = -1,
- kTextAlignLeft,
- kTextAlignCenter
-};
-
-enum TextFlag {
- kTextFlagEditable,
- kTextFlagAutoTab,
- kTextFlagDoNotWrap
-};
-
-enum SizeType {
- kSizeNone,
- kSizeSmallest,
- kSizeSmall,
- kSizeMedium,
- kSizeLarge,
- kSizeLargest
-};
-
-struct TextCast : Cast {
- TextCast(Common::SeekableSubReadStreamEndian &stream);
-
- SizeType borderSize;
- SizeType gutterSize;
- SizeType boxShadow;
-
- byte flags1;
- uint32 fontId;
- uint16 fontSize;
- TextType textType;
- TextAlignType textAlign;
- SizeType textShadow;
- Common::Array<TextFlag> textFlags;
- int16 palinfo1, palinfo2, palinfo3;
-};
-
-enum ButtonType {
- kTypeButton,
- kTypeCheckBox,
- kTypeRadio
-};
-
-struct ButtonCast : TextCast {
- ButtonCast(Common::SeekableSubReadStreamEndian &stream) : TextCast(stream) {
- buttonType = static_cast<ButtonType>(stream.readUint16BE());
- }
-
- ButtonType buttonType;
-};
-
-struct CastInfo {
- Common::String script;
- Common::String name;
- Common::String directory;
- Common::String fileName;
- Common::String type;
-};
-
-struct Label {
- Common::String name;
- uint16 number;
- Label(Common::String name1, uint16 number1) { name = name1; number = number1; }
-};
-
class Score {
public:
Score(DirectorEngine *vm, Archive *);