; (c) November 2000, Alex Savitsky savitsky@sympatico.ca ; JavaScript 1.2 ; ; Keywords mapped as follows: ; ; Keywords ; Objects ; Events ; Methods ; Properties C=1 [Syntax] Namespace1 = 6 IgnoreCase = No InitKeyWordChars = A-Za-z_ KeyWordChars = A-Za-z0-9_ BracketChars = {[()]} OperatorChars = -+*/<>!~%^&|= PreprocStart = SyntaxStart = SyntaxEnd = HexPrefix = 0x CommentStart = /* CommentEnd = */ CommentStartAlt = CommentEndAlt = SingleComment = // SingleCommentCol = SingleCommentAlt = SingleCommentColAlt = SingleCommentEsc = StringStart = " StringEnd = " StringAlt = StringEsc = \ CharStart = ' CharEnd = ' CharEsc = \ [Keywords 1] ; Keywords break case catch continue delete do else export false for function if in instanceof is new null return switch this throw true try typeof var void while with SCRIPT_ON_CREATE SCRIPT_ON_DESTROY SCRIPT_ON_ACTIVATE_TOUCH SCRIPT_ON_ACTIVATE_TALK SCRIPT_COMMAND_GENERATOR SCRIPT_COMMAND_GENERATOR COMMAND_WAIT COMMAND_FACE_NORTH COMMAND_FACE_NORTHEAST COMMAND_FACE_EAST COMMAND_FACE_SOUTHEAST COMMAND_FACE_SOUTH COMMAND_FACE_SOUTHWEST COMMAND_FACE_WEST COMMAND_FACE_NORTHWEST COMMAND_MOVE_NORTH COMMAND_MOVE_EAST COMMAND_MOVE_SOUTH COMMAND_MOVE_WEST [Keywords 2] ; Objects Array Boolean Date eval Function Infinity isFinite isNaN Math NaN Number Object parseFloat parseInt RegExp String undefined [Keywords 3] ; Event handlers EvaluateScript EvaluateSystemScript GarbageCollect CreateStringFromCode GetVersionString GetGameList ExecuteGame Exit Abort OpenLog FlipScreen SetClippingRectangle ApplyColorMask SetFrameRate GetFrameRate GetScreenWidth GetScreenHeight Point Line GradientLine Triangle GradientTriangle Rectangle GradientRectangle AreKeysLeft GetKey IsKeyPressed GetKeyString SetMousePosition GetMouseX GetMouseY IsMouseButtonPressed GetTime CreateByteArray CreateByteArrayFromString CreateStringFromByteArray GetLocalName GetLocalAddress OpenAddress ListenOnPort CreateColor BlendColors BlendColorsWeighted MapEngine ChangeMap GetCurrentMap ExitMapEngine UpdateMapEngine GetNumLayers GetLayerWidth GetLayerHeight GetNumTiles SetTile GetTile RenderMap SetColorMask SetDelayScript BindKey UnbindKey AttachInput DetachInput IsInputAttached GetInputPerson SetUpdateScript SetRenderScript SetLayerRenderer AttachCamera DetachCamera IsCameraAttached GetCameraPerson SetCameraX SetCameraY GetCameraX GetCameraY MapToScreenX MapToScreenY ScreenToMapX ScreenToMapY GetPersonList CreatePerson DestroyPerson SetPersonX SetPersonY SetPersonLayer SetPersonDirection SetPersonFrame GetPersonX GetPersonY GetPersonLayer GetPersonDirection GetPersonFrame SetPersonScaleFactor SetPersonScaleAbsolute GetPersonSpriteset SetPersonMask GetPersonMask FollowPerson SetPersonScript CallPersonScript GetCurrentPerson QueuePersonCommand QueuePersonScript ClearPersonCommands IsCommandQueueEmpty IsPersonObstructed SetTalkActivationKey SetTalkDistance LoadSpriteset LoadSound GetSystemFont LoadFont GetSystemWindowStyle LoadWindowStyle GetSystemArrow GetSystemUpArrow GetSystemDownArrow LoadImage GrabImage CreateSurface LoadSurface GrabSurface LoadAnimation GetFileList OpenFile OpenRawFile [Keywords 4] ; Methods UTC abs acos asin atan atan2 ceil charAt charCodeAt concat cos eval exp find floor fromCharCode getDate getDay getHours getMinutes getMonth getOptionVAlueCount getOptionValue getSeconds getSelection getTime getTimezoneOffset getYear indexOf join lastIndexOf max min pop pow push random reverse round search setDate setHours setInterval setMinutes setMonth setSeconds setTime setTimeout setYear shift sin slice sort splice split sqrt substr substring tan toGMTString toLocaleString toLowerCase toString toUpperCase unshift valueOf write beginBlock endBlock isConnected getPendingReadSize read play stop setVolume getVolume isPlaying setColorMask drawText drawZoomedText drawTextBox getHeight getStringWidth getStringHeight drawWindow blit blitMask rotateBlit zoomBlit transformBlit transformBlitMask createSurface blitSurface createImage setBlendMode getPixel setPixel setAlpha line rectangle rotate resize rescale flipHorizontally flipVertically clone cloneSection getWidth getHeight getNumFrames getDelay readNextFrame drawFrame read write setPosition getPosition getSize [Keywords 5] ; Properties arguments arity caller constructor length LN10 LN2 LOG10E LOG2E MAX_VALUE MIN_VALUE NaN NEGATIVE_INFINITY PI POSITIVE_INFINITY name directory red green blue alpha images directions base frames index delay x1 y1 x2 y2 width height