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) {}
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);
140 void broadcastEvent(LEvent event);
143 void setPrimaryEventHandler(LEvent event,
const Common::String &code);
145 void processEvent(LEvent event,
int targetId = 0);
162 uint16 _lastClickedSpriteId;
163 uint16 _currentHoveredSpriteId;
164 uint _currentSpriteNum;
167 bool _currentMouseDownSpriteImmediate;
168 uint16 _currentEditableTextChannel;
169 uint32 _lastEventTime;
170 uint32 _lastRollTime;
171 uint32 _lastClickTime;
172 uint32 _lastClickTime2;
176 uint32 _lastTimerReset;
179 bool _allowOutdatedLingo;
180 bool _remapPalettesWhenNeeded;
201 uint16 _currentHiliteChannelId;
202 uint16 _lastEnteredChannelId;
206 bool _timeOutKeyDown;
218 bool _inGuiMessageBox =
false;
233 bool _mouseDownWasInButton;
234 Channel *_currentDraggedChannel;
Definition: algorithm.h:29
Definition: director.h:157
Definition: castmember.h:48
Definition: castmember.h:163
Definition: lingo-object.h:213