Skip to content

Commit

Permalink
DIRECTOR: Add transition types
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Iskrich authored and sev- committed Aug 3, 2016
1 parent 1099838 commit d01fddf
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 2 deletions.
3 changes: 2 additions & 1 deletion engines/director/score.cpp
Expand Up @@ -475,6 +475,7 @@ Frame::Frame(const Frame &frame) {
_actionId = frame._actionId;
_transFlags = frame._transFlags;
_transType = frame._transType;
_transChunkSize = frame._transChunkSize;
_tempo = frame._tempo;
_sound1 = frame._sound1;
_sound2 = frame._sound2;
Expand Down Expand Up @@ -542,7 +543,7 @@ void Frame::readMainChannels(Common::SeekableReadStream &stream, uint16 offset,
offset++;
break;
case kTransTypePosition:
_transType = stream.readByte();
_transType = static_cast<transitionType>(stream.readByte());
offset++;
break;
case kSound1Position:
Expand Down
57 changes: 56 additions & 1 deletion engines/director/score.h
Expand Up @@ -103,6 +103,61 @@ enum scriptType {
kFrameScript
};

enum transitionType {
kTransWipeRight = 1,
kTransWipeLeft,
kTransWipeDown,
kTransWipeUp,
kTransCenterOutHorizontal,
kTransEdgesInHorizontal,
kTransCenterOutVertical,
kTransEdgesInVertical,
kTransCenterOutSquare,
kTransEdgesInSquare,
kTransPushLeft,
kTransPushRight,
kTransPushDown,
kTransPushUp,
kTransRevealUp,
kTransRevealUpRight,
kTransRevealRight,
kTransRevealDown,
kTransRevealDownRight,
kTransRevealDownLeft,
kTransRevealLeft,
kTransRevealUpLeft,
kTransDisolvePixelsFast,
kTransDisolveBoxyRects,
kTransDisolveBoxySquares,
kTransDisolvePatterns,
kTransRandomRows,
kTransRandomColumns,
kTransCoverDown,
kTransCoverDownLeft,
kTransCoverDownRight,
kTransCoverLeft,
kTransCoverRight,
kTransCoverUp,
kTransCoverUpLeft,
kTransCoverUpRight,
kTransTypeVenitianBlind,
kTransTypeCheckerboard,
kTransTypeStripsBottomBuildLeft,
kTransTypeStripsBottomBuildRight,
kTransTypeStripsLeftBuildDown,
kTransTypeStripsLeftBuildUp,
kTransTypeStripsRightBuildDown,
kTransTypeStripsRightBuildUp,
kTransTypeStripsTopBuildLeft,
kTransTypeStripsTopBuildRight,
kTransZoomOpen,
kTransZoomClose,
kTransVerticalBinds,
kTransDisolveBitsTrans,
kTransDisolvePixels,
kTransDisolveBits
};

struct Cast {
castType type;
Common::Rect initialRect;
Expand Down Expand Up @@ -186,7 +241,7 @@ class Frame {
uint8 _actionId;
uint8 _transFlags;
uint8 _transChunkSize;
uint8 _transType;
transitionType _transType;
uint8 _tempo;

uint16 _sound1;
Expand Down

0 comments on commit d01fddf

Please sign in to comment.