22 #ifndef DIRECTOR_MOVIE_H 23 #define DIRECTOR_MOVIE_H 25 #define DEFAULT_CAST_LIB 1 26 #define SHARED_CAST_LIB -1337 30 class ReadStreamEndian;
31 class SeekableReadStreamEndian;
32 class MemoryWriteStream;
39 struct CastMemberInfo;
57 data = (byte *)malloc(len);
58 memcpy(data, old.data, len);
69 data = (byte *)malloc(len);
70 memcpy(data, old.data, len);
84 InfoEntries() : unk1(0), unk2(0), flags(0), scriptId(0) {}
100 void setArchive(
Archive *archive);
101 Archive *getArchive()
const {
return _movieArchive; };
103 Window *getWindow()
const {
return _window; }
105 Cast *getCast()
const {
return _casts.getValOrDefault(DEFAULT_CAST_LIB,
nullptr); }
107 Cast *getSharedCast()
const {
return _sharedCast; }
109 Score *getScore()
const {
return _score; }
111 void clearSharedCast();
114 bool loadCastLibFrom(uint16 libId,
Common::Path &filename);
126 bool isValidCastMember(
CastMemberID memberID, CastType type);
139 void setPrimaryEventHandler(LEvent event,
const Common::String &code);
141 void processEvent(LEvent event,
int targetId = 0);
155 uint16 _currentActiveSpriteId;
156 uint16 _currentMouseSpriteId;
159 bool _currentMouseDownSpriteImmediate;
160 uint16 _currentEditableTextChannel;
161 uint32 _lastEventTime;
162 uint32 _lastRollTime;
163 uint32 _lastClickTime;
164 uint32 _lastClickTime2;
167 uint32 _lastTimerReset;
170 bool _allowOutdatedLingo;
171 bool _remapPalettesWhenNeeded;
192 uint16 _currentHiliteChannelId;
196 bool _timeOutKeyDown;
208 bool _inGuiMessageBox =
false;
223 bool _mouseDownWasInButton;
224 Channel *_currentDraggedChannel;
Definition: algorithm.h:29
Definition: director.h:156
Definition: memstream.h:120
Definition: castmember.h:48
Definition: castmember.h:150
Definition: lingo-object.h:213