344 lines
6.1 KiB
C++
344 lines
6.1 KiB
C++
/* ScummVM - Graphic Adventure Engine
|
|
*
|
|
* ScummVM is the legal property of its developers, whose names
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
* file distributed with this source distribution.
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
|
|
#ifndef DIRECTOR_LINGO_LINGO_THE_H
|
|
#define DIRECTOR_LINGO_LINGO_THE_H
|
|
|
|
namespace Director {
|
|
|
|
enum TheEntityType {
|
|
kTheNOEntity = 0,
|
|
kTheObject = 1,
|
|
kTheActiveWindow,
|
|
kTheActorList,
|
|
kTheAlertHook,
|
|
kTheApplicationPath,
|
|
kTheBeepOn,
|
|
kTheButtonStyle,
|
|
kTheCast,
|
|
kTheCastLib,
|
|
kTheCastLibs,
|
|
kTheCastMembers,
|
|
kTheCenterStage,
|
|
kTheChars,
|
|
kTheCheckBoxAccess,
|
|
kTheCheckBoxType,
|
|
kTheChunk,
|
|
kTheClickLoc,
|
|
kTheClickOn,
|
|
kTheColorDepth,
|
|
kTheColorQD,
|
|
kTheCommandDown,
|
|
kTheControlDown,
|
|
kTheCpuHogTicks,
|
|
kTheCurrentSpriteNum,
|
|
kTheDate,
|
|
kTheDeskTopRectList,
|
|
kTheDigitalVideoTimeScale,
|
|
kTheDoubleClick,
|
|
kTheEmulateMultiButtonMouse,
|
|
kTheExitLock,
|
|
kTheField,
|
|
kTheFixStageSize,
|
|
kTheFloatPrecision,
|
|
kTheFrame,
|
|
kTheFrameLabel,
|
|
kTheFramePalette,
|
|
kTheFrameScript,
|
|
kTheFrameSound1,
|
|
kTheFrameSound2,
|
|
kTheFrameTempo,
|
|
kTheFrameTransition,
|
|
kTheFreeBlock,
|
|
kTheFreeBytes,
|
|
kTheFrontWindow,
|
|
kTheFullColorPermit,
|
|
kTheIdleHandlerPeriod,
|
|
kTheIdleLoadMode,
|
|
kTheIdleLoadPeriod,
|
|
kTheIdleLoadTag,
|
|
kTheIdleReadChunkSize,
|
|
kTheImageDirect,
|
|
kTheItemDelimiter,
|
|
kTheItems,
|
|
kTheKey,
|
|
kTheKeyCode,
|
|
kTheKeyDownScript,
|
|
kTheKeyPressed,
|
|
kTheKeyUpScript,
|
|
kTheLabelList,
|
|
kTheLastClick,
|
|
kTheLastEvent,
|
|
kTheLastFrame,
|
|
kTheLastKey,
|
|
kTheLastRoll,
|
|
kTheLines,
|
|
kTheMachineType,
|
|
kTheMaxInteger,
|
|
kTheMemorySize,
|
|
kTheMenu,
|
|
kTheMenuItem,
|
|
kTheMenuItems,
|
|
kTheMenus,
|
|
kTheMouseCast,
|
|
kTheMouseChar,
|
|
kTheMouseDown,
|
|
kTheMouseDownScript,
|
|
kTheMouseH,
|
|
kTheMouseItem,
|
|
kTheMouseLine,
|
|
kTheMouseMember,
|
|
kTheMouseUp,
|
|
kTheMouseUpScript,
|
|
kTheMouseV,
|
|
kTheMouseWord,
|
|
kTheMovie,
|
|
kTheMovieFileFreeSize,
|
|
kTheMovieFileSize,
|
|
kTheMovieName,
|
|
kTheMoviePath,
|
|
kTheMultiSound,
|
|
kTheNetThrottleTicks,
|
|
kTheOptionDown,
|
|
kTheOrganizationName,
|
|
kTheParamCount,
|
|
kThePathName,
|
|
kThePauseState,
|
|
kThePerFrameHook,
|
|
kThePi,
|
|
kThePlatform,
|
|
kThePreloadEventAbort,
|
|
kThePreLoadRAM,
|
|
kTheProductName,
|
|
kTheProductVersion,
|
|
kTheQuickTimePresent,
|
|
kTheRandomSeed,
|
|
kTheResult,
|
|
kTheRightMouseDown,
|
|
kTheRightMouseUp,
|
|
kTheRollOver,
|
|
kTheRomanLingo,
|
|
kTheRunMode,
|
|
kTheSafePlayer,
|
|
kTheScore,
|
|
kTheScummvmVersion, // set the Director version via lingo in tests
|
|
kTheSearchCurrentFolder,
|
|
kTheSearchPath,
|
|
kTheSearchPaths,
|
|
kTheSelection,
|
|
kTheSelEnd,
|
|
kTheSelStart,
|
|
kTheSerialNumber,
|
|
kTheShiftDown,
|
|
kTheSoundEntity,
|
|
kTheSoundEnabled,
|
|
kTheSoundKeepDevice,
|
|
kTheSoundLevel,
|
|
kTheSprite,
|
|
kTheSqrt,
|
|
kTheStage,
|
|
kTheStageBottom,
|
|
kTheStageColor,
|
|
kTheStageLeft,
|
|
kTheStageRight,
|
|
kTheStageTop,
|
|
kTheStillDown,
|
|
kTheSwitchColorDepth,
|
|
kTheTicks,
|
|
kTheTime,
|
|
kTheTimeoutKeyDown,
|
|
kTheTimeoutLapsed,
|
|
kTheTimeoutLength,
|
|
kTheTimeoutMouse,
|
|
kTheTimeoutPlay,
|
|
kTheTimeoutScript,
|
|
kTheTimer,
|
|
kTheTrace,
|
|
kTheTraceLoad,
|
|
kTheTraceLogFile,
|
|
kTheUpdateMovieEnabled,
|
|
kTheUserName,
|
|
kTheVideoForWindowsPresent,
|
|
kTheWindow,
|
|
kTheWindowList,
|
|
kTheWords,
|
|
kTheXtras,
|
|
kTheMaxTheEntityType // This must be always last
|
|
};
|
|
|
|
enum TheFieldType {
|
|
kTheNOField = 0,
|
|
kTheAbbr = 1,
|
|
kTheAntiAlias,
|
|
kTheAutoTab,
|
|
kTheBackColor,
|
|
kTheBlend,
|
|
kTheBorder,
|
|
kTheBottom,
|
|
kTheBoxDropShadow,
|
|
kTheBoxType,
|
|
kTheButtonType,
|
|
kTheCastLibNum,
|
|
kTheCastNum,
|
|
kTheCastType,
|
|
kTheCenter,
|
|
kTheChangeArea,
|
|
kTheChannelCount,
|
|
kTheCheckMark,
|
|
kTheChunkSize,
|
|
kTheConstraint,
|
|
kTheController,
|
|
kTheCrop,
|
|
kTheCuePointNames,
|
|
kTheCuePointTimes,
|
|
kTheCurrentTime,
|
|
kTheCursor,
|
|
kTheDepth,
|
|
kTheDigitalVideoType,
|
|
kTheDirectToStage,
|
|
kTheDrawRect,
|
|
kTheDropShadow,
|
|
kTheDuration,
|
|
kTheEditable,
|
|
kTheEditableText,
|
|
kTheEnabled,
|
|
kTheFileName,
|
|
kTheFilled,
|
|
kTheFlipH,
|
|
kTheFlipV,
|
|
kTheForeColor,
|
|
kTheFrameRate,
|
|
kTheHeight,
|
|
kTheHilite,
|
|
kTheImmediate,
|
|
kTheInk,
|
|
kTheInterface,
|
|
kTheLast,
|
|
kTheLeft,
|
|
kTheLineCount,
|
|
kTheLineSize,
|
|
kTheLoaded,
|
|
kTheLoc,
|
|
kTheLocH,
|
|
kTheLocV,
|
|
kTheLong,
|
|
kTheLoop,
|
|
kTheMargin,
|
|
kTheMedia,
|
|
kTheMediaBusy,
|
|
kTheMediaReady,
|
|
kTheMember,
|
|
kTheMemberNum,
|
|
kTheModal,
|
|
kTheModified,
|
|
kTheMostRecentCuePoint,
|
|
kTheMoveableSprite,
|
|
kTheMovieRate,
|
|
kTheMovieTime,
|
|
kTheName,
|
|
kTheNumber,
|
|
kThePageHeight,
|
|
kThePalette,
|
|
kThePaletteMapping,
|
|
kThePaletteRef,
|
|
kThePattern,
|
|
kThePausedAtStart,
|
|
kThePicture,
|
|
kThePreLoad,
|
|
kThePreLoadMode,
|
|
kThePuppet,
|
|
kThePurgePriority,
|
|
kTheRect,
|
|
kTheRegPoint,
|
|
kTheRight,
|
|
kTheSampleRate,
|
|
kTheSampleSize,
|
|
kTheScoreColor,
|
|
kTheScoreSelection,
|
|
kTheScript,
|
|
kTheScriptInstanceList,
|
|
kTheScriptNum,
|
|
kTheScriptText,
|
|
kTheScriptType,
|
|
kTheScriptsEnabled,
|
|
kTheSelectionField,
|
|
kTheSetTrackEnabled,
|
|
kTheShapeType,
|
|
kTheShort,
|
|
kTheSize,
|
|
kTheSound,
|
|
kTheSourceRect,
|
|
kTheSpriteNum,
|
|
kTheStartTime,
|
|
kTheStopTime,
|
|
kTheStrech,
|
|
kTheStretch,
|
|
kTheText,
|
|
kTheTextAlign,
|
|
kTheTextFont,
|
|
kTheTextHeight,
|
|
kTheTextSize,
|
|
kTheTextStyle,
|
|
kTheTimeScale,
|
|
kTheTitle,
|
|
kTheTitleVisible,
|
|
kTheTop,
|
|
kTheTrackEnabled,
|
|
kTheTrackNextKeyTime,
|
|
kTheTrackNextSampleTime,
|
|
kTheTrackPreviousKeyTime,
|
|
kTheTrackPreviousSampleTime,
|
|
kTheTrackText,
|
|
kTheTrails,
|
|
kTheTransitionType,
|
|
kTheTweened,
|
|
kTheType,
|
|
kTheUpdateLock,
|
|
kTheVideo,
|
|
kTheVisibility,
|
|
kTheVisible,
|
|
kTheVolume,
|
|
kTheWidth,
|
|
kTheWindowType,
|
|
kTheWordWrap,
|
|
kTheScrollTop,
|
|
kTheMaxTheFieldType // This must be always last
|
|
};
|
|
|
|
struct TheEntity {
|
|
TheEntityType entity;
|
|
const char *name;
|
|
bool hasId;
|
|
int version;
|
|
bool isFunction;
|
|
};
|
|
|
|
struct TheEntityField {
|
|
TheEntityType entity;
|
|
const char *name;
|
|
TheFieldType field;
|
|
int version;
|
|
};
|
|
|
|
} // End of namespace Director
|
|
|
|
#endif
|