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);
85 InfoEntries() : unk1(0), unk2(0), flags(0), scriptId(0) {}
101 void setArchive(
Archive *archive);
102 Archive *getArchive()
const {
return _movieArchive; };
104 Window *getWindow()
const {
return _window; }
106 Cast *getCast()
const {
return _casts.getValOrDefault(DEFAULT_CAST_LIB,
nullptr); }
108 Cast *getCastByLibResourceID(
int libresourceID);
109 Cast *getSharedCast()
const {
return _sharedCast; }
111 Score *getScore()
const {
return _score; }
113 void clearSharedCast();
116 bool loadCastLibFrom(uint16 libId,
Common::Path &filename);
128 bool isValidCastMember(
CastMemberID memberID, CastType type);
139 void broadcastEvent(LEvent event);
142 void setPrimaryEventHandler(LEvent event,
const Common::String &code);
144 void processEvent(LEvent event,
int targetId = 0);
158 uint16 _lastClickedSpriteId;
159 uint16 _currentHoveredSpriteId;
160 uint _currentSpriteNum;
163 bool _currentMouseDownSpriteImmediate;
164 uint16 _currentEditableTextChannel;
165 uint32 _lastEventTime;
166 uint32 _lastRollTime;
167 uint32 _lastClickTime;
168 uint32 _lastClickTime2;
171 uint32 _lastTimerReset;
174 bool _allowOutdatedLingo;
175 bool _remapPalettesWhenNeeded;
196 uint16 _currentHiliteChannelId;
197 uint16 _lastEnteredChannelId;
201 bool _timeOutKeyDown;
213 bool _inGuiMessageBox =
false;
228 bool _mouseDownWasInButton;
229 Channel *_currentDraggedChannel;
Definition: algorithm.h:29
Definition: director.h:157
Definition: castmember.h:48
Definition: castmember.h:163
Definition: lingo-object.h:213