>>doSomething([object Object])): TypeError: Cannot read property 'isPlayer' of null\nTypeError: Cannot read property 'isPlayer' of null\n at Box.doSomething (eval at (http://lively-kernel.org/repository/webwerkstatt/core/generated/combinedModules.js?f08eafbb11fecf8617a174a14a213b78:5624:29))\n at TargetScript.execute (http://lively-kernel.org/repository/webwerkstatt/core/generated/combinedModules.js?f08eafbb11fecf8617a174a14a213b78:17184:36)\n at TargetScript.tick (http://lively-kernel.org/repository/webwerkstatt/core/generated/combinedModules.js?f08eafbb11fecf8617a174a14a213b78:17112:18)","prevScroll":[0,0],"showsHalos":false,"loadingMorph":{"__isSmartRef__":true,"id":19380},"_ClipMode":"visible","currentUser":"timfelgentreff","attributeConnections":[{"__isSmartRef__":true,"id":19530}],"doNotSerialize":["$$savedWorldAsURL"],"doNotCopyProperties":["$$savedWorldAsURL"],"_traitConfig_":[{"__isSmartRef__":true,"id":19535}],"savedWorldAsURL":{"__isSmartRef__":true,"id":19537},"__LivelyClassName__":"lively.morphic.World"},"1":{"submorphs":[{"__isSmartRef__":true,"id":2}],"scripts":[],"id":"F276EEF1-3DE1-45B9-8CCB-7BDED2A690ED","shape":{"__isSmartRef__":true,"id":16370},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":16377},"showsHalos":false,"name":"Game","partsBinMetaInfo":{"__isSmartRef__":true,"id":16378},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":16445},"eventHandler":{"__isSmartRef__":true,"id":16446},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","87B0769B-986A-4D79-BFAE-B54B3C3F0A58","82255771-D93C-4822-98C2-F41964E8DFC4","0F151E1D-2629-4812-B0FB-2AECBA9CA1D5","6B508EC1-502F-4C86-A280-0E55B6B85C09","48577010-5D2A-42AE-959C-11FD0279618E","99804F82-5962-4550-9690-13D89A180816","59862115-B91D-4AFA-B874-B320452EBF58","0539328F-133A-483F-9226-0CEA693718C5","6DD73F39-2A75-4E75-8B95-E6EDE3454548","E26D672F-486A-48EB-9201-E4884357E3B6","5445E7D4-1B6D-4FBB-BA51-DE7EF376C8F5","C436F09D-654F-4E5D-A150-9A8DC296FA42","2CFB4A8D-B758-449D-AAC9-48E75F74617C","25328C21-5292-447C-AF74-5EC4B82321F9","41450BDB-9A2A-4BDC-B411-0DA7E4341A97","9ADCFA0A-B333-4903-9AC2-DC9D2F20D326","D646064C-CA17-4E4A-8CB7-F6C0D542826A","4F0EF1FE-A2F9-4E31-9995-B19AC4AA3613","CDF8DA59-10A7-4F52-9510-81E34055C017","BC86B772-B44E-458F-9A2C-FB64C134C6C5","EE65C32C-A183-490A-A270-C9057D1165AF"],"partTests":{"__isSmartRef__":true,"id":16447},"isBeingDragged":false,"prevScroll":[0,0],"distanceToDragEvent":{"__isSmartRef__":true,"id":16452},"moved":true,"selectedUnit":{"__isSmartRef__":true,"id":15750},"_ClipMode":"visible","partNamesCache":{"__isSmartRef__":true,"id":16453},"partItemCache":{"__isSmartRef__":true,"id":16454},"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1.01,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16455},"__LivelyClassName__":"lively.morphic.Box"},"2":{"submorphs":[{"__isSmartRef__":true,"id":3},{"__isSmartRef__":true,"id":170},{"__isSmartRef__":true,"id":189},{"__isSmartRef__":true,"id":208},{"__isSmartRef__":true,"id":227},{"__isSmartRef__":true,"id":246},{"__isSmartRef__":true,"id":265},{"__isSmartRef__":true,"id":320},{"__isSmartRef__":true,"id":339},{"__isSmartRef__":true,"id":358},{"__isSmartRef__":true,"id":550},{"__isSmartRef__":true,"id":531},{"__isSmartRef__":true,"id":512},{"__isSmartRef__":true,"id":493},{"__isSmartRef__":true,"id":474},{"__isSmartRef__":true,"id":455},{"__isSmartRef__":true,"id":415},{"__isSmartRef__":true,"id":396},{"__isSmartRef__":true,"id":377},{"__isSmartRef__":true,"id":2814},{"__isSmartRef__":true,"id":569},{"__isSmartRef__":true,"id":588},{"__isSmartRef__":true,"id":607},{"__isSmartRef__":true,"id":626},{"__isSmartRef__":true,"id":645},{"__isSmartRef__":true,"id":702},{"__isSmartRef__":true,"id":721},{"__isSmartRef__":true,"id":1150},{"__isSmartRef__":true,"id":2795},{"__isSmartRef__":true,"id":2833},{"__isSmartRef__":true,"id":5432},{"__isSmartRef__":true,"id":5451},{"__isSmartRef__":true,"id":12723},{"__isSmartRef__":true,"id":1599},{"__isSmartRef__":true,"id":1580},{"__isSmartRef__":true,"id":2084},{"__isSmartRef__":true,"id":1278},{"__isSmartRef__":true,"id":868},{"__isSmartRef__":true,"id":2776},{"__isSmartRef__":true,"id":2890},{"__isSmartRef__":true,"id":5304},{"__isSmartRef__":true,"id":5579},{"__isSmartRef__":true,"id":1809},{"__isSmartRef__":true,"id":1937},{"__isSmartRef__":true,"id":2065},{"__isSmartRef__":true,"id":2321},{"__isSmartRef__":true,"id":11838},{"__isSmartRef__":true,"id":2757},{"__isSmartRef__":true,"id":2909},{"__isSmartRef__":true,"id":2949},{"__isSmartRef__":true,"id":5285},{"__isSmartRef__":true,"id":5816},{"__isSmartRef__":true,"id":12486},{"__isSmartRef__":true,"id":1790},{"__isSmartRef__":true,"id":4697},{"__isSmartRef__":true,"id":4716},{"__isSmartRef__":true,"id":11966},{"__isSmartRef__":true,"id":2629},{"__isSmartRef__":true,"id":2968},{"__isSmartRef__":true,"id":2987},{"__isSmartRef__":true,"id":5266},{"__isSmartRef__":true,"id":5119},{"__isSmartRef__":true,"id":4972},{"__isSmartRef__":true,"id":1662},{"__isSmartRef__":true,"id":3672},{"__isSmartRef__":true,"id":3139},{"__isSmartRef__":true,"id":3267},{"__isSmartRef__":true,"id":2501},{"__isSmartRef__":true,"id":3006},{"__isSmartRef__":true,"id":3025},{"__isSmartRef__":true,"id":6162},{"__isSmartRef__":true,"id":5247},{"__isSmartRef__":true,"id":5100},{"__isSmartRef__":true,"id":4953},{"__isSmartRef__":true,"id":3653},{"__isSmartRef__":true,"id":3395},{"__isSmartRef__":true,"id":3120},{"__isSmartRef__":true,"id":2373},{"__isSmartRef__":true,"id":3044},{"__isSmartRef__":true,"id":3063},{"__isSmartRef__":true,"id":6181},{"__isSmartRef__":true,"id":6200},{"__isSmartRef__":true,"id":6219},{"__isSmartRef__":true,"id":6238},{"__isSmartRef__":true,"id":6257},{"__isSmartRef__":true,"id":3523},{"__isSmartRef__":true,"id":6717},{"__isSmartRef__":true,"id":3101},{"__isSmartRef__":true,"id":3082},{"__isSmartRef__":true,"id":6793},{"__isSmartRef__":true,"id":6333},{"__isSmartRef__":true,"id":6314},{"__isSmartRef__":true,"id":6295},{"__isSmartRef__":true,"id":6276},{"__isSmartRef__":true,"id":6679},{"__isSmartRef__":true,"id":6698},{"__isSmartRef__":true,"id":6736},{"__isSmartRef__":true,"id":6755},{"__isSmartRef__":true,"id":6774},{"__isSmartRef__":true,"id":6812},{"__isSmartRef__":true,"id":15750},{"__isSmartRef__":true,"id":3691},{"__isSmartRef__":true,"id":7158},{"__isSmartRef__":true,"id":8566}],"scripts":[],"id":"43294563-416D-400B-BA5D-E86BD936D227","shape":{"__isSmartRef__":true,"id":16288},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":16295},"showsHalos":false,"name":"Map","partsBinMetaInfo":{"__isSmartRef__":true,"id":16296},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":16305},"eventHandler":{"__isSmartRef__":true,"id":16306},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","924C8A83-6557-4E74-952B-903AB05CAAF8","4A9910C2-4BDE-486A-BE6F-FF5C177FE77D","CD2E818C-2B72-4AC9-8E07-7D35B07824D0","AE10EFDE-3AAF-489C-B492-C8B7D5E30C4E","87F87663-B231-47F6-87F3-C582C22A84FB","17A91188-1B56-4DBF-B40E-177C46C8FB28","B76A6F3A-C9AF-4DA1-95A5-CB579C75A46E","05FD59E2-BBEF-4ED5-B3E6-1ED4FB5D5CB0","1DD9994B-B38D-4C95-BDEC-81D2F0803C09","F6BD454A-88B2-4DD0-A7FB-A049D7BAEE29","64220847-9A17-416D-AA60-0335E5665DB6","536C6267-3484-4395-B32D-D6A0EE1A91F6","B1D2F9B1-F93A-4BBB-942B-1CE7B0461227","5E5B1FC7-27F7-4488-92C1-B5E2596F300D","CECB4E3C-9CE4-4216-9A4E-E328BC293161","9DB4A3FE-7E0D-4A59-9B38-D7E6264D8D2F","68297A91-2352-4935-9CB4-BD7B470D0CA5","7F7ADE39-EF84-4D24-8376-CD78F232D552","2CD361BB-5E67-4FBB-9052-C4CF199B0555","49205067-479A-4B01-A35A-330AA8C06923","B2F5D637-5BB6-41C5-838A-FF178587A076"],"partTests":{"__isSmartRef__":true,"id":16307},"owner":{"__isSmartRef__":true,"id":1},"distanceToDragEvent":{"__isSmartRef__":true,"id":16312},"prevScroll":[0,0],"tiles":[[{"__isSmartRef__":true,"id":3},{"__isSmartRef__":true,"id":550},{"__isSmartRef__":true,"id":569},{"__isSmartRef__":true,"id":5432},{"__isSmartRef__":true,"id":5304},{"__isSmartRef__":true,"id":5285},{"__isSmartRef__":true,"id":5266},{"__isSmartRef__":true,"id":6162},{"__isSmartRef__":true,"id":6181},{"__isSmartRef__":true,"id":6333}],[{"__isSmartRef__":true,"id":170},{"__isSmartRef__":true,"id":531},{"__isSmartRef__":true,"id":588},{"__isSmartRef__":true,"id":5451},{"__isSmartRef__":true,"id":5579},{"__isSmartRef__":true,"id":5816},{"__isSmartRef__":true,"id":5119},{"__isSmartRef__":true,"id":5247},{"__isSmartRef__":true,"id":6200},{"__isSmartRef__":true,"id":6314}],[{"__isSmartRef__":true,"id":189},{"__isSmartRef__":true,"id":512},{"__isSmartRef__":true,"id":607},{"__isSmartRef__":true,"id":12723},{"__isSmartRef__":true,"id":1809},{"__isSmartRef__":true,"id":12486},{"__isSmartRef__":true,"id":4972},{"__isSmartRef__":true,"id":5100},{"__isSmartRef__":true,"id":6219},{"__isSmartRef__":true,"id":6295}],[{"__isSmartRef__":true,"id":208},{"__isSmartRef__":true,"id":493},{"__isSmartRef__":true,"id":626},{"__isSmartRef__":true,"id":1599},{"__isSmartRef__":true,"id":1937},{"__isSmartRef__":true,"id":1790},{"__isSmartRef__":true,"id":1662},{"__isSmartRef__":true,"id":4953},{"__isSmartRef__":true,"id":6238},{"__isSmartRef__":true,"id":6276}],[{"__isSmartRef__":true,"id":227},{"__isSmartRef__":true,"id":474},{"__isSmartRef__":true,"id":645},{"__isSmartRef__":true,"id":1580},{"__isSmartRef__":true,"id":2065},{"__isSmartRef__":true,"id":4697},{"__isSmartRef__":true,"id":3672},{"__isSmartRef__":true,"id":3653},{"__isSmartRef__":true,"id":6257},{"__isSmartRef__":true,"id":6679}],[{"__isSmartRef__":true,"id":246},{"__isSmartRef__":true,"id":455},{"__isSmartRef__":true,"id":702},{"__isSmartRef__":true,"id":2084},{"__isSmartRef__":true,"id":2321},{"__isSmartRef__":true,"id":4716},{"__isSmartRef__":true,"id":3139},{"__isSmartRef__":true,"id":3395},{"__isSmartRef__":true,"id":3523},{"__isSmartRef__":true,"id":6698}],[{"__isSmartRef__":true,"id":265},{"__isSmartRef__":true,"id":415},{"__isSmartRef__":true,"id":721},{"__isSmartRef__":true,"id":1278},{"__isSmartRef__":true,"id":11838},{"__isSmartRef__":true,"id":11966},{"__isSmartRef__":true,"id":3267},{"__isSmartRef__":true,"id":3120},{"__isSmartRef__":true,"id":6717},{"__isSmartRef__":true,"id":6736}],[{"__isSmartRef__":true,"id":320},{"__isSmartRef__":true,"id":396},{"__isSmartRef__":true,"id":1150},{"__isSmartRef__":true,"id":868},{"__isSmartRef__":true,"id":2757},{"__isSmartRef__":true,"id":2629},{"__isSmartRef__":true,"id":2501},{"__isSmartRef__":true,"id":2373},{"__isSmartRef__":true,"id":3101},{"__isSmartRef__":true,"id":6755}],[{"__isSmartRef__":true,"id":339},{"__isSmartRef__":true,"id":377},{"__isSmartRef__":true,"id":2795},{"__isSmartRef__":true,"id":2776},{"__isSmartRef__":true,"id":2909},{"__isSmartRef__":true,"id":2968},{"__isSmartRef__":true,"id":3006},{"__isSmartRef__":true,"id":3044},{"__isSmartRef__":true,"id":3082},{"__isSmartRef__":true,"id":6774}],[{"__isSmartRef__":true,"id":358},{"__isSmartRef__":true,"id":2814},{"__isSmartRef__":true,"id":2833},{"__isSmartRef__":true,"id":2890},{"__isSmartRef__":true,"id":2949},{"__isSmartRef__":true,"id":2987},{"__isSmartRef__":true,"id":3025},{"__isSmartRef__":true,"id":3063},{"__isSmartRef__":true,"id":6793},{"__isSmartRef__":true,"id":6812}]],"_ClipMode":"visible","isMap":true,"isCopyMorphRef":true,"morphRefId":1,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16313},"__LivelyClassName__":"lively.morphic.Box"},"3":{"submorphs":[{"__isSmartRef__":true,"id":4}],"scripts":[],"shape":{"__isSmartRef__":true,"id":58},"renderContextTable":{"__isSmartRef__":true,"id":64},"eventHandler":{"__isSmartRef__":true,"id":65},"_ClipMode":"visible","derivationIds":[],"id":"316A16A7-F5D0-447F-8EB3-7A0AE635B887","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":66},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":0,"column":0,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":4},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":170},{"__isSmartRef__":true,"id":550},{"__isSmartRef__":true,"id":531}],"__SourceModuleName__":"Global.lively.morphic.Core","charactersStandingHere":[{"__isSmartRef__":true,"id":15750}],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16179},"__LivelyClassName__":"lively.morphic.Box"},"4":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5},"renderContextTable":{"__isSmartRef__":true,"id":10},"eventHandler":{"__isSmartRef__":true,"id":11},"_ClipMode":"visible","derivationIds":[],"id":"1B2FA36E-F1AC-48C0-AB0D-4ED32C9D9682","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":12},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13},"__LivelyClassName__":"lively.morphic.Image"},"5":{"_Position":{"__isSmartRef__":true,"id":6},"renderContextTable":{"__isSmartRef__":true,"id":7},"_Extent":{"__isSmartRef__":true,"id":8},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":9},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"6":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"8":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"9":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"10":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"11":{"morph":{"__isSmartRef__":true,"id":4},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"13":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"14":{"varMapping":{"__isSmartRef__":true,"id":15},"source":"function dropOn(morph) {\n if (morph.tileWasDropped) {\n morph.tileWasDropped(this);\n } else {\n $super(morph);\n }\n }","funcProperties":{"__isSmartRef__":true,"id":57},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15":{"this":{"__isSmartRef__":true,"id":16},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":53}},"16":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17},"derivationIds":[null,"6D7C8B92-D5FD-426F-B9EE-6F260F53F4EC","16CBE553-C984-4C08-ADCB-45987A8033CC","7D8A0C17-E8D6-4568-B32D-4400790FB4EB","BC252308-D2FE-4A96-B27D-C5132865C12E","37100767-0312-4C54-A0DE-931F5540995A","9C04AB92-73D5-43BB-940F-D7F34A2FC766","C514F102-C342-4430-82C5-30C1AF5CA85D","1402C440-7F54-4489-95B8-56432B2A4F6E","B89522B6-0CAD-4AB7-A609-FAC74A998FB2","024E3B89-00F5-4FAF-A358-B8AA9C699715","6867E004-DF8C-46EE-8D37-4DCC6139E3C3","11296FA1-4711-4775-9A5A-DEE7E089741B"],"id":"1B6DF544-653B-42D3-90A6-42AC01E6F581","renderContextTable":{"__isSmartRef__":true,"id":22},"eventHandler":{"__isSmartRef__":true,"id":23},"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":24},"name":"GrassTile","showsHalos":false,"isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__SourceModuleName__":"Global.lively.morphic.Widgets","partsBinMetaInfo":{"__isSmartRef__":true,"id":25},"moved":true,"isObstacle":false,"isTile":true,"_ClipMode":"visible","_Rotation":0,"_Scale":1.0060210561262526,"eventsAreIgnored":true,"grabbingEnabled":false,"draggingEnabled":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":48},"__LivelyClassName__":"lively.morphic.Image"},"17":{"_Position":{"__isSmartRef__":true,"id":18},"renderContextTable":{"__isSmartRef__":true,"id":19},"_Extent":{"__isSmartRef__":true,"id":20},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":21},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"18":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"20":{"x":16,"y":16,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"22":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"23":{"morph":{"__isSmartRef__":true,"id":16},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"24":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"25":{"partName":"GrassTile","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"undefined","changes":[{"__isSmartRef__":true,"id":26},{"__isSmartRef__":true,"id":28},{"__isSmartRef__":true,"id":30},{"__isSmartRef__":true,"id":32},{"__isSmartRef__":true,"id":34},{"__isSmartRef__":true,"id":36},{"__isSmartRef__":true,"id":38},{"__isSmartRef__":true,"id":40},{"__isSmartRef__":true,"id":42},{"__isSmartRef__":true,"id":44},{"__isSmartRef__":true,"id":46}],"migrationLevel":4,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"26":{"date":{"__isSmartRef__":true,"id":27},"author":"timfelgentreff","message":"no comment","id":"AB07369F-96D1-4872-ACD6-189F95A98CF0"},"27":{"isSerializedDate":true,"string":"Thu May 03 2012 13:42:49 GMT+0200 (CEST)"},"28":{"date":{"__isSmartRef__":true,"id":29},"author":"timfelgentreff","message":"no comment","id":"6F09CB47-AE1A-43B5-9092-C226FC943D70"},"29":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:53:15 GMT+0200 (CEST)"},"30":{"date":{"__isSmartRef__":true,"id":31},"author":"tessi","message":"","id":"C9AC5438-390B-4092-A840-5DA53EA949A2"},"31":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:34:40 GMT+0200 (CEST)"},"32":{"date":{"__isSmartRef__":true,"id":33},"author":"timfelgentreff","message":"","id":"BB95B383-D653-4EC1-B02D-BD13262D13DD"},"33":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:30:37 GMT+0200 (CEST)"},"34":{"date":{"__isSmartRef__":true,"id":35},"author":"lauritz","message":"","id":"20A6EE92-FFDB-4B50-AF32-430C3263E33A"},"35":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:21:30 GMT+0200 (CEST)"},"36":{"date":{"__isSmartRef__":true,"id":37},"author":"tessi","message":"","id":"3FE7CF26-4ECF-4270-865D-14D92EF17F15"},"37":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:12:42 GMT+0200 (CEST)"},"38":{"date":{"__isSmartRef__":true,"id":39},"author":"timfelgentreff","message":"no comment","id":"89243BFB-B9D4-46C9-B626-FA908A74640F"},"39":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:21 GMT+0200 (CEST)"},"40":{"date":{"__isSmartRef__":true,"id":41},"author":"timfelgentreff","message":"no comment","id":"4F5D5D9C-6A36-40E0-A7B5-0EC147FC3CCB"},"41":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:38 GMT+0200 (CEST)"},"42":{"date":{"__isSmartRef__":true,"id":43},"author":"timfelgentreff","message":"no comment","id":"2A16772C-A949-41B4-81E6-729009D52750"},"43":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:37:31 GMT+0200 (CEST)"},"44":{"date":{"__isSmartRef__":true,"id":45},"author":"timfelgentreff","message":"no comment","id":"46CEDCB2-B98B-446F-82EF-A2E5C82104E8"},"45":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:32:56 GMT+0200 (CEST)"},"46":{"date":{"__isSmartRef__":true,"id":47},"author":"timfelgentreff","message":"no comment","id":"1BA41EB4-3E79-44BA-9F92-9D7A5EED3AE5"},"47":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:50 GMT+0200 (CEST)"},"48":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"49":{"varMapping":{"__isSmartRef__":true,"id":50},"source":"function shallowCopy() {\n var that = this\n var copy = ImageMorph.fromURL(this.getImageURL(), this.getBounds())\n Functions.own(this).each(function (ea) { copy[ea] = that[ea] })\n copy.isObstacle = that.isObstacle\n return copy\n }","funcProperties":{"__isSmartRef__":true,"id":51},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"50":{"this":{"__isSmartRef__":true,"id":16}},"51":{"timestamp":{"__isSmartRef__":true,"id":52},"user":"timfelgentreff","tags":[]},"52":{"isSerializedDate":true,"string":"Thu May 03 2012 13:42:06 GMT+0200 (CEST)"},"53":{"$super":{"__isSmartRef__":true,"id":54}},"54":{"varMapping":{"__isSmartRef__":true,"id":55},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":56},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"55":{"obj":{"__isSmartRef__":true,"id":16},"name":"dropOn"},"56":{},"57":{},"58":{"_Position":{"__isSmartRef__":true,"id":59},"renderContextTable":{"__isSmartRef__":true,"id":60},"_Extent":{"__isSmartRef__":true,"id":61},"_Padding":{"__isSmartRef__":true,"id":62},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"59":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"60":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"61":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"62":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"63":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"64":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"65":{"morph":{"__isSmartRef__":true,"id":3},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"66":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"67":{"partsSpaceName":"PartsBin/FreedomOfSpeech","__SourceModuleName__":"Global.lively.PartsBin","comment":"A thing that renders itself onto a tile and tells the occluded tiles about the obstacle","migrationLevel":4,"partName":"Tile","changes":[{"__isSmartRef__":true,"id":68},{"__isSmartRef__":true,"id":70},{"__isSmartRef__":true,"id":72},{"__isSmartRef__":true,"id":74},{"__isSmartRef__":true,"id":76},{"__isSmartRef__":true,"id":78},{"__isSmartRef__":true,"id":80},{"__isSmartRef__":true,"id":82},{"__isSmartRef__":true,"id":84},{"__isSmartRef__":true,"id":86},{"__isSmartRef__":true,"id":88},{"__isSmartRef__":true,"id":90},{"__isSmartRef__":true,"id":92},{"__isSmartRef__":true,"id":94},{"__isSmartRef__":true,"id":96},{"__isSmartRef__":true,"id":98},{"__isSmartRef__":true,"id":100},{"__isSmartRef__":true,"id":102},{"__isSmartRef__":true,"id":104},{"__isSmartRef__":true,"id":106},{"__isSmartRef__":true,"id":108},{"__isSmartRef__":true,"id":110},{"__isSmartRef__":true,"id":112},{"__isSmartRef__":true,"id":114},{"__isSmartRef__":true,"id":116},{"__isSmartRef__":true,"id":118},{"__isSmartRef__":true,"id":120},{"__isSmartRef__":true,"id":122},{"__isSmartRef__":true,"id":124},{"__isSmartRef__":true,"id":126},{"__isSmartRef__":true,"id":128},{"__isSmartRef__":true,"id":130},{"__isSmartRef__":true,"id":132},{"__isSmartRef__":true,"id":134},{"__isSmartRef__":true,"id":136},{"__isSmartRef__":true,"id":138},{"__isSmartRef__":true,"id":140},{"__isSmartRef__":true,"id":142},{"__isSmartRef__":true,"id":144},{"__isSmartRef__":true,"id":146},{"__isSmartRef__":true,"id":148},{"__isSmartRef__":true,"id":150},{"__isSmartRef__":true,"id":152},{"__isSmartRef__":true,"id":154},{"__isSmartRef__":true,"id":156},{"__isSmartRef__":true,"id":158},{"__isSmartRef__":true,"id":160},{"__isSmartRef__":true,"id":162},{"__isSmartRef__":true,"id":164},{"__isSmartRef__":true,"id":166},{"__isSmartRef__":true,"id":168}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"68":{"date":{"__isSmartRef__":true,"id":69},"author":"lauritz","message":"difference between dev and normal style in border-width","id":"3001D4D8-C44F-49E0-8101-5726A7ACFD8F"},"69":{"isSerializedDate":true,"string":"Mon May 07 2012 18:54:58 GMT+0200 (CEST)"},"70":{"date":{"__isSmartRef__":true,"id":71},"author":"tessi","message":"cannot set color to null","id":"A33818D9-5418-451A-86B6-17C0E01E3D95"},"71":{"isSerializedDate":true,"string":"Thu May 03 2012 15:20:35 GMT+0200 (CEST)"},"72":{"date":{"__isSmartRef__":true,"id":73},"author":"timfelgentreff","message":"no comment","id":"3D7FD71F-6695-46ED-915B-DACB2BDD66EC"},"73":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:17:11 GMT+0200 (CEST)"},"74":{"date":{"__isSmartRef__":true,"id":75},"author":"tessi","message":"","id":"CDFC653A-73C4-4FEF-BF2F-E515698C9D49"},"75":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:40:27 GMT+0200 (CEST)"},"76":{"date":{"__isSmartRef__":true,"id":77},"author":"tessi","message":"cache Neighbours","id":"5AE79688-A888-4376-8A8F-63679330D24C"},"77":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:34:19 GMT+0200 (CEST)"},"78":{"date":{"__isSmartRef__":true,"id":79},"author":"tessi","message":"let characters register themself when enter/leave the tile","id":"9095AE1D-1FE5-44A4-9A4E-C9C39B1C4F40"},"79":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:48 GMT+0200 (CEST)"},"80":{"date":{"__isSmartRef__":true,"id":81},"author":"timfelgentreff","message":"Use a cache and shallow copying for become(terrain); fix onMouseDown when not in a Map","id":"9846F542-FBA4-4E6E-95E7-760FEC0B1848"},"81":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:58 GMT+0200 (CEST)"},"82":{"date":{"__isSmartRef__":true,"id":83},"author":"lauritz","message":"","id":"AC05F3B3-162F-4A75-A601-EA5F744AC530"},"83":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:25:17 GMT+0200 (CEST)"},"84":{"date":{"__isSmartRef__":true,"id":85},"author":"timfelgentreff","message":"revert last commit","id":"DEE21763-B63C-41AF-917B-4481E54000AF"},"85":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:53:55 GMT+0200 (CEST)"},"86":{"date":{"__isSmartRef__":true,"id":87},"author":"timfelgentreff","message":"uncomment return","id":"21656693-2A83-4D04-9612-55622B41EB18"},"87":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:46:38 GMT+0200 (CEST)"},"88":{"date":{"__isSmartRef__":true,"id":89},"author":"timfelgentreff","message":"fix shallowCopy","id":"5DDF2C7F-DEE5-4161-A515-B5831A00DCB3"},"89":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:13:27 GMT+0200 (CEST)"},"90":{"date":{"__isSmartRef__":true,"id":91},"author":"timfelgentreff","message":"add shallowCopy","id":"86DCAE73-A5D2-470F-BF0E-77E914236CEA"},"91":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:10:22 GMT+0200 (CEST)"},"92":{"date":{"__isSmartRef__":true,"id":93},"author":"timfelgentreff","message":"no comment","id":"181F2453-F14A-4CC7-BFF0-910480CD4B1F"},"93":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:39:23 GMT+0200 (CEST)"},"94":{"date":{"__isSmartRef__":true,"id":95},"author":"timfelgentreff","message":"show obstacle state in dev style","id":"9FD0FE89-0EE1-4499-B055-D2C077CCEACA"},"95":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:37:34 GMT+0200 (CEST)"},"96":{"date":{"__isSmartRef__":true,"id":97},"author":"timfelgentreff","message":"no comment","id":"4571845C-4F67-4DD6-954F-B93B98F8DDF3"},"97":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:35:25 GMT+0200 (CEST)"},"98":{"date":{"__isSmartRef__":true,"id":99},"author":"timfelgentreff","message":"fix adding obstacles","id":"891954C6-3DC3-41AC-8038-4E7C028B0147"},"99":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:50:37 GMT+0200 (CEST)"},"100":{"date":{"__isSmartRef__":true,"id":101},"author":"timfelgentreff","message":"things support","id":"DD13E7D3-6948-4B69-947A-24A2B084646B"},"101":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:31:58 GMT+0200 (CEST)"},"102":{"date":{"__isSmartRef__":true,"id":103},"author":"timfelgentreff","message":"change obstacle logic, adds support for a list of obstacles. obstacles can be added and removed","id":"0EF07087-0018-425F-AB43-3F843AFCB7E1"},"103":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:16:14 GMT+0200 (CEST)"},"104":{"date":{"__isSmartRef__":true,"id":105},"author":"timfelgentreff","message":"a thing that renders itself onto a tile and tells the occluded tiles about the obstacle","id":"ADB36180-974D-4994-9149-6318E7F62D62"},"105":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:29:15 GMT+0200 (CEST)"},"106":{"date":{"__isSmartRef__":true,"id":107},"author":"timfelgentreff","message":"","id":"712D65D3-A68A-47B9-AFDC-B20E826217DB"},"107":{"isSerializedDate":true,"string":"Thu Apr 19 2012 18:00:26 GMT+0200 (CEST)"},"108":{"date":{"__isSmartRef__":true,"id":109},"author":"timfelgentreff","message":"","id":"DF45FC66-1C49-447D-914F-A905DA0AECB2"},"109":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:59:47 GMT+0200 (CEST)"},"110":{"date":{"__isSmartRef__":true,"id":111},"author":"timfelgentreff","message":"","id":"6D9186F6-64FC-48E0-95AF-27E462A13E1D"},"111":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:55:04 GMT+0200 (CEST)"},"112":{"date":{"__isSmartRef__":true,"id":113},"author":"timfelgentreff","message":"","id":"24121E2C-3B59-48EF-8026-290C8D296496"},"113":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:02:53 GMT+0200 (CEST)"},"114":{"date":{"__isSmartRef__":true,"id":115},"author":"timfelgentreff","message":"","id":"F4CC9F23-A50B-4206-A549-A610CC9C69AC"},"115":{"isSerializedDate":true,"string":"Thu Apr 19 2012 15:11:38 GMT+0200 (CEST)"},"116":{"date":{"__isSmartRef__":true,"id":117},"author":"timfelgentreff","message":"","id":"563A8831-9CE6-49D1-B87D-453B761FB751"},"117":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:12:53 GMT+0200 (CEST)"},"118":{"date":{"__isSmartRef__":true,"id":119},"author":"timfelgentreff","message":"","id":"E1AA7A8A-D3C5-4263-9A1E-91C13F532ED6"},"119":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:23:55 GMT+0200 (CEST)"},"120":{"date":{"__isSmartRef__":true,"id":121},"author":"timfelgentreff","message":"","id":"0672C6C8-D032-495B-B9EE-E41F194C86DE"},"121":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:19:15 GMT+0200 (CEST)"},"122":{"date":{"__isSmartRef__":true,"id":123},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"123":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"124":{"date":{"__isSmartRef__":true,"id":125},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"125":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"126":{"date":{"__isSmartRef__":true,"id":127},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"127":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"128":{"date":{"__isSmartRef__":true,"id":129},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"129":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"130":{"date":{"__isSmartRef__":true,"id":131},"author":"timfelgentreff","message":"","id":"DE0AC226-458D-416E-A42C-BAA848650C4C"},"131":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:28:14 GMT+0200 (CEST)"},"132":{"date":{"__isSmartRef__":true,"id":133},"author":"lauritz","message":"","id":"CFD35308-806E-4804-8706-15DA1CEC5743"},"133":{"isSerializedDate":true,"string":"Thu Apr 19 2012 15:49:16 GMT+0200 (CEST)"},"134":{"date":{"__isSmartRef__":true,"id":135},"author":"timfelgentreff","message":"","id":"18365ED6-1BC8-43AD-ADC8-2B0C8005B784"},"135":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:23:38 GMT+0200 (CEST)"},"136":{"date":{"__isSmartRef__":true,"id":137},"author":"timfelgentreff","message":"","id":"4978F7BB-7FF5-47C1-8A55-6CAB03479B28"},"137":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:41:12 GMT+0200 (CEST)"},"138":{"date":{"__isSmartRef__":true,"id":139},"author":"timfelgentreff","message":"","id":"07EE540F-D786-49CC-8DD0-56F6B3AC6716"},"139":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:43:41 GMT+0200 (CEST)"},"140":{"date":{"__isSmartRef__":true,"id":141},"author":"timfelgentreff","message":"","id":"B5D9BC0C-15F0-4AE7-884B-48515F6A030E"},"141":{"isSerializedDate":true,"string":"Thu Apr 19 2012 18:08:19 GMT+0200 (CEST)"},"142":{"date":{"__isSmartRef__":true,"id":143},"author":"timfelgentreff","message":"","id":"F01F7BC6-E59F-4B63-8A3D-10C3AC3E34FD"},"143":{"isSerializedDate":true,"string":"Fri Apr 20 2012 08:22:08 GMT+0200 (CEST)"},"144":{"date":{"__isSmartRef__":true,"id":145},"author":"tessi","message":"revert timfels last commit (tile was overwritten with thing)","id":"27A8A743-D064-44C6-948E-8E3D5118790D"},"145":{"isSerializedDate":true,"string":"Mon Apr 23 2012 13:34:17 GMT+0200 (CEST)"},"146":{"date":{"__isSmartRef__":true,"id":147},"author":"timfelgentreff","message":"no comment","id":"6BBA00B9-6D11-4D9D-B6E9-95FE7CC915CD"},"147":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:20:14 GMT+0200 (CEST)"},"148":{"date":{"__isSmartRef__":true,"id":149},"author":"timfelgentreff","message":"no comment","id":"957E9210-4394-452A-9291-BD0E8FA736BF"},"149":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:28:00 GMT+0200 (CEST)"},"150":{"date":{"__isSmartRef__":true,"id":151},"author":"tessi","message":"added reset() method. use game() and map() instead of get() calls","id":"5B2AF6B7-3DC9-4EE1-A616-6510338BA091"},"151":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:18:16 GMT+0200 (CEST)"},"152":{"date":{"__isSmartRef__":true,"id":153},"author":"timfelgentreff","message":"avoid setting props in shallowCopy","id":"0102BAF0-8471-4805-98CB-FFA285A96B15"},"153":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:45:14 GMT+0200 (CEST)"},"154":{"date":{"__isSmartRef__":true,"id":155},"author":"timfelgentreff","message":"copy properties,too, so we can publish","id":"409A8B29-1CB7-4C30-B420-7F0FEB4489EA"},"155":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:48:47 GMT+0200 (CEST)"},"156":{"date":{"__isSmartRef__":true,"id":157},"author":"tessi","message":"added stub method for getting characters standing on the tile","id":"2DD011DC-7ABF-4928-A2EE-FDA603BCB307"},"157":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:22:23 GMT+0200 (CEST)"},"158":{"date":{"__isSmartRef__":true,"id":159},"author":"lauritz","message":"no comment","id":"2A0ACEC2-2DDA-4061-9ECE-8D49CCD6C0A0"},"159":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:00:07 GMT+0200 (CEST)"},"160":{"date":{"__isSmartRef__":true,"id":161},"author":"timfelgentreff","message":"revert caching","id":"03257D32-EA99-4EA6-8CFA-D6C55E6A4D96"},"161":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:20:05 GMT+0200 (CEST)"},"162":{"date":{"__isSmartRef__":true,"id":163},"author":"tessi","message":"fix neighbours calculation","id":"F2AE41B4-A670-4277-B7F3-5BCC20D74ECE"},"163":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:55:48 GMT+0200 (CEST)"},"164":{"date":{"__isSmartRef__":true,"id":165},"author":"timfelgentreff","message":"add a neighboursReachableFromHere function, so we can return only neighbours that are reachable to A*","id":"646448AF-6B6F-4D4E-900B-2DC7B927ACE8"},"165":{"isSerializedDate":true,"string":"Thu May 03 2012 13:29:50 GMT+0200 (CEST)"},"166":{"date":{"__isSmartRef__":true,"id":167},"author":"tessi","message":"normal border color is transparent","id":"94D5AA98-D1D9-4C6F-BED3-828305C3F390"},"167":{"isSerializedDate":true,"string":"Thu May 03 2012 15:25:32 GMT+0200 (CEST)"},"168":{"date":{"__isSmartRef__":true,"id":169},"author":"tessi","message":"no comment","id":"928E1DC4-09B5-46D7-A245-48E332175C68"},"169":{"isSerializedDate":true,"string":"Fri May 04 2012 17:01:42 GMT+0200 (CEST)"},"170":{"submorphs":[{"__isSmartRef__":true,"id":171}],"scripts":[],"shape":{"__isSmartRef__":true,"id":181},"renderContextTable":{"__isSmartRef__":true,"id":186},"eventHandler":{"__isSmartRef__":true,"id":187},"_ClipMode":"visible","derivationIds":[],"id":"DF481589-6C5F-44F4-95A7-A71D3DAFA657","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":188},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":0,"column":1,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":171},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":3},{"__isSmartRef__":true,"id":189},{"__isSmartRef__":true,"id":550},{"__isSmartRef__":true,"id":531},{"__isSmartRef__":true,"id":512}],"__SourceModuleName__":"Global.lively.morphic.Core","charactersStandingHere":[],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15641},"__LivelyClassName__":"lively.morphic.Box"},"171":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":172},"renderContextTable":{"__isSmartRef__":true,"id":177},"eventHandler":{"__isSmartRef__":true,"id":178},"_ClipMode":"visible","derivationIds":[],"id":"0E0966EB-C588-4A01-9B4F-B5025224E390","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":179},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":170},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":180},"__LivelyClassName__":"lively.morphic.Image"},"172":{"_Position":{"__isSmartRef__":true,"id":173},"renderContextTable":{"__isSmartRef__":true,"id":174},"_Extent":{"__isSmartRef__":true,"id":175},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":176},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"173":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"174":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"175":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"176":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"177":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"178":{"morph":{"__isSmartRef__":true,"id":171},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"179":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"180":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"181":{"_Position":{"__isSmartRef__":true,"id":182},"renderContextTable":{"__isSmartRef__":true,"id":183},"_Extent":{"__isSmartRef__":true,"id":184},"_Padding":{"__isSmartRef__":true,"id":185},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"182":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"183":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"184":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"185":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"186":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"187":{"morph":{"__isSmartRef__":true,"id":170},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"188":{"x":48,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"189":{"submorphs":[{"__isSmartRef__":true,"id":190}],"scripts":[],"shape":{"__isSmartRef__":true,"id":200},"renderContextTable":{"__isSmartRef__":true,"id":205},"eventHandler":{"__isSmartRef__":true,"id":206},"_ClipMode":"visible","derivationIds":[],"id":"878F72BD-F30D-4F25-8DEE-12D739624ACB","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":207},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":0,"column":2,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":190},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":170},{"__isSmartRef__":true,"id":208},{"__isSmartRef__":true,"id":531},{"__isSmartRef__":true,"id":512},{"__isSmartRef__":true,"id":493}],"__SourceModuleName__":"Global.lively.morphic.Core","charactersStandingHere":[],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15532},"__LivelyClassName__":"lively.morphic.Box"},"190":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":191},"renderContextTable":{"__isSmartRef__":true,"id":196},"eventHandler":{"__isSmartRef__":true,"id":197},"_ClipMode":"visible","derivationIds":[],"id":"15DD90F5-F2EA-4A7B-A44B-807219E94755","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":198},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":189},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":199},"__LivelyClassName__":"lively.morphic.Image"},"191":{"_Position":{"__isSmartRef__":true,"id":192},"renderContextTable":{"__isSmartRef__":true,"id":193},"_Extent":{"__isSmartRef__":true,"id":194},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":195},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"192":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"193":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"194":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"195":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"196":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"197":{"morph":{"__isSmartRef__":true,"id":190},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"198":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"199":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"200":{"_Position":{"__isSmartRef__":true,"id":201},"renderContextTable":{"__isSmartRef__":true,"id":202},"_Extent":{"__isSmartRef__":true,"id":203},"_Padding":{"__isSmartRef__":true,"id":204},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"201":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"202":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"203":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"204":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"205":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"206":{"morph":{"__isSmartRef__":true,"id":189},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"207":{"x":96,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"208":{"submorphs":[{"__isSmartRef__":true,"id":209}],"scripts":[],"shape":{"__isSmartRef__":true,"id":219},"renderContextTable":{"__isSmartRef__":true,"id":224},"eventHandler":{"__isSmartRef__":true,"id":225},"_ClipMode":"visible","derivationIds":[],"id":"5325640D-E248-4AA4-AE99-3A055A4F165E","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":226},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":0,"column":3,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":209},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":189},{"__isSmartRef__":true,"id":227},{"__isSmartRef__":true,"id":512},{"__isSmartRef__":true,"id":493},{"__isSmartRef__":true,"id":474}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15423},"__LivelyClassName__":"lively.morphic.Box"},"209":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":210},"renderContextTable":{"__isSmartRef__":true,"id":215},"eventHandler":{"__isSmartRef__":true,"id":216},"_ClipMode":"visible","derivationIds":[],"id":"F5423314-A276-4BDE-BE98-5D6392F3D51A","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":217},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":208},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":218},"__LivelyClassName__":"lively.morphic.Image"},"210":{"_Position":{"__isSmartRef__":true,"id":211},"renderContextTable":{"__isSmartRef__":true,"id":212},"_Extent":{"__isSmartRef__":true,"id":213},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":214},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"211":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"212":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"213":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"214":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"215":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"216":{"morph":{"__isSmartRef__":true,"id":209},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"217":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"218":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"219":{"_Position":{"__isSmartRef__":true,"id":220},"renderContextTable":{"__isSmartRef__":true,"id":221},"_Extent":{"__isSmartRef__":true,"id":222},"_Padding":{"__isSmartRef__":true,"id":223},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"220":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"221":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"222":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"223":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"224":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"225":{"morph":{"__isSmartRef__":true,"id":208},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"226":{"x":144,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"227":{"submorphs":[{"__isSmartRef__":true,"id":228}],"scripts":[],"shape":{"__isSmartRef__":true,"id":238},"renderContextTable":{"__isSmartRef__":true,"id":243},"eventHandler":{"__isSmartRef__":true,"id":244},"_ClipMode":"visible","derivationIds":[],"id":"487F06E9-DF65-42F4-9812-5D50FD86A773","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":245},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":0,"column":4,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":228},"grabbingEnabled":false,"charactersStandingHere":[],"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":208},{"__isSmartRef__":true,"id":246},{"__isSmartRef__":true,"id":493},{"__isSmartRef__":true,"id":474},{"__isSmartRef__":true,"id":455}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15314},"__LivelyClassName__":"lively.morphic.Box"},"228":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":229},"renderContextTable":{"__isSmartRef__":true,"id":234},"eventHandler":{"__isSmartRef__":true,"id":235},"_ClipMode":"visible","derivationIds":[],"id":"68FAA969-24E0-4F91-BD4F-B248A7CCAF46","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":236},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":227},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":237},"__LivelyClassName__":"lively.morphic.Image"},"229":{"_Position":{"__isSmartRef__":true,"id":230},"renderContextTable":{"__isSmartRef__":true,"id":231},"_Extent":{"__isSmartRef__":true,"id":232},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":233},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"230":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"231":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"232":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"233":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"234":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"235":{"morph":{"__isSmartRef__":true,"id":228},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"236":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"237":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"238":{"_Position":{"__isSmartRef__":true,"id":239},"renderContextTable":{"__isSmartRef__":true,"id":240},"_Extent":{"__isSmartRef__":true,"id":241},"_Padding":{"__isSmartRef__":true,"id":242},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"239":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"240":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"241":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"242":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"243":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"244":{"morph":{"__isSmartRef__":true,"id":227},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"245":{"x":192,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"246":{"submorphs":[{"__isSmartRef__":true,"id":247}],"scripts":[],"shape":{"__isSmartRef__":true,"id":257},"renderContextTable":{"__isSmartRef__":true,"id":262},"eventHandler":{"__isSmartRef__":true,"id":263},"_ClipMode":"visible","derivationIds":[],"id":"468CAEB9-C33F-4301-B9B3-1631999089AE","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":264},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":0,"column":5,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":247},"grabbingEnabled":false,"__obstacles":[],"charactersStandingHere":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":227},{"__isSmartRef__":true,"id":265},{"__isSmartRef__":true,"id":474},{"__isSmartRef__":true,"id":455},{"__isSmartRef__":true,"id":415}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15205},"__LivelyClassName__":"lively.morphic.Box"},"247":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":248},"renderContextTable":{"__isSmartRef__":true,"id":253},"eventHandler":{"__isSmartRef__":true,"id":254},"_ClipMode":"visible","derivationIds":[],"id":"063F8AA0-5A7F-46E5-B026-E078909D682D","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":255},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":246},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":256},"__LivelyClassName__":"lively.morphic.Image"},"248":{"_Position":{"__isSmartRef__":true,"id":249},"renderContextTable":{"__isSmartRef__":true,"id":250},"_Extent":{"__isSmartRef__":true,"id":251},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":252},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"249":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"250":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"251":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"252":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"253":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"254":{"morph":{"__isSmartRef__":true,"id":247},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"255":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"256":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"257":{"_Position":{"__isSmartRef__":true,"id":258},"renderContextTable":{"__isSmartRef__":true,"id":259},"_Extent":{"__isSmartRef__":true,"id":260},"_Padding":{"__isSmartRef__":true,"id":261},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"258":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"259":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"260":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"261":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"262":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"263":{"morph":{"__isSmartRef__":true,"id":246},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"264":{"x":240,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"265":{"submorphs":[{"__isSmartRef__":true,"id":266}],"scripts":[],"shape":{"__isSmartRef__":true,"id":312},"renderContextTable":{"__isSmartRef__":true,"id":317},"eventHandler":{"__isSmartRef__":true,"id":318},"_ClipMode":"visible","derivationIds":[],"id":"2F86CD09-D1FB-45A4-992B-D5EEF215EF1C","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":319},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":0,"column":6,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":266},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":246},{"__isSmartRef__":true,"id":320},{"__isSmartRef__":true,"id":455},{"__isSmartRef__":true,"id":415},{"__isSmartRef__":true,"id":396}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15096},"__LivelyClassName__":"lively.morphic.Box"},"266":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":267},"renderContextTable":{"__isSmartRef__":true,"id":272},"eventHandler":{"__isSmartRef__":true,"id":273},"_ClipMode":"visible","derivationIds":[],"id":"6933A58D-690F-4E97-A4FA-E6C7D665496A","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":274},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":265},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":275},"__LivelyClassName__":"lively.morphic.Image"},"267":{"_Position":{"__isSmartRef__":true,"id":268},"renderContextTable":{"__isSmartRef__":true,"id":269},"_Extent":{"__isSmartRef__":true,"id":270},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/desert.png","_Padding":{"__isSmartRef__":true,"id":271},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"268":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"269":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"270":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"271":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"272":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"273":{"morph":{"__isSmartRef__":true,"id":266},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"274":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"275":{"dropOn":{"__isSmartRef__":true,"id":276},"shallowCopy":{"__isSmartRef__":true,"id":303}},"276":{"varMapping":{"__isSmartRef__":true,"id":277},"source":"function dropOn(morph) {\n if (morph.tileWasDropped) {\n morph.tileWasDropped(this);\n } else {\n $super(morph);\n }\n }","funcProperties":{"__isSmartRef__":true,"id":311},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"277":{"this":{"__isSmartRef__":true,"id":278},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":307}},"278":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":279},"derivationIds":[null,"42BDA199-2F81-4641-9989-0B4BFFEC306D","8C1D70CD-BA13-4CFF-96ED-0A320E6AE989","653D9640-5923-4609-A7B6-066F333B1A6A","6CA192CA-7A75-4B7A-B67C-A8CCC81A6481","D02A7D60-55AE-44D7-97FD-47602643DB12","9CA62554-D75A-4727-9AEA-973B0D84C3A9","218799A7-4B98-4B38-BC2C-8A822A6E3566","2D582491-7658-4F36-914D-A6BCF84CC582","D9FF0DFF-BE91-4ABC-9017-D63DB44CE32B","94F8B05A-2D59-4005-B52F-EDB96AC23798","C11C2F8D-E901-4BB5-BD58-B172F1A65771"],"id":"519B3F2A-A4CB-43CB-894B-1EF33000D3A4","renderContextTable":{"__isSmartRef__":true,"id":284},"eventHandler":{"__isSmartRef__":true,"id":285},"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":286},"name":"DesertTile1","isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","partsBinMetaInfo":{"__isSmartRef__":true,"id":287},"moved":true,"isObstacle":false,"isTile":true,"_ClipMode":"visible","eventsAreIgnored":true,"grabbingEnabled":false,"draggingEnabled":false,"_Rotation":0,"_Scale":1.0040100200350561,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":302},"__LivelyClassName__":"lively.morphic.Image"},"279":{"_Position":{"__isSmartRef__":true,"id":280},"renderContextTable":{"__isSmartRef__":true,"id":281},"_Extent":{"__isSmartRef__":true,"id":282},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":283},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/desert.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"280":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"281":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"282":{"x":16,"y":16,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"283":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"284":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"285":{"morph":{"__isSmartRef__":true,"id":278},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"286":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"287":{"partName":"DesertTile","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"undefined","changes":[{"__isSmartRef__":true,"id":288},{"__isSmartRef__":true,"id":290},{"__isSmartRef__":true,"id":292},{"__isSmartRef__":true,"id":294},{"__isSmartRef__":true,"id":296},{"__isSmartRef__":true,"id":298},{"__isSmartRef__":true,"id":300}],"migrationLevel":4,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"288":{"date":{"__isSmartRef__":true,"id":289},"author":"tessi","message":"no comment","id":"7CB15998-7D3D-4AC6-94C5-B0A2A9A805C5"},"289":{"isSerializedDate":true,"string":"Fri May 04 2012 17:01:58 GMT+0200 (CEST)"},"290":{"date":{"__isSmartRef__":true,"id":291},"author":"timfelgentreff","message":"no comment","id":"3D0706E1-6AA3-4E3B-AFED-EBEEC1E6965F"},"291":{"isSerializedDate":true,"string":"Thu May 03 2012 13:42:54 GMT+0200 (CEST)"},"292":{"date":{"__isSmartRef__":true,"id":293},"author":"timfelgentreff","message":"no comment","id":"8E3F9186-A21E-4DD7-BCBC-0295AD611351"},"293":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:37:01 GMT+0200 (CEST)"},"294":{"date":{"__isSmartRef__":true,"id":295},"author":"timfelgentreff","message":"no comment","id":"704061FF-A22B-46D9-9F0C-6B103B2D96BB"},"295":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:32:49 GMT+0200 (CEST)"},"296":{"date":{"__isSmartRef__":true,"id":297},"author":"tessi","message":"","id":"088663F6-1A15-41CA-A2E0-F35914FCFCF4"},"297":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:15:44 GMT+0200 (CEST)"},"298":{"date":{"__isSmartRef__":true,"id":299},"author":"timfelgentreff","message":"","id":"E237D6CD-76DB-430A-9662-8085FE2F36B8"},"299":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:31:19 GMT+0200 (CEST)"},"300":{"date":{"__isSmartRef__":true,"id":301},"author":"tessi","message":"","id":"BEC31417-3262-4D81-9CC6-05957CEB8A88"},"301":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:37:45 GMT+0200 (CEST)"},"302":{"dropOn":{"__isSmartRef__":true,"id":276},"shallowCopy":{"__isSmartRef__":true,"id":303}},"303":{"varMapping":{"__isSmartRef__":true,"id":304},"source":"function shallowCopy() {\n var that = this\n var copy = ImageMorph.fromURL(this.getImageURL(), this.getBounds())\n Functions.own(this).each(function (ea) { copy[ea] = that[ea] })\n copy.isObstacle = that.isObstacle\n return copy\n }","funcProperties":{"__isSmartRef__":true,"id":305},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"304":{"this":{"__isSmartRef__":true,"id":278}},"305":{"timestamp":{"__isSmartRef__":true,"id":306},"user":"timfelgentreff","tags":[]},"306":{"isSerializedDate":true,"string":"Thu May 03 2012 13:42:16 GMT+0200 (CEST)"},"307":{"$super":{"__isSmartRef__":true,"id":308}},"308":{"varMapping":{"__isSmartRef__":true,"id":309},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":310},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"309":{"obj":{"__isSmartRef__":true,"id":278},"name":"dropOn"},"310":{},"311":{},"312":{"_Position":{"__isSmartRef__":true,"id":313},"renderContextTable":{"__isSmartRef__":true,"id":314},"_Extent":{"__isSmartRef__":true,"id":315},"_Padding":{"__isSmartRef__":true,"id":316},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"313":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"314":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"315":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"316":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"317":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"318":{"morph":{"__isSmartRef__":true,"id":265},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"319":{"x":288,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"320":{"submorphs":[{"__isSmartRef__":true,"id":321}],"scripts":[],"shape":{"__isSmartRef__":true,"id":331},"renderContextTable":{"__isSmartRef__":true,"id":336},"eventHandler":{"__isSmartRef__":true,"id":337},"_ClipMode":"visible","derivationIds":[],"id":"19107245-A049-4AF7-8D8C-A1C5741DA1F6","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":338},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":0,"column":7,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":321},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":265},{"__isSmartRef__":true,"id":339},{"__isSmartRef__":true,"id":415},{"__isSmartRef__":true,"id":396},{"__isSmartRef__":true,"id":377}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14987},"__LivelyClassName__":"lively.morphic.Box"},"321":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":322},"renderContextTable":{"__isSmartRef__":true,"id":327},"eventHandler":{"__isSmartRef__":true,"id":328},"_ClipMode":"visible","derivationIds":[],"id":"EDB1102B-38D7-47C8-A53C-BF74C98627E0","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":329},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":320},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":330},"__LivelyClassName__":"lively.morphic.Image"},"322":{"_Position":{"__isSmartRef__":true,"id":323},"renderContextTable":{"__isSmartRef__":true,"id":324},"_Extent":{"__isSmartRef__":true,"id":325},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/desert.png","_Padding":{"__isSmartRef__":true,"id":326},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"323":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"324":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"325":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"326":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"327":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"328":{"morph":{"__isSmartRef__":true,"id":321},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"329":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"330":{"dropOn":{"__isSmartRef__":true,"id":276},"shallowCopy":{"__isSmartRef__":true,"id":303}},"331":{"_Position":{"__isSmartRef__":true,"id":332},"renderContextTable":{"__isSmartRef__":true,"id":333},"_Extent":{"__isSmartRef__":true,"id":334},"_Padding":{"__isSmartRef__":true,"id":335},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"332":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"333":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"334":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"335":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"336":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"337":{"morph":{"__isSmartRef__":true,"id":320},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"338":{"x":336,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"339":{"submorphs":[{"__isSmartRef__":true,"id":340}],"scripts":[],"shape":{"__isSmartRef__":true,"id":350},"renderContextTable":{"__isSmartRef__":true,"id":355},"eventHandler":{"__isSmartRef__":true,"id":356},"_ClipMode":"visible","derivationIds":[],"id":"34602263-7334-4B1E-BA2B-B67B3BFE2431","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":357},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":0,"column":8,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":340},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":320},{"__isSmartRef__":true,"id":358},{"__isSmartRef__":true,"id":396},{"__isSmartRef__":true,"id":377},{"__isSmartRef__":true,"id":2814}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14878},"__LivelyClassName__":"lively.morphic.Box"},"340":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":341},"renderContextTable":{"__isSmartRef__":true,"id":346},"eventHandler":{"__isSmartRef__":true,"id":347},"_ClipMode":"visible","derivationIds":[],"id":"1D7E0306-CC9C-470E-8309-84B0BA06626F","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":348},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":339},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":349},"__LivelyClassName__":"lively.morphic.Image"},"341":{"_Position":{"__isSmartRef__":true,"id":342},"renderContextTable":{"__isSmartRef__":true,"id":343},"_Extent":{"__isSmartRef__":true,"id":344},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/desert.png","_Padding":{"__isSmartRef__":true,"id":345},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"342":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"343":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"344":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"345":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"346":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"347":{"morph":{"__isSmartRef__":true,"id":340},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"348":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"349":{"dropOn":{"__isSmartRef__":true,"id":276},"shallowCopy":{"__isSmartRef__":true,"id":303}},"350":{"_Position":{"__isSmartRef__":true,"id":351},"renderContextTable":{"__isSmartRef__":true,"id":352},"_Extent":{"__isSmartRef__":true,"id":353},"_Padding":{"__isSmartRef__":true,"id":354},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"351":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"352":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"353":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"354":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"355":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"356":{"morph":{"__isSmartRef__":true,"id":339},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"357":{"x":384,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"358":{"submorphs":[{"__isSmartRef__":true,"id":359}],"scripts":[],"shape":{"__isSmartRef__":true,"id":369},"renderContextTable":{"__isSmartRef__":true,"id":374},"eventHandler":{"__isSmartRef__":true,"id":375},"_ClipMode":"visible","derivationIds":[],"id":"C91FD205-D120-4EE7-80A9-5A7107D1E0DA","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":376},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":0,"column":9,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":359},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":339},{"__isSmartRef__":true,"id":377},{"__isSmartRef__":true,"id":2814}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14769},"__LivelyClassName__":"lively.morphic.Box"},"359":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":360},"renderContextTable":{"__isSmartRef__":true,"id":365},"eventHandler":{"__isSmartRef__":true,"id":366},"_ClipMode":"visible","derivationIds":[],"id":"2F2F2886-7609-40D3-8E1F-5421A27C662C","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":367},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":358},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":368},"__LivelyClassName__":"lively.morphic.Image"},"360":{"_Position":{"__isSmartRef__":true,"id":361},"renderContextTable":{"__isSmartRef__":true,"id":362},"_Extent":{"__isSmartRef__":true,"id":363},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/desert.png","_Padding":{"__isSmartRef__":true,"id":364},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"361":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"362":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"363":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"364":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"365":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"366":{"morph":{"__isSmartRef__":true,"id":359},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"367":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"368":{"dropOn":{"__isSmartRef__":true,"id":276},"shallowCopy":{"__isSmartRef__":true,"id":303}},"369":{"_Position":{"__isSmartRef__":true,"id":370},"renderContextTable":{"__isSmartRef__":true,"id":371},"_Extent":{"__isSmartRef__":true,"id":372},"_Padding":{"__isSmartRef__":true,"id":373},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"370":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"371":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"372":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"373":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"374":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"375":{"morph":{"__isSmartRef__":true,"id":358},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"376":{"x":432,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"377":{"submorphs":[{"__isSmartRef__":true,"id":378}],"scripts":[],"shape":{"__isSmartRef__":true,"id":388},"renderContextTable":{"__isSmartRef__":true,"id":393},"eventHandler":{"__isSmartRef__":true,"id":394},"_ClipMode":"visible","derivationIds":[],"id":"FE2064CE-D3B2-417E-B552-965D23150794","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":395},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":1,"column":8,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":378},"grabbingEnabled":false,"__obstacles":[],"charactersStandingHere":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":320},{"__isSmartRef__":true,"id":339},{"__isSmartRef__":true,"id":358},{"__isSmartRef__":true,"id":396},{"__isSmartRef__":true,"id":2814},{"__isSmartRef__":true,"id":1150},{"__isSmartRef__":true,"id":2795},{"__isSmartRef__":true,"id":2833}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14660},"__LivelyClassName__":"lively.morphic.Box"},"378":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":379},"renderContextTable":{"__isSmartRef__":true,"id":384},"eventHandler":{"__isSmartRef__":true,"id":385},"_ClipMode":"visible","derivationIds":[],"id":"BA2B8A8A-FDCC-4221-BA0D-01E928114C0D","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":386},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":377},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":387},"__LivelyClassName__":"lively.morphic.Image"},"379":{"_Position":{"__isSmartRef__":true,"id":380},"renderContextTable":{"__isSmartRef__":true,"id":381},"_Extent":{"__isSmartRef__":true,"id":382},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/desert.png","_Padding":{"__isSmartRef__":true,"id":383},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"380":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"381":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"382":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"383":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"384":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"385":{"morph":{"__isSmartRef__":true,"id":378},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"386":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"387":{"dropOn":{"__isSmartRef__":true,"id":276},"shallowCopy":{"__isSmartRef__":true,"id":303}},"388":{"_Position":{"__isSmartRef__":true,"id":389},"renderContextTable":{"__isSmartRef__":true,"id":390},"_Extent":{"__isSmartRef__":true,"id":391},"_Padding":{"__isSmartRef__":true,"id":392},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"389":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"390":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"391":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"392":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"393":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"394":{"morph":{"__isSmartRef__":true,"id":377},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"395":{"x":384,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"396":{"submorphs":[{"__isSmartRef__":true,"id":397}],"scripts":[],"shape":{"__isSmartRef__":true,"id":407},"renderContextTable":{"__isSmartRef__":true,"id":412},"eventHandler":{"__isSmartRef__":true,"id":413},"_ClipMode":"visible","derivationIds":[],"id":"F17786AE-5877-4F85-8C88-17A0443F31A6","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":414},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":1,"column":7,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":397},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":265},{"__isSmartRef__":true,"id":320},{"__isSmartRef__":true,"id":339},{"__isSmartRef__":true,"id":415},{"__isSmartRef__":true,"id":377},{"__isSmartRef__":true,"id":721},{"__isSmartRef__":true,"id":1150},{"__isSmartRef__":true,"id":2795}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14551},"__LivelyClassName__":"lively.morphic.Box"},"397":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":398},"renderContextTable":{"__isSmartRef__":true,"id":403},"eventHandler":{"__isSmartRef__":true,"id":404},"_ClipMode":"visible","derivationIds":[],"id":"9A88BC3B-8BD0-44B7-AEFC-9A136827B911","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":405},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":396},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":406},"__LivelyClassName__":"lively.morphic.Image"},"398":{"_Position":{"__isSmartRef__":true,"id":399},"renderContextTable":{"__isSmartRef__":true,"id":400},"_Extent":{"__isSmartRef__":true,"id":401},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/desert.png","_Padding":{"__isSmartRef__":true,"id":402},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"399":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"400":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"401":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"402":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"403":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"404":{"morph":{"__isSmartRef__":true,"id":397},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"405":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"406":{"dropOn":{"__isSmartRef__":true,"id":276},"shallowCopy":{"__isSmartRef__":true,"id":303}},"407":{"_Position":{"__isSmartRef__":true,"id":408},"renderContextTable":{"__isSmartRef__":true,"id":409},"_Extent":{"__isSmartRef__":true,"id":410},"_Padding":{"__isSmartRef__":true,"id":411},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"408":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"409":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"410":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"411":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"412":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"413":{"morph":{"__isSmartRef__":true,"id":396},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"414":{"x":336,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"415":{"submorphs":[{"__isSmartRef__":true,"id":416}],"scripts":[],"shape":{"__isSmartRef__":true,"id":447},"renderContextTable":{"__isSmartRef__":true,"id":452},"eventHandler":{"__isSmartRef__":true,"id":453},"_ClipMode":"visible","derivationIds":[],"id":"4FBED9F0-D32C-45E8-8A9D-C2879EDA8DE0","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":454},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":1,"column":6,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":416},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":246},{"__isSmartRef__":true,"id":265},{"__isSmartRef__":true,"id":320},{"__isSmartRef__":true,"id":455},{"__isSmartRef__":true,"id":396},{"__isSmartRef__":true,"id":702},{"__isSmartRef__":true,"id":721},{"__isSmartRef__":true,"id":1150}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14442},"__LivelyClassName__":"lively.morphic.Box"},"416":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":417},"renderContextTable":{"__isSmartRef__":true,"id":422},"eventHandler":{"__isSmartRef__":true,"id":423},"_ClipMode":"visible","derivationIds":[],"id":"BDB714B5-9FBC-42DC-AE74-B4C9A3C16B1A","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":424},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":415},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":425},"__LivelyClassName__":"lively.morphic.Image"},"417":{"_Position":{"__isSmartRef__":true,"id":418},"renderContextTable":{"__isSmartRef__":true,"id":419},"_Extent":{"__isSmartRef__":true,"id":420},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/desert.png","_Padding":{"__isSmartRef__":true,"id":421},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"418":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"419":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"420":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"421":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"422":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"423":{"morph":{"__isSmartRef__":true,"id":416},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"424":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"425":{"dropOn":{"__isSmartRef__":true,"id":426},"shallowCopy":{"__isSmartRef__":true,"id":438}},"426":{"varMapping":{"__isSmartRef__":true,"id":427},"source":"function dropOn(morph) {\n if (morph.tileWasDropped) {\n morph.tileWasDropped(this);\n } else {\n $super(morph);\n }\n }","funcProperties":{"__isSmartRef__":true,"id":446},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"427":{"this":{"__isSmartRef__":true,"id":428},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":442}},"428":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":429},"derivationIds":[null,"42BDA199-2F81-4641-9989-0B4BFFEC306D","8C1D70CD-BA13-4CFF-96ED-0A320E6AE989","653D9640-5923-4609-A7B6-066F333B1A6A","6CA192CA-7A75-4B7A-B67C-A8CCC81A6481","D02A7D60-55AE-44D7-97FD-47602643DB12","9CA62554-D75A-4727-9AEA-973B0D84C3A9","218799A7-4B98-4B38-BC2C-8A822A6E3566","2D582491-7658-4F36-914D-A6BCF84CC582","D9FF0DFF-BE91-4ABC-9017-D63DB44CE32B","94F8B05A-2D59-4005-B52F-EDB96AC23798","C11C2F8D-E901-4BB5-BD58-B172F1A65771"],"id":"DA346524-F1DB-492F-AAC7-B0EB6AF5768B","renderContextTable":{"__isSmartRef__":true,"id":434},"eventHandler":{"__isSmartRef__":true,"id":435},"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":436},"name":"DesertTile2","isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","partsBinMetaInfo":{"__isSmartRef__":true,"id":287},"moved":true,"isObstacle":false,"isTile":true,"_ClipMode":"visible","eventsAreIgnored":true,"grabbingEnabled":false,"draggingEnabled":false,"_Rotation":0,"_Scale":1.0040100200350561,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":437},"__LivelyClassName__":"lively.morphic.Image"},"429":{"_Position":{"__isSmartRef__":true,"id":430},"renderContextTable":{"__isSmartRef__":true,"id":431},"_Extent":{"__isSmartRef__":true,"id":432},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":433},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/desert.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"430":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"431":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"432":{"x":16,"y":16,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"433":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"434":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"435":{"morph":{"__isSmartRef__":true,"id":428},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"436":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"437":{"dropOn":{"__isSmartRef__":true,"id":426},"shallowCopy":{"__isSmartRef__":true,"id":438}},"438":{"varMapping":{"__isSmartRef__":true,"id":439},"source":"function shallowCopy() {\n var that = this\n var copy = ImageMorph.fromURL(this.getImageURL(), this.getBounds())\n Functions.own(this).each(function (ea) { copy[ea] = that[ea] })\n copy.isObstacle = that.isObstacle\n return copy\n }","funcProperties":{"__isSmartRef__":true,"id":440},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"439":{"this":{"__isSmartRef__":true,"id":428}},"440":{"timestamp":{"__isSmartRef__":true,"id":441},"user":"timfelgentreff","tags":[]},"441":{"isSerializedDate":true,"string":"Thu May 03 2012 13:42:16 GMT+0200 (CEST)"},"442":{"$super":{"__isSmartRef__":true,"id":443}},"443":{"varMapping":{"__isSmartRef__":true,"id":444},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":445},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"444":{"obj":{"__isSmartRef__":true,"id":428},"name":"dropOn"},"445":{},"446":{},"447":{"_Position":{"__isSmartRef__":true,"id":448},"renderContextTable":{"__isSmartRef__":true,"id":449},"_Extent":{"__isSmartRef__":true,"id":450},"_Padding":{"__isSmartRef__":true,"id":451},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"448":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"449":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"450":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"451":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"452":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"453":{"morph":{"__isSmartRef__":true,"id":415},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"454":{"x":288,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"455":{"submorphs":[{"__isSmartRef__":true,"id":456}],"scripts":[],"shape":{"__isSmartRef__":true,"id":466},"renderContextTable":{"__isSmartRef__":true,"id":471},"eventHandler":{"__isSmartRef__":true,"id":472},"_ClipMode":"visible","derivationIds":[],"id":"09A7B8AA-1809-415E-9AEC-D67DBDF25AD7","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":473},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":1,"column":5,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":456},"grabbingEnabled":false,"__obstacles":[],"charactersStandingHere":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":227},{"__isSmartRef__":true,"id":246},{"__isSmartRef__":true,"id":265},{"__isSmartRef__":true,"id":474},{"__isSmartRef__":true,"id":415},{"__isSmartRef__":true,"id":645},{"__isSmartRef__":true,"id":702},{"__isSmartRef__":true,"id":721}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14333},"__LivelyClassName__":"lively.morphic.Box"},"456":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":457},"renderContextTable":{"__isSmartRef__":true,"id":462},"eventHandler":{"__isSmartRef__":true,"id":463},"_ClipMode":"visible","derivationIds":[],"id":"B72F8E2A-0EA4-4844-BDFC-7EE4FD855CAC","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":464},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":455},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":465},"__LivelyClassName__":"lively.morphic.Image"},"457":{"_Position":{"__isSmartRef__":true,"id":458},"renderContextTable":{"__isSmartRef__":true,"id":459},"_Extent":{"__isSmartRef__":true,"id":460},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":461},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"458":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"459":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"460":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"461":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"462":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"463":{"morph":{"__isSmartRef__":true,"id":456},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"464":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"465":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"466":{"_Position":{"__isSmartRef__":true,"id":467},"renderContextTable":{"__isSmartRef__":true,"id":468},"_Extent":{"__isSmartRef__":true,"id":469},"_Padding":{"__isSmartRef__":true,"id":470},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"467":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"468":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"469":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"470":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"471":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"472":{"morph":{"__isSmartRef__":true,"id":455},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"473":{"x":240,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"474":{"submorphs":[{"__isSmartRef__":true,"id":475}],"scripts":[],"shape":{"__isSmartRef__":true,"id":485},"renderContextTable":{"__isSmartRef__":true,"id":490},"eventHandler":{"__isSmartRef__":true,"id":491},"_ClipMode":"visible","derivationIds":[],"id":"87F229D0-9E5D-4D40-8715-D19DC6D9AA10","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":492},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":1,"column":4,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":475},"grabbingEnabled":false,"charactersStandingHere":[],"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":208},{"__isSmartRef__":true,"id":227},{"__isSmartRef__":true,"id":246},{"__isSmartRef__":true,"id":493},{"__isSmartRef__":true,"id":455},{"__isSmartRef__":true,"id":626},{"__isSmartRef__":true,"id":645},{"__isSmartRef__":true,"id":702}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14224},"__LivelyClassName__":"lively.morphic.Box"},"475":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":476},"renderContextTable":{"__isSmartRef__":true,"id":481},"eventHandler":{"__isSmartRef__":true,"id":482},"_ClipMode":"visible","derivationIds":[],"id":"F0F88BC0-E4BB-4A0B-A4A4-F7343F00E8B1","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":483},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":474},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":484},"__LivelyClassName__":"lively.morphic.Image"},"476":{"_Position":{"__isSmartRef__":true,"id":477},"renderContextTable":{"__isSmartRef__":true,"id":478},"_Extent":{"__isSmartRef__":true,"id":479},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":480},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"477":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"478":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"479":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"480":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"481":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"482":{"morph":{"__isSmartRef__":true,"id":475},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"483":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"484":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"485":{"_Position":{"__isSmartRef__":true,"id":486},"renderContextTable":{"__isSmartRef__":true,"id":487},"_Extent":{"__isSmartRef__":true,"id":488},"_Padding":{"__isSmartRef__":true,"id":489},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"486":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"487":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"488":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"489":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"490":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"491":{"morph":{"__isSmartRef__":true,"id":474},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"492":{"x":192,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"493":{"submorphs":[{"__isSmartRef__":true,"id":494}],"scripts":[],"shape":{"__isSmartRef__":true,"id":504},"renderContextTable":{"__isSmartRef__":true,"id":509},"eventHandler":{"__isSmartRef__":true,"id":510},"_ClipMode":"visible","derivationIds":[],"id":"1B8D02C0-ADE7-4215-BEC2-C9437BCF257A","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":511},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":1,"column":3,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":494},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":189},{"__isSmartRef__":true,"id":208},{"__isSmartRef__":true,"id":227},{"__isSmartRef__":true,"id":512},{"__isSmartRef__":true,"id":474},{"__isSmartRef__":true,"id":607},{"__isSmartRef__":true,"id":626},{"__isSmartRef__":true,"id":645}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14115},"__LivelyClassName__":"lively.morphic.Box"},"494":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":495},"renderContextTable":{"__isSmartRef__":true,"id":500},"eventHandler":{"__isSmartRef__":true,"id":501},"_ClipMode":"visible","derivationIds":[],"id":"18B2FB47-8E7F-4297-9C98-89759D797426","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":502},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":493},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":503},"__LivelyClassName__":"lively.morphic.Image"},"495":{"_Position":{"__isSmartRef__":true,"id":496},"renderContextTable":{"__isSmartRef__":true,"id":497},"_Extent":{"__isSmartRef__":true,"id":498},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":499},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"496":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"497":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"498":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"499":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"500":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"501":{"morph":{"__isSmartRef__":true,"id":494},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"502":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"503":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"504":{"_Position":{"__isSmartRef__":true,"id":505},"renderContextTable":{"__isSmartRef__":true,"id":506},"_Extent":{"__isSmartRef__":true,"id":507},"_Padding":{"__isSmartRef__":true,"id":508},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"505":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"506":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"507":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"508":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"509":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"510":{"morph":{"__isSmartRef__":true,"id":493},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"511":{"x":144,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"512":{"submorphs":[{"__isSmartRef__":true,"id":513}],"scripts":[],"shape":{"__isSmartRef__":true,"id":523},"renderContextTable":{"__isSmartRef__":true,"id":528},"eventHandler":{"__isSmartRef__":true,"id":529},"_ClipMode":"visible","derivationIds":[],"id":"537CE847-6B0B-46D8-B755-E06BCD4DAA8D","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":530},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":1,"column":2,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":513},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":170},{"__isSmartRef__":true,"id":189},{"__isSmartRef__":true,"id":208},{"__isSmartRef__":true,"id":531},{"__isSmartRef__":true,"id":493},{"__isSmartRef__":true,"id":588},{"__isSmartRef__":true,"id":607},{"__isSmartRef__":true,"id":626}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14006},"__LivelyClassName__":"lively.morphic.Box"},"513":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":514},"renderContextTable":{"__isSmartRef__":true,"id":519},"eventHandler":{"__isSmartRef__":true,"id":520},"_ClipMode":"visible","derivationIds":[],"id":"9DDA6248-AC6A-438B-AED7-08612392A203","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":521},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":512},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":522},"__LivelyClassName__":"lively.morphic.Image"},"514":{"_Position":{"__isSmartRef__":true,"id":515},"renderContextTable":{"__isSmartRef__":true,"id":516},"_Extent":{"__isSmartRef__":true,"id":517},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":518},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"515":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"516":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"517":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"518":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"519":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"520":{"morph":{"__isSmartRef__":true,"id":513},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"521":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"522":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"523":{"_Position":{"__isSmartRef__":true,"id":524},"renderContextTable":{"__isSmartRef__":true,"id":525},"_Extent":{"__isSmartRef__":true,"id":526},"_Padding":{"__isSmartRef__":true,"id":527},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"524":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"525":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"526":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"527":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"528":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"529":{"morph":{"__isSmartRef__":true,"id":512},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"530":{"x":96,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"531":{"submorphs":[{"__isSmartRef__":true,"id":532}],"scripts":[],"shape":{"__isSmartRef__":true,"id":542},"renderContextTable":{"__isSmartRef__":true,"id":547},"eventHandler":{"__isSmartRef__":true,"id":548},"_ClipMode":"visible","derivationIds":[],"id":"75D41386-317C-4BA3-B79D-2F159000B0EF","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":549},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":1,"column":1,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":532},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":3},{"__isSmartRef__":true,"id":170},{"__isSmartRef__":true,"id":189},{"__isSmartRef__":true,"id":550},{"__isSmartRef__":true,"id":512},{"__isSmartRef__":true,"id":569},{"__isSmartRef__":true,"id":588},{"__isSmartRef__":true,"id":607}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13897},"__LivelyClassName__":"lively.morphic.Box"},"532":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":533},"renderContextTable":{"__isSmartRef__":true,"id":538},"eventHandler":{"__isSmartRef__":true,"id":539},"_ClipMode":"visible","derivationIds":[],"id":"28AAECBC-526D-477E-8993-6A872B37C80F","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":540},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":531},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":541},"__LivelyClassName__":"lively.morphic.Image"},"533":{"_Position":{"__isSmartRef__":true,"id":534},"renderContextTable":{"__isSmartRef__":true,"id":535},"_Extent":{"__isSmartRef__":true,"id":536},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":537},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"534":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"535":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"536":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"537":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"538":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"539":{"morph":{"__isSmartRef__":true,"id":532},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"540":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"541":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"542":{"_Position":{"__isSmartRef__":true,"id":543},"renderContextTable":{"__isSmartRef__":true,"id":544},"_Extent":{"__isSmartRef__":true,"id":545},"_Padding":{"__isSmartRef__":true,"id":546},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"543":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"544":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"545":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"546":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"547":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"548":{"morph":{"__isSmartRef__":true,"id":531},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"549":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"550":{"submorphs":[{"__isSmartRef__":true,"id":551}],"scripts":[],"shape":{"__isSmartRef__":true,"id":561},"renderContextTable":{"__isSmartRef__":true,"id":566},"eventHandler":{"__isSmartRef__":true,"id":567},"_ClipMode":"visible","derivationIds":[],"id":"23EEA404-EB59-4E83-A0AC-314F6CC04110","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":568},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":1,"column":0,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":551},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":3},{"__isSmartRef__":true,"id":170},{"__isSmartRef__":true,"id":531},{"__isSmartRef__":true,"id":569},{"__isSmartRef__":true,"id":588}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13788},"__LivelyClassName__":"lively.morphic.Box"},"551":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":552},"renderContextTable":{"__isSmartRef__":true,"id":557},"eventHandler":{"__isSmartRef__":true,"id":558},"_ClipMode":"visible","derivationIds":[],"id":"7EAED35E-2ED7-472C-B6AF-EDEF81614E68","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":559},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":550},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":560},"__LivelyClassName__":"lively.morphic.Image"},"552":{"_Position":{"__isSmartRef__":true,"id":553},"renderContextTable":{"__isSmartRef__":true,"id":554},"_Extent":{"__isSmartRef__":true,"id":555},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":556},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"553":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"554":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"555":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"556":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"557":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"558":{"morph":{"__isSmartRef__":true,"id":551},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"559":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"560":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"561":{"_Position":{"__isSmartRef__":true,"id":562},"renderContextTable":{"__isSmartRef__":true,"id":563},"_Extent":{"__isSmartRef__":true,"id":564},"_Padding":{"__isSmartRef__":true,"id":565},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"562":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"563":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"564":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"565":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"566":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"567":{"morph":{"__isSmartRef__":true,"id":550},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"568":{"x":0,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"569":{"submorphs":[{"__isSmartRef__":true,"id":570}],"scripts":[],"shape":{"__isSmartRef__":true,"id":580},"renderContextTable":{"__isSmartRef__":true,"id":585},"eventHandler":{"__isSmartRef__":true,"id":586},"_ClipMode":"visible","derivationIds":[],"id":"F865DB5E-0FCB-4AAC-AFD6-699CE7F2EDE7","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":587},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":2,"column":0,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":570},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":550},{"__isSmartRef__":true,"id":531},{"__isSmartRef__":true,"id":588},{"__isSmartRef__":true,"id":5432},{"__isSmartRef__":true,"id":5451}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13679},"__LivelyClassName__":"lively.morphic.Box"},"570":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":571},"renderContextTable":{"__isSmartRef__":true,"id":576},"eventHandler":{"__isSmartRef__":true,"id":577},"_ClipMode":"visible","derivationIds":[],"id":"794A2FF3-0472-4BD8-83FF-F433100B147C","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":578},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":569},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":579},"__LivelyClassName__":"lively.morphic.Image"},"571":{"_Position":{"__isSmartRef__":true,"id":572},"renderContextTable":{"__isSmartRef__":true,"id":573},"_Extent":{"__isSmartRef__":true,"id":574},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":575},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"572":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"573":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"574":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"575":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"576":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"577":{"morph":{"__isSmartRef__":true,"id":570},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"578":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"579":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"580":{"_Position":{"__isSmartRef__":true,"id":581},"renderContextTable":{"__isSmartRef__":true,"id":582},"_Extent":{"__isSmartRef__":true,"id":583},"_Padding":{"__isSmartRef__":true,"id":584},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"581":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"582":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"583":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"584":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"585":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"586":{"morph":{"__isSmartRef__":true,"id":569},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"587":{"x":0,"y":96,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"588":{"submorphs":[{"__isSmartRef__":true,"id":589}],"scripts":[],"shape":{"__isSmartRef__":true,"id":599},"renderContextTable":{"__isSmartRef__":true,"id":604},"eventHandler":{"__isSmartRef__":true,"id":605},"_ClipMode":"visible","derivationIds":[],"id":"54E7642A-3F09-4D12-9AD9-0A2C90E58F1E","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":606},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":2,"column":1,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":589},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":550},{"__isSmartRef__":true,"id":531},{"__isSmartRef__":true,"id":512},{"__isSmartRef__":true,"id":569},{"__isSmartRef__":true,"id":607},{"__isSmartRef__":true,"id":5432},{"__isSmartRef__":true,"id":5451},{"__isSmartRef__":true,"id":12723}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13570},"__LivelyClassName__":"lively.morphic.Box"},"589":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":590},"renderContextTable":{"__isSmartRef__":true,"id":595},"eventHandler":{"__isSmartRef__":true,"id":596},"_ClipMode":"visible","derivationIds":[],"id":"5529A56E-E4A3-4325-9C73-E0D804692193","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":597},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":588},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":598},"__LivelyClassName__":"lively.morphic.Image"},"590":{"_Position":{"__isSmartRef__":true,"id":591},"renderContextTable":{"__isSmartRef__":true,"id":592},"_Extent":{"__isSmartRef__":true,"id":593},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":594},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"591":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"592":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"593":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"594":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"595":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"596":{"morph":{"__isSmartRef__":true,"id":589},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"597":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"598":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"599":{"_Position":{"__isSmartRef__":true,"id":600},"renderContextTable":{"__isSmartRef__":true,"id":601},"_Extent":{"__isSmartRef__":true,"id":602},"_Padding":{"__isSmartRef__":true,"id":603},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"600":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"601":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"602":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"603":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"604":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"605":{"morph":{"__isSmartRef__":true,"id":588},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"606":{"x":48,"y":96,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"607":{"submorphs":[{"__isSmartRef__":true,"id":608}],"scripts":[],"shape":{"__isSmartRef__":true,"id":618},"renderContextTable":{"__isSmartRef__":true,"id":623},"eventHandler":{"__isSmartRef__":true,"id":624},"_ClipMode":"visible","derivationIds":[],"id":"209C0F26-1236-44C1-A313-A7A5D6FA8E05","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":625},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":2,"column":2,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":608},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":531},{"__isSmartRef__":true,"id":512},{"__isSmartRef__":true,"id":493},{"__isSmartRef__":true,"id":588},{"__isSmartRef__":true,"id":626},{"__isSmartRef__":true,"id":5451},{"__isSmartRef__":true,"id":12723},{"__isSmartRef__":true,"id":1599}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13461},"__LivelyClassName__":"lively.morphic.Box"},"608":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":609},"renderContextTable":{"__isSmartRef__":true,"id":614},"eventHandler":{"__isSmartRef__":true,"id":615},"_ClipMode":"visible","derivationIds":[],"id":"E2A81BD9-5A97-4B08-AC3A-62842AFFACDA","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":616},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":607},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":617},"__LivelyClassName__":"lively.morphic.Image"},"609":{"_Position":{"__isSmartRef__":true,"id":610},"renderContextTable":{"__isSmartRef__":true,"id":611},"_Extent":{"__isSmartRef__":true,"id":612},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":613},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"610":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"611":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"612":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"613":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"614":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"615":{"morph":{"__isSmartRef__":true,"id":608},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"616":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"617":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"618":{"_Position":{"__isSmartRef__":true,"id":619},"renderContextTable":{"__isSmartRef__":true,"id":620},"_Extent":{"__isSmartRef__":true,"id":621},"_Padding":{"__isSmartRef__":true,"id":622},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"619":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"620":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"621":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"622":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"623":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"624":{"morph":{"__isSmartRef__":true,"id":607},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"625":{"x":96,"y":96,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"626":{"submorphs":[{"__isSmartRef__":true,"id":627}],"scripts":[],"shape":{"__isSmartRef__":true,"id":637},"renderContextTable":{"__isSmartRef__":true,"id":642},"eventHandler":{"__isSmartRef__":true,"id":643},"_ClipMode":"visible","derivationIds":[],"id":"E4C3A2B4-00B6-4703-9F3C-7AE2DE0F0161","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":644},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":2,"column":3,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":627},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":512},{"__isSmartRef__":true,"id":493},{"__isSmartRef__":true,"id":474},{"__isSmartRef__":true,"id":607},{"__isSmartRef__":true,"id":645},{"__isSmartRef__":true,"id":12723},{"__isSmartRef__":true,"id":1599},{"__isSmartRef__":true,"id":1580}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13352},"__LivelyClassName__":"lively.morphic.Box"},"627":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":628},"renderContextTable":{"__isSmartRef__":true,"id":633},"eventHandler":{"__isSmartRef__":true,"id":634},"_ClipMode":"visible","derivationIds":[],"id":"7D703D20-E695-45CF-A6D9-CEC8723FA6F0","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":635},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":626},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":636},"__LivelyClassName__":"lively.morphic.Image"},"628":{"_Position":{"__isSmartRef__":true,"id":629},"renderContextTable":{"__isSmartRef__":true,"id":630},"_Extent":{"__isSmartRef__":true,"id":631},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":632},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"629":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"630":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"631":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"632":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"633":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"634":{"morph":{"__isSmartRef__":true,"id":627},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"635":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"636":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"637":{"_Position":{"__isSmartRef__":true,"id":638},"renderContextTable":{"__isSmartRef__":true,"id":639},"_Extent":{"__isSmartRef__":true,"id":640},"_Padding":{"__isSmartRef__":true,"id":641},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"638":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"639":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"640":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"641":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"642":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"643":{"morph":{"__isSmartRef__":true,"id":626},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"644":{"x":144,"y":96,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"645":{"submorphs":[{"__isSmartRef__":true,"id":646}],"scripts":[],"shape":{"__isSmartRef__":true,"id":694},"renderContextTable":{"__isSmartRef__":true,"id":699},"eventHandler":{"__isSmartRef__":true,"id":700},"_ClipMode":"visible","derivationIds":[],"id":"B25FE917-8FDC-4E8E-8B0C-F2C9903D0DEB","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":701},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":2,"column":4,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":646},"grabbingEnabled":false,"charactersStandingHere":[],"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":493},{"__isSmartRef__":true,"id":474},{"__isSmartRef__":true,"id":455},{"__isSmartRef__":true,"id":626},{"__isSmartRef__":true,"id":702},{"__isSmartRef__":true,"id":1599},{"__isSmartRef__":true,"id":1580},{"__isSmartRef__":true,"id":2084}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13243},"__LivelyClassName__":"lively.morphic.Box"},"646":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":647},"renderContextTable":{"__isSmartRef__":true,"id":652},"eventHandler":{"__isSmartRef__":true,"id":653},"_ClipMode":"visible","derivationIds":[],"id":"7D711E56-45C3-4D19-BB17-26BA440FFC75","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":654},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":645},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":655},"__LivelyClassName__":"lively.morphic.Image"},"647":{"_Position":{"__isSmartRef__":true,"id":648},"renderContextTable":{"__isSmartRef__":true,"id":649},"_Extent":{"__isSmartRef__":true,"id":650},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass_some_flowers.png","_Padding":{"__isSmartRef__":true,"id":651},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"648":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"649":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"650":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"651":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"652":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"653":{"morph":{"__isSmartRef__":true,"id":646},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"654":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"655":{"dropOn":{"__isSmartRef__":true,"id":656},"shallowCopy":{"__isSmartRef__":true,"id":685}},"656":{"varMapping":{"__isSmartRef__":true,"id":657},"source":"function dropOn(morph) {\n if (morph.tileWasDropped) {\n morph.tileWasDropped(this);\n } else {\n $super(morph);\n }\n }","funcProperties":{"__isSmartRef__":true,"id":693},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"657":{"this":{"__isSmartRef__":true,"id":658},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":689}},"658":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":659},"derivationIds":[null,"7D76D61C-A922-4869-8D85-5B3DC0C674BD","39E0E916-BCCA-45D0-BF29-D84D17EBEC9E","76C7EE0E-5E27-413B-A7D6-F5798BC42BC7","0B8C76F8-0697-48DA-9656-723C14C7327C","5E829688-2FA2-42C9-B41B-C4EBF29448B7","E1BA01C6-E6A6-40D3-A891-13C200863993","133BAF87-4F43-4DCB-86E6-DE840C1A8C69","B3EDF6A1-072F-4359-BC67-336400E04EF0","95D322C7-A211-4483-A745-D04B6A20A523","5FD5E90F-938E-4EFA-98EC-B69BCD2306FE","0B3B6329-D614-43B3-9B53-3387E3467764"],"id":"5043876E-4122-490D-9EC9-288AFB15D52D","renderContextTable":{"__isSmartRef__":true,"id":664},"eventHandler":{"__isSmartRef__":true,"id":665},"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":666},"name":"FlowerGrassTile","showsHalos":false,"isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__SourceModuleName__":"Global.lively.morphic.Widgets","partsBinMetaInfo":{"__isSmartRef__":true,"id":667},"moved":true,"isObstacle":false,"isTile":true,"_ClipMode":"visible","eventsAreIgnored":true,"grabbingEnabled":false,"draggingEnabled":false,"_Rotation":0,"_Scale":1.0040100200350561,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":684},"__LivelyClassName__":"lively.morphic.Image"},"659":{"_Position":{"__isSmartRef__":true,"id":660},"renderContextTable":{"__isSmartRef__":true,"id":661},"_Extent":{"__isSmartRef__":true,"id":662},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":663},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass_some_flowers.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"660":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"661":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"662":{"x":16,"y":16,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"663":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"664":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"665":{"morph":{"__isSmartRef__":true,"id":658},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"666":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"667":{"partName":"FlowerGrassTile","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"undefined","changes":[{"__isSmartRef__":true,"id":668},{"__isSmartRef__":true,"id":670},{"__isSmartRef__":true,"id":672},{"__isSmartRef__":true,"id":674},{"__isSmartRef__":true,"id":676},{"__isSmartRef__":true,"id":678},{"__isSmartRef__":true,"id":680},{"__isSmartRef__":true,"id":682}],"migrationLevel":4,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"668":{"date":{"__isSmartRef__":true,"id":669},"author":"tessi","message":"","id":"132E4BD9-EC26-4CCC-8CD5-D86C60CF385C"},"669":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:35:47 GMT+0200 (CEST)"},"670":{"date":{"__isSmartRef__":true,"id":671},"author":"tessi","message":"","id":"D9AF3878-EAC4-433D-8258-DC80517AA6B1"},"671":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:35:04 GMT+0200 (CEST)"},"672":{"date":{"__isSmartRef__":true,"id":673},"author":"timfelgentreff","message":"","id":"AFE5FD8B-7758-45D2-B21C-14607C3F0D5E"},"673":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:31:45 GMT+0200 (CEST)"},"674":{"date":{"__isSmartRef__":true,"id":675},"author":"tessi","message":"","id":"43431C78-F979-4A3D-B949-CFB4CD123812"},"675":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:16:35 GMT+0200 (CEST)"},"676":{"date":{"__isSmartRef__":true,"id":677},"author":"timfelgentreff","message":"no comment","id":"427F616A-557E-48DA-B2A3-9D312846BFA8"},"677":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:06 GMT+0200 (CEST)"},"678":{"date":{"__isSmartRef__":true,"id":679},"author":"timfelgentreff","message":"no comment","id":"89D17F78-5164-40A2-8D18-6864377CAE04"},"679":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:37:16 GMT+0200 (CEST)"},"680":{"date":{"__isSmartRef__":true,"id":681},"author":"timfelgentreff","message":"no comment","id":"02E3CCCD-E630-40A9-BB8B-8D4F60458311"},"681":{"isSerializedDate":true,"string":"Thu May 03 2012 13:42:42 GMT+0200 (CEST)"},"682":{"date":{"__isSmartRef__":true,"id":683},"author":"tessi","message":"no comment","id":"4BC7DDF9-89A2-4A2A-8A37-97CECF82DF21"},"683":{"isSerializedDate":true,"string":"Fri May 04 2012 17:02:08 GMT+0200 (CEST)"},"684":{"dropOn":{"__isSmartRef__":true,"id":656},"shallowCopy":{"__isSmartRef__":true,"id":685}},"685":{"varMapping":{"__isSmartRef__":true,"id":686},"source":"function shallowCopy() {\n var that = this\n var copy = ImageMorph.fromURL(this.getImageURL(), this.getBounds())\n Functions.own(this).each(function (ea) { copy[ea] = that[ea] })\n copy.isObstacle = that.isObstacle\n return copy\n }","funcProperties":{"__isSmartRef__":true,"id":687},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"686":{"this":{"__isSmartRef__":true,"id":658}},"687":{"timestamp":{"__isSmartRef__":true,"id":688},"user":"timfelgentreff","tags":[]},"688":{"isSerializedDate":true,"string":"Thu May 03 2012 13:41:47 GMT+0200 (CEST)"},"689":{"$super":{"__isSmartRef__":true,"id":690}},"690":{"varMapping":{"__isSmartRef__":true,"id":691},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":692},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"691":{"obj":{"__isSmartRef__":true,"id":658},"name":"dropOn"},"692":{},"693":{},"694":{"_Position":{"__isSmartRef__":true,"id":695},"renderContextTable":{"__isSmartRef__":true,"id":696},"_Extent":{"__isSmartRef__":true,"id":697},"_Padding":{"__isSmartRef__":true,"id":698},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"695":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"696":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"697":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"698":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"699":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"700":{"morph":{"__isSmartRef__":true,"id":645},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"701":{"x":192,"y":96,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"702":{"submorphs":[{"__isSmartRef__":true,"id":703}],"scripts":[],"shape":{"__isSmartRef__":true,"id":713},"renderContextTable":{"__isSmartRef__":true,"id":718},"eventHandler":{"__isSmartRef__":true,"id":719},"_ClipMode":"visible","derivationIds":[],"id":"DB4E193D-3EB5-4906-81A0-9F02A25EB459","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":720},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":2,"column":5,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":703},"grabbingEnabled":false,"__obstacles":[],"charactersStandingHere":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":474},{"__isSmartRef__":true,"id":455},{"__isSmartRef__":true,"id":415},{"__isSmartRef__":true,"id":645},{"__isSmartRef__":true,"id":721},{"__isSmartRef__":true,"id":1580},{"__isSmartRef__":true,"id":2084},{"__isSmartRef__":true,"id":1278}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13134},"__LivelyClassName__":"lively.morphic.Box"},"703":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":704},"renderContextTable":{"__isSmartRef__":true,"id":709},"eventHandler":{"__isSmartRef__":true,"id":710},"_ClipMode":"visible","derivationIds":[],"id":"ECA5CC01-2C87-4F97-BE79-4BDC83B97193","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":711},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":702},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":712},"__LivelyClassName__":"lively.morphic.Image"},"704":{"_Position":{"__isSmartRef__":true,"id":705},"renderContextTable":{"__isSmartRef__":true,"id":706},"_Extent":{"__isSmartRef__":true,"id":707},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":708},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"705":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"706":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"707":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"708":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"709":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"710":{"morph":{"__isSmartRef__":true,"id":703},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"711":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"712":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"713":{"_Position":{"__isSmartRef__":true,"id":714},"renderContextTable":{"__isSmartRef__":true,"id":715},"_Extent":{"__isSmartRef__":true,"id":716},"_Padding":{"__isSmartRef__":true,"id":717},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"714":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"715":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"716":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"717":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"718":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"719":{"morph":{"__isSmartRef__":true,"id":702},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"720":{"x":240,"y":96,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"721":{"submorphs":[{"__isSmartRef__":true,"id":722}],"scripts":[],"shape":{"__isSmartRef__":true,"id":732},"renderContextTable":{"__isSmartRef__":true,"id":737},"eventHandler":{"__isSmartRef__":true,"id":738},"_ClipMode":"visible","derivationIds":[],"id":"1B3E83C9-D03F-4275-88FF-143AAE732D2C","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":739},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":2,"column":6,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":722},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":740}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1471},"__LivelyClassName__":"lively.morphic.Box"},"722":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":723},"renderContextTable":{"__isSmartRef__":true,"id":728},"eventHandler":{"__isSmartRef__":true,"id":729},"_ClipMode":"visible","derivationIds":[],"id":"9977651E-8045-498B-9F78-BDF048F86788","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":730},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":721},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":731},"__LivelyClassName__":"lively.morphic.Image"},"723":{"_Position":{"__isSmartRef__":true,"id":724},"renderContextTable":{"__isSmartRef__":true,"id":725},"_Extent":{"__isSmartRef__":true,"id":726},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/desert.png","_Padding":{"__isSmartRef__":true,"id":727},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"724":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"725":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"726":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"727":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"728":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"729":{"morph":{"__isSmartRef__":true,"id":722},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"730":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"731":{"dropOn":{"__isSmartRef__":true,"id":426},"shallowCopy":{"__isSmartRef__":true,"id":438}},"732":{"_Position":{"__isSmartRef__":true,"id":733},"renderContextTable":{"__isSmartRef__":true,"id":734},"_Extent":{"__isSmartRef__":true,"id":735},"_Padding":{"__isSmartRef__":true,"id":736},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"733":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"734":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"735":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"736":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"737":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"738":{"morph":{"__isSmartRef__":true,"id":721},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"739":{"x":288,"y":96,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"740":{"submorphs":[{"__isSmartRef__":true,"id":741}],"scripts":[],"id":"5581C9CE-4D3B-40B4-A89F-55FA996A4476","shape":{"__isSmartRef__":true,"id":779},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":785},"showsHalos":false,"name":"Thing1","partsBinMetaInfo":{"__isSmartRef__":true,"id":786},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":861},"eventHandler":{"__isSmartRef__":true,"id":862},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","DF863BAB-9987-4611-BCD2-DE9FDCE7D3B5","768ED97D-1E05-415B-AB3F-B6495AC603A0","5A0ECA63-F6E2-4E35-B9A2-75DE2A4C4158","3B4EDC8A-0E99-4F45-A6D5-5CCE7E75BC88","1A900574-7D84-44F3-BB9D-1A1E26FDDB9B","383B3B54-4D0D-42E5-88C6-460045549029","EFC22A04-8B3C-48A8-9C5F-1EBC66DFD6D6","52D7E09F-EA1F-44D5-A893-F72A70D40429","CAC332B2-DA3A-4534-B3C7-E03D31DE9D2C","2CDD083E-3AB7-4BB9-B6D1-A70716226BDF","B4327E15-A3DA-44A6-89B0-71AFB39350AA","D2E0258B-443A-444C-8640-C595ECC95152","6C8F2B5B-D9E4-4742-B4A1-DA08C3B66E3A","34B4B715-9D86-4D1A-921B-5340CDC05F73","4CA32288-0E12-49F5-A485-634D7D327287","5941FCB6-8C08-405A-B2C2-D84C19F702E2","7BA243A0-B441-41E9-B4AE-A18EDB0F9A8A","C1A510A2-576D-49C6-89EA-56953C5D6FC1","372DAC3D-D2F5-47C2-8538-A2EEE9D3A073","6E3BFF0C-E4EB-4D35-959F-9C12F885012C","5D157E3A-5D4F-4C0A-888F-5FE24CBFC6E5","8C8C94D0-B291-47D8-8B8D-F606AF1A59B1","4794D8F3-DD25-4AFF-A687-079AB3EB7B71","324C5BEC-5664-49AD-AE50-4F3AD40CB933"],"partTests":{"__isSmartRef__":true,"id":863},"isBeingDragged":false,"moved":true,"_ClipMode":"visible","tile":{"__isSmartRef__":true,"id":868},"thing":{"__isSmartRef__":true,"id":1121},"prevScroll":[0,0],"occludedTiles":[{"__isSmartRef__":true,"id":868},{"__isSmartRef__":true,"id":1150},{"__isSmartRef__":true,"id":1278},{"__isSmartRef__":true,"id":721}],"_Rotation":0,"_Scale":1.002003004005006,"owner":{"__isSmartRef__":true,"id":868},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1406},"__LivelyClassName__":"lively.morphic.Box"},"741":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":742},"derivationIds":[null,"BAB9B97E-AD98-4F56-A972-566A3E629B8C","E4F22AE4-EE21-49B5-8C28-CA286BEEB3DB","BF57EBFA-7758-4140-A230-374EC4044FF8","50C9D870-38AC-4D0E-8D2A-1A096F2342FA","6F16581D-421C-41DB-91F7-631AC69608F0","C7CAA681-3DF1-470F-B89C-B6DB193302E7","0F55A9D5-A7B9-430A-8E74-2936AF458B62","75A38F54-FB28-44BE-BBF2-7E16DA399411","7F844676-0F98-44EE-8F0D-054418464953","446F8732-10D2-43C1-AB0E-8F7EA9839C4C","26A7851A-878C-4E3F-9E8D-736240BE45AB","6764706B-5EDA-4AFB-8D1B-DEC368259E38"],"id":"73916395-F459-4AAD-8D0C-DE84FB7A7135","renderContextTable":{"__isSmartRef__":true,"id":747},"eventHandler":{"__isSmartRef__":true,"id":748},"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":749},"name":"WaterTile","showsHalos":false,"isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"partsBinMetaInfo":{"__isSmartRef__":true,"id":750},"__SourceModuleName__":"Global.lively.morphic.Widgets","moved":true,"isObstacle":true,"isTile":true,"_ClipMode":"visible","eventsAreIgnored":true,"grabbingEnabled":false,"draggingEnabled":false,"owner":{"__isSmartRef__":true,"id":740},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":767},"__LivelyClassName__":"lively.morphic.Image"},"742":{"_Position":{"__isSmartRef__":true,"id":743},"renderContextTable":{"__isSmartRef__":true,"id":744},"_Extent":{"__isSmartRef__":true,"id":745},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":746},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/water.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"743":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"744":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"745":{"x":16,"y":16,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"746":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"747":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"748":{"morph":{"__isSmartRef__":true,"id":741},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"749":{"x":20.414116675429227,"y":51.82151149914836,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"750":{"partName":"WaterTile","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"Poorly animated water tile","changes":[{"__isSmartRef__":true,"id":751},{"__isSmartRef__":true,"id":753},{"__isSmartRef__":true,"id":755},{"__isSmartRef__":true,"id":757},{"__isSmartRef__":true,"id":759},{"__isSmartRef__":true,"id":761},{"__isSmartRef__":true,"id":763},{"__isSmartRef__":true,"id":765}],"migrationLevel":4,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"751":{"date":{"__isSmartRef__":true,"id":752},"author":"tessi","message":"no comment","id":"4A71998A-B2EE-43E1-83E5-8F9BA6639999"},"752":{"isSerializedDate":true,"string":"Fri May 04 2012 17:02:47 GMT+0200 (CEST)"},"753":{"date":{"__isSmartRef__":true,"id":754},"author":"timfelgentreff","message":"no comment","id":"F3A29087-E330-440F-AD78-7031CAC40B1C"},"754":{"isSerializedDate":true,"string":"Thu May 03 2012 13:43:01 GMT+0200 (CEST)"},"755":{"date":{"__isSmartRef__":true,"id":756},"author":"timfelgentreff","message":"no comment","id":"C23265AD-054C-4AB4-A5F2-AFA8DD44C65D"},"756":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:38:17 GMT+0200 (CEST)"},"757":{"date":{"__isSmartRef__":true,"id":758},"author":"timfelgentreff","message":"no comment","id":"10E2B9F7-C312-4B87-B32E-E02E93CFD07D"},"758":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:34:16 GMT+0200 (CEST)"},"759":{"date":{"__isSmartRef__":true,"id":760},"author":"tessi","message":"","id":"CFE66672-00C1-49A4-BAFA-E5B2460B7EF0"},"760":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:16:57 GMT+0200 (CEST)"},"761":{"date":{"__isSmartRef__":true,"id":762},"author":"tessi","message":"","id":"652C1268-855A-4FB8-8C63-7B21F6AB3E5D"},"762":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:33:12 GMT+0200 (CEST)"},"763":{"date":{"__isSmartRef__":true,"id":764},"author":"tessi","message":"","id":"FC39D8E7-0A1B-4078-9695-DA3560AF285D"},"764":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:54:58 GMT+0200 (CEST)"},"765":{"date":{"__isSmartRef__":true,"id":766},"author":"tessi","message":"","id":"D92B3F71-C8A9-44B8-A42F-FDEC9F4DFB95"},"766":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:47:13 GMT+0200 (CEST)"},"767":{"dropOn":{"__isSmartRef__":true,"id":768},"shallowCopy":{"__isSmartRef__":true,"id":775}},"768":{"varMapping":{"__isSmartRef__":true,"id":769},"source":"function dropOn(morph) {\n if (morph.tileWasDropped) {\n morph.tileWasDropped(this);\n } else {\n $super(morph);\n }\n }","funcProperties":{"__isSmartRef__":true,"id":774},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"769":{"this":{"__isSmartRef__":true,"id":741},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":770}},"770":{"$super":{"__isSmartRef__":true,"id":771}},"771":{"varMapping":{"__isSmartRef__":true,"id":772},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":773},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"772":{"obj":{"__isSmartRef__":true,"id":741},"name":"dropOn"},"773":{},"774":{},"775":{"varMapping":{"__isSmartRef__":true,"id":776},"source":"function shallowCopy() {\n var that = this\n var copy = ImageMorph.fromURL(this.getImageURL(), this.getBounds())\n Functions.own(this).each(function (ea) { copy[ea] = that[ea] })\n copy.isObstacle = that.isObstacle\n return copy\n }","funcProperties":{"__isSmartRef__":true,"id":777},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"776":{"this":{"__isSmartRef__":true,"id":741}},"777":{"timestamp":{"__isSmartRef__":true,"id":778},"user":"timfelgentreff","tags":[]},"778":{"isSerializedDate":true,"string":"Thu May 03 2012 13:42:26 GMT+0200 (CEST)"},"779":{"position":{"__isSmartRef__":true,"id":780},"_Extent":{"__isSmartRef__":true,"id":781},"_BorderWidth":1.148,"_BorderColor":{"__isSmartRef__":true,"id":782},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":783},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":784},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"780":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"781":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"782":{"r":0,"g":0,"b":0,"a":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"783":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"784":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"785":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"786":{"partsSpaceName":"PartsBin/FreedomOfSpeech","__SourceModuleName__":"Global.lively.PartsBin","comment":"A thing that renders itself onto a tile and tells the occluded tiles about the obstacle","migrationLevel":4,"partName":"Thing","changes":[{"__isSmartRef__":true,"id":787},{"__isSmartRef__":true,"id":789},{"__isSmartRef__":true,"id":791},{"__isSmartRef__":true,"id":793},{"__isSmartRef__":true,"id":795},{"__isSmartRef__":true,"id":797},{"__isSmartRef__":true,"id":799},{"__isSmartRef__":true,"id":801},{"__isSmartRef__":true,"id":803},{"__isSmartRef__":true,"id":805},{"__isSmartRef__":true,"id":807},{"__isSmartRef__":true,"id":809},{"__isSmartRef__":true,"id":811},{"__isSmartRef__":true,"id":813},{"__isSmartRef__":true,"id":815},{"__isSmartRef__":true,"id":817},{"__isSmartRef__":true,"id":819},{"__isSmartRef__":true,"id":821},{"__isSmartRef__":true,"id":823},{"__isSmartRef__":true,"id":825},{"__isSmartRef__":true,"id":827},{"__isSmartRef__":true,"id":829},{"__isSmartRef__":true,"id":831},{"__isSmartRef__":true,"id":833},{"__isSmartRef__":true,"id":835},{"__isSmartRef__":true,"id":837},{"__isSmartRef__":true,"id":839},{"__isSmartRef__":true,"id":841},{"__isSmartRef__":true,"id":843},{"__isSmartRef__":true,"id":845},{"__isSmartRef__":true,"id":847},{"__isSmartRef__":true,"id":849},{"__isSmartRef__":true,"id":851},{"__isSmartRef__":true,"id":853},{"__isSmartRef__":true,"id":855},{"__isSmartRef__":true,"id":857},{"__isSmartRef__":true,"id":859}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"787":{"date":{"__isSmartRef__":true,"id":788},"author":"tessi","message":"cannot set color to null","id":"C0274811-3BE8-44E9-8C87-99D1F426E9D7"},"788":{"isSerializedDate":true,"string":"Thu May 03 2012 15:21:30 GMT+0200 (CEST)"},"789":{"date":{"__isSmartRef__":true,"id":790},"author":"tessi","message":"reset() sets devStyle; replace get() calls with game() and map()","id":"2AB88C79-A426-4144-9134-5E0717044086"},"790":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:28:29 GMT+0200 (CEST)"},"791":{"date":{"__isSmartRef__":true,"id":792},"author":"timfelgentreff","message":"no comment","id":"49C8495C-85F0-4B00-AB8B-0086DC167B81"},"792":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:35:31 GMT+0200 (CEST)"},"793":{"date":{"__isSmartRef__":true,"id":794},"author":"timfelgentreff","message":"setExtent before setPosition","id":"6FDDC46A-4F38-43E9-9258-5570855703AE"},"794":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:01:01 GMT+0200 (CEST)"},"795":{"date":{"__isSmartRef__":true,"id":796},"author":"timfelgentreff","message":"blue border","id":"BA7A047B-D7E3-4AB9-95E0-0AD19B254904"},"796":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:59:59 GMT+0200 (CEST)"},"797":{"date":{"__isSmartRef__":true,"id":798},"author":"timfelgentreff","message":"","id":"F01F7BC6-E59F-4B63-8A3D-10C3AC3E34FD"},"798":{"isSerializedDate":true,"string":"Fri Apr 20 2012 08:22:08 GMT+0200 (CEST)"},"799":{"date":{"__isSmartRef__":true,"id":800},"author":"timfelgentreff","message":"","id":"B5D9BC0C-15F0-4AE7-884B-48515F6A030E"},"800":{"isSerializedDate":true,"string":"Thu Apr 19 2012 18:08:19 GMT+0200 (CEST)"},"801":{"date":{"__isSmartRef__":true,"id":802},"author":"timfelgentreff","message":"","id":"07EE540F-D786-49CC-8DD0-56F6B3AC6716"},"802":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:43:41 GMT+0200 (CEST)"},"803":{"date":{"__isSmartRef__":true,"id":804},"author":"timfelgentreff","message":"","id":"4978F7BB-7FF5-47C1-8A55-6CAB03479B28"},"804":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:41:12 GMT+0200 (CEST)"},"805":{"date":{"__isSmartRef__":true,"id":806},"author":"timfelgentreff","message":"","id":"18365ED6-1BC8-43AD-ADC8-2B0C8005B784"},"806":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:23:38 GMT+0200 (CEST)"},"807":{"date":{"__isSmartRef__":true,"id":808},"author":"lauritz","message":"","id":"CFD35308-806E-4804-8706-15DA1CEC5743"},"808":{"isSerializedDate":true,"string":"Thu Apr 19 2012 15:49:16 GMT+0200 (CEST)"},"809":{"date":{"__isSmartRef__":true,"id":810},"author":"timfelgentreff","message":"","id":"DE0AC226-458D-416E-A42C-BAA848650C4C"},"810":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:28:14 GMT+0200 (CEST)"},"811":{"date":{"__isSmartRef__":true,"id":812},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"812":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"813":{"date":{"__isSmartRef__":true,"id":814},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"814":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"815":{"date":{"__isSmartRef__":true,"id":816},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"816":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"817":{"date":{"__isSmartRef__":true,"id":818},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"818":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"819":{"date":{"__isSmartRef__":true,"id":820},"author":"timfelgentreff","message":"","id":"0672C6C8-D032-495B-B9EE-E41F194C86DE"},"820":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:19:15 GMT+0200 (CEST)"},"821":{"date":{"__isSmartRef__":true,"id":822},"author":"timfelgentreff","message":"","id":"E1AA7A8A-D3C5-4263-9A1E-91C13F532ED6"},"822":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:23:55 GMT+0200 (CEST)"},"823":{"date":{"__isSmartRef__":true,"id":824},"author":"timfelgentreff","message":"","id":"563A8831-9CE6-49D1-B87D-453B761FB751"},"824":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:12:53 GMT+0200 (CEST)"},"825":{"date":{"__isSmartRef__":true,"id":826},"author":"timfelgentreff","message":"","id":"F4CC9F23-A50B-4206-A549-A610CC9C69AC"},"826":{"isSerializedDate":true,"string":"Thu Apr 19 2012 15:11:38 GMT+0200 (CEST)"},"827":{"date":{"__isSmartRef__":true,"id":828},"author":"timfelgentreff","message":"","id":"24121E2C-3B59-48EF-8026-290C8D296496"},"828":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:02:53 GMT+0200 (CEST)"},"829":{"date":{"__isSmartRef__":true,"id":830},"author":"timfelgentreff","message":"","id":"6D9186F6-64FC-48E0-95AF-27E462A13E1D"},"830":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:55:04 GMT+0200 (CEST)"},"831":{"date":{"__isSmartRef__":true,"id":832},"author":"timfelgentreff","message":"","id":"DF45FC66-1C49-447D-914F-A905DA0AECB2"},"832":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:59:47 GMT+0200 (CEST)"},"833":{"date":{"__isSmartRef__":true,"id":834},"author":"timfelgentreff","message":"","id":"712D65D3-A68A-47B9-AFDC-B20E826217DB"},"834":{"isSerializedDate":true,"string":"Thu Apr 19 2012 18:00:26 GMT+0200 (CEST)"},"835":{"date":{"__isSmartRef__":true,"id":836},"author":"timfelgentreff","message":"a thing that renders itself onto a tile and tells the occluded tiles about the obstacle","id":"ADB36180-974D-4994-9149-6318E7F62D62"},"836":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:29:15 GMT+0200 (CEST)"},"837":{"date":{"__isSmartRef__":true,"id":838},"author":"timfelgentreff","message":"initial publish","id":"4384AF65-BA4C-424D-A5EA-E68A6EEE9E6F"},"838":{"isSerializedDate":true,"string":"Mon Apr 23 2012 13:39:23 GMT+0200 (CEST)"},"839":{"date":{"__isSmartRef__":true,"id":840},"author":"timfelgentreff","message":"add support for registering and deregistering as obstacle","id":"6E027D14-54DC-4EEE-86D7-F76CD7A727B5"},"840":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:16:57 GMT+0200 (CEST)"},"841":{"date":{"__isSmartRef__":true,"id":842},"author":"timfelgentreff","message":"fix registering","id":"C3CC144E-61B2-4154-963B-F5812D40887C"},"842":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:25:20 GMT+0200 (CEST)"},"843":{"date":{"__isSmartRef__":true,"id":844},"author":"timfelgentreff","message":"fix DNU","id":"CB97C29A-144D-4AA8-9763-C6AD0294C76D"},"844":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:31:29 GMT+0200 (CEST)"},"845":{"date":{"__isSmartRef__":true,"id":846},"author":"timfelgentreff","message":"push the right tiles to occluded tiles","id":"4756DD2F-8511-47A5-BA08-D24CB2CDB071"},"846":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:47:29 GMT+0200 (CEST)"},"847":{"date":{"__isSmartRef__":true,"id":848},"author":"timfelgentreff","message":"no comment","id":"4E20F671-CDDF-4A8C-B375-590965148158"},"848":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:48:48 GMT+0200 (CEST)"},"849":{"date":{"__isSmartRef__":true,"id":850},"author":"timfelgentreff","message":"actually register things as obstacle for the whole rectangle, not only the other stuff","id":"E15C00E6-10CD-4BEE-A685-C852A7D2B0FA"},"850":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:06:03 GMT+0200 (CEST)"},"851":{"date":{"__isSmartRef__":true,"id":852},"author":"timfelgentreff","message":"use the right index","id":"82122F19-AA93-4BE0-82A3-98068DCF0F25"},"852":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:11:07 GMT+0200 (CEST)"},"853":{"date":{"__isSmartRef__":true,"id":854},"author":"timfelgentreff","message":"no comment","id":"8B215513-36A1-4E9D-A85F-901CF829A749"},"854":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:20:02 GMT+0200 (CEST)"},"855":{"date":{"__isSmartRef__":true,"id":856},"author":"timfelgentreff","message":"fix deregister obstacle, function scope this error","id":"9107E550-ADD2-4504-90DA-7D389E5EE394"},"856":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:27:22 GMT+0200 (CEST)"},"857":{"date":{"__isSmartRef__":true,"id":858},"author":"timfelgentreff","message":"change become() so it accepts a ThingMorph as well as a name","id":"0039C1AA-215A-4BE0-AA97-F1C383BE908C"},"858":{"isSerializedDate":true,"string":"Thu May 03 2012 13:49:59 GMT+0200 (CEST)"},"859":{"date":{"__isSmartRef__":true,"id":860},"author":"tessi","message":"normal border color is transparent","id":"1665FD61-C4FA-4C51-9616-9C5E1C8B9F80"},"860":{"isSerializedDate":true,"string":"Thu May 03 2012 15:24:59 GMT+0200 (CEST)"},"861":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"862":{"morph":{"__isSmartRef__":true,"id":740},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"863":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":864}},"864":{"test01IsMorph":{"__isSmartRef__":true,"id":865}},"865":{"varMapping":{"__isSmartRef__":true,"id":866},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":867},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"866":{"this":{"__isSmartRef__":true,"id":863}},"867":{},"868":{"submorphs":[{"__isSmartRef__":true,"id":740},{"__isSmartRef__":true,"id":869}],"scripts":[],"shape":{"__isSmartRef__":true,"id":879},"renderContextTable":{"__isSmartRef__":true,"id":884},"eventHandler":{"__isSmartRef__":true,"id":885},"_ClipMode":"visible","derivationIds":[],"id":"CCDA132D-49BA-447E-8CB5-6BC7CA0DE8BC","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":886},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":3,"column":7,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":869},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":740}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":887},"__LivelyClassName__":"lively.morphic.Box"},"869":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":870},"renderContextTable":{"__isSmartRef__":true,"id":875},"eventHandler":{"__isSmartRef__":true,"id":876},"_ClipMode":"visible","derivationIds":[],"id":"5AE8CABD-1A4A-4F9B-BCDC-0B922ACE8FB8","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":877},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":868},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":878},"__LivelyClassName__":"lively.morphic.Image"},"870":{"_Position":{"__isSmartRef__":true,"id":871},"renderContextTable":{"__isSmartRef__":true,"id":872},"_Extent":{"__isSmartRef__":true,"id":873},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/desert.png","_Padding":{"__isSmartRef__":true,"id":874},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"871":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"872":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"873":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"874":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"875":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"876":{"morph":{"__isSmartRef__":true,"id":869},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"877":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"878":{"dropOn":{"__isSmartRef__":true,"id":426},"shallowCopy":{"__isSmartRef__":true,"id":438}},"879":{"_Position":{"__isSmartRef__":true,"id":880},"renderContextTable":{"__isSmartRef__":true,"id":881},"_Extent":{"__isSmartRef__":true,"id":882},"_Padding":{"__isSmartRef__":true,"id":883},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"880":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"881":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"882":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"883":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"884":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"885":{"morph":{"__isSmartRef__":true,"id":868},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"886":{"x":336,"y":144,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"887":{"setDevStyle":{"__isSmartRef__":true,"id":888},"setNormalStyle":{"__isSmartRef__":true,"id":1017},"tileSize":{"__isSmartRef__":true,"id":1021},"become":{"__isSmartRef__":true,"id":1025},"onMouseDown":{"__isSmartRef__":true,"id":1029},"setGridPosition":{"__isSmartRef__":true,"id":1037},"toolbox":{"__isSmartRef__":true,"id":1041},"distanceTo":{"__isSmartRef__":true,"id":1045},"tileWasDropped":{"__isSmartRef__":true,"id":1049},"isObstacle":{"__isSmartRef__":true,"id":1053},"neighboursInDirection":{"__isSmartRef__":true,"id":1057},"neighbours":{"__isSmartRef__":true,"id":1061},"zIndex":{"__isSmartRef__":true,"id":1065},"obstacles":{"__isSmartRef__":true,"id":1069},"addObstacle":{"__isSmartRef__":true,"id":1073},"removeObstacle":{"__isSmartRef__":true,"id":1077},"isTile":{"__isSmartRef__":true,"id":1081},"neighbourAt":{"__isSmartRef__":true,"id":1085},"map":{"__isSmartRef__":true,"id":1089},"game":{"__isSmartRef__":true,"id":1093},"reset":{"__isSmartRef__":true,"id":1097},"shallowCopy":{"__isSmartRef__":true,"id":1101},"characters":{"__isSmartRef__":true,"id":1105},"enterTile":{"__isSmartRef__":true,"id":1109},"leaveTile":{"__isSmartRef__":true,"id":1113},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":1117}},"888":{"varMapping":{"__isSmartRef__":true,"id":889},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":890},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1016},"__LivelyClassName__":"lively.Closure"},"889":{"this":{"__isSmartRef__":true,"id":868}},"890":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"891":{"isSerializedDate":true,"string":"Mon May 07 2012 18:57:47 GMT+0200 (CEST)"},"892":{"varMapping":{"__isSmartRef__":true,"id":893},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1015},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"893":{"this":{"__isSmartRef__":true,"id":894}},"894":{"submorphs":[],"scripts":[],"id":"37A08DCF-1C98-46D0-BA69-07168DBB2176","shape":{"__isSmartRef__":true,"id":895},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":901},"showsHalos":false,"name":"Tile","partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":902},"eventHandler":{"__isSmartRef__":true,"id":903},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","DF863BAB-9987-4611-BCD2-DE9FDCE7D3B5","768ED97D-1E05-415B-AB3F-B6495AC603A0","5A0ECA63-F6E2-4E35-B9A2-75DE2A4C4158","3B4EDC8A-0E99-4F45-A6D5-5CCE7E75BC88","1A900574-7D84-44F3-BB9D-1A1E26FDDB9B","383B3B54-4D0D-42E5-88C6-460045549029","EFC22A04-8B3C-48A8-9C5F-1EBC66DFD6D6","52D7E09F-EA1F-44D5-A893-F72A70D40429","CAC332B2-DA3A-4534-B3C7-E03D31DE9D2C","2CDD083E-3AB7-4BB9-B6D1-A70716226BDF","5044B03C-1B55-48CB-9DE6-3844ED1FCD7D","F5F5A304-DAA0-4649-9CDE-605226A1CE51","4BC91A43-D259-43A1-819C-B2FE6CB08399","92B467E3-3189-4EFE-9BFB-4AF361018F35","A6B1593D-21F4-49B7-ABC8-FB9FACE91746","2598E54C-7F59-4753-8889-AEFE09E2CAC0","179AF98E-33AB-4114-B55B-4DFB00BDBDA8","AD778DCD-FF13-4F2E-AB38-F63BA8A15C58","04E48596-4C98-445F-B60B-2348EF53930E","BB54A7B7-E7CB-41C0-B027-77AB7D9BF27E","8DFD2C9E-23E1-41AF-8968-A62A3DE71693","2D8830D3-1DB9-4797-9AE8-20CA03139825","BD54D555-6E94-48EB-8C62-8F80A32960EA","F46B080F-9459-4295-8DB2-BED5809251AE","6A43BDE1-6AC7-4008-9AD0-06385EE78307","C3AB7721-B23E-4DAB-BE9A-22733BC3382E","1E1907C1-2AD2-452E-BADD-54F706B3B910","50E5C852-3D41-4257-AFF7-7EF1CEEC15E3","12768283-E36A-48B6-AB18-6384D99ADA14","A4849D36-6340-4578-BAFB-53E4D17027D7","12E4C56B-9222-43E4-9620-C41E062EBAC7","0212C096-5FD3-45BB-BABB-E16293175AB7","73176B5A-836A-48B2-9003-38573BE53D84","FA828EF3-B4D3-4543-83BE-FA33CE63F260","CBD9C7C8-3FA1-47AE-9C23-CCC4E7C7ED3A"],"partTests":{"__isSmartRef__":true,"id":904},"isBeingDragged":false,"moved":true,"_ClipMode":"visible","__obstacles":[],"row":5,"column":1,"terrain":null,"grabbingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":909},"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0120783653693808,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":910},"__LivelyClassName__":"lively.morphic.Box"},"895":{"position":{"__isSmartRef__":true,"id":896},"_Extent":{"__isSmartRef__":true,"id":897},"_BorderWidth":1.148,"_BorderColor":{"__isSmartRef__":true,"id":898},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":899},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":900},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"896":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"897":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"898":{"r":0.8,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"899":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"900":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"901":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"902":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"903":{"morph":{"__isSmartRef__":true,"id":894},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"904":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":905}},"905":{"test01IsMorph":{"__isSmartRef__":true,"id":906}},"906":{"varMapping":{"__isSmartRef__":true,"id":907},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":908},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"907":{"this":{"__isSmartRef__":true,"id":904}},"908":{},"909":{"x":61,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"910":{"setDevStyle":{"__isSmartRef__":true,"id":892},"setNormalStyle":{"__isSmartRef__":true,"id":911},"tileSize":{"__isSmartRef__":true,"id":915},"become":{"__isSmartRef__":true,"id":919},"onMouseDown":{"__isSmartRef__":true,"id":923},"setGridPosition":{"__isSmartRef__":true,"id":931},"toolbox":{"__isSmartRef__":true,"id":935},"distanceTo":{"__isSmartRef__":true,"id":939},"tileWasDropped":{"__isSmartRef__":true,"id":943},"isObstacle":{"__isSmartRef__":true,"id":947},"neighboursInDirection":{"__isSmartRef__":true,"id":951},"neighbours":{"__isSmartRef__":true,"id":955},"zIndex":{"__isSmartRef__":true,"id":959},"obstacles":{"__isSmartRef__":true,"id":963},"addObstacle":{"__isSmartRef__":true,"id":967},"removeObstacle":{"__isSmartRef__":true,"id":971},"isTile":{"__isSmartRef__":true,"id":975},"neighbourAt":{"__isSmartRef__":true,"id":979},"map":{"__isSmartRef__":true,"id":983},"game":{"__isSmartRef__":true,"id":987},"reset":{"__isSmartRef__":true,"id":991},"shallowCopy":{"__isSmartRef__":true,"id":995},"characters":{"__isSmartRef__":true,"id":999},"enterTile":{"__isSmartRef__":true,"id":1003},"leaveTile":{"__isSmartRef__":true,"id":1007},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":1011}},"911":{"varMapping":{"__isSmartRef__":true,"id":912},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":913},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"912":{"this":{"__isSmartRef__":true,"id":894}},"913":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[]},"914":{"isSerializedDate":true,"string":"Mon May 07 2012 18:58:21 GMT+0200 (CEST)"},"915":{"varMapping":{"__isSmartRef__":true,"id":916},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":917},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"916":{"this":{"__isSmartRef__":true,"id":894}},"917":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[]},"918":{"isSerializedDate":true,"string":"Wed Apr 18 2012 17:04:53 GMT+0200 (CEST)"},"919":{"varMapping":{"__isSmartRef__":true,"id":920},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":921},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"920":{"this":{"__isSmartRef__":true,"id":894}},"921":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[]},"922":{"isSerializedDate":true,"string":"Fri May 04 2012 13:31:11 GMT+0200 (CEST)"},"923":{"varMapping":{"__isSmartRef__":true,"id":924},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":929},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"924":{"this":{"__isSmartRef__":true,"id":894},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":925}},"925":{"$super":{"__isSmartRef__":true,"id":926}},"926":{"varMapping":{"__isSmartRef__":true,"id":927},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":928},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"927":{"obj":{"__isSmartRef__":true,"id":894},"name":"onMouseDown"},"928":{},"929":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[]},"930":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:14 GMT+0200 (CEST)"},"931":{"varMapping":{"__isSmartRef__":true,"id":932},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":933},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"932":{"this":{"__isSmartRef__":true,"id":894}},"933":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[]},"934":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:23:15 GMT+0200 (CEST)"},"935":{"varMapping":{"__isSmartRef__":true,"id":936},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":937},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"936":{"this":{"__isSmartRef__":true,"id":894}},"937":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[]},"938":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:15:20 GMT+0200 (CEST)"},"939":{"varMapping":{"__isSmartRef__":true,"id":940},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":941},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"940":{"this":{"__isSmartRef__":true,"id":894}},"941":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[]},"942":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:12:02 GMT+0200 (CEST)"},"943":{"varMapping":{"__isSmartRef__":true,"id":944},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":945},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"944":{"this":{"__isSmartRef__":true,"id":894}},"945":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[]},"946":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:52:54 GMT+0200 (CEST)"},"947":{"varMapping":{"__isSmartRef__":true,"id":948},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":949},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"948":{"this":{"__isSmartRef__":true,"id":894}},"949":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[]},"950":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:19:43 GMT+0200 (CEST)"},"951":{"varMapping":{"__isSmartRef__":true,"id":952},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":953},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"952":{"this":{"__isSmartRef__":true,"id":894}},"953":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[]},"954":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:13:24 GMT+0200 (CEST)"},"955":{"varMapping":{"__isSmartRef__":true,"id":956},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":957},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"956":{"this":{"__isSmartRef__":true,"id":894}},"957":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[]},"958":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:55:34 GMT+0200 (CEST)"},"959":{"varMapping":{"__isSmartRef__":true,"id":960},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":961},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"960":{"this":{"__isSmartRef__":true,"id":894}},"961":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[]},"962":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:54:56 GMT+0200 (CEST)"},"963":{"varMapping":{"__isSmartRef__":true,"id":964},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":965},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"964":{"this":{"__isSmartRef__":true,"id":894}},"965":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[]},"966":{"isSerializedDate":true,"string":"Mon Apr 23 2012 13:53:52 GMT+0200 (CEST)"},"967":{"varMapping":{"__isSmartRef__":true,"id":968},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":969},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"968":{"this":{"__isSmartRef__":true,"id":894}},"969":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[]},"970":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:50:17 GMT+0200 (CEST)"},"971":{"varMapping":{"__isSmartRef__":true,"id":972},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":973},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"972":{"this":{"__isSmartRef__":true,"id":894}},"973":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[]},"974":{"isSerializedDate":true,"string":"Mon Apr 23 2012 13:54:03 GMT+0200 (CEST)"},"975":{"varMapping":{"__isSmartRef__":true,"id":976},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":977},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"976":{"this":{"__isSmartRef__":true,"id":894}},"977":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[]},"978":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:09:57 GMT+0200 (CEST)"},"979":{"varMapping":{"__isSmartRef__":true,"id":980},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":981},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"980":{"this":{"__isSmartRef__":true,"id":894}},"981":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[]},"982":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:11:55 GMT+0200 (CEST)"},"983":{"varMapping":{"__isSmartRef__":true,"id":984},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":985},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"984":{"this":{"__isSmartRef__":true,"id":894}},"985":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[]},"986":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:11:37 GMT+0200 (CEST)"},"987":{"varMapping":{"__isSmartRef__":true,"id":988},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":989},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"988":{"this":{"__isSmartRef__":true,"id":894}},"989":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[]},"990":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:13:57 GMT+0200 (CEST)"},"991":{"varMapping":{"__isSmartRef__":true,"id":992},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":993},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"992":{"this":{"__isSmartRef__":true,"id":894}},"993":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[]},"994":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:34:06 GMT+0200 (CEST)"},"995":{"varMapping":{"__isSmartRef__":true,"id":996},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":997},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"996":{"this":{"__isSmartRef__":true,"id":894}},"997":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[]},"998":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:17:04 GMT+0200 (CEST)"},"999":{"varMapping":{"__isSmartRef__":true,"id":1000},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":1001},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1000":{"this":{"__isSmartRef__":true,"id":894}},"1001":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[]},"1002":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:31:13 GMT+0200 (CEST)"},"1003":{"varMapping":{"__isSmartRef__":true,"id":1004},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1005},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1004":{"this":{"__isSmartRef__":true,"id":894}},"1005":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[]},"1006":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:25:25 GMT+0200 (CEST)"},"1007":{"varMapping":{"__isSmartRef__":true,"id":1008},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1009},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1008":{"this":{"__isSmartRef__":true,"id":894}},"1009":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[]},"1010":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:28:36 GMT+0200 (CEST)"},"1011":{"varMapping":{"__isSmartRef__":true,"id":1012},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1013},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1012":{"this":{"__isSmartRef__":true,"id":894}},"1013":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[]},"1014":{"isSerializedDate":true,"string":"Thu May 03 2012 13:28:31 GMT+0200 (CEST)"},"1015":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[]},"1016":{"originalFunc":{"__isSmartRef__":true,"id":892}},"1017":{"varMapping":{"__isSmartRef__":true,"id":1018},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1019},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1020},"__LivelyClassName__":"lively.Closure"},"1018":{"this":{"__isSmartRef__":true,"id":868}},"1019":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"1020":{"originalFunc":{"__isSmartRef__":true,"id":911}},"1021":{"varMapping":{"__isSmartRef__":true,"id":1022},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":1023},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1024},"__LivelyClassName__":"lively.Closure"},"1022":{"this":{"__isSmartRef__":true,"id":868}},"1023":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"1024":{"originalFunc":{"__isSmartRef__":true,"id":915}},"1025":{"varMapping":{"__isSmartRef__":true,"id":1026},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1027},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1028},"__LivelyClassName__":"lively.Closure"},"1026":{"this":{"__isSmartRef__":true,"id":868}},"1027":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"1028":{"originalFunc":{"__isSmartRef__":true,"id":919}},"1029":{"varMapping":{"__isSmartRef__":true,"id":1030},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1035},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1036},"__LivelyClassName__":"lively.Closure"},"1030":{"this":{"__isSmartRef__":true,"id":868},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1031}},"1031":{"$super":{"__isSmartRef__":true,"id":1032}},"1032":{"varMapping":{"__isSmartRef__":true,"id":1033},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1034},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1033":{"obj":{"__isSmartRef__":true,"id":868},"name":"onMouseDown"},"1034":{},"1035":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"1036":{"originalFunc":{"__isSmartRef__":true,"id":923}},"1037":{"varMapping":{"__isSmartRef__":true,"id":1038},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":1039},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1040},"__LivelyClassName__":"lively.Closure"},"1038":{"this":{"__isSmartRef__":true,"id":868}},"1039":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"1040":{"originalFunc":{"__isSmartRef__":true,"id":931}},"1041":{"varMapping":{"__isSmartRef__":true,"id":1042},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":1043},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1044},"__LivelyClassName__":"lively.Closure"},"1042":{"this":{"__isSmartRef__":true,"id":868}},"1043":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"1044":{"originalFunc":{"__isSmartRef__":true,"id":935}},"1045":{"varMapping":{"__isSmartRef__":true,"id":1046},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":1047},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1048},"__LivelyClassName__":"lively.Closure"},"1046":{"this":{"__isSmartRef__":true,"id":868}},"1047":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"1048":{"originalFunc":{"__isSmartRef__":true,"id":939}},"1049":{"varMapping":{"__isSmartRef__":true,"id":1050},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":1051},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1052},"__LivelyClassName__":"lively.Closure"},"1050":{"this":{"__isSmartRef__":true,"id":868}},"1051":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"1052":{"originalFunc":{"__isSmartRef__":true,"id":943}},"1053":{"varMapping":{"__isSmartRef__":true,"id":1054},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":1055},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1056},"__LivelyClassName__":"lively.Closure"},"1054":{"this":{"__isSmartRef__":true,"id":868}},"1055":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"1056":{"originalFunc":{"__isSmartRef__":true,"id":947}},"1057":{"varMapping":{"__isSmartRef__":true,"id":1058},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":1059},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1060},"__LivelyClassName__":"lively.Closure"},"1058":{"this":{"__isSmartRef__":true,"id":868}},"1059":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"1060":{"originalFunc":{"__isSmartRef__":true,"id":951}},"1061":{"varMapping":{"__isSmartRef__":true,"id":1062},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":1063},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1064},"__LivelyClassName__":"lively.Closure"},"1062":{"this":{"__isSmartRef__":true,"id":868}},"1063":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"1064":{"originalFunc":{"__isSmartRef__":true,"id":955}},"1065":{"varMapping":{"__isSmartRef__":true,"id":1066},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":1067},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1068},"__LivelyClassName__":"lively.Closure"},"1066":{"this":{"__isSmartRef__":true,"id":868}},"1067":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"1068":{"originalFunc":{"__isSmartRef__":true,"id":959}},"1069":{"varMapping":{"__isSmartRef__":true,"id":1070},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":1071},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1072},"__LivelyClassName__":"lively.Closure"},"1070":{"this":{"__isSmartRef__":true,"id":868}},"1071":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"1072":{"originalFunc":{"__isSmartRef__":true,"id":963}},"1073":{"varMapping":{"__isSmartRef__":true,"id":1074},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1075},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1076},"__LivelyClassName__":"lively.Closure"},"1074":{"this":{"__isSmartRef__":true,"id":868}},"1075":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"1076":{"originalFunc":{"__isSmartRef__":true,"id":967}},"1077":{"varMapping":{"__isSmartRef__":true,"id":1078},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1079},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1080},"__LivelyClassName__":"lively.Closure"},"1078":{"this":{"__isSmartRef__":true,"id":868}},"1079":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"1080":{"originalFunc":{"__isSmartRef__":true,"id":971}},"1081":{"varMapping":{"__isSmartRef__":true,"id":1082},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":1083},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1084},"__LivelyClassName__":"lively.Closure"},"1082":{"this":{"__isSmartRef__":true,"id":868}},"1083":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"1084":{"originalFunc":{"__isSmartRef__":true,"id":975}},"1085":{"varMapping":{"__isSmartRef__":true,"id":1086},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":1087},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1088},"__LivelyClassName__":"lively.Closure"},"1086":{"this":{"__isSmartRef__":true,"id":868}},"1087":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"1088":{"originalFunc":{"__isSmartRef__":true,"id":979}},"1089":{"varMapping":{"__isSmartRef__":true,"id":1090},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":1091},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1092},"__LivelyClassName__":"lively.Closure"},"1090":{"this":{"__isSmartRef__":true,"id":868}},"1091":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"1092":{"originalFunc":{"__isSmartRef__":true,"id":983}},"1093":{"varMapping":{"__isSmartRef__":true,"id":1094},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":1095},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1096},"__LivelyClassName__":"lively.Closure"},"1094":{"this":{"__isSmartRef__":true,"id":868}},"1095":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"1096":{"originalFunc":{"__isSmartRef__":true,"id":987}},"1097":{"varMapping":{"__isSmartRef__":true,"id":1098},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":1099},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1100},"__LivelyClassName__":"lively.Closure"},"1098":{"this":{"__isSmartRef__":true,"id":868}},"1099":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"1100":{"originalFunc":{"__isSmartRef__":true,"id":991}},"1101":{"varMapping":{"__isSmartRef__":true,"id":1102},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":1103},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1104},"__LivelyClassName__":"lively.Closure"},"1102":{"this":{"__isSmartRef__":true,"id":868}},"1103":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"1104":{"originalFunc":{"__isSmartRef__":true,"id":995}},"1105":{"varMapping":{"__isSmartRef__":true,"id":1106},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":1107},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1108},"__LivelyClassName__":"lively.Closure"},"1106":{"this":{"__isSmartRef__":true,"id":868}},"1107":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"1108":{"originalFunc":{"__isSmartRef__":true,"id":999}},"1109":{"varMapping":{"__isSmartRef__":true,"id":1110},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1111},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1112},"__LivelyClassName__":"lively.Closure"},"1110":{"this":{"__isSmartRef__":true,"id":868}},"1111":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"1112":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"1113":{"varMapping":{"__isSmartRef__":true,"id":1114},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1115},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1116},"__LivelyClassName__":"lively.Closure"},"1114":{"this":{"__isSmartRef__":true,"id":868}},"1115":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"1116":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"1117":{"varMapping":{"__isSmartRef__":true,"id":1118},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1119},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1120},"__LivelyClassName__":"lively.Closure"},"1118":{"this":{"__isSmartRef__":true,"id":868}},"1119":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"1120":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"1121":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1122},"derivationIds":[null,"5A9E68AE-1658-460C-A58D-67F453018F38","A75C7137-9656-4E29-A0A3-A9BEF7C018E7","3A758816-97BF-4289-81C8-A18CC0A2EE63","3697FD0B-88E6-4580-B713-65A53F113F8B","87A43152-0E94-46F3-89B3-C11B9651D092","CB28EF82-8353-44DF-BB75-0AB2CD6FB4C6","046564EA-783C-42DE-856B-D400024AA55F"],"id":"1CFD8EE6-F982-4AC3-B942-11E14DA7E05C","renderContextTable":{"__isSmartRef__":true,"id":1128},"eventHandler":{"__isSmartRef__":true,"id":1129},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1130},"name":"ParasolThing","isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1131},"__SourceModuleName__":"Global.lively.morphic.Widgets","moved":true,"isThing":true,"_ClipMode":"visible","eventsAreIgnored":true,"owner":null,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1142},"__LivelyClassName__":"lively.morphic.Image"},"1122":{"_Position":{"__isSmartRef__":true,"id":1123},"renderContextTable":{"__isSmartRef__":true,"id":1124},"_Extent":{"__isSmartRef__":true,"id":1125},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1126},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/parasol.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderColor":{"__isSmartRef__":true,"id":1127},"__LivelyClassName__":"lively.morphic.Shapes.Image"},"1123":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1124":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"1125":{"x":90,"y":80,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1126":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1127":{"r":0,"g":0,"b":0,"a":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1128":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"1129":{"morph":{"__isSmartRef__":true,"id":1121},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1130":{"x":-8.297029702970462,"y":29.495049504950543,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1131":{"partName":"ParasolThing","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"A not movable parasol","changes":[{"__isSmartRef__":true,"id":1132},{"__isSmartRef__":true,"id":1134},{"__isSmartRef__":true,"id":1136},{"__isSmartRef__":true,"id":1138},{"__isSmartRef__":true,"id":1140}],"migrationLevel":4,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1132":{"date":{"__isSmartRef__":true,"id":1133},"author":"timfelgentreff","message":"no comment","id":"FD96D20D-55C9-42F4-A344-3DF20472A66E"},"1133":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:31:48 GMT+0200 (CEST)"},"1134":{"date":{"__isSmartRef__":true,"id":1135},"author":"tessi","message":"","id":"D4F288D4-2322-4A4A-B028-C92E822E9ED7"},"1135":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:15:32 GMT+0200 (CEST)"},"1136":{"date":{"__isSmartRef__":true,"id":1137},"author":"tessi","message":"","id":"4736E17A-F775-4198-9C0D-00290098A09F"},"1137":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:42:52 GMT+0200 (CEST)"},"1138":{"date":{"__isSmartRef__":true,"id":1139},"author":"tessi","message":"","id":"AD11C312-4E70-40EB-9EEC-FE248A5F19FD"},"1139":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:49:07 GMT+0200 (CEST)"},"1140":{"date":{"__isSmartRef__":true,"id":1141},"author":"timfelgentreff","message":"no comment","id":"7E41405E-648C-461D-B115-DEF4109B1532"},"1141":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:08:45 GMT+0200 (CEST)"},"1142":{"dropOn":{"__isSmartRef__":true,"id":1143}},"1143":{"varMapping":{"__isSmartRef__":true,"id":1144},"source":"function dropOn(morph) {\n if (morph.isTile && morph.isTile()) {\n var thing = morph.toolbox(\"Thing\")\n thing.dropOn(morph)\n thing.setNormalStyle()\n thing.become(this.copy())\n } else {\n $super(morph);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1149},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1144":{"this":{"__isSmartRef__":true,"id":1121},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1145}},"1145":{"$super":{"__isSmartRef__":true,"id":1146}},"1146":{"varMapping":{"__isSmartRef__":true,"id":1147},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1148},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1147":{"obj":{"__isSmartRef__":true,"id":1121},"name":"dropOn"},"1148":{},"1149":{},"1150":{"submorphs":[{"__isSmartRef__":true,"id":1151}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1161},"renderContextTable":{"__isSmartRef__":true,"id":1166},"eventHandler":{"__isSmartRef__":true,"id":1167},"_ClipMode":"visible","derivationIds":[],"id":"1421E697-ED60-4EB6-AFCD-42B55DAC0F30","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1168},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":2,"column":7,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":1151},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":740}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1169},"__LivelyClassName__":"lively.morphic.Box"},"1151":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1152},"renderContextTable":{"__isSmartRef__":true,"id":1157},"eventHandler":{"__isSmartRef__":true,"id":1158},"_ClipMode":"visible","derivationIds":[],"id":"DE844818-7D4F-4B7B-9E6E-D5B9716759D9","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1159},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1150},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1160},"__LivelyClassName__":"lively.morphic.Image"},"1152":{"_Position":{"__isSmartRef__":true,"id":1153},"renderContextTable":{"__isSmartRef__":true,"id":1154},"_Extent":{"__isSmartRef__":true,"id":1155},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/desert.png","_Padding":{"__isSmartRef__":true,"id":1156},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"1153":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1154":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"1155":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1156":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1157":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"1158":{"morph":{"__isSmartRef__":true,"id":1151},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1159":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1160":{"dropOn":{"__isSmartRef__":true,"id":426},"shallowCopy":{"__isSmartRef__":true,"id":438}},"1161":{"_Position":{"__isSmartRef__":true,"id":1162},"renderContextTable":{"__isSmartRef__":true,"id":1163},"_Extent":{"__isSmartRef__":true,"id":1164},"_Padding":{"__isSmartRef__":true,"id":1165},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1162":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1163":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"1164":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1165":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1166":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"1167":{"morph":{"__isSmartRef__":true,"id":1150},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1168":{"x":336,"y":96,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1169":{"setDevStyle":{"__isSmartRef__":true,"id":1170},"setNormalStyle":{"__isSmartRef__":true,"id":1174},"tileSize":{"__isSmartRef__":true,"id":1178},"become":{"__isSmartRef__":true,"id":1182},"onMouseDown":{"__isSmartRef__":true,"id":1186},"setGridPosition":{"__isSmartRef__":true,"id":1194},"toolbox":{"__isSmartRef__":true,"id":1198},"distanceTo":{"__isSmartRef__":true,"id":1202},"tileWasDropped":{"__isSmartRef__":true,"id":1206},"isObstacle":{"__isSmartRef__":true,"id":1210},"neighboursInDirection":{"__isSmartRef__":true,"id":1214},"neighbours":{"__isSmartRef__":true,"id":1218},"zIndex":{"__isSmartRef__":true,"id":1222},"obstacles":{"__isSmartRef__":true,"id":1226},"addObstacle":{"__isSmartRef__":true,"id":1230},"removeObstacle":{"__isSmartRef__":true,"id":1234},"isTile":{"__isSmartRef__":true,"id":1238},"neighbourAt":{"__isSmartRef__":true,"id":1242},"map":{"__isSmartRef__":true,"id":1246},"game":{"__isSmartRef__":true,"id":1250},"reset":{"__isSmartRef__":true,"id":1254},"shallowCopy":{"__isSmartRef__":true,"id":1258},"characters":{"__isSmartRef__":true,"id":1262},"enterTile":{"__isSmartRef__":true,"id":1266},"leaveTile":{"__isSmartRef__":true,"id":1270},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":1274}},"1170":{"varMapping":{"__isSmartRef__":true,"id":1171},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1172},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1173},"__LivelyClassName__":"lively.Closure"},"1171":{"this":{"__isSmartRef__":true,"id":1150}},"1172":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"1173":{"originalFunc":{"__isSmartRef__":true,"id":892}},"1174":{"varMapping":{"__isSmartRef__":true,"id":1175},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1176},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1177},"__LivelyClassName__":"lively.Closure"},"1175":{"this":{"__isSmartRef__":true,"id":1150}},"1176":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"1177":{"originalFunc":{"__isSmartRef__":true,"id":911}},"1178":{"varMapping":{"__isSmartRef__":true,"id":1179},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":1180},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1181},"__LivelyClassName__":"lively.Closure"},"1179":{"this":{"__isSmartRef__":true,"id":1150}},"1180":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"1181":{"originalFunc":{"__isSmartRef__":true,"id":915}},"1182":{"varMapping":{"__isSmartRef__":true,"id":1183},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1184},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1185},"__LivelyClassName__":"lively.Closure"},"1183":{"this":{"__isSmartRef__":true,"id":1150}},"1184":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"1185":{"originalFunc":{"__isSmartRef__":true,"id":919}},"1186":{"varMapping":{"__isSmartRef__":true,"id":1187},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1192},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1193},"__LivelyClassName__":"lively.Closure"},"1187":{"this":{"__isSmartRef__":true,"id":1150},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1188}},"1188":{"$super":{"__isSmartRef__":true,"id":1189}},"1189":{"varMapping":{"__isSmartRef__":true,"id":1190},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1191},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1190":{"obj":{"__isSmartRef__":true,"id":1150},"name":"onMouseDown"},"1191":{},"1192":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"1193":{"originalFunc":{"__isSmartRef__":true,"id":923}},"1194":{"varMapping":{"__isSmartRef__":true,"id":1195},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":1196},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1197},"__LivelyClassName__":"lively.Closure"},"1195":{"this":{"__isSmartRef__":true,"id":1150}},"1196":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"1197":{"originalFunc":{"__isSmartRef__":true,"id":931}},"1198":{"varMapping":{"__isSmartRef__":true,"id":1199},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":1200},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1201},"__LivelyClassName__":"lively.Closure"},"1199":{"this":{"__isSmartRef__":true,"id":1150}},"1200":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"1201":{"originalFunc":{"__isSmartRef__":true,"id":935}},"1202":{"varMapping":{"__isSmartRef__":true,"id":1203},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":1204},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1205},"__LivelyClassName__":"lively.Closure"},"1203":{"this":{"__isSmartRef__":true,"id":1150}},"1204":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"1205":{"originalFunc":{"__isSmartRef__":true,"id":939}},"1206":{"varMapping":{"__isSmartRef__":true,"id":1207},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":1208},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1209},"__LivelyClassName__":"lively.Closure"},"1207":{"this":{"__isSmartRef__":true,"id":1150}},"1208":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"1209":{"originalFunc":{"__isSmartRef__":true,"id":943}},"1210":{"varMapping":{"__isSmartRef__":true,"id":1211},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":1212},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1213},"__LivelyClassName__":"lively.Closure"},"1211":{"this":{"__isSmartRef__":true,"id":1150}},"1212":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"1213":{"originalFunc":{"__isSmartRef__":true,"id":947}},"1214":{"varMapping":{"__isSmartRef__":true,"id":1215},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":1216},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1217},"__LivelyClassName__":"lively.Closure"},"1215":{"this":{"__isSmartRef__":true,"id":1150}},"1216":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"1217":{"originalFunc":{"__isSmartRef__":true,"id":951}},"1218":{"varMapping":{"__isSmartRef__":true,"id":1219},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":1220},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1221},"__LivelyClassName__":"lively.Closure"},"1219":{"this":{"__isSmartRef__":true,"id":1150}},"1220":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"1221":{"originalFunc":{"__isSmartRef__":true,"id":955}},"1222":{"varMapping":{"__isSmartRef__":true,"id":1223},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":1224},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1225},"__LivelyClassName__":"lively.Closure"},"1223":{"this":{"__isSmartRef__":true,"id":1150}},"1224":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"1225":{"originalFunc":{"__isSmartRef__":true,"id":959}},"1226":{"varMapping":{"__isSmartRef__":true,"id":1227},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":1228},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1229},"__LivelyClassName__":"lively.Closure"},"1227":{"this":{"__isSmartRef__":true,"id":1150}},"1228":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"1229":{"originalFunc":{"__isSmartRef__":true,"id":963}},"1230":{"varMapping":{"__isSmartRef__":true,"id":1231},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1232},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1233},"__LivelyClassName__":"lively.Closure"},"1231":{"this":{"__isSmartRef__":true,"id":1150}},"1232":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"1233":{"originalFunc":{"__isSmartRef__":true,"id":967}},"1234":{"varMapping":{"__isSmartRef__":true,"id":1235},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1236},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1237},"__LivelyClassName__":"lively.Closure"},"1235":{"this":{"__isSmartRef__":true,"id":1150}},"1236":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"1237":{"originalFunc":{"__isSmartRef__":true,"id":971}},"1238":{"varMapping":{"__isSmartRef__":true,"id":1239},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":1240},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1241},"__LivelyClassName__":"lively.Closure"},"1239":{"this":{"__isSmartRef__":true,"id":1150}},"1240":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"1241":{"originalFunc":{"__isSmartRef__":true,"id":975}},"1242":{"varMapping":{"__isSmartRef__":true,"id":1243},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":1244},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1245},"__LivelyClassName__":"lively.Closure"},"1243":{"this":{"__isSmartRef__":true,"id":1150}},"1244":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"1245":{"originalFunc":{"__isSmartRef__":true,"id":979}},"1246":{"varMapping":{"__isSmartRef__":true,"id":1247},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":1248},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1249},"__LivelyClassName__":"lively.Closure"},"1247":{"this":{"__isSmartRef__":true,"id":1150}},"1248":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"1249":{"originalFunc":{"__isSmartRef__":true,"id":983}},"1250":{"varMapping":{"__isSmartRef__":true,"id":1251},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":1252},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1253},"__LivelyClassName__":"lively.Closure"},"1251":{"this":{"__isSmartRef__":true,"id":1150}},"1252":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"1253":{"originalFunc":{"__isSmartRef__":true,"id":987}},"1254":{"varMapping":{"__isSmartRef__":true,"id":1255},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":1256},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1257},"__LivelyClassName__":"lively.Closure"},"1255":{"this":{"__isSmartRef__":true,"id":1150}},"1256":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"1257":{"originalFunc":{"__isSmartRef__":true,"id":991}},"1258":{"varMapping":{"__isSmartRef__":true,"id":1259},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":1260},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1261},"__LivelyClassName__":"lively.Closure"},"1259":{"this":{"__isSmartRef__":true,"id":1150}},"1260":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"1261":{"originalFunc":{"__isSmartRef__":true,"id":995}},"1262":{"varMapping":{"__isSmartRef__":true,"id":1263},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":1264},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1265},"__LivelyClassName__":"lively.Closure"},"1263":{"this":{"__isSmartRef__":true,"id":1150}},"1264":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"1265":{"originalFunc":{"__isSmartRef__":true,"id":999}},"1266":{"varMapping":{"__isSmartRef__":true,"id":1267},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1268},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1269},"__LivelyClassName__":"lively.Closure"},"1267":{"this":{"__isSmartRef__":true,"id":1150}},"1268":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"1269":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"1270":{"varMapping":{"__isSmartRef__":true,"id":1271},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1272},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1273},"__LivelyClassName__":"lively.Closure"},"1271":{"this":{"__isSmartRef__":true,"id":1150}},"1272":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"1273":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"1274":{"varMapping":{"__isSmartRef__":true,"id":1275},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1276},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1277},"__LivelyClassName__":"lively.Closure"},"1275":{"this":{"__isSmartRef__":true,"id":1150}},"1276":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"1277":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"1278":{"submorphs":[{"__isSmartRef__":true,"id":1279}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1289},"renderContextTable":{"__isSmartRef__":true,"id":1294},"eventHandler":{"__isSmartRef__":true,"id":1295},"_ClipMode":"visible","derivationIds":[],"id":"2612F634-ECE4-4ED1-A481-7E7E7C4417CC","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1296},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":3,"column":6,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":1279},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":740}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1297},"__LivelyClassName__":"lively.morphic.Box"},"1279":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1280},"renderContextTable":{"__isSmartRef__":true,"id":1285},"eventHandler":{"__isSmartRef__":true,"id":1286},"_ClipMode":"visible","derivationIds":[],"id":"C7767E96-7B92-4C3B-844C-B2D08536FF70","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1287},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1278},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1288},"__LivelyClassName__":"lively.morphic.Image"},"1280":{"_Position":{"__isSmartRef__":true,"id":1281},"renderContextTable":{"__isSmartRef__":true,"id":1282},"_Extent":{"__isSmartRef__":true,"id":1283},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/desert.png","_Padding":{"__isSmartRef__":true,"id":1284},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"1281":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1282":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"1283":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1284":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1285":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"1286":{"morph":{"__isSmartRef__":true,"id":1279},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1287":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1288":{"dropOn":{"__isSmartRef__":true,"id":426},"shallowCopy":{"__isSmartRef__":true,"id":438}},"1289":{"_Position":{"__isSmartRef__":true,"id":1290},"renderContextTable":{"__isSmartRef__":true,"id":1291},"_Extent":{"__isSmartRef__":true,"id":1292},"_Padding":{"__isSmartRef__":true,"id":1293},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1290":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1291":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"1292":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1293":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1294":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"1295":{"morph":{"__isSmartRef__":true,"id":1278},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1296":{"x":288,"y":144,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1297":{"setDevStyle":{"__isSmartRef__":true,"id":1298},"setNormalStyle":{"__isSmartRef__":true,"id":1302},"tileSize":{"__isSmartRef__":true,"id":1306},"become":{"__isSmartRef__":true,"id":1310},"onMouseDown":{"__isSmartRef__":true,"id":1314},"setGridPosition":{"__isSmartRef__":true,"id":1322},"toolbox":{"__isSmartRef__":true,"id":1326},"distanceTo":{"__isSmartRef__":true,"id":1330},"tileWasDropped":{"__isSmartRef__":true,"id":1334},"isObstacle":{"__isSmartRef__":true,"id":1338},"neighboursInDirection":{"__isSmartRef__":true,"id":1342},"neighbours":{"__isSmartRef__":true,"id":1346},"zIndex":{"__isSmartRef__":true,"id":1350},"obstacles":{"__isSmartRef__":true,"id":1354},"addObstacle":{"__isSmartRef__":true,"id":1358},"removeObstacle":{"__isSmartRef__":true,"id":1362},"isTile":{"__isSmartRef__":true,"id":1366},"neighbourAt":{"__isSmartRef__":true,"id":1370},"map":{"__isSmartRef__":true,"id":1374},"game":{"__isSmartRef__":true,"id":1378},"reset":{"__isSmartRef__":true,"id":1382},"shallowCopy":{"__isSmartRef__":true,"id":1386},"characters":{"__isSmartRef__":true,"id":1390},"enterTile":{"__isSmartRef__":true,"id":1394},"leaveTile":{"__isSmartRef__":true,"id":1398},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":1402}},"1298":{"varMapping":{"__isSmartRef__":true,"id":1299},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1300},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1301},"__LivelyClassName__":"lively.Closure"},"1299":{"this":{"__isSmartRef__":true,"id":1278}},"1300":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"1301":{"originalFunc":{"__isSmartRef__":true,"id":892}},"1302":{"varMapping":{"__isSmartRef__":true,"id":1303},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1304},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1305},"__LivelyClassName__":"lively.Closure"},"1303":{"this":{"__isSmartRef__":true,"id":1278}},"1304":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"1305":{"originalFunc":{"__isSmartRef__":true,"id":911}},"1306":{"varMapping":{"__isSmartRef__":true,"id":1307},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":1308},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1309},"__LivelyClassName__":"lively.Closure"},"1307":{"this":{"__isSmartRef__":true,"id":1278}},"1308":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"1309":{"originalFunc":{"__isSmartRef__":true,"id":915}},"1310":{"varMapping":{"__isSmartRef__":true,"id":1311},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1312},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1313},"__LivelyClassName__":"lively.Closure"},"1311":{"this":{"__isSmartRef__":true,"id":1278}},"1312":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"1313":{"originalFunc":{"__isSmartRef__":true,"id":919}},"1314":{"varMapping":{"__isSmartRef__":true,"id":1315},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1320},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1321},"__LivelyClassName__":"lively.Closure"},"1315":{"this":{"__isSmartRef__":true,"id":1278},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1316}},"1316":{"$super":{"__isSmartRef__":true,"id":1317}},"1317":{"varMapping":{"__isSmartRef__":true,"id":1318},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1319},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1318":{"obj":{"__isSmartRef__":true,"id":1278},"name":"onMouseDown"},"1319":{},"1320":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"1321":{"originalFunc":{"__isSmartRef__":true,"id":923}},"1322":{"varMapping":{"__isSmartRef__":true,"id":1323},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":1324},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1325},"__LivelyClassName__":"lively.Closure"},"1323":{"this":{"__isSmartRef__":true,"id":1278}},"1324":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"1325":{"originalFunc":{"__isSmartRef__":true,"id":931}},"1326":{"varMapping":{"__isSmartRef__":true,"id":1327},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":1328},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1329},"__LivelyClassName__":"lively.Closure"},"1327":{"this":{"__isSmartRef__":true,"id":1278}},"1328":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"1329":{"originalFunc":{"__isSmartRef__":true,"id":935}},"1330":{"varMapping":{"__isSmartRef__":true,"id":1331},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":1332},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1333},"__LivelyClassName__":"lively.Closure"},"1331":{"this":{"__isSmartRef__":true,"id":1278}},"1332":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"1333":{"originalFunc":{"__isSmartRef__":true,"id":939}},"1334":{"varMapping":{"__isSmartRef__":true,"id":1335},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":1336},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1337},"__LivelyClassName__":"lively.Closure"},"1335":{"this":{"__isSmartRef__":true,"id":1278}},"1336":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"1337":{"originalFunc":{"__isSmartRef__":true,"id":943}},"1338":{"varMapping":{"__isSmartRef__":true,"id":1339},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":1340},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1341},"__LivelyClassName__":"lively.Closure"},"1339":{"this":{"__isSmartRef__":true,"id":1278}},"1340":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"1341":{"originalFunc":{"__isSmartRef__":true,"id":947}},"1342":{"varMapping":{"__isSmartRef__":true,"id":1343},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":1344},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1345},"__LivelyClassName__":"lively.Closure"},"1343":{"this":{"__isSmartRef__":true,"id":1278}},"1344":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"1345":{"originalFunc":{"__isSmartRef__":true,"id":951}},"1346":{"varMapping":{"__isSmartRef__":true,"id":1347},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":1348},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1349},"__LivelyClassName__":"lively.Closure"},"1347":{"this":{"__isSmartRef__":true,"id":1278}},"1348":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"1349":{"originalFunc":{"__isSmartRef__":true,"id":955}},"1350":{"varMapping":{"__isSmartRef__":true,"id":1351},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":1352},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1353},"__LivelyClassName__":"lively.Closure"},"1351":{"this":{"__isSmartRef__":true,"id":1278}},"1352":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"1353":{"originalFunc":{"__isSmartRef__":true,"id":959}},"1354":{"varMapping":{"__isSmartRef__":true,"id":1355},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":1356},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1357},"__LivelyClassName__":"lively.Closure"},"1355":{"this":{"__isSmartRef__":true,"id":1278}},"1356":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"1357":{"originalFunc":{"__isSmartRef__":true,"id":963}},"1358":{"varMapping":{"__isSmartRef__":true,"id":1359},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1360},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1361},"__LivelyClassName__":"lively.Closure"},"1359":{"this":{"__isSmartRef__":true,"id":1278}},"1360":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"1361":{"originalFunc":{"__isSmartRef__":true,"id":967}},"1362":{"varMapping":{"__isSmartRef__":true,"id":1363},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1364},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1365},"__LivelyClassName__":"lively.Closure"},"1363":{"this":{"__isSmartRef__":true,"id":1278}},"1364":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"1365":{"originalFunc":{"__isSmartRef__":true,"id":971}},"1366":{"varMapping":{"__isSmartRef__":true,"id":1367},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":1368},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1369},"__LivelyClassName__":"lively.Closure"},"1367":{"this":{"__isSmartRef__":true,"id":1278}},"1368":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"1369":{"originalFunc":{"__isSmartRef__":true,"id":975}},"1370":{"varMapping":{"__isSmartRef__":true,"id":1371},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":1372},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1373},"__LivelyClassName__":"lively.Closure"},"1371":{"this":{"__isSmartRef__":true,"id":1278}},"1372":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"1373":{"originalFunc":{"__isSmartRef__":true,"id":979}},"1374":{"varMapping":{"__isSmartRef__":true,"id":1375},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":1376},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1377},"__LivelyClassName__":"lively.Closure"},"1375":{"this":{"__isSmartRef__":true,"id":1278}},"1376":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"1377":{"originalFunc":{"__isSmartRef__":true,"id":983}},"1378":{"varMapping":{"__isSmartRef__":true,"id":1379},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":1380},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1381},"__LivelyClassName__":"lively.Closure"},"1379":{"this":{"__isSmartRef__":true,"id":1278}},"1380":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"1381":{"originalFunc":{"__isSmartRef__":true,"id":987}},"1382":{"varMapping":{"__isSmartRef__":true,"id":1383},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":1384},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1385},"__LivelyClassName__":"lively.Closure"},"1383":{"this":{"__isSmartRef__":true,"id":1278}},"1384":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"1385":{"originalFunc":{"__isSmartRef__":true,"id":991}},"1386":{"varMapping":{"__isSmartRef__":true,"id":1387},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":1388},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1389},"__LivelyClassName__":"lively.Closure"},"1387":{"this":{"__isSmartRef__":true,"id":1278}},"1388":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"1389":{"originalFunc":{"__isSmartRef__":true,"id":995}},"1390":{"varMapping":{"__isSmartRef__":true,"id":1391},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":1392},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1393},"__LivelyClassName__":"lively.Closure"},"1391":{"this":{"__isSmartRef__":true,"id":1278}},"1392":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"1393":{"originalFunc":{"__isSmartRef__":true,"id":999}},"1394":{"varMapping":{"__isSmartRef__":true,"id":1395},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1396},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1397},"__LivelyClassName__":"lively.Closure"},"1395":{"this":{"__isSmartRef__":true,"id":1278}},"1396":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"1397":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"1398":{"varMapping":{"__isSmartRef__":true,"id":1399},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1400},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1401},"__LivelyClassName__":"lively.Closure"},"1399":{"this":{"__isSmartRef__":true,"id":1278}},"1400":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"1401":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"1402":{"varMapping":{"__isSmartRef__":true,"id":1403},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1404},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1405},"__LivelyClassName__":"lively.Closure"},"1403":{"this":{"__isSmartRef__":true,"id":1278}},"1404":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"1405":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"1406":{"setDevStyle":{"__isSmartRef__":true,"id":1407},"setNormalStyle":{"__isSmartRef__":true,"id":1411},"become":{"__isSmartRef__":true,"id":1415},"onMouseDown":{"__isSmartRef__":true,"id":1419},"toolbox":{"__isSmartRef__":true,"id":1427},"zIndex":{"__isSmartRef__":true,"id":1431},"becomeRandomThing":{"__isSmartRef__":true,"id":1435},"reset":{"__isSmartRef__":true,"id":1439},"registerAsObstacle":{"__isSmartRef__":true,"id":1443},"deregisterAsObstacle":{"__isSmartRef__":true,"id":1447},"tileSize":{"__isSmartRef__":true,"id":1451},"dropOn":{"__isSmartRef__":true,"id":1455},"map":{"__isSmartRef__":true,"id":1463},"game":{"__isSmartRef__":true,"id":1467}},"1407":{"varMapping":{"__isSmartRef__":true,"id":1408},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.shape.setBorderColor(Color.blue)\n if (this.thing) {\n this.thing.shape.setBorderColor(Color.red)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1409},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1408":{"this":{"__isSmartRef__":true,"id":740}},"1409":{"timestamp":{"__isSmartRef__":true,"id":1410},"user":"timfelgentreff","tags":[]},"1410":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:34:18 GMT+0200 (CEST)"},"1411":{"varMapping":{"__isSmartRef__":true,"id":1412},"source":"function setNormalStyle() {\n this.setDevStyle()\n this.shape.setBorderColor(new Color.rgba(0,0,0,0))\n if (this.thing) {\n this.thing.shape.setBorderColor(new Color.rgba(0,0,0,0))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1413},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1412":{"this":{"__isSmartRef__":true,"id":740}},"1413":{"timestamp":{"__isSmartRef__":true,"id":1414},"user":"tessi","tags":[]},"1414":{"isSerializedDate":true,"string":"Thu May 03 2012 15:24:43 GMT+0200 (CEST)"},"1415":{"varMapping":{"__isSmartRef__":true,"id":1416},"source":"function become(thingName) {\n var thing\n if (typeof thingName === \"string\") {\n thing = this.toolbox(thingName + \"Thing\")\n } else {\n thing = thingName\n }\n if (thing) {\n if (this.thing) {\n this.thing.remove();\n }\n this.thing = thing;\n thing.ignoreEvents()\n thing.setExtent(thing.shape.getExtent())\n thing.setPosition(this.getExtent().subPt(this.thing.getExtent()))\n this.addMorph(thing)\n this.registerAsObstacle()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1417},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1416":{"this":{"__isSmartRef__":true,"id":740}},"1417":{"timestamp":{"__isSmartRef__":true,"id":1418},"user":"timfelgentreff","tags":[]},"1418":{"isSerializedDate":true,"string":"Thu May 03 2012 13:48:50 GMT+0200 (CEST)"},"1419":{"varMapping":{"__isSmartRef__":true,"id":1420},"source":"function onMouseDown(evt) {\n if (this.tile && evt.isLeftMouseButtonDown() && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this.tile)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1425},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1420":{"this":{"__isSmartRef__":true,"id":740},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1421}},"1421":{"$super":{"__isSmartRef__":true,"id":1422}},"1422":{"varMapping":{"__isSmartRef__":true,"id":1423},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1424},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1423":{"obj":{"__isSmartRef__":true,"id":740},"name":"onMouseDown"},"1424":{},"1425":{"timestamp":{"__isSmartRef__":true,"id":1426},"user":"tessi","tags":[]},"1426":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:27:13 GMT+0200 (CEST)"},"1427":{"varMapping":{"__isSmartRef__":true,"id":1428},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":1429},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1428":{"this":{"__isSmartRef__":true,"id":740}},"1429":{"timestamp":{"__isSmartRef__":true,"id":1430},"user":"tessi","tags":[]},"1430":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:27:30 GMT+0200 (CEST)"},"1431":{"varMapping":{"__isSmartRef__":true,"id":1432},"source":"function zIndex(idx) {\n if (idx) {\n return this.renderContext().morphNode.style.zIndex = idx\n } else {\n return this.renderContext().morphNode.style.zIndex\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1433},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1432":{"this":{"__isSmartRef__":true,"id":740}},"1433":{"timestamp":{"__isSmartRef__":true,"id":1434},"user":"timfelgentreff","tags":[]},"1434":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:28:09 GMT+0200 (CEST)"},"1435":{"varMapping":{"__isSmartRef__":true,"id":1436},"source":"function becomeRandomThing() {\n var thingNames = this.game().partNamesEndingWith(\"Thing\")\n this.become(thingNames[Math.round(Math.random() * (thingNames.length - 1))])\n}","funcProperties":{"__isSmartRef__":true,"id":1437},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1436":{"this":{"__isSmartRef__":true,"id":740}},"1437":{"timestamp":{"__isSmartRef__":true,"id":1438},"user":"tessi","tags":[]},"1438":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:54 GMT+0200 (CEST)"},"1439":{"varMapping":{"__isSmartRef__":true,"id":1440},"source":"function reset() {\n if (this.thing) {\n this.thing.remove()\n this.thing = null\n }\n this.deregisterAsObstacle()\n this.tile = null\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":1441},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1440":{"this":{"__isSmartRef__":true,"id":740}},"1441":{"timestamp":{"__isSmartRef__":true,"id":1442},"user":"tessi","tags":[]},"1442":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:28:03 GMT+0200 (CEST)"},"1443":{"varMapping":{"__isSmartRef__":true,"id":1444},"source":"function registerAsObstacle() {\n this.deregisterAsObstacle()\n\n if (this.tile && this.thing) {\n this.occludedTiles = []\n\n // things are anchored at bottom-left, so neighbours direction is negative\n var neighboursBlockVertical = Math.ceil(this.thing.getExtent().y / this.tileSize().y),\n neighboursBlockHorizontal = Math.ceil(this.thing.getExtent().x / this.tileSize().x),\n neighbour\n\n this.occludedTiles.push(this.tile)\n this.tile.addObstacle(this)\n for (var i = 0; i < neighboursBlockHorizontal; i++) {\n for (var j = 0; j < neighboursBlockVertical; j++) {\n neighbour = this.tile.neighbourAt(pt(-i,-j))\n if (neighbour && !this.occludedTiles.member(neighbour)) {\n neighbour.addObstacle(this)\n this.occludedTiles.push(neighbour)\n }\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1445},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1444":{"this":{"__isSmartRef__":true,"id":740}},"1445":{"timestamp":{"__isSmartRef__":true,"id":1446},"user":"timfelgentreff","tags":[]},"1446":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:18:39 GMT+0200 (CEST)"},"1447":{"varMapping":{"__isSmartRef__":true,"id":1448},"source":"function deregisterAsObstacle() {\n var that = this\n if (this.occludedTiles) {\n this.occludedTiles.each(function (tile) {\n tile.removeObstacle(that)\n })\n this.occludedTiles = null\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1449},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1448":{"this":{"__isSmartRef__":true,"id":740}},"1449":{"timestamp":{"__isSmartRef__":true,"id":1450},"user":"timfelgentreff","tags":[]},"1450":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:25:37 GMT+0200 (CEST)"},"1451":{"varMapping":{"__isSmartRef__":true,"id":1452},"source":"function tileSize() {\n if (this.tile) {\n return this.tile.tileSize()\n } else {\n return this.toolbox(\"Tile\").tileSize()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1453},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1452":{"this":{"__isSmartRef__":true,"id":740}},"1453":{"timestamp":{"__isSmartRef__":true,"id":1454},"user":"timfelgentreff","tags":[]},"1454":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:01:00 GMT+0200 (CEST)"},"1455":{"varMapping":{"__isSmartRef__":true,"id":1456},"source":"function dropOn(morph) {\n $super(morph);\n this.deregisterAsObstacle()\n if (morph.isTile) {\n this.tile = morph\n this.setPosition(pt(0,0))\n this.registerAsObstacle()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1461},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1456":{"this":{"__isSmartRef__":true,"id":740},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1457}},"1457":{"$super":{"__isSmartRef__":true,"id":1458}},"1458":{"varMapping":{"__isSmartRef__":true,"id":1459},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1460},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1459":{"obj":{"__isSmartRef__":true,"id":740},"name":"dropOn"},"1460":{},"1461":{"timestamp":{"__isSmartRef__":true,"id":1462},"user":"timfelgentreff","tags":[]},"1462":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:13:07 GMT+0200 (CEST)"},"1463":{"varMapping":{"__isSmartRef__":true,"id":1464},"source":"function map() {\n return this.owner.map()\n}","funcProperties":{"__isSmartRef__":true,"id":1465},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1464":{"this":{"__isSmartRef__":true,"id":740}},"1465":{"timestamp":{"__isSmartRef__":true,"id":1466},"user":"tessi","tags":[]},"1466":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:34 GMT+0200 (CEST)"},"1467":{"varMapping":{"__isSmartRef__":true,"id":1468},"source":"function game() {\n return this.owner.game()\n}","funcProperties":{"__isSmartRef__":true,"id":1469},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1468":{"this":{"__isSmartRef__":true,"id":740}},"1469":{"timestamp":{"__isSmartRef__":true,"id":1470},"user":"tessi","tags":[]},"1470":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:45 GMT+0200 (CEST)"},"1471":{"setDevStyle":{"__isSmartRef__":true,"id":1472},"setNormalStyle":{"__isSmartRef__":true,"id":1476},"tileSize":{"__isSmartRef__":true,"id":1480},"become":{"__isSmartRef__":true,"id":1484},"onMouseDown":{"__isSmartRef__":true,"id":1488},"setGridPosition":{"__isSmartRef__":true,"id":1496},"toolbox":{"__isSmartRef__":true,"id":1500},"distanceTo":{"__isSmartRef__":true,"id":1504},"tileWasDropped":{"__isSmartRef__":true,"id":1508},"isObstacle":{"__isSmartRef__":true,"id":1512},"neighboursInDirection":{"__isSmartRef__":true,"id":1516},"neighbours":{"__isSmartRef__":true,"id":1520},"zIndex":{"__isSmartRef__":true,"id":1524},"obstacles":{"__isSmartRef__":true,"id":1528},"addObstacle":{"__isSmartRef__":true,"id":1532},"removeObstacle":{"__isSmartRef__":true,"id":1536},"isTile":{"__isSmartRef__":true,"id":1540},"neighbourAt":{"__isSmartRef__":true,"id":1544},"map":{"__isSmartRef__":true,"id":1548},"game":{"__isSmartRef__":true,"id":1552},"reset":{"__isSmartRef__":true,"id":1556},"shallowCopy":{"__isSmartRef__":true,"id":1560},"characters":{"__isSmartRef__":true,"id":1564},"enterTile":{"__isSmartRef__":true,"id":1568},"leaveTile":{"__isSmartRef__":true,"id":1572},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":1576}},"1472":{"varMapping":{"__isSmartRef__":true,"id":1473},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1474},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1475},"__LivelyClassName__":"lively.Closure"},"1473":{"this":{"__isSmartRef__":true,"id":721}},"1474":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"1475":{"originalFunc":{"__isSmartRef__":true,"id":892}},"1476":{"varMapping":{"__isSmartRef__":true,"id":1477},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1478},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1479},"__LivelyClassName__":"lively.Closure"},"1477":{"this":{"__isSmartRef__":true,"id":721}},"1478":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"1479":{"originalFunc":{"__isSmartRef__":true,"id":911}},"1480":{"varMapping":{"__isSmartRef__":true,"id":1481},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":1482},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1483},"__LivelyClassName__":"lively.Closure"},"1481":{"this":{"__isSmartRef__":true,"id":721}},"1482":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"1483":{"originalFunc":{"__isSmartRef__":true,"id":915}},"1484":{"varMapping":{"__isSmartRef__":true,"id":1485},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1486},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1487},"__LivelyClassName__":"lively.Closure"},"1485":{"this":{"__isSmartRef__":true,"id":721}},"1486":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"1487":{"originalFunc":{"__isSmartRef__":true,"id":919}},"1488":{"varMapping":{"__isSmartRef__":true,"id":1489},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1494},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1495},"__LivelyClassName__":"lively.Closure"},"1489":{"this":{"__isSmartRef__":true,"id":721},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1490}},"1490":{"$super":{"__isSmartRef__":true,"id":1491}},"1491":{"varMapping":{"__isSmartRef__":true,"id":1492},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1493},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1492":{"obj":{"__isSmartRef__":true,"id":721},"name":"onMouseDown"},"1493":{},"1494":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"1495":{"originalFunc":{"__isSmartRef__":true,"id":923}},"1496":{"varMapping":{"__isSmartRef__":true,"id":1497},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":1498},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1499},"__LivelyClassName__":"lively.Closure"},"1497":{"this":{"__isSmartRef__":true,"id":721}},"1498":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"1499":{"originalFunc":{"__isSmartRef__":true,"id":931}},"1500":{"varMapping":{"__isSmartRef__":true,"id":1501},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":1502},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1503},"__LivelyClassName__":"lively.Closure"},"1501":{"this":{"__isSmartRef__":true,"id":721}},"1502":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"1503":{"originalFunc":{"__isSmartRef__":true,"id":935}},"1504":{"varMapping":{"__isSmartRef__":true,"id":1505},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":1506},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1507},"__LivelyClassName__":"lively.Closure"},"1505":{"this":{"__isSmartRef__":true,"id":721}},"1506":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"1507":{"originalFunc":{"__isSmartRef__":true,"id":939}},"1508":{"varMapping":{"__isSmartRef__":true,"id":1509},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":1510},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1511},"__LivelyClassName__":"lively.Closure"},"1509":{"this":{"__isSmartRef__":true,"id":721}},"1510":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"1511":{"originalFunc":{"__isSmartRef__":true,"id":943}},"1512":{"varMapping":{"__isSmartRef__":true,"id":1513},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":1514},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1515},"__LivelyClassName__":"lively.Closure"},"1513":{"this":{"__isSmartRef__":true,"id":721}},"1514":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"1515":{"originalFunc":{"__isSmartRef__":true,"id":947}},"1516":{"varMapping":{"__isSmartRef__":true,"id":1517},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":1518},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1519},"__LivelyClassName__":"lively.Closure"},"1517":{"this":{"__isSmartRef__":true,"id":721}},"1518":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"1519":{"originalFunc":{"__isSmartRef__":true,"id":951}},"1520":{"varMapping":{"__isSmartRef__":true,"id":1521},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":1522},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1523},"__LivelyClassName__":"lively.Closure"},"1521":{"this":{"__isSmartRef__":true,"id":721}},"1522":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"1523":{"originalFunc":{"__isSmartRef__":true,"id":955}},"1524":{"varMapping":{"__isSmartRef__":true,"id":1525},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":1526},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1527},"__LivelyClassName__":"lively.Closure"},"1525":{"this":{"__isSmartRef__":true,"id":721}},"1526":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"1527":{"originalFunc":{"__isSmartRef__":true,"id":959}},"1528":{"varMapping":{"__isSmartRef__":true,"id":1529},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":1530},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1531},"__LivelyClassName__":"lively.Closure"},"1529":{"this":{"__isSmartRef__":true,"id":721}},"1530":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"1531":{"originalFunc":{"__isSmartRef__":true,"id":963}},"1532":{"varMapping":{"__isSmartRef__":true,"id":1533},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1534},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1535},"__LivelyClassName__":"lively.Closure"},"1533":{"this":{"__isSmartRef__":true,"id":721}},"1534":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"1535":{"originalFunc":{"__isSmartRef__":true,"id":967}},"1536":{"varMapping":{"__isSmartRef__":true,"id":1537},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1538},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1539},"__LivelyClassName__":"lively.Closure"},"1537":{"this":{"__isSmartRef__":true,"id":721}},"1538":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"1539":{"originalFunc":{"__isSmartRef__":true,"id":971}},"1540":{"varMapping":{"__isSmartRef__":true,"id":1541},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":1542},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1543},"__LivelyClassName__":"lively.Closure"},"1541":{"this":{"__isSmartRef__":true,"id":721}},"1542":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"1543":{"originalFunc":{"__isSmartRef__":true,"id":975}},"1544":{"varMapping":{"__isSmartRef__":true,"id":1545},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":1546},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1547},"__LivelyClassName__":"lively.Closure"},"1545":{"this":{"__isSmartRef__":true,"id":721}},"1546":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"1547":{"originalFunc":{"__isSmartRef__":true,"id":979}},"1548":{"varMapping":{"__isSmartRef__":true,"id":1549},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":1550},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1551},"__LivelyClassName__":"lively.Closure"},"1549":{"this":{"__isSmartRef__":true,"id":721}},"1550":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"1551":{"originalFunc":{"__isSmartRef__":true,"id":983}},"1552":{"varMapping":{"__isSmartRef__":true,"id":1553},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":1554},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1555},"__LivelyClassName__":"lively.Closure"},"1553":{"this":{"__isSmartRef__":true,"id":721}},"1554":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"1555":{"originalFunc":{"__isSmartRef__":true,"id":987}},"1556":{"varMapping":{"__isSmartRef__":true,"id":1557},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":1558},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1559},"__LivelyClassName__":"lively.Closure"},"1557":{"this":{"__isSmartRef__":true,"id":721}},"1558":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"1559":{"originalFunc":{"__isSmartRef__":true,"id":991}},"1560":{"varMapping":{"__isSmartRef__":true,"id":1561},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":1562},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1563},"__LivelyClassName__":"lively.Closure"},"1561":{"this":{"__isSmartRef__":true,"id":721}},"1562":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"1563":{"originalFunc":{"__isSmartRef__":true,"id":995}},"1564":{"varMapping":{"__isSmartRef__":true,"id":1565},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":1566},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1567},"__LivelyClassName__":"lively.Closure"},"1565":{"this":{"__isSmartRef__":true,"id":721}},"1566":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"1567":{"originalFunc":{"__isSmartRef__":true,"id":999}},"1568":{"varMapping":{"__isSmartRef__":true,"id":1569},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1570},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1571},"__LivelyClassName__":"lively.Closure"},"1569":{"this":{"__isSmartRef__":true,"id":721}},"1570":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"1571":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"1572":{"varMapping":{"__isSmartRef__":true,"id":1573},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1574},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1575},"__LivelyClassName__":"lively.Closure"},"1573":{"this":{"__isSmartRef__":true,"id":721}},"1574":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"1575":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"1576":{"varMapping":{"__isSmartRef__":true,"id":1577},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1578},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1579},"__LivelyClassName__":"lively.Closure"},"1577":{"this":{"__isSmartRef__":true,"id":721}},"1578":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"1579":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"1580":{"submorphs":[{"__isSmartRef__":true,"id":1581}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1591},"renderContextTable":{"__isSmartRef__":true,"id":1596},"eventHandler":{"__isSmartRef__":true,"id":1597},"_ClipMode":"visible","derivationIds":[],"id":"54AA5FAF-52FB-4887-BE95-B928A58E6D82","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1598},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":3,"column":4,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":1581},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":626},{"__isSmartRef__":true,"id":645},{"__isSmartRef__":true,"id":702},{"__isSmartRef__":true,"id":1599},{"__isSmartRef__":true,"id":2084},{"__isSmartRef__":true,"id":1937},{"__isSmartRef__":true,"id":2065},{"__isSmartRef__":true,"id":2321}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13025},"__LivelyClassName__":"lively.morphic.Box"},"1581":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1582},"renderContextTable":{"__isSmartRef__":true,"id":1587},"eventHandler":{"__isSmartRef__":true,"id":1588},"_ClipMode":"visible","derivationIds":[],"id":"1C15FBB7-654E-4C09-9CD0-8CDA06C9872D","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1589},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1580},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1590},"__LivelyClassName__":"lively.morphic.Image"},"1582":{"_Position":{"__isSmartRef__":true,"id":1583},"renderContextTable":{"__isSmartRef__":true,"id":1584},"_Extent":{"__isSmartRef__":true,"id":1585},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":1586},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"1583":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1584":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"1585":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1586":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1587":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"1588":{"morph":{"__isSmartRef__":true,"id":1581},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1589":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1590":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"1591":{"_Position":{"__isSmartRef__":true,"id":1592},"renderContextTable":{"__isSmartRef__":true,"id":1593},"_Extent":{"__isSmartRef__":true,"id":1594},"_Padding":{"__isSmartRef__":true,"id":1595},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1592":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1593":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"1594":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1595":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1596":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"1597":{"morph":{"__isSmartRef__":true,"id":1580},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1598":{"x":192,"y":144,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1599":{"submorphs":[{"__isSmartRef__":true,"id":1600}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1610},"renderContextTable":{"__isSmartRef__":true,"id":1615},"eventHandler":{"__isSmartRef__":true,"id":1616},"_ClipMode":"visible","derivationIds":[],"id":"19F53002-6A21-440E-9E8D-532FB2CD052A","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1617},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":3,"column":3,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":1600},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":1618}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12916},"__LivelyClassName__":"lively.morphic.Box"},"1600":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1601},"renderContextTable":{"__isSmartRef__":true,"id":1606},"eventHandler":{"__isSmartRef__":true,"id":1607},"_ClipMode":"visible","derivationIds":[],"id":"5A301CA3-37CD-4FF3-BCA2-D0563C526BED","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1608},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1599},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1609},"__LivelyClassName__":"lively.morphic.Image"},"1601":{"_Position":{"__isSmartRef__":true,"id":1602},"renderContextTable":{"__isSmartRef__":true,"id":1603},"_Extent":{"__isSmartRef__":true,"id":1604},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":1605},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"1602":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1603":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"1604":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1605":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1606":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"1607":{"morph":{"__isSmartRef__":true,"id":1600},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1608":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1609":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"1610":{"_Position":{"__isSmartRef__":true,"id":1611},"renderContextTable":{"__isSmartRef__":true,"id":1612},"_Extent":{"__isSmartRef__":true,"id":1613},"_Padding":{"__isSmartRef__":true,"id":1614},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1611":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1612":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"1613":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1614":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1615":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"1616":{"morph":{"__isSmartRef__":true,"id":1599},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1617":{"x":144,"y":144,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1618":{"submorphs":[{"__isSmartRef__":true,"id":1619}],"scripts":[],"id":"4941A0D6-CF16-4F15-AF78-2402B89E7F95","shape":{"__isSmartRef__":true,"id":1648},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1654},"showsHalos":false,"name":"Thing2","partsBinMetaInfo":{"__isSmartRef__":true,"id":786},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":1655},"eventHandler":{"__isSmartRef__":true,"id":1656},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","DF863BAB-9987-4611-BCD2-DE9FDCE7D3B5","768ED97D-1E05-415B-AB3F-B6495AC603A0","5A0ECA63-F6E2-4E35-B9A2-75DE2A4C4158","3B4EDC8A-0E99-4F45-A6D5-5CCE7E75BC88","1A900574-7D84-44F3-BB9D-1A1E26FDDB9B","383B3B54-4D0D-42E5-88C6-460045549029","EFC22A04-8B3C-48A8-9C5F-1EBC66DFD6D6","52D7E09F-EA1F-44D5-A893-F72A70D40429","CAC332B2-DA3A-4534-B3C7-E03D31DE9D2C","2CDD083E-3AB7-4BB9-B6D1-A70716226BDF","B4327E15-A3DA-44A6-89B0-71AFB39350AA","D2E0258B-443A-444C-8640-C595ECC95152","6C8F2B5B-D9E4-4742-B4A1-DA08C3B66E3A","34B4B715-9D86-4D1A-921B-5340CDC05F73","4CA32288-0E12-49F5-A485-634D7D327287","5941FCB6-8C08-405A-B2C2-D84C19F702E2","7BA243A0-B441-41E9-B4AE-A18EDB0F9A8A","C1A510A2-576D-49C6-89EA-56953C5D6FC1","372DAC3D-D2F5-47C2-8538-A2EEE9D3A073","6E3BFF0C-E4EB-4D35-959F-9C12F885012C","5D157E3A-5D4F-4C0A-888F-5FE24CBFC6E5","8C8C94D0-B291-47D8-8B8D-F606AF1A59B1","4794D8F3-DD25-4AFF-A687-079AB3EB7B71","324C5BEC-5664-49AD-AE50-4F3AD40CB933"],"partTests":{"__isSmartRef__":true,"id":1657},"isBeingDragged":false,"moved":true,"_ClipMode":"visible","tile":{"__isSmartRef__":true,"id":1662},"thing":{"__isSmartRef__":true,"id":1619},"prevScroll":[0,0],"occludedTiles":[{"__isSmartRef__":true,"id":1662},{"__isSmartRef__":true,"id":1790},{"__isSmartRef__":true,"id":1937},{"__isSmartRef__":true,"id":1599},{"__isSmartRef__":true,"id":4972},{"__isSmartRef__":true,"id":12486},{"__isSmartRef__":true,"id":1809},{"__isSmartRef__":true,"id":12723},{"__isSmartRef__":true,"id":5119},{"__isSmartRef__":true,"id":5816},{"__isSmartRef__":true,"id":5579},{"__isSmartRef__":true,"id":5451}],"_Rotation":0,"_Scale":1.002003004005006,"owner":{"__isSmartRef__":true,"id":1662},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12851},"__LivelyClassName__":"lively.morphic.Box"},"1619":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1620},"derivationIds":[null,"4AE4BBE5-9BFB-4F5D-B27C-8DD85112725A","86A149F5-06EF-47AD-835C-9A726C01DEC8","EB2A85F2-9540-48C2-88B4-369CA07F801A","0BAC7C6A-ACC6-4332-841E-CE3BBC80E61A","BE2C23C1-A210-4568-94BB-15E316ADB796","FF30ED1A-B673-470B-A6F4-8494AD36F878","036181A0-A0EA-4EB8-A7BA-B77095C8421C"],"id":"0375EE09-29AF-49BD-AA68-DE3944E8F487","renderContextTable":{"__isSmartRef__":true,"id":1626},"eventHandler":{"__isSmartRef__":true,"id":1627},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1628},"name":"TreeThing1","isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1629},"__SourceModuleName__":"Global.lively.morphic.Widgets","moved":true,"isThing":true,"_ClipMode":"visible","_Rotation":0,"_Scale":1.002003004005006,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1618},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1640},"__LivelyClassName__":"lively.morphic.Image"},"1620":{"_Position":{"__isSmartRef__":true,"id":1621},"renderContextTable":{"__isSmartRef__":true,"id":1622},"_Extent":{"__isSmartRef__":true,"id":1623},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1624},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/tree.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderColor":{"__isSmartRef__":true,"id":1625},"__LivelyClassName__":"lively.morphic.Shapes.Image"},"1621":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1622":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"1623":{"x":141,"y":180,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1624":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1625":{"r":0,"g":0,"b":0,"a":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1626":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"1627":{"morph":{"__isSmartRef__":true,"id":1619},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1628":{"x":-93,"y":-132,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1629":{"partName":"TreeThing","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"A not movable tree.","changes":[{"__isSmartRef__":true,"id":1630},{"__isSmartRef__":true,"id":1632},{"__isSmartRef__":true,"id":1634},{"__isSmartRef__":true,"id":1636},{"__isSmartRef__":true,"id":1638}],"migrationLevel":4,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1630":{"date":{"__isSmartRef__":true,"id":1631},"author":"timfelgentreff","message":"resize","id":"178F8ABC-5DE3-489C-B8EA-1AA89F7BD552"},"1631":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:33:32 GMT+0200 (CEST)"},"1632":{"date":{"__isSmartRef__":true,"id":1633},"author":"tessi","message":"","id":"7B587A9B-4A72-4337-B5A2-22ECF5417652"},"1633":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:14:54 GMT+0200 (CEST)"},"1634":{"date":{"__isSmartRef__":true,"id":1635},"author":"tessi","message":"","id":"94DAAC08-767D-4E73-AC75-1D56331C7ACC"},"1635":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:43:14 GMT+0200 (CEST)"},"1636":{"date":{"__isSmartRef__":true,"id":1637},"author":"tessi","message":"","id":"DFDA9255-BAD7-44C4-BCDC-36D91964FC81"},"1637":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:51:42 GMT+0200 (CEST)"},"1638":{"date":{"__isSmartRef__":true,"id":1639},"author":"timfelgentreff","message":"no comment","id":"C9A066E4-3B98-4778-92E0-0E8C5CF4FFA8"},"1639":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:07:31 GMT+0200 (CEST)"},"1640":{"dropOn":{"__isSmartRef__":true,"id":1641}},"1641":{"varMapping":{"__isSmartRef__":true,"id":1642},"source":"function dropOn(morph) {\n if (morph.isTile && morph.isTile()) {\n var thing = morph.toolbox(\"Thing\")\n thing.dropOn(morph)\n thing.setNormalStyle()\n thing.become(this.copy())\n } else {\n $super(morph);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1647},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1642":{"this":{"__isSmartRef__":true,"id":1619},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1643}},"1643":{"$super":{"__isSmartRef__":true,"id":1644}},"1644":{"varMapping":{"__isSmartRef__":true,"id":1645},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1646},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1645":{"obj":{"__isSmartRef__":true,"id":1619},"name":"dropOn"},"1646":{},"1647":{},"1648":{"position":{"__isSmartRef__":true,"id":1649},"_Extent":{"__isSmartRef__":true,"id":1650},"_BorderWidth":1.148,"_BorderColor":{"__isSmartRef__":true,"id":1651},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1652},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1653},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1649":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1650":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1651":{"r":0,"g":0,"b":0,"a":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1652":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"1653":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1654":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1655":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"1656":{"morph":{"__isSmartRef__":true,"id":1618},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1657":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1658}},"1658":{"test01IsMorph":{"__isSmartRef__":true,"id":1659}},"1659":{"varMapping":{"__isSmartRef__":true,"id":1660},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1661},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1660":{"this":{"__isSmartRef__":true,"id":1657}},"1661":{},"1662":{"submorphs":[{"__isSmartRef__":true,"id":1663},{"__isSmartRef__":true,"id":1618}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1673},"renderContextTable":{"__isSmartRef__":true,"id":1678},"eventHandler":{"__isSmartRef__":true,"id":1679},"_ClipMode":"visible","derivationIds":[],"id":"FEA50C69-3384-4DD4-A05C-5C3867A6031E","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1680},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":6,"column":3,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":1663},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":1618}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1681},"__LivelyClassName__":"lively.morphic.Box"},"1663":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1664},"renderContextTable":{"__isSmartRef__":true,"id":1669},"eventHandler":{"__isSmartRef__":true,"id":1670},"_ClipMode":"visible","derivationIds":[],"id":"595E4BD7-D103-4D46-9C61-D28309678D72","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1671},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1662},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1672},"__LivelyClassName__":"lively.morphic.Image"},"1664":{"_Position":{"__isSmartRef__":true,"id":1665},"renderContextTable":{"__isSmartRef__":true,"id":1666},"_Extent":{"__isSmartRef__":true,"id":1667},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":1668},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"1665":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1666":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"1667":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1668":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1669":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"1670":{"morph":{"__isSmartRef__":true,"id":1663},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1671":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1672":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"1673":{"_Position":{"__isSmartRef__":true,"id":1674},"renderContextTable":{"__isSmartRef__":true,"id":1675},"_Extent":{"__isSmartRef__":true,"id":1676},"_Padding":{"__isSmartRef__":true,"id":1677},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1674":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1675":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"1676":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1677":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1678":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"1679":{"morph":{"__isSmartRef__":true,"id":1662},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1680":{"x":144,"y":288,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1681":{"setDevStyle":{"__isSmartRef__":true,"id":1682},"setNormalStyle":{"__isSmartRef__":true,"id":1686},"tileSize":{"__isSmartRef__":true,"id":1690},"become":{"__isSmartRef__":true,"id":1694},"onMouseDown":{"__isSmartRef__":true,"id":1698},"setGridPosition":{"__isSmartRef__":true,"id":1706},"toolbox":{"__isSmartRef__":true,"id":1710},"distanceTo":{"__isSmartRef__":true,"id":1714},"tileWasDropped":{"__isSmartRef__":true,"id":1718},"isObstacle":{"__isSmartRef__":true,"id":1722},"neighboursInDirection":{"__isSmartRef__":true,"id":1726},"neighbours":{"__isSmartRef__":true,"id":1730},"zIndex":{"__isSmartRef__":true,"id":1734},"obstacles":{"__isSmartRef__":true,"id":1738},"addObstacle":{"__isSmartRef__":true,"id":1742},"removeObstacle":{"__isSmartRef__":true,"id":1746},"isTile":{"__isSmartRef__":true,"id":1750},"neighbourAt":{"__isSmartRef__":true,"id":1754},"map":{"__isSmartRef__":true,"id":1758},"game":{"__isSmartRef__":true,"id":1762},"reset":{"__isSmartRef__":true,"id":1766},"shallowCopy":{"__isSmartRef__":true,"id":1770},"characters":{"__isSmartRef__":true,"id":1774},"enterTile":{"__isSmartRef__":true,"id":1778},"leaveTile":{"__isSmartRef__":true,"id":1782},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":1786}},"1682":{"varMapping":{"__isSmartRef__":true,"id":1683},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1684},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1685},"__LivelyClassName__":"lively.Closure"},"1683":{"this":{"__isSmartRef__":true,"id":1662}},"1684":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"1685":{"originalFunc":{"__isSmartRef__":true,"id":892}},"1686":{"varMapping":{"__isSmartRef__":true,"id":1687},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1688},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1689},"__LivelyClassName__":"lively.Closure"},"1687":{"this":{"__isSmartRef__":true,"id":1662}},"1688":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"1689":{"originalFunc":{"__isSmartRef__":true,"id":911}},"1690":{"varMapping":{"__isSmartRef__":true,"id":1691},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":1692},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1693},"__LivelyClassName__":"lively.Closure"},"1691":{"this":{"__isSmartRef__":true,"id":1662}},"1692":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"1693":{"originalFunc":{"__isSmartRef__":true,"id":915}},"1694":{"varMapping":{"__isSmartRef__":true,"id":1695},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1696},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1697},"__LivelyClassName__":"lively.Closure"},"1695":{"this":{"__isSmartRef__":true,"id":1662}},"1696":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"1697":{"originalFunc":{"__isSmartRef__":true,"id":919}},"1698":{"varMapping":{"__isSmartRef__":true,"id":1699},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1704},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1705},"__LivelyClassName__":"lively.Closure"},"1699":{"this":{"__isSmartRef__":true,"id":1662},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1700}},"1700":{"$super":{"__isSmartRef__":true,"id":1701}},"1701":{"varMapping":{"__isSmartRef__":true,"id":1702},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1703},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1702":{"obj":{"__isSmartRef__":true,"id":1662},"name":"onMouseDown"},"1703":{},"1704":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"1705":{"originalFunc":{"__isSmartRef__":true,"id":923}},"1706":{"varMapping":{"__isSmartRef__":true,"id":1707},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":1708},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1709},"__LivelyClassName__":"lively.Closure"},"1707":{"this":{"__isSmartRef__":true,"id":1662}},"1708":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"1709":{"originalFunc":{"__isSmartRef__":true,"id":931}},"1710":{"varMapping":{"__isSmartRef__":true,"id":1711},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":1712},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1713},"__LivelyClassName__":"lively.Closure"},"1711":{"this":{"__isSmartRef__":true,"id":1662}},"1712":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"1713":{"originalFunc":{"__isSmartRef__":true,"id":935}},"1714":{"varMapping":{"__isSmartRef__":true,"id":1715},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":1716},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1717},"__LivelyClassName__":"lively.Closure"},"1715":{"this":{"__isSmartRef__":true,"id":1662}},"1716":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"1717":{"originalFunc":{"__isSmartRef__":true,"id":939}},"1718":{"varMapping":{"__isSmartRef__":true,"id":1719},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":1720},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1721},"__LivelyClassName__":"lively.Closure"},"1719":{"this":{"__isSmartRef__":true,"id":1662}},"1720":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"1721":{"originalFunc":{"__isSmartRef__":true,"id":943}},"1722":{"varMapping":{"__isSmartRef__":true,"id":1723},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":1724},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1725},"__LivelyClassName__":"lively.Closure"},"1723":{"this":{"__isSmartRef__":true,"id":1662}},"1724":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"1725":{"originalFunc":{"__isSmartRef__":true,"id":947}},"1726":{"varMapping":{"__isSmartRef__":true,"id":1727},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":1728},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1729},"__LivelyClassName__":"lively.Closure"},"1727":{"this":{"__isSmartRef__":true,"id":1662}},"1728":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"1729":{"originalFunc":{"__isSmartRef__":true,"id":951}},"1730":{"varMapping":{"__isSmartRef__":true,"id":1731},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":1732},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1733},"__LivelyClassName__":"lively.Closure"},"1731":{"this":{"__isSmartRef__":true,"id":1662}},"1732":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"1733":{"originalFunc":{"__isSmartRef__":true,"id":955}},"1734":{"varMapping":{"__isSmartRef__":true,"id":1735},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":1736},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1737},"__LivelyClassName__":"lively.Closure"},"1735":{"this":{"__isSmartRef__":true,"id":1662}},"1736":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"1737":{"originalFunc":{"__isSmartRef__":true,"id":959}},"1738":{"varMapping":{"__isSmartRef__":true,"id":1739},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":1740},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1741},"__LivelyClassName__":"lively.Closure"},"1739":{"this":{"__isSmartRef__":true,"id":1662}},"1740":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"1741":{"originalFunc":{"__isSmartRef__":true,"id":963}},"1742":{"varMapping":{"__isSmartRef__":true,"id":1743},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1744},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1745},"__LivelyClassName__":"lively.Closure"},"1743":{"this":{"__isSmartRef__":true,"id":1662}},"1744":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"1745":{"originalFunc":{"__isSmartRef__":true,"id":967}},"1746":{"varMapping":{"__isSmartRef__":true,"id":1747},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1748},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1749},"__LivelyClassName__":"lively.Closure"},"1747":{"this":{"__isSmartRef__":true,"id":1662}},"1748":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"1749":{"originalFunc":{"__isSmartRef__":true,"id":971}},"1750":{"varMapping":{"__isSmartRef__":true,"id":1751},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":1752},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1753},"__LivelyClassName__":"lively.Closure"},"1751":{"this":{"__isSmartRef__":true,"id":1662}},"1752":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"1753":{"originalFunc":{"__isSmartRef__":true,"id":975}},"1754":{"varMapping":{"__isSmartRef__":true,"id":1755},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":1756},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1757},"__LivelyClassName__":"lively.Closure"},"1755":{"this":{"__isSmartRef__":true,"id":1662}},"1756":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"1757":{"originalFunc":{"__isSmartRef__":true,"id":979}},"1758":{"varMapping":{"__isSmartRef__":true,"id":1759},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":1760},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1761},"__LivelyClassName__":"lively.Closure"},"1759":{"this":{"__isSmartRef__":true,"id":1662}},"1760":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"1761":{"originalFunc":{"__isSmartRef__":true,"id":983}},"1762":{"varMapping":{"__isSmartRef__":true,"id":1763},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":1764},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1765},"__LivelyClassName__":"lively.Closure"},"1763":{"this":{"__isSmartRef__":true,"id":1662}},"1764":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"1765":{"originalFunc":{"__isSmartRef__":true,"id":987}},"1766":{"varMapping":{"__isSmartRef__":true,"id":1767},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":1768},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1769},"__LivelyClassName__":"lively.Closure"},"1767":{"this":{"__isSmartRef__":true,"id":1662}},"1768":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"1769":{"originalFunc":{"__isSmartRef__":true,"id":991}},"1770":{"varMapping":{"__isSmartRef__":true,"id":1771},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":1772},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1773},"__LivelyClassName__":"lively.Closure"},"1771":{"this":{"__isSmartRef__":true,"id":1662}},"1772":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"1773":{"originalFunc":{"__isSmartRef__":true,"id":995}},"1774":{"varMapping":{"__isSmartRef__":true,"id":1775},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":1776},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1777},"__LivelyClassName__":"lively.Closure"},"1775":{"this":{"__isSmartRef__":true,"id":1662}},"1776":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"1777":{"originalFunc":{"__isSmartRef__":true,"id":999}},"1778":{"varMapping":{"__isSmartRef__":true,"id":1779},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1780},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1781},"__LivelyClassName__":"lively.Closure"},"1779":{"this":{"__isSmartRef__":true,"id":1662}},"1780":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"1781":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"1782":{"varMapping":{"__isSmartRef__":true,"id":1783},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1784},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1785},"__LivelyClassName__":"lively.Closure"},"1783":{"this":{"__isSmartRef__":true,"id":1662}},"1784":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"1785":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"1786":{"varMapping":{"__isSmartRef__":true,"id":1787},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1788},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1789},"__LivelyClassName__":"lively.Closure"},"1787":{"this":{"__isSmartRef__":true,"id":1662}},"1788":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"1789":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"1790":{"submorphs":[{"__isSmartRef__":true,"id":1791}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1801},"renderContextTable":{"__isSmartRef__":true,"id":1806},"eventHandler":{"__isSmartRef__":true,"id":1807},"_ClipMode":"visible","derivationIds":[],"id":"131FF74C-DB78-47AE-949F-70ECCDC41A41","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1808},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":5,"column":3,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":1791},"grabbingEnabled":false,"charactersStandingHere":[],"__obstacles":[{"__isSmartRef__":true,"id":1618}],"cachedNeightbours":[{"__isSmartRef__":true,"id":1809},{"__isSmartRef__":true,"id":1937},{"__isSmartRef__":true,"id":2065},{"__isSmartRef__":true,"id":12486},{"__isSmartRef__":true,"id":4697},{"__isSmartRef__":true,"id":4972},{"__isSmartRef__":true,"id":1662},{"__isSmartRef__":true,"id":3672}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12614},"__LivelyClassName__":"lively.morphic.Box"},"1791":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1792},"renderContextTable":{"__isSmartRef__":true,"id":1797},"eventHandler":{"__isSmartRef__":true,"id":1798},"_ClipMode":"visible","derivationIds":[],"id":"1BAD0C19-5F4D-4C6F-9F42-2E5833300BFB","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1799},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1790},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1800},"__LivelyClassName__":"lively.morphic.Image"},"1792":{"_Position":{"__isSmartRef__":true,"id":1793},"renderContextTable":{"__isSmartRef__":true,"id":1794},"_Extent":{"__isSmartRef__":true,"id":1795},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":1796},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"1793":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1794":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"1795":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1796":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1797":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"1798":{"morph":{"__isSmartRef__":true,"id":1791},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1799":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1800":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"1801":{"_Position":{"__isSmartRef__":true,"id":1802},"renderContextTable":{"__isSmartRef__":true,"id":1803},"_Extent":{"__isSmartRef__":true,"id":1804},"_Padding":{"__isSmartRef__":true,"id":1805},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1802":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1803":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"1804":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1805":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1806":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"1807":{"morph":{"__isSmartRef__":true,"id":1790},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1808":{"x":144,"y":240,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1809":{"submorphs":[{"__isSmartRef__":true,"id":1810}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1820},"renderContextTable":{"__isSmartRef__":true,"id":1825},"eventHandler":{"__isSmartRef__":true,"id":1826},"_ClipMode":"visible","derivationIds":[],"id":"90C60B30-4B45-4B9B-BEA4-7BECDDE35A9A","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1827},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":4,"column":2,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":1810},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":1618}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1828},"__LivelyClassName__":"lively.morphic.Box"},"1810":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1811},"renderContextTable":{"__isSmartRef__":true,"id":1816},"eventHandler":{"__isSmartRef__":true,"id":1817},"_ClipMode":"visible","derivationIds":[],"id":"6888E7C8-1908-4C8C-BA77-A6DAC1BCC8EB","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1818},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1809},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1819},"__LivelyClassName__":"lively.morphic.Image"},"1811":{"_Position":{"__isSmartRef__":true,"id":1812},"renderContextTable":{"__isSmartRef__":true,"id":1813},"_Extent":{"__isSmartRef__":true,"id":1814},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":1815},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"1812":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1813":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"1814":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1815":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1816":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"1817":{"morph":{"__isSmartRef__":true,"id":1810},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1818":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1819":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"1820":{"_Position":{"__isSmartRef__":true,"id":1821},"renderContextTable":{"__isSmartRef__":true,"id":1822},"_Extent":{"__isSmartRef__":true,"id":1823},"_Padding":{"__isSmartRef__":true,"id":1824},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1821":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1822":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"1823":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1824":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1825":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"1826":{"morph":{"__isSmartRef__":true,"id":1809},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1827":{"x":96,"y":192,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1828":{"setDevStyle":{"__isSmartRef__":true,"id":1829},"setNormalStyle":{"__isSmartRef__":true,"id":1833},"tileSize":{"__isSmartRef__":true,"id":1837},"become":{"__isSmartRef__":true,"id":1841},"onMouseDown":{"__isSmartRef__":true,"id":1845},"setGridPosition":{"__isSmartRef__":true,"id":1853},"toolbox":{"__isSmartRef__":true,"id":1857},"distanceTo":{"__isSmartRef__":true,"id":1861},"tileWasDropped":{"__isSmartRef__":true,"id":1865},"isObstacle":{"__isSmartRef__":true,"id":1869},"neighboursInDirection":{"__isSmartRef__":true,"id":1873},"neighbours":{"__isSmartRef__":true,"id":1877},"zIndex":{"__isSmartRef__":true,"id":1881},"obstacles":{"__isSmartRef__":true,"id":1885},"addObstacle":{"__isSmartRef__":true,"id":1889},"removeObstacle":{"__isSmartRef__":true,"id":1893},"isTile":{"__isSmartRef__":true,"id":1897},"neighbourAt":{"__isSmartRef__":true,"id":1901},"map":{"__isSmartRef__":true,"id":1905},"game":{"__isSmartRef__":true,"id":1909},"reset":{"__isSmartRef__":true,"id":1913},"shallowCopy":{"__isSmartRef__":true,"id":1917},"characters":{"__isSmartRef__":true,"id":1921},"enterTile":{"__isSmartRef__":true,"id":1925},"leaveTile":{"__isSmartRef__":true,"id":1929},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":1933}},"1829":{"varMapping":{"__isSmartRef__":true,"id":1830},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1831},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1832},"__LivelyClassName__":"lively.Closure"},"1830":{"this":{"__isSmartRef__":true,"id":1809}},"1831":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"1832":{"originalFunc":{"__isSmartRef__":true,"id":892}},"1833":{"varMapping":{"__isSmartRef__":true,"id":1834},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1835},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1836},"__LivelyClassName__":"lively.Closure"},"1834":{"this":{"__isSmartRef__":true,"id":1809}},"1835":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"1836":{"originalFunc":{"__isSmartRef__":true,"id":911}},"1837":{"varMapping":{"__isSmartRef__":true,"id":1838},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":1839},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1840},"__LivelyClassName__":"lively.Closure"},"1838":{"this":{"__isSmartRef__":true,"id":1809}},"1839":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"1840":{"originalFunc":{"__isSmartRef__":true,"id":915}},"1841":{"varMapping":{"__isSmartRef__":true,"id":1842},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1843},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1844},"__LivelyClassName__":"lively.Closure"},"1842":{"this":{"__isSmartRef__":true,"id":1809}},"1843":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"1844":{"originalFunc":{"__isSmartRef__":true,"id":919}},"1845":{"varMapping":{"__isSmartRef__":true,"id":1846},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1851},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1852},"__LivelyClassName__":"lively.Closure"},"1846":{"this":{"__isSmartRef__":true,"id":1809},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1847}},"1847":{"$super":{"__isSmartRef__":true,"id":1848}},"1848":{"varMapping":{"__isSmartRef__":true,"id":1849},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1850},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1849":{"obj":{"__isSmartRef__":true,"id":1809},"name":"onMouseDown"},"1850":{},"1851":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"1852":{"originalFunc":{"__isSmartRef__":true,"id":923}},"1853":{"varMapping":{"__isSmartRef__":true,"id":1854},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":1855},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1856},"__LivelyClassName__":"lively.Closure"},"1854":{"this":{"__isSmartRef__":true,"id":1809}},"1855":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"1856":{"originalFunc":{"__isSmartRef__":true,"id":931}},"1857":{"varMapping":{"__isSmartRef__":true,"id":1858},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":1859},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1860},"__LivelyClassName__":"lively.Closure"},"1858":{"this":{"__isSmartRef__":true,"id":1809}},"1859":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"1860":{"originalFunc":{"__isSmartRef__":true,"id":935}},"1861":{"varMapping":{"__isSmartRef__":true,"id":1862},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":1863},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1864},"__LivelyClassName__":"lively.Closure"},"1862":{"this":{"__isSmartRef__":true,"id":1809}},"1863":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"1864":{"originalFunc":{"__isSmartRef__":true,"id":939}},"1865":{"varMapping":{"__isSmartRef__":true,"id":1866},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":1867},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1868},"__LivelyClassName__":"lively.Closure"},"1866":{"this":{"__isSmartRef__":true,"id":1809}},"1867":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"1868":{"originalFunc":{"__isSmartRef__":true,"id":943}},"1869":{"varMapping":{"__isSmartRef__":true,"id":1870},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":1871},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1872},"__LivelyClassName__":"lively.Closure"},"1870":{"this":{"__isSmartRef__":true,"id":1809}},"1871":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"1872":{"originalFunc":{"__isSmartRef__":true,"id":947}},"1873":{"varMapping":{"__isSmartRef__":true,"id":1874},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":1875},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1876},"__LivelyClassName__":"lively.Closure"},"1874":{"this":{"__isSmartRef__":true,"id":1809}},"1875":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"1876":{"originalFunc":{"__isSmartRef__":true,"id":951}},"1877":{"varMapping":{"__isSmartRef__":true,"id":1878},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":1879},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1880},"__LivelyClassName__":"lively.Closure"},"1878":{"this":{"__isSmartRef__":true,"id":1809}},"1879":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"1880":{"originalFunc":{"__isSmartRef__":true,"id":955}},"1881":{"varMapping":{"__isSmartRef__":true,"id":1882},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":1883},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1884},"__LivelyClassName__":"lively.Closure"},"1882":{"this":{"__isSmartRef__":true,"id":1809}},"1883":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"1884":{"originalFunc":{"__isSmartRef__":true,"id":959}},"1885":{"varMapping":{"__isSmartRef__":true,"id":1886},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":1887},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1888},"__LivelyClassName__":"lively.Closure"},"1886":{"this":{"__isSmartRef__":true,"id":1809}},"1887":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"1888":{"originalFunc":{"__isSmartRef__":true,"id":963}},"1889":{"varMapping":{"__isSmartRef__":true,"id":1890},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1891},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1892},"__LivelyClassName__":"lively.Closure"},"1890":{"this":{"__isSmartRef__":true,"id":1809}},"1891":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"1892":{"originalFunc":{"__isSmartRef__":true,"id":967}},"1893":{"varMapping":{"__isSmartRef__":true,"id":1894},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1895},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1896},"__LivelyClassName__":"lively.Closure"},"1894":{"this":{"__isSmartRef__":true,"id":1809}},"1895":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"1896":{"originalFunc":{"__isSmartRef__":true,"id":971}},"1897":{"varMapping":{"__isSmartRef__":true,"id":1898},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":1899},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1900},"__LivelyClassName__":"lively.Closure"},"1898":{"this":{"__isSmartRef__":true,"id":1809}},"1899":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"1900":{"originalFunc":{"__isSmartRef__":true,"id":975}},"1901":{"varMapping":{"__isSmartRef__":true,"id":1902},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":1903},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1904},"__LivelyClassName__":"lively.Closure"},"1902":{"this":{"__isSmartRef__":true,"id":1809}},"1903":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"1904":{"originalFunc":{"__isSmartRef__":true,"id":979}},"1905":{"varMapping":{"__isSmartRef__":true,"id":1906},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":1907},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1908},"__LivelyClassName__":"lively.Closure"},"1906":{"this":{"__isSmartRef__":true,"id":1809}},"1907":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"1908":{"originalFunc":{"__isSmartRef__":true,"id":983}},"1909":{"varMapping":{"__isSmartRef__":true,"id":1910},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":1911},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1912},"__LivelyClassName__":"lively.Closure"},"1910":{"this":{"__isSmartRef__":true,"id":1809}},"1911":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"1912":{"originalFunc":{"__isSmartRef__":true,"id":987}},"1913":{"varMapping":{"__isSmartRef__":true,"id":1914},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":1915},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1916},"__LivelyClassName__":"lively.Closure"},"1914":{"this":{"__isSmartRef__":true,"id":1809}},"1915":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"1916":{"originalFunc":{"__isSmartRef__":true,"id":991}},"1917":{"varMapping":{"__isSmartRef__":true,"id":1918},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":1919},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1920},"__LivelyClassName__":"lively.Closure"},"1918":{"this":{"__isSmartRef__":true,"id":1809}},"1919":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"1920":{"originalFunc":{"__isSmartRef__":true,"id":995}},"1921":{"varMapping":{"__isSmartRef__":true,"id":1922},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":1923},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1924},"__LivelyClassName__":"lively.Closure"},"1922":{"this":{"__isSmartRef__":true,"id":1809}},"1923":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"1924":{"originalFunc":{"__isSmartRef__":true,"id":999}},"1925":{"varMapping":{"__isSmartRef__":true,"id":1926},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1927},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1928},"__LivelyClassName__":"lively.Closure"},"1926":{"this":{"__isSmartRef__":true,"id":1809}},"1927":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"1928":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"1929":{"varMapping":{"__isSmartRef__":true,"id":1930},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1931},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1932},"__LivelyClassName__":"lively.Closure"},"1930":{"this":{"__isSmartRef__":true,"id":1809}},"1931":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"1932":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"1933":{"varMapping":{"__isSmartRef__":true,"id":1934},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1935},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1936},"__LivelyClassName__":"lively.Closure"},"1934":{"this":{"__isSmartRef__":true,"id":1809}},"1935":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"1936":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"1937":{"submorphs":[{"__isSmartRef__":true,"id":1938}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1948},"renderContextTable":{"__isSmartRef__":true,"id":1953},"eventHandler":{"__isSmartRef__":true,"id":1954},"_ClipMode":"visible","derivationIds":[],"id":"4C2C3C64-84B4-4E9C-B971-13AB71618DD8","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1955},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":4,"column":3,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":1938},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":1618}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1956},"__LivelyClassName__":"lively.morphic.Box"},"1938":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1939},"renderContextTable":{"__isSmartRef__":true,"id":1944},"eventHandler":{"__isSmartRef__":true,"id":1945},"_ClipMode":"visible","derivationIds":[],"id":"0D6AE331-9B9F-40CE-997F-D6FEB8DD8A80","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1946},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":1937},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1947},"__LivelyClassName__":"lively.morphic.Image"},"1939":{"_Position":{"__isSmartRef__":true,"id":1940},"renderContextTable":{"__isSmartRef__":true,"id":1941},"_Extent":{"__isSmartRef__":true,"id":1942},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":1943},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"1940":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1941":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"1942":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1943":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1944":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"1945":{"morph":{"__isSmartRef__":true,"id":1938},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1946":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1947":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"1948":{"_Position":{"__isSmartRef__":true,"id":1949},"renderContextTable":{"__isSmartRef__":true,"id":1950},"_Extent":{"__isSmartRef__":true,"id":1951},"_Padding":{"__isSmartRef__":true,"id":1952},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1949":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1950":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"1951":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1952":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1953":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"1954":{"morph":{"__isSmartRef__":true,"id":1937},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1955":{"x":144,"y":192,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1956":{"setDevStyle":{"__isSmartRef__":true,"id":1957},"setNormalStyle":{"__isSmartRef__":true,"id":1961},"tileSize":{"__isSmartRef__":true,"id":1965},"become":{"__isSmartRef__":true,"id":1969},"onMouseDown":{"__isSmartRef__":true,"id":1973},"setGridPosition":{"__isSmartRef__":true,"id":1981},"toolbox":{"__isSmartRef__":true,"id":1985},"distanceTo":{"__isSmartRef__":true,"id":1989},"tileWasDropped":{"__isSmartRef__":true,"id":1993},"isObstacle":{"__isSmartRef__":true,"id":1997},"neighboursInDirection":{"__isSmartRef__":true,"id":2001},"neighbours":{"__isSmartRef__":true,"id":2005},"zIndex":{"__isSmartRef__":true,"id":2009},"obstacles":{"__isSmartRef__":true,"id":2013},"addObstacle":{"__isSmartRef__":true,"id":2017},"removeObstacle":{"__isSmartRef__":true,"id":2021},"isTile":{"__isSmartRef__":true,"id":2025},"neighbourAt":{"__isSmartRef__":true,"id":2029},"map":{"__isSmartRef__":true,"id":2033},"game":{"__isSmartRef__":true,"id":2037},"reset":{"__isSmartRef__":true,"id":2041},"shallowCopy":{"__isSmartRef__":true,"id":2045},"characters":{"__isSmartRef__":true,"id":2049},"enterTile":{"__isSmartRef__":true,"id":2053},"leaveTile":{"__isSmartRef__":true,"id":2057},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":2061}},"1957":{"varMapping":{"__isSmartRef__":true,"id":1958},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1959},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1960},"__LivelyClassName__":"lively.Closure"},"1958":{"this":{"__isSmartRef__":true,"id":1937}},"1959":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"1960":{"originalFunc":{"__isSmartRef__":true,"id":892}},"1961":{"varMapping":{"__isSmartRef__":true,"id":1962},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1963},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1964},"__LivelyClassName__":"lively.Closure"},"1962":{"this":{"__isSmartRef__":true,"id":1937}},"1963":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"1964":{"originalFunc":{"__isSmartRef__":true,"id":911}},"1965":{"varMapping":{"__isSmartRef__":true,"id":1966},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":1967},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1968},"__LivelyClassName__":"lively.Closure"},"1966":{"this":{"__isSmartRef__":true,"id":1937}},"1967":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"1968":{"originalFunc":{"__isSmartRef__":true,"id":915}},"1969":{"varMapping":{"__isSmartRef__":true,"id":1970},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1971},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1972},"__LivelyClassName__":"lively.Closure"},"1970":{"this":{"__isSmartRef__":true,"id":1937}},"1971":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"1972":{"originalFunc":{"__isSmartRef__":true,"id":919}},"1973":{"varMapping":{"__isSmartRef__":true,"id":1974},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1979},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1980},"__LivelyClassName__":"lively.Closure"},"1974":{"this":{"__isSmartRef__":true,"id":1937},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1975}},"1975":{"$super":{"__isSmartRef__":true,"id":1976}},"1976":{"varMapping":{"__isSmartRef__":true,"id":1977},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1978},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1977":{"obj":{"__isSmartRef__":true,"id":1937},"name":"onMouseDown"},"1978":{},"1979":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"1980":{"originalFunc":{"__isSmartRef__":true,"id":923}},"1981":{"varMapping":{"__isSmartRef__":true,"id":1982},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":1983},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1984},"__LivelyClassName__":"lively.Closure"},"1982":{"this":{"__isSmartRef__":true,"id":1937}},"1983":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"1984":{"originalFunc":{"__isSmartRef__":true,"id":931}},"1985":{"varMapping":{"__isSmartRef__":true,"id":1986},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":1987},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1988},"__LivelyClassName__":"lively.Closure"},"1986":{"this":{"__isSmartRef__":true,"id":1937}},"1987":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"1988":{"originalFunc":{"__isSmartRef__":true,"id":935}},"1989":{"varMapping":{"__isSmartRef__":true,"id":1990},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":1991},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1992},"__LivelyClassName__":"lively.Closure"},"1990":{"this":{"__isSmartRef__":true,"id":1937}},"1991":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"1992":{"originalFunc":{"__isSmartRef__":true,"id":939}},"1993":{"varMapping":{"__isSmartRef__":true,"id":1994},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":1995},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1996},"__LivelyClassName__":"lively.Closure"},"1994":{"this":{"__isSmartRef__":true,"id":1937}},"1995":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"1996":{"originalFunc":{"__isSmartRef__":true,"id":943}},"1997":{"varMapping":{"__isSmartRef__":true,"id":1998},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":1999},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2000},"__LivelyClassName__":"lively.Closure"},"1998":{"this":{"__isSmartRef__":true,"id":1937}},"1999":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"2000":{"originalFunc":{"__isSmartRef__":true,"id":947}},"2001":{"varMapping":{"__isSmartRef__":true,"id":2002},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":2003},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2004},"__LivelyClassName__":"lively.Closure"},"2002":{"this":{"__isSmartRef__":true,"id":1937}},"2003":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"2004":{"originalFunc":{"__isSmartRef__":true,"id":951}},"2005":{"varMapping":{"__isSmartRef__":true,"id":2006},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":2007},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2008},"__LivelyClassName__":"lively.Closure"},"2006":{"this":{"__isSmartRef__":true,"id":1937}},"2007":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"2008":{"originalFunc":{"__isSmartRef__":true,"id":955}},"2009":{"varMapping":{"__isSmartRef__":true,"id":2010},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":2011},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2012},"__LivelyClassName__":"lively.Closure"},"2010":{"this":{"__isSmartRef__":true,"id":1937}},"2011":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"2012":{"originalFunc":{"__isSmartRef__":true,"id":959}},"2013":{"varMapping":{"__isSmartRef__":true,"id":2014},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":2015},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2016},"__LivelyClassName__":"lively.Closure"},"2014":{"this":{"__isSmartRef__":true,"id":1937}},"2015":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"2016":{"originalFunc":{"__isSmartRef__":true,"id":963}},"2017":{"varMapping":{"__isSmartRef__":true,"id":2018},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2019},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2020},"__LivelyClassName__":"lively.Closure"},"2018":{"this":{"__isSmartRef__":true,"id":1937}},"2019":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"2020":{"originalFunc":{"__isSmartRef__":true,"id":967}},"2021":{"varMapping":{"__isSmartRef__":true,"id":2022},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2023},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2024},"__LivelyClassName__":"lively.Closure"},"2022":{"this":{"__isSmartRef__":true,"id":1937}},"2023":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"2024":{"originalFunc":{"__isSmartRef__":true,"id":971}},"2025":{"varMapping":{"__isSmartRef__":true,"id":2026},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":2027},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2028},"__LivelyClassName__":"lively.Closure"},"2026":{"this":{"__isSmartRef__":true,"id":1937}},"2027":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"2028":{"originalFunc":{"__isSmartRef__":true,"id":975}},"2029":{"varMapping":{"__isSmartRef__":true,"id":2030},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":2031},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2032},"__LivelyClassName__":"lively.Closure"},"2030":{"this":{"__isSmartRef__":true,"id":1937}},"2031":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"2032":{"originalFunc":{"__isSmartRef__":true,"id":979}},"2033":{"varMapping":{"__isSmartRef__":true,"id":2034},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":2035},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2036},"__LivelyClassName__":"lively.Closure"},"2034":{"this":{"__isSmartRef__":true,"id":1937}},"2035":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"2036":{"originalFunc":{"__isSmartRef__":true,"id":983}},"2037":{"varMapping":{"__isSmartRef__":true,"id":2038},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":2039},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2040},"__LivelyClassName__":"lively.Closure"},"2038":{"this":{"__isSmartRef__":true,"id":1937}},"2039":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"2040":{"originalFunc":{"__isSmartRef__":true,"id":987}},"2041":{"varMapping":{"__isSmartRef__":true,"id":2042},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":2043},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2044},"__LivelyClassName__":"lively.Closure"},"2042":{"this":{"__isSmartRef__":true,"id":1937}},"2043":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"2044":{"originalFunc":{"__isSmartRef__":true,"id":991}},"2045":{"varMapping":{"__isSmartRef__":true,"id":2046},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":2047},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2048},"__LivelyClassName__":"lively.Closure"},"2046":{"this":{"__isSmartRef__":true,"id":1937}},"2047":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"2048":{"originalFunc":{"__isSmartRef__":true,"id":995}},"2049":{"varMapping":{"__isSmartRef__":true,"id":2050},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":2051},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2052},"__LivelyClassName__":"lively.Closure"},"2050":{"this":{"__isSmartRef__":true,"id":1937}},"2051":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"2052":{"originalFunc":{"__isSmartRef__":true,"id":999}},"2053":{"varMapping":{"__isSmartRef__":true,"id":2054},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2055},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2056},"__LivelyClassName__":"lively.Closure"},"2054":{"this":{"__isSmartRef__":true,"id":1937}},"2055":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"2056":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"2057":{"varMapping":{"__isSmartRef__":true,"id":2058},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2059},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2060},"__LivelyClassName__":"lively.Closure"},"2058":{"this":{"__isSmartRef__":true,"id":1937}},"2059":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"2060":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"2061":{"varMapping":{"__isSmartRef__":true,"id":2062},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":2063},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2064},"__LivelyClassName__":"lively.Closure"},"2062":{"this":{"__isSmartRef__":true,"id":1937}},"2063":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"2064":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"2065":{"submorphs":[{"__isSmartRef__":true,"id":2066}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2076},"renderContextTable":{"__isSmartRef__":true,"id":2081},"eventHandler":{"__isSmartRef__":true,"id":2082},"_ClipMode":"visible","derivationIds":[],"id":"2EB8886D-7D82-45C8-9B43-D5CB5C342901","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2083},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":4,"column":4,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":2066},"grabbingEnabled":false,"charactersStandingHere":[],"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":1599},{"__isSmartRef__":true,"id":1580},{"__isSmartRef__":true,"id":2084},{"__isSmartRef__":true,"id":1937},{"__isSmartRef__":true,"id":2321},{"__isSmartRef__":true,"id":1790},{"__isSmartRef__":true,"id":4697},{"__isSmartRef__":true,"id":4716}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12377},"__LivelyClassName__":"lively.morphic.Box"},"2066":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2067},"renderContextTable":{"__isSmartRef__":true,"id":2072},"eventHandler":{"__isSmartRef__":true,"id":2073},"_ClipMode":"visible","derivationIds":[],"id":"2D23EF2D-5B69-4FFA-BA0A-E76C24C1C6DB","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2074},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2065},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2075},"__LivelyClassName__":"lively.morphic.Image"},"2067":{"_Position":{"__isSmartRef__":true,"id":2068},"renderContextTable":{"__isSmartRef__":true,"id":2069},"_Extent":{"__isSmartRef__":true,"id":2070},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":2071},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"2068":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2069":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"2070":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2071":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2072":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2073":{"morph":{"__isSmartRef__":true,"id":2066},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2074":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2075":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"2076":{"_Position":{"__isSmartRef__":true,"id":2077},"renderContextTable":{"__isSmartRef__":true,"id":2078},"_Extent":{"__isSmartRef__":true,"id":2079},"_Padding":{"__isSmartRef__":true,"id":2080},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2077":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2078":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"2079":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2080":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2081":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2082":{"morph":{"__isSmartRef__":true,"id":2065},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2083":{"x":192,"y":192,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2084":{"submorphs":[{"__isSmartRef__":true,"id":2085},{"__isSmartRef__":true,"id":2095}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2204},"renderContextTable":{"__isSmartRef__":true,"id":2209},"eventHandler":{"__isSmartRef__":true,"id":2210},"_ClipMode":"visible","derivationIds":[],"id":"AEAA37B1-C887-4AE6-BA1B-284BEC4B98C2","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2211},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":3,"column":5,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":2085},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":2095}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2212},"__LivelyClassName__":"lively.morphic.Box"},"2085":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2086},"renderContextTable":{"__isSmartRef__":true,"id":2091},"eventHandler":{"__isSmartRef__":true,"id":2092},"_ClipMode":"visible","derivationIds":[],"id":"DF91E6FD-6E68-41BE-B5CA-FD20DDEB7B8C","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2093},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2084},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2094},"__LivelyClassName__":"lively.morphic.Image"},"2086":{"_Position":{"__isSmartRef__":true,"id":2087},"renderContextTable":{"__isSmartRef__":true,"id":2088},"_Extent":{"__isSmartRef__":true,"id":2089},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":2090},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"2087":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2088":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"2089":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2090":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2091":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2092":{"morph":{"__isSmartRef__":true,"id":2085},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2093":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2094":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"2095":{"submorphs":[{"__isSmartRef__":true,"id":2096}],"scripts":[],"id":"C2C3AEC5-54CD-45F5-ACC7-BAE2FA82F78F","shape":{"__isSmartRef__":true,"id":2125},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2131},"showsHalos":false,"name":"Thing3","partsBinMetaInfo":{"__isSmartRef__":true,"id":786},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":2132},"eventHandler":{"__isSmartRef__":true,"id":2133},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","DF863BAB-9987-4611-BCD2-DE9FDCE7D3B5","768ED97D-1E05-415B-AB3F-B6495AC603A0","5A0ECA63-F6E2-4E35-B9A2-75DE2A4C4158","3B4EDC8A-0E99-4F45-A6D5-5CCE7E75BC88","1A900574-7D84-44F3-BB9D-1A1E26FDDB9B","383B3B54-4D0D-42E5-88C6-460045549029","EFC22A04-8B3C-48A8-9C5F-1EBC66DFD6D6","52D7E09F-EA1F-44D5-A893-F72A70D40429","CAC332B2-DA3A-4534-B3C7-E03D31DE9D2C","2CDD083E-3AB7-4BB9-B6D1-A70716226BDF","B4327E15-A3DA-44A6-89B0-71AFB39350AA","D2E0258B-443A-444C-8640-C595ECC95152","6C8F2B5B-D9E4-4742-B4A1-DA08C3B66E3A","34B4B715-9D86-4D1A-921B-5340CDC05F73","4CA32288-0E12-49F5-A485-634D7D327287","5941FCB6-8C08-405A-B2C2-D84C19F702E2","7BA243A0-B441-41E9-B4AE-A18EDB0F9A8A","C1A510A2-576D-49C6-89EA-56953C5D6FC1","372DAC3D-D2F5-47C2-8538-A2EEE9D3A073","6E3BFF0C-E4EB-4D35-959F-9C12F885012C","5D157E3A-5D4F-4C0A-888F-5FE24CBFC6E5","8C8C94D0-B291-47D8-8B8D-F606AF1A59B1","4794D8F3-DD25-4AFF-A687-079AB3EB7B71","324C5BEC-5664-49AD-AE50-4F3AD40CB933"],"partTests":{"__isSmartRef__":true,"id":2134},"isBeingDragged":false,"moved":true,"_ClipMode":"visible","tile":{"__isSmartRef__":true,"id":2084},"thing":{"__isSmartRef__":true,"id":2096},"prevScroll":[0,0],"occludedTiles":[{"__isSmartRef__":true,"id":2084}],"_Rotation":0,"_Scale":1.002003004005006,"owner":{"__isSmartRef__":true,"id":2084},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2139},"__LivelyClassName__":"lively.morphic.Box"},"2096":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2097},"derivationIds":[null,"994DB9D6-6F49-488C-B4A5-C34F32483249","C5018B50-9728-4F97-8AEB-0A7EFA72592D","78FB832C-BED5-475D-B585-C15C9003141F","685E0FAD-2AA3-4627-A292-E7C1E9FE95BB","2F7AA2EE-840A-48CC-8C25-F11BD00873A3","7109D733-5EB1-4029-9EA5-FAF51B912104"],"id":"A347E7A1-7FA4-4B3C-B0EE-5D4EBCE838B4","renderContextTable":{"__isSmartRef__":true,"id":2103},"eventHandler":{"__isSmartRef__":true,"id":2104},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2105},"name":"FireThing","isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2106},"__SourceModuleName__":"Global.lively.morphic.Widgets","moved":true,"_ClipMode":"visible","_Rotation":0,"_Scale":1,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2095},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2117},"__LivelyClassName__":"lively.morphic.Image"},"2097":{"_Position":{"__isSmartRef__":true,"id":2098},"renderContextTable":{"__isSmartRef__":true,"id":2099},"_Extent":{"__isSmartRef__":true,"id":2100},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2101},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/fire.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderColor":{"__isSmartRef__":true,"id":2102},"__LivelyClassName__":"lively.morphic.Shapes.Image"},"2098":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2099":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"2100":{"x":44,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2101":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2102":{"r":0,"g":0,"b":0,"a":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2103":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2104":{"morph":{"__isSmartRef__":true,"id":2096},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2105":{"x":4,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2106":{"partName":"FireThing","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"A not movable fire","changes":[{"__isSmartRef__":true,"id":2107},{"__isSmartRef__":true,"id":2109},{"__isSmartRef__":true,"id":2111},{"__isSmartRef__":true,"id":2113},{"__isSmartRef__":true,"id":2115}],"migrationLevel":4,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2107":{"date":{"__isSmartRef__":true,"id":2108},"author":"timfelgentreff","message":"no comment","id":"95CD4ED6-80C3-4D7B-8852-C61DF464BB0E"},"2108":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:09:00 GMT+0200 (CEST)"},"2109":{"date":{"__isSmartRef__":true,"id":2110},"author":"tessi","message":"","id":"E6AAD95F-6375-4967-8CD4-84A849199FBF"},"2110":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:47:00 GMT+0200 (CEST)"},"2111":{"date":{"__isSmartRef__":true,"id":2112},"author":"tessi","message":"","id":"C9834868-CA23-49FD-8DD4-36F58DB4A1C2"},"2112":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:38:08 GMT+0200 (CEST)"},"2113":{"date":{"__isSmartRef__":true,"id":2114},"author":"timfelgentreff","message":"resize","id":"D71E0015-6ED9-40EB-8A1B-9FCF58922467"},"2114":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:30:39 GMT+0200 (CEST)"},"2115":{"date":{"__isSmartRef__":true,"id":2116},"author":"timfelgentreff","message":"no comment","id":"EB98F2A8-E9DF-49BD-B90B-7136243C3082"},"2116":{"isSerializedDate":true,"string":"Thu May 03 2012 14:02:45 GMT+0200 (CEST)"},"2117":{"dropOn":{"__isSmartRef__":true,"id":2118}},"2118":{"varMapping":{"__isSmartRef__":true,"id":2119},"source":"function dropOn(morph) {\n if (morph.isTile && morph.isTile()) {\n var thing = morph.toolbox(\"Thing\")\n thing.dropOn(morph)\n thing.setNormalStyle()\n thing.become(this.copy())\n } else {\n $super(morph);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2124},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2119":{"this":{"__isSmartRef__":true,"id":2096},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2120}},"2120":{"$super":{"__isSmartRef__":true,"id":2121}},"2121":{"varMapping":{"__isSmartRef__":true,"id":2122},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2123},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2122":{"obj":{"__isSmartRef__":true,"id":2096},"name":"dropOn"},"2123":{},"2124":{},"2125":{"position":{"__isSmartRef__":true,"id":2126},"_Extent":{"__isSmartRef__":true,"id":2127},"_BorderWidth":1.148,"_BorderColor":{"__isSmartRef__":true,"id":2128},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2129},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2130},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2126":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2127":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2128":{"r":0,"g":0,"b":0,"a":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2129":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"2130":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2131":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2132":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2133":{"morph":{"__isSmartRef__":true,"id":2095},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2134":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2135}},"2135":{"test01IsMorph":{"__isSmartRef__":true,"id":2136}},"2136":{"varMapping":{"__isSmartRef__":true,"id":2137},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2138},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2137":{"this":{"__isSmartRef__":true,"id":2134}},"2138":{},"2139":{"setDevStyle":{"__isSmartRef__":true,"id":2140},"setNormalStyle":{"__isSmartRef__":true,"id":2144},"become":{"__isSmartRef__":true,"id":2148},"onMouseDown":{"__isSmartRef__":true,"id":2152},"toolbox":{"__isSmartRef__":true,"id":2160},"zIndex":{"__isSmartRef__":true,"id":2164},"becomeRandomThing":{"__isSmartRef__":true,"id":2168},"reset":{"__isSmartRef__":true,"id":2172},"registerAsObstacle":{"__isSmartRef__":true,"id":2176},"deregisterAsObstacle":{"__isSmartRef__":true,"id":2180},"tileSize":{"__isSmartRef__":true,"id":2184},"dropOn":{"__isSmartRef__":true,"id":2188},"map":{"__isSmartRef__":true,"id":2196},"game":{"__isSmartRef__":true,"id":2200}},"2140":{"varMapping":{"__isSmartRef__":true,"id":2141},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.shape.setBorderColor(Color.blue)\n if (this.thing) {\n this.thing.shape.setBorderColor(Color.red)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2142},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2141":{"this":{"__isSmartRef__":true,"id":2095}},"2142":{"timestamp":{"__isSmartRef__":true,"id":2143},"user":"timfelgentreff","tags":[]},"2143":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:34:18 GMT+0200 (CEST)"},"2144":{"varMapping":{"__isSmartRef__":true,"id":2145},"source":"function setNormalStyle() {\n this.setDevStyle()\n this.shape.setBorderColor(new Color.rgba(0,0,0,0))\n if (this.thing) {\n this.thing.shape.setBorderColor(new Color.rgba(0,0,0,0))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2146},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2145":{"this":{"__isSmartRef__":true,"id":2095}},"2146":{"timestamp":{"__isSmartRef__":true,"id":2147},"user":"tessi","tags":[]},"2147":{"isSerializedDate":true,"string":"Thu May 03 2012 15:24:43 GMT+0200 (CEST)"},"2148":{"varMapping":{"__isSmartRef__":true,"id":2149},"source":"function become(thingName) {\n var thing\n if (typeof thingName === \"string\") {\n thing = this.toolbox(thingName + \"Thing\")\n } else {\n thing = thingName\n }\n if (thing) {\n if (this.thing) {\n this.thing.remove();\n }\n this.thing = thing;\n thing.ignoreEvents()\n thing.setExtent(thing.shape.getExtent())\n thing.setPosition(this.getExtent().subPt(this.thing.getExtent()))\n this.addMorph(thing)\n this.registerAsObstacle()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2150},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2149":{"this":{"__isSmartRef__":true,"id":2095}},"2150":{"timestamp":{"__isSmartRef__":true,"id":2151},"user":"timfelgentreff","tags":[]},"2151":{"isSerializedDate":true,"string":"Thu May 03 2012 13:48:50 GMT+0200 (CEST)"},"2152":{"varMapping":{"__isSmartRef__":true,"id":2153},"source":"function onMouseDown(evt) {\n if (this.tile && evt.isLeftMouseButtonDown() && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this.tile)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2158},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2153":{"this":{"__isSmartRef__":true,"id":2095},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2154}},"2154":{"$super":{"__isSmartRef__":true,"id":2155}},"2155":{"varMapping":{"__isSmartRef__":true,"id":2156},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2157},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2156":{"obj":{"__isSmartRef__":true,"id":2095},"name":"onMouseDown"},"2157":{},"2158":{"timestamp":{"__isSmartRef__":true,"id":2159},"user":"tessi","tags":[]},"2159":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:27:13 GMT+0200 (CEST)"},"2160":{"varMapping":{"__isSmartRef__":true,"id":2161},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":2162},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2161":{"this":{"__isSmartRef__":true,"id":2095}},"2162":{"timestamp":{"__isSmartRef__":true,"id":2163},"user":"tessi","tags":[]},"2163":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:27:30 GMT+0200 (CEST)"},"2164":{"varMapping":{"__isSmartRef__":true,"id":2165},"source":"function zIndex(idx) {\n if (idx) {\n return this.renderContext().morphNode.style.zIndex = idx\n } else {\n return this.renderContext().morphNode.style.zIndex\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2166},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2165":{"this":{"__isSmartRef__":true,"id":2095}},"2166":{"timestamp":{"__isSmartRef__":true,"id":2167},"user":"timfelgentreff","tags":[]},"2167":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:28:09 GMT+0200 (CEST)"},"2168":{"varMapping":{"__isSmartRef__":true,"id":2169},"source":"function becomeRandomThing() {\n var thingNames = this.game().partNamesEndingWith(\"Thing\")\n this.become(thingNames[Math.round(Math.random() * (thingNames.length - 1))])\n}","funcProperties":{"__isSmartRef__":true,"id":2170},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2169":{"this":{"__isSmartRef__":true,"id":2095}},"2170":{"timestamp":{"__isSmartRef__":true,"id":2171},"user":"tessi","tags":[]},"2171":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:54 GMT+0200 (CEST)"},"2172":{"varMapping":{"__isSmartRef__":true,"id":2173},"source":"function reset() {\n if (this.thing) {\n this.thing.remove()\n this.thing = null\n }\n this.deregisterAsObstacle()\n this.tile = null\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":2174},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2173":{"this":{"__isSmartRef__":true,"id":2095}},"2174":{"timestamp":{"__isSmartRef__":true,"id":2175},"user":"tessi","tags":[]},"2175":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:28:03 GMT+0200 (CEST)"},"2176":{"varMapping":{"__isSmartRef__":true,"id":2177},"source":"function registerAsObstacle() {\n this.deregisterAsObstacle()\n\n if (this.tile && this.thing) {\n this.occludedTiles = []\n\n // things are anchored at bottom-left, so neighbours direction is negative\n var neighboursBlockVertical = Math.ceil(this.thing.getExtent().y / this.tileSize().y),\n neighboursBlockHorizontal = Math.ceil(this.thing.getExtent().x / this.tileSize().x),\n neighbour\n\n this.occludedTiles.push(this.tile)\n this.tile.addObstacle(this)\n for (var i = 0; i < neighboursBlockHorizontal; i++) {\n for (var j = 0; j < neighboursBlockVertical; j++) {\n neighbour = this.tile.neighbourAt(pt(-i,-j))\n if (neighbour && !this.occludedTiles.member(neighbour)) {\n neighbour.addObstacle(this)\n this.occludedTiles.push(neighbour)\n }\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2178},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2177":{"this":{"__isSmartRef__":true,"id":2095}},"2178":{"timestamp":{"__isSmartRef__":true,"id":2179},"user":"timfelgentreff","tags":[]},"2179":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:18:39 GMT+0200 (CEST)"},"2180":{"varMapping":{"__isSmartRef__":true,"id":2181},"source":"function deregisterAsObstacle() {\n var that = this\n if (this.occludedTiles) {\n this.occludedTiles.each(function (tile) {\n tile.removeObstacle(that)\n })\n this.occludedTiles = null\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2182},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2181":{"this":{"__isSmartRef__":true,"id":2095}},"2182":{"timestamp":{"__isSmartRef__":true,"id":2183},"user":"timfelgentreff","tags":[]},"2183":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:25:37 GMT+0200 (CEST)"},"2184":{"varMapping":{"__isSmartRef__":true,"id":2185},"source":"function tileSize() {\n if (this.tile) {\n return this.tile.tileSize()\n } else {\n return this.toolbox(\"Tile\").tileSize()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2186},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2185":{"this":{"__isSmartRef__":true,"id":2095}},"2186":{"timestamp":{"__isSmartRef__":true,"id":2187},"user":"timfelgentreff","tags":[]},"2187":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:01:00 GMT+0200 (CEST)"},"2188":{"varMapping":{"__isSmartRef__":true,"id":2189},"source":"function dropOn(morph) {\n $super(morph);\n this.deregisterAsObstacle()\n if (morph.isTile) {\n this.tile = morph\n this.setPosition(pt(0,0))\n this.registerAsObstacle()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2194},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2189":{"this":{"__isSmartRef__":true,"id":2095},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2190}},"2190":{"$super":{"__isSmartRef__":true,"id":2191}},"2191":{"varMapping":{"__isSmartRef__":true,"id":2192},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2193},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2192":{"obj":{"__isSmartRef__":true,"id":2095},"name":"dropOn"},"2193":{},"2194":{"timestamp":{"__isSmartRef__":true,"id":2195},"user":"timfelgentreff","tags":[]},"2195":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:13:07 GMT+0200 (CEST)"},"2196":{"varMapping":{"__isSmartRef__":true,"id":2197},"source":"function map() {\n return this.owner.map()\n}","funcProperties":{"__isSmartRef__":true,"id":2198},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2197":{"this":{"__isSmartRef__":true,"id":2095}},"2198":{"timestamp":{"__isSmartRef__":true,"id":2199},"user":"tessi","tags":[]},"2199":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:34 GMT+0200 (CEST)"},"2200":{"varMapping":{"__isSmartRef__":true,"id":2201},"source":"function game() {\n return this.owner.game()\n}","funcProperties":{"__isSmartRef__":true,"id":2202},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2201":{"this":{"__isSmartRef__":true,"id":2095}},"2202":{"timestamp":{"__isSmartRef__":true,"id":2203},"user":"tessi","tags":[]},"2203":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:45 GMT+0200 (CEST)"},"2204":{"_Position":{"__isSmartRef__":true,"id":2205},"renderContextTable":{"__isSmartRef__":true,"id":2206},"_Extent":{"__isSmartRef__":true,"id":2207},"_Padding":{"__isSmartRef__":true,"id":2208},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2205":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2206":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"2207":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2208":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2209":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2210":{"morph":{"__isSmartRef__":true,"id":2084},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2211":{"x":240,"y":144,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2212":{"setDevStyle":{"__isSmartRef__":true,"id":2213},"setNormalStyle":{"__isSmartRef__":true,"id":2217},"tileSize":{"__isSmartRef__":true,"id":2221},"become":{"__isSmartRef__":true,"id":2225},"onMouseDown":{"__isSmartRef__":true,"id":2229},"setGridPosition":{"__isSmartRef__":true,"id":2237},"toolbox":{"__isSmartRef__":true,"id":2241},"distanceTo":{"__isSmartRef__":true,"id":2245},"tileWasDropped":{"__isSmartRef__":true,"id":2249},"isObstacle":{"__isSmartRef__":true,"id":2253},"neighboursInDirection":{"__isSmartRef__":true,"id":2257},"neighbours":{"__isSmartRef__":true,"id":2261},"zIndex":{"__isSmartRef__":true,"id":2265},"obstacles":{"__isSmartRef__":true,"id":2269},"addObstacle":{"__isSmartRef__":true,"id":2273},"removeObstacle":{"__isSmartRef__":true,"id":2277},"isTile":{"__isSmartRef__":true,"id":2281},"neighbourAt":{"__isSmartRef__":true,"id":2285},"map":{"__isSmartRef__":true,"id":2289},"game":{"__isSmartRef__":true,"id":2293},"reset":{"__isSmartRef__":true,"id":2297},"shallowCopy":{"__isSmartRef__":true,"id":2301},"characters":{"__isSmartRef__":true,"id":2305},"enterTile":{"__isSmartRef__":true,"id":2309},"leaveTile":{"__isSmartRef__":true,"id":2313},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":2317}},"2213":{"varMapping":{"__isSmartRef__":true,"id":2214},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":2215},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2216},"__LivelyClassName__":"lively.Closure"},"2214":{"this":{"__isSmartRef__":true,"id":2084}},"2215":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"2216":{"originalFunc":{"__isSmartRef__":true,"id":892}},"2217":{"varMapping":{"__isSmartRef__":true,"id":2218},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":2219},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2220},"__LivelyClassName__":"lively.Closure"},"2218":{"this":{"__isSmartRef__":true,"id":2084}},"2219":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"2220":{"originalFunc":{"__isSmartRef__":true,"id":911}},"2221":{"varMapping":{"__isSmartRef__":true,"id":2222},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":2223},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2224},"__LivelyClassName__":"lively.Closure"},"2222":{"this":{"__isSmartRef__":true,"id":2084}},"2223":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"2224":{"originalFunc":{"__isSmartRef__":true,"id":915}},"2225":{"varMapping":{"__isSmartRef__":true,"id":2226},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2227},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2228},"__LivelyClassName__":"lively.Closure"},"2226":{"this":{"__isSmartRef__":true,"id":2084}},"2227":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"2228":{"originalFunc":{"__isSmartRef__":true,"id":919}},"2229":{"varMapping":{"__isSmartRef__":true,"id":2230},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2235},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2236},"__LivelyClassName__":"lively.Closure"},"2230":{"this":{"__isSmartRef__":true,"id":2084},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2231}},"2231":{"$super":{"__isSmartRef__":true,"id":2232}},"2232":{"varMapping":{"__isSmartRef__":true,"id":2233},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2234},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2233":{"obj":{"__isSmartRef__":true,"id":2084},"name":"onMouseDown"},"2234":{},"2235":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"2236":{"originalFunc":{"__isSmartRef__":true,"id":923}},"2237":{"varMapping":{"__isSmartRef__":true,"id":2238},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":2239},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2240},"__LivelyClassName__":"lively.Closure"},"2238":{"this":{"__isSmartRef__":true,"id":2084}},"2239":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"2240":{"originalFunc":{"__isSmartRef__":true,"id":931}},"2241":{"varMapping":{"__isSmartRef__":true,"id":2242},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":2243},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2244},"__LivelyClassName__":"lively.Closure"},"2242":{"this":{"__isSmartRef__":true,"id":2084}},"2243":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"2244":{"originalFunc":{"__isSmartRef__":true,"id":935}},"2245":{"varMapping":{"__isSmartRef__":true,"id":2246},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":2247},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2248},"__LivelyClassName__":"lively.Closure"},"2246":{"this":{"__isSmartRef__":true,"id":2084}},"2247":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"2248":{"originalFunc":{"__isSmartRef__":true,"id":939}},"2249":{"varMapping":{"__isSmartRef__":true,"id":2250},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":2251},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2252},"__LivelyClassName__":"lively.Closure"},"2250":{"this":{"__isSmartRef__":true,"id":2084}},"2251":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"2252":{"originalFunc":{"__isSmartRef__":true,"id":943}},"2253":{"varMapping":{"__isSmartRef__":true,"id":2254},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":2255},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2256},"__LivelyClassName__":"lively.Closure"},"2254":{"this":{"__isSmartRef__":true,"id":2084}},"2255":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"2256":{"originalFunc":{"__isSmartRef__":true,"id":947}},"2257":{"varMapping":{"__isSmartRef__":true,"id":2258},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":2259},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2260},"__LivelyClassName__":"lively.Closure"},"2258":{"this":{"__isSmartRef__":true,"id":2084}},"2259":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"2260":{"originalFunc":{"__isSmartRef__":true,"id":951}},"2261":{"varMapping":{"__isSmartRef__":true,"id":2262},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":2263},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2264},"__LivelyClassName__":"lively.Closure"},"2262":{"this":{"__isSmartRef__":true,"id":2084}},"2263":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"2264":{"originalFunc":{"__isSmartRef__":true,"id":955}},"2265":{"varMapping":{"__isSmartRef__":true,"id":2266},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":2267},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2268},"__LivelyClassName__":"lively.Closure"},"2266":{"this":{"__isSmartRef__":true,"id":2084}},"2267":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"2268":{"originalFunc":{"__isSmartRef__":true,"id":959}},"2269":{"varMapping":{"__isSmartRef__":true,"id":2270},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":2271},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2272},"__LivelyClassName__":"lively.Closure"},"2270":{"this":{"__isSmartRef__":true,"id":2084}},"2271":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"2272":{"originalFunc":{"__isSmartRef__":true,"id":963}},"2273":{"varMapping":{"__isSmartRef__":true,"id":2274},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2275},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2276},"__LivelyClassName__":"lively.Closure"},"2274":{"this":{"__isSmartRef__":true,"id":2084}},"2275":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"2276":{"originalFunc":{"__isSmartRef__":true,"id":967}},"2277":{"varMapping":{"__isSmartRef__":true,"id":2278},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2279},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2280},"__LivelyClassName__":"lively.Closure"},"2278":{"this":{"__isSmartRef__":true,"id":2084}},"2279":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"2280":{"originalFunc":{"__isSmartRef__":true,"id":971}},"2281":{"varMapping":{"__isSmartRef__":true,"id":2282},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":2283},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2284},"__LivelyClassName__":"lively.Closure"},"2282":{"this":{"__isSmartRef__":true,"id":2084}},"2283":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"2284":{"originalFunc":{"__isSmartRef__":true,"id":975}},"2285":{"varMapping":{"__isSmartRef__":true,"id":2286},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":2287},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2288},"__LivelyClassName__":"lively.Closure"},"2286":{"this":{"__isSmartRef__":true,"id":2084}},"2287":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"2288":{"originalFunc":{"__isSmartRef__":true,"id":979}},"2289":{"varMapping":{"__isSmartRef__":true,"id":2290},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":2291},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2292},"__LivelyClassName__":"lively.Closure"},"2290":{"this":{"__isSmartRef__":true,"id":2084}},"2291":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"2292":{"originalFunc":{"__isSmartRef__":true,"id":983}},"2293":{"varMapping":{"__isSmartRef__":true,"id":2294},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":2295},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2296},"__LivelyClassName__":"lively.Closure"},"2294":{"this":{"__isSmartRef__":true,"id":2084}},"2295":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"2296":{"originalFunc":{"__isSmartRef__":true,"id":987}},"2297":{"varMapping":{"__isSmartRef__":true,"id":2298},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":2299},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2300},"__LivelyClassName__":"lively.Closure"},"2298":{"this":{"__isSmartRef__":true,"id":2084}},"2299":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"2300":{"originalFunc":{"__isSmartRef__":true,"id":991}},"2301":{"varMapping":{"__isSmartRef__":true,"id":2302},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":2303},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2304},"__LivelyClassName__":"lively.Closure"},"2302":{"this":{"__isSmartRef__":true,"id":2084}},"2303":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"2304":{"originalFunc":{"__isSmartRef__":true,"id":995}},"2305":{"varMapping":{"__isSmartRef__":true,"id":2306},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":2307},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2308},"__LivelyClassName__":"lively.Closure"},"2306":{"this":{"__isSmartRef__":true,"id":2084}},"2307":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"2308":{"originalFunc":{"__isSmartRef__":true,"id":999}},"2309":{"varMapping":{"__isSmartRef__":true,"id":2310},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2311},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2312},"__LivelyClassName__":"lively.Closure"},"2310":{"this":{"__isSmartRef__":true,"id":2084}},"2311":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"2312":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"2313":{"varMapping":{"__isSmartRef__":true,"id":2314},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2315},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2316},"__LivelyClassName__":"lively.Closure"},"2314":{"this":{"__isSmartRef__":true,"id":2084}},"2315":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"2316":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"2317":{"varMapping":{"__isSmartRef__":true,"id":2318},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":2319},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2320},"__LivelyClassName__":"lively.Closure"},"2318":{"this":{"__isSmartRef__":true,"id":2084}},"2319":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"2320":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"2321":{"submorphs":[{"__isSmartRef__":true,"id":2322}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2332},"renderContextTable":{"__isSmartRef__":true,"id":2337},"eventHandler":{"__isSmartRef__":true,"id":2338},"_ClipMode":"visible","derivationIds":[],"id":"090DC170-EF75-438B-B320-D27741AAEB87","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2339},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":4,"column":5,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":2322},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":2340}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12268},"__LivelyClassName__":"lively.morphic.Box"},"2322":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2323},"renderContextTable":{"__isSmartRef__":true,"id":2328},"eventHandler":{"__isSmartRef__":true,"id":2329},"_ClipMode":"visible","derivationIds":[],"id":"E7E065D4-D416-4652-A0A5-643A5001EFAA","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2330},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2321},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2331},"__LivelyClassName__":"lively.morphic.Image"},"2323":{"_Position":{"__isSmartRef__":true,"id":2324},"renderContextTable":{"__isSmartRef__":true,"id":2325},"_Extent":{"__isSmartRef__":true,"id":2326},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":2327},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"2324":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2325":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"2326":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2327":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2328":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2329":{"morph":{"__isSmartRef__":true,"id":2322},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2330":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2331":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"2332":{"_Position":{"__isSmartRef__":true,"id":2333},"renderContextTable":{"__isSmartRef__":true,"id":2334},"_Extent":{"__isSmartRef__":true,"id":2335},"_Padding":{"__isSmartRef__":true,"id":2336},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2333":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2334":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"2335":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2336":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2337":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2338":{"morph":{"__isSmartRef__":true,"id":2321},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2339":{"x":240,"y":192,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2340":{"submorphs":[{"__isSmartRef__":true,"id":2341}],"scripts":[],"id":"6E0565CC-BB27-443B-A6B8-867547F62E9D","shape":{"__isSmartRef__":true,"id":2359},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2365},"showsHalos":false,"name":"Thing","partsBinMetaInfo":{"__isSmartRef__":true,"id":786},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":2366},"eventHandler":{"__isSmartRef__":true,"id":2367},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","DF863BAB-9987-4611-BCD2-DE9FDCE7D3B5","768ED97D-1E05-415B-AB3F-B6495AC603A0","5A0ECA63-F6E2-4E35-B9A2-75DE2A4C4158","3B4EDC8A-0E99-4F45-A6D5-5CCE7E75BC88","1A900574-7D84-44F3-BB9D-1A1E26FDDB9B","383B3B54-4D0D-42E5-88C6-460045549029","EFC22A04-8B3C-48A8-9C5F-1EBC66DFD6D6","52D7E09F-EA1F-44D5-A893-F72A70D40429","CAC332B2-DA3A-4534-B3C7-E03D31DE9D2C","2CDD083E-3AB7-4BB9-B6D1-A70716226BDF","B4327E15-A3DA-44A6-89B0-71AFB39350AA","D2E0258B-443A-444C-8640-C595ECC95152","6C8F2B5B-D9E4-4742-B4A1-DA08C3B66E3A","34B4B715-9D86-4D1A-921B-5340CDC05F73","4CA32288-0E12-49F5-A485-634D7D327287","5941FCB6-8C08-405A-B2C2-D84C19F702E2","7BA243A0-B441-41E9-B4AE-A18EDB0F9A8A","C1A510A2-576D-49C6-89EA-56953C5D6FC1","372DAC3D-D2F5-47C2-8538-A2EEE9D3A073","6E3BFF0C-E4EB-4D35-959F-9C12F885012C","5D157E3A-5D4F-4C0A-888F-5FE24CBFC6E5","8C8C94D0-B291-47D8-8B8D-F606AF1A59B1","4794D8F3-DD25-4AFF-A687-079AB3EB7B71","324C5BEC-5664-49AD-AE50-4F3AD40CB933"],"partTests":{"__isSmartRef__":true,"id":2368},"isBeingDragged":false,"moved":true,"_ClipMode":"visible","tile":{"__isSmartRef__":true,"id":2373},"thing":{"__isSmartRef__":true,"id":2341},"prevScroll":[0,0],"occludedTiles":[{"__isSmartRef__":true,"id":2373},{"__isSmartRef__":true,"id":2501},{"__isSmartRef__":true,"id":2629},{"__isSmartRef__":true,"id":2757},{"__isSmartRef__":true,"id":3120},{"__isSmartRef__":true,"id":3267},{"__isSmartRef__":true,"id":11966},{"__isSmartRef__":true,"id":11838},{"__isSmartRef__":true,"id":3395},{"__isSmartRef__":true,"id":3139},{"__isSmartRef__":true,"id":4716},{"__isSmartRef__":true,"id":2321}],"_Rotation":0,"_Scale":1.002003004005006,"owner":{"__isSmartRef__":true,"id":2373},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12203},"__LivelyClassName__":"lively.morphic.Box"},"2341":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2342},"derivationIds":[null,"4AE4BBE5-9BFB-4F5D-B27C-8DD85112725A","86A149F5-06EF-47AD-835C-9A726C01DEC8","EB2A85F2-9540-48C2-88B4-369CA07F801A","0BAC7C6A-ACC6-4332-841E-CE3BBC80E61A","BE2C23C1-A210-4568-94BB-15E316ADB796","FF30ED1A-B673-470B-A6F4-8494AD36F878","036181A0-A0EA-4EB8-A7BA-B77095C8421C"],"id":"2DD685D5-5868-4514-A697-7F33A4F2F50A","renderContextTable":{"__isSmartRef__":true,"id":2348},"eventHandler":{"__isSmartRef__":true,"id":2349},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2350},"name":"TreeThing","isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1629},"__SourceModuleName__":"Global.lively.morphic.Widgets","moved":true,"isThing":true,"_ClipMode":"visible","_Rotation":0,"_Scale":1.002003004005006,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2340},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2351},"__LivelyClassName__":"lively.morphic.Image"},"2342":{"_Position":{"__isSmartRef__":true,"id":2343},"renderContextTable":{"__isSmartRef__":true,"id":2344},"_Extent":{"__isSmartRef__":true,"id":2345},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2346},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/tree.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderColor":{"__isSmartRef__":true,"id":2347},"__LivelyClassName__":"lively.morphic.Shapes.Image"},"2343":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2344":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"2345":{"x":141,"y":180,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2346":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2347":{"r":0,"g":0,"b":0,"a":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2348":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2349":{"morph":{"__isSmartRef__":true,"id":2341},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2350":{"x":-93,"y":-132,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2351":{"dropOn":{"__isSmartRef__":true,"id":2352}},"2352":{"varMapping":{"__isSmartRef__":true,"id":2353},"source":"function dropOn(morph) {\n if (morph.isTile && morph.isTile()) {\n var thing = morph.toolbox(\"Thing\")\n thing.dropOn(morph)\n thing.setNormalStyle()\n thing.become(this.copy())\n } else {\n $super(morph);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2358},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2353":{"this":{"__isSmartRef__":true,"id":2341},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2354}},"2354":{"$super":{"__isSmartRef__":true,"id":2355}},"2355":{"varMapping":{"__isSmartRef__":true,"id":2356},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2357},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2356":{"obj":{"__isSmartRef__":true,"id":2341},"name":"dropOn"},"2357":{},"2358":{},"2359":{"position":{"__isSmartRef__":true,"id":2360},"_Extent":{"__isSmartRef__":true,"id":2361},"_BorderWidth":1.148,"_BorderColor":{"__isSmartRef__":true,"id":2362},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2363},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2364},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2360":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2361":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2362":{"r":0,"g":0,"b":0,"a":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2363":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"2364":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2365":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2366":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2367":{"morph":{"__isSmartRef__":true,"id":2340},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2368":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2369}},"2369":{"test01IsMorph":{"__isSmartRef__":true,"id":2370}},"2370":{"varMapping":{"__isSmartRef__":true,"id":2371},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2372},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2371":{"this":{"__isSmartRef__":true,"id":2368}},"2372":{},"2373":{"submorphs":[{"__isSmartRef__":true,"id":2374},{"__isSmartRef__":true,"id":2340}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2384},"renderContextTable":{"__isSmartRef__":true,"id":2389},"eventHandler":{"__isSmartRef__":true,"id":2390},"_ClipMode":"visible","derivationIds":[],"id":"89D7D2D7-19DE-443F-95B2-35F7C33B8FA2","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2391},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":7,"column":7,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":2374},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":2340}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2392},"__LivelyClassName__":"lively.morphic.Box"},"2374":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2375},"renderContextTable":{"__isSmartRef__":true,"id":2380},"eventHandler":{"__isSmartRef__":true,"id":2381},"_ClipMode":"visible","derivationIds":[],"id":"45B7BBD3-AFA4-4EAF-973C-B496FF306769","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2382},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2373},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2383},"__LivelyClassName__":"lively.morphic.Image"},"2375":{"_Position":{"__isSmartRef__":true,"id":2376},"renderContextTable":{"__isSmartRef__":true,"id":2377},"_Extent":{"__isSmartRef__":true,"id":2378},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":2379},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"2376":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2377":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"2378":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2379":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2380":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2381":{"morph":{"__isSmartRef__":true,"id":2374},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2382":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2383":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"2384":{"_Position":{"__isSmartRef__":true,"id":2385},"renderContextTable":{"__isSmartRef__":true,"id":2386},"_Extent":{"__isSmartRef__":true,"id":2387},"_Padding":{"__isSmartRef__":true,"id":2388},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2385":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2386":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"2387":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2388":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2389":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2390":{"morph":{"__isSmartRef__":true,"id":2373},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2391":{"x":336,"y":336,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2392":{"setDevStyle":{"__isSmartRef__":true,"id":2393},"setNormalStyle":{"__isSmartRef__":true,"id":2397},"tileSize":{"__isSmartRef__":true,"id":2401},"become":{"__isSmartRef__":true,"id":2405},"onMouseDown":{"__isSmartRef__":true,"id":2409},"setGridPosition":{"__isSmartRef__":true,"id":2417},"toolbox":{"__isSmartRef__":true,"id":2421},"distanceTo":{"__isSmartRef__":true,"id":2425},"tileWasDropped":{"__isSmartRef__":true,"id":2429},"isObstacle":{"__isSmartRef__":true,"id":2433},"neighboursInDirection":{"__isSmartRef__":true,"id":2437},"neighbours":{"__isSmartRef__":true,"id":2441},"zIndex":{"__isSmartRef__":true,"id":2445},"obstacles":{"__isSmartRef__":true,"id":2449},"addObstacle":{"__isSmartRef__":true,"id":2453},"removeObstacle":{"__isSmartRef__":true,"id":2457},"isTile":{"__isSmartRef__":true,"id":2461},"neighbourAt":{"__isSmartRef__":true,"id":2465},"map":{"__isSmartRef__":true,"id":2469},"game":{"__isSmartRef__":true,"id":2473},"reset":{"__isSmartRef__":true,"id":2477},"shallowCopy":{"__isSmartRef__":true,"id":2481},"characters":{"__isSmartRef__":true,"id":2485},"enterTile":{"__isSmartRef__":true,"id":2489},"leaveTile":{"__isSmartRef__":true,"id":2493},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":2497}},"2393":{"varMapping":{"__isSmartRef__":true,"id":2394},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":2395},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2396},"__LivelyClassName__":"lively.Closure"},"2394":{"this":{"__isSmartRef__":true,"id":2373}},"2395":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"2396":{"originalFunc":{"__isSmartRef__":true,"id":892}},"2397":{"varMapping":{"__isSmartRef__":true,"id":2398},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":2399},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2400},"__LivelyClassName__":"lively.Closure"},"2398":{"this":{"__isSmartRef__":true,"id":2373}},"2399":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"2400":{"originalFunc":{"__isSmartRef__":true,"id":911}},"2401":{"varMapping":{"__isSmartRef__":true,"id":2402},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":2403},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2404},"__LivelyClassName__":"lively.Closure"},"2402":{"this":{"__isSmartRef__":true,"id":2373}},"2403":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"2404":{"originalFunc":{"__isSmartRef__":true,"id":915}},"2405":{"varMapping":{"__isSmartRef__":true,"id":2406},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2407},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2408},"__LivelyClassName__":"lively.Closure"},"2406":{"this":{"__isSmartRef__":true,"id":2373}},"2407":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"2408":{"originalFunc":{"__isSmartRef__":true,"id":919}},"2409":{"varMapping":{"__isSmartRef__":true,"id":2410},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2415},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2416},"__LivelyClassName__":"lively.Closure"},"2410":{"this":{"__isSmartRef__":true,"id":2373},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2411}},"2411":{"$super":{"__isSmartRef__":true,"id":2412}},"2412":{"varMapping":{"__isSmartRef__":true,"id":2413},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2414},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2413":{"obj":{"__isSmartRef__":true,"id":2373},"name":"onMouseDown"},"2414":{},"2415":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"2416":{"originalFunc":{"__isSmartRef__":true,"id":923}},"2417":{"varMapping":{"__isSmartRef__":true,"id":2418},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":2419},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2420},"__LivelyClassName__":"lively.Closure"},"2418":{"this":{"__isSmartRef__":true,"id":2373}},"2419":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"2420":{"originalFunc":{"__isSmartRef__":true,"id":931}},"2421":{"varMapping":{"__isSmartRef__":true,"id":2422},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":2423},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2424},"__LivelyClassName__":"lively.Closure"},"2422":{"this":{"__isSmartRef__":true,"id":2373}},"2423":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"2424":{"originalFunc":{"__isSmartRef__":true,"id":935}},"2425":{"varMapping":{"__isSmartRef__":true,"id":2426},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":2427},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2428},"__LivelyClassName__":"lively.Closure"},"2426":{"this":{"__isSmartRef__":true,"id":2373}},"2427":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"2428":{"originalFunc":{"__isSmartRef__":true,"id":939}},"2429":{"varMapping":{"__isSmartRef__":true,"id":2430},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":2431},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2432},"__LivelyClassName__":"lively.Closure"},"2430":{"this":{"__isSmartRef__":true,"id":2373}},"2431":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"2432":{"originalFunc":{"__isSmartRef__":true,"id":943}},"2433":{"varMapping":{"__isSmartRef__":true,"id":2434},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":2435},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2436},"__LivelyClassName__":"lively.Closure"},"2434":{"this":{"__isSmartRef__":true,"id":2373}},"2435":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"2436":{"originalFunc":{"__isSmartRef__":true,"id":947}},"2437":{"varMapping":{"__isSmartRef__":true,"id":2438},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":2439},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2440},"__LivelyClassName__":"lively.Closure"},"2438":{"this":{"__isSmartRef__":true,"id":2373}},"2439":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"2440":{"originalFunc":{"__isSmartRef__":true,"id":951}},"2441":{"varMapping":{"__isSmartRef__":true,"id":2442},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":2443},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2444},"__LivelyClassName__":"lively.Closure"},"2442":{"this":{"__isSmartRef__":true,"id":2373}},"2443":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"2444":{"originalFunc":{"__isSmartRef__":true,"id":955}},"2445":{"varMapping":{"__isSmartRef__":true,"id":2446},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":2447},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2448},"__LivelyClassName__":"lively.Closure"},"2446":{"this":{"__isSmartRef__":true,"id":2373}},"2447":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"2448":{"originalFunc":{"__isSmartRef__":true,"id":959}},"2449":{"varMapping":{"__isSmartRef__":true,"id":2450},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":2451},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2452},"__LivelyClassName__":"lively.Closure"},"2450":{"this":{"__isSmartRef__":true,"id":2373}},"2451":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"2452":{"originalFunc":{"__isSmartRef__":true,"id":963}},"2453":{"varMapping":{"__isSmartRef__":true,"id":2454},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2455},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2456},"__LivelyClassName__":"lively.Closure"},"2454":{"this":{"__isSmartRef__":true,"id":2373}},"2455":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"2456":{"originalFunc":{"__isSmartRef__":true,"id":967}},"2457":{"varMapping":{"__isSmartRef__":true,"id":2458},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2459},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2460},"__LivelyClassName__":"lively.Closure"},"2458":{"this":{"__isSmartRef__":true,"id":2373}},"2459":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"2460":{"originalFunc":{"__isSmartRef__":true,"id":971}},"2461":{"varMapping":{"__isSmartRef__":true,"id":2462},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":2463},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2464},"__LivelyClassName__":"lively.Closure"},"2462":{"this":{"__isSmartRef__":true,"id":2373}},"2463":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"2464":{"originalFunc":{"__isSmartRef__":true,"id":975}},"2465":{"varMapping":{"__isSmartRef__":true,"id":2466},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":2467},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2468},"__LivelyClassName__":"lively.Closure"},"2466":{"this":{"__isSmartRef__":true,"id":2373}},"2467":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"2468":{"originalFunc":{"__isSmartRef__":true,"id":979}},"2469":{"varMapping":{"__isSmartRef__":true,"id":2470},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":2471},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2472},"__LivelyClassName__":"lively.Closure"},"2470":{"this":{"__isSmartRef__":true,"id":2373}},"2471":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"2472":{"originalFunc":{"__isSmartRef__":true,"id":983}},"2473":{"varMapping":{"__isSmartRef__":true,"id":2474},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":2475},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2476},"__LivelyClassName__":"lively.Closure"},"2474":{"this":{"__isSmartRef__":true,"id":2373}},"2475":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"2476":{"originalFunc":{"__isSmartRef__":true,"id":987}},"2477":{"varMapping":{"__isSmartRef__":true,"id":2478},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":2479},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2480},"__LivelyClassName__":"lively.Closure"},"2478":{"this":{"__isSmartRef__":true,"id":2373}},"2479":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"2480":{"originalFunc":{"__isSmartRef__":true,"id":991}},"2481":{"varMapping":{"__isSmartRef__":true,"id":2482},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":2483},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2484},"__LivelyClassName__":"lively.Closure"},"2482":{"this":{"__isSmartRef__":true,"id":2373}},"2483":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"2484":{"originalFunc":{"__isSmartRef__":true,"id":995}},"2485":{"varMapping":{"__isSmartRef__":true,"id":2486},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":2487},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2488},"__LivelyClassName__":"lively.Closure"},"2486":{"this":{"__isSmartRef__":true,"id":2373}},"2487":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"2488":{"originalFunc":{"__isSmartRef__":true,"id":999}},"2489":{"varMapping":{"__isSmartRef__":true,"id":2490},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2491},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2492},"__LivelyClassName__":"lively.Closure"},"2490":{"this":{"__isSmartRef__":true,"id":2373}},"2491":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"2492":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"2493":{"varMapping":{"__isSmartRef__":true,"id":2494},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2495},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2496},"__LivelyClassName__":"lively.Closure"},"2494":{"this":{"__isSmartRef__":true,"id":2373}},"2495":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"2496":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"2497":{"varMapping":{"__isSmartRef__":true,"id":2498},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":2499},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2500},"__LivelyClassName__":"lively.Closure"},"2498":{"this":{"__isSmartRef__":true,"id":2373}},"2499":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"2500":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"2501":{"submorphs":[{"__isSmartRef__":true,"id":2502}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2512},"renderContextTable":{"__isSmartRef__":true,"id":2517},"eventHandler":{"__isSmartRef__":true,"id":2518},"_ClipMode":"visible","derivationIds":[],"id":"B7ACE87F-0343-4428-940C-C4CF4E4F3829","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2519},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":6,"column":7,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":2502},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":2340}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2520},"__LivelyClassName__":"lively.morphic.Box"},"2502":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2503},"renderContextTable":{"__isSmartRef__":true,"id":2508},"eventHandler":{"__isSmartRef__":true,"id":2509},"_ClipMode":"visible","derivationIds":[],"id":"0D370383-4D00-484B-A6C5-4F6DA2B1EF96","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2510},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2501},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2511},"__LivelyClassName__":"lively.morphic.Image"},"2503":{"_Position":{"__isSmartRef__":true,"id":2504},"renderContextTable":{"__isSmartRef__":true,"id":2505},"_Extent":{"__isSmartRef__":true,"id":2506},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":2507},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"2504":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2505":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"2506":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2507":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2508":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2509":{"morph":{"__isSmartRef__":true,"id":2502},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2510":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2511":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"2512":{"_Position":{"__isSmartRef__":true,"id":2513},"renderContextTable":{"__isSmartRef__":true,"id":2514},"_Extent":{"__isSmartRef__":true,"id":2515},"_Padding":{"__isSmartRef__":true,"id":2516},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2513":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2514":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"2515":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2516":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2517":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2518":{"morph":{"__isSmartRef__":true,"id":2501},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2519":{"x":336,"y":288,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2520":{"setDevStyle":{"__isSmartRef__":true,"id":2521},"setNormalStyle":{"__isSmartRef__":true,"id":2525},"tileSize":{"__isSmartRef__":true,"id":2529},"become":{"__isSmartRef__":true,"id":2533},"onMouseDown":{"__isSmartRef__":true,"id":2537},"setGridPosition":{"__isSmartRef__":true,"id":2545},"toolbox":{"__isSmartRef__":true,"id":2549},"distanceTo":{"__isSmartRef__":true,"id":2553},"tileWasDropped":{"__isSmartRef__":true,"id":2557},"isObstacle":{"__isSmartRef__":true,"id":2561},"neighboursInDirection":{"__isSmartRef__":true,"id":2565},"neighbours":{"__isSmartRef__":true,"id":2569},"zIndex":{"__isSmartRef__":true,"id":2573},"obstacles":{"__isSmartRef__":true,"id":2577},"addObstacle":{"__isSmartRef__":true,"id":2581},"removeObstacle":{"__isSmartRef__":true,"id":2585},"isTile":{"__isSmartRef__":true,"id":2589},"neighbourAt":{"__isSmartRef__":true,"id":2593},"map":{"__isSmartRef__":true,"id":2597},"game":{"__isSmartRef__":true,"id":2601},"reset":{"__isSmartRef__":true,"id":2605},"shallowCopy":{"__isSmartRef__":true,"id":2609},"characters":{"__isSmartRef__":true,"id":2613},"enterTile":{"__isSmartRef__":true,"id":2617},"leaveTile":{"__isSmartRef__":true,"id":2621},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":2625}},"2521":{"varMapping":{"__isSmartRef__":true,"id":2522},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":2523},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2524},"__LivelyClassName__":"lively.Closure"},"2522":{"this":{"__isSmartRef__":true,"id":2501}},"2523":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"2524":{"originalFunc":{"__isSmartRef__":true,"id":892}},"2525":{"varMapping":{"__isSmartRef__":true,"id":2526},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":2527},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2528},"__LivelyClassName__":"lively.Closure"},"2526":{"this":{"__isSmartRef__":true,"id":2501}},"2527":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"2528":{"originalFunc":{"__isSmartRef__":true,"id":911}},"2529":{"varMapping":{"__isSmartRef__":true,"id":2530},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":2531},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2532},"__LivelyClassName__":"lively.Closure"},"2530":{"this":{"__isSmartRef__":true,"id":2501}},"2531":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"2532":{"originalFunc":{"__isSmartRef__":true,"id":915}},"2533":{"varMapping":{"__isSmartRef__":true,"id":2534},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2535},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2536},"__LivelyClassName__":"lively.Closure"},"2534":{"this":{"__isSmartRef__":true,"id":2501}},"2535":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"2536":{"originalFunc":{"__isSmartRef__":true,"id":919}},"2537":{"varMapping":{"__isSmartRef__":true,"id":2538},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2543},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2544},"__LivelyClassName__":"lively.Closure"},"2538":{"this":{"__isSmartRef__":true,"id":2501},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2539}},"2539":{"$super":{"__isSmartRef__":true,"id":2540}},"2540":{"varMapping":{"__isSmartRef__":true,"id":2541},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2542},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2541":{"obj":{"__isSmartRef__":true,"id":2501},"name":"onMouseDown"},"2542":{},"2543":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"2544":{"originalFunc":{"__isSmartRef__":true,"id":923}},"2545":{"varMapping":{"__isSmartRef__":true,"id":2546},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":2547},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2548},"__LivelyClassName__":"lively.Closure"},"2546":{"this":{"__isSmartRef__":true,"id":2501}},"2547":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"2548":{"originalFunc":{"__isSmartRef__":true,"id":931}},"2549":{"varMapping":{"__isSmartRef__":true,"id":2550},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":2551},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2552},"__LivelyClassName__":"lively.Closure"},"2550":{"this":{"__isSmartRef__":true,"id":2501}},"2551":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"2552":{"originalFunc":{"__isSmartRef__":true,"id":935}},"2553":{"varMapping":{"__isSmartRef__":true,"id":2554},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":2555},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2556},"__LivelyClassName__":"lively.Closure"},"2554":{"this":{"__isSmartRef__":true,"id":2501}},"2555":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"2556":{"originalFunc":{"__isSmartRef__":true,"id":939}},"2557":{"varMapping":{"__isSmartRef__":true,"id":2558},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":2559},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2560},"__LivelyClassName__":"lively.Closure"},"2558":{"this":{"__isSmartRef__":true,"id":2501}},"2559":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"2560":{"originalFunc":{"__isSmartRef__":true,"id":943}},"2561":{"varMapping":{"__isSmartRef__":true,"id":2562},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":2563},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2564},"__LivelyClassName__":"lively.Closure"},"2562":{"this":{"__isSmartRef__":true,"id":2501}},"2563":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"2564":{"originalFunc":{"__isSmartRef__":true,"id":947}},"2565":{"varMapping":{"__isSmartRef__":true,"id":2566},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":2567},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2568},"__LivelyClassName__":"lively.Closure"},"2566":{"this":{"__isSmartRef__":true,"id":2501}},"2567":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"2568":{"originalFunc":{"__isSmartRef__":true,"id":951}},"2569":{"varMapping":{"__isSmartRef__":true,"id":2570},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":2571},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2572},"__LivelyClassName__":"lively.Closure"},"2570":{"this":{"__isSmartRef__":true,"id":2501}},"2571":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"2572":{"originalFunc":{"__isSmartRef__":true,"id":955}},"2573":{"varMapping":{"__isSmartRef__":true,"id":2574},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":2575},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2576},"__LivelyClassName__":"lively.Closure"},"2574":{"this":{"__isSmartRef__":true,"id":2501}},"2575":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"2576":{"originalFunc":{"__isSmartRef__":true,"id":959}},"2577":{"varMapping":{"__isSmartRef__":true,"id":2578},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":2579},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2580},"__LivelyClassName__":"lively.Closure"},"2578":{"this":{"__isSmartRef__":true,"id":2501}},"2579":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"2580":{"originalFunc":{"__isSmartRef__":true,"id":963}},"2581":{"varMapping":{"__isSmartRef__":true,"id":2582},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2583},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2584},"__LivelyClassName__":"lively.Closure"},"2582":{"this":{"__isSmartRef__":true,"id":2501}},"2583":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"2584":{"originalFunc":{"__isSmartRef__":true,"id":967}},"2585":{"varMapping":{"__isSmartRef__":true,"id":2586},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2587},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2588},"__LivelyClassName__":"lively.Closure"},"2586":{"this":{"__isSmartRef__":true,"id":2501}},"2587":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"2588":{"originalFunc":{"__isSmartRef__":true,"id":971}},"2589":{"varMapping":{"__isSmartRef__":true,"id":2590},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":2591},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2592},"__LivelyClassName__":"lively.Closure"},"2590":{"this":{"__isSmartRef__":true,"id":2501}},"2591":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"2592":{"originalFunc":{"__isSmartRef__":true,"id":975}},"2593":{"varMapping":{"__isSmartRef__":true,"id":2594},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":2595},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2596},"__LivelyClassName__":"lively.Closure"},"2594":{"this":{"__isSmartRef__":true,"id":2501}},"2595":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"2596":{"originalFunc":{"__isSmartRef__":true,"id":979}},"2597":{"varMapping":{"__isSmartRef__":true,"id":2598},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":2599},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2600},"__LivelyClassName__":"lively.Closure"},"2598":{"this":{"__isSmartRef__":true,"id":2501}},"2599":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"2600":{"originalFunc":{"__isSmartRef__":true,"id":983}},"2601":{"varMapping":{"__isSmartRef__":true,"id":2602},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":2603},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2604},"__LivelyClassName__":"lively.Closure"},"2602":{"this":{"__isSmartRef__":true,"id":2501}},"2603":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"2604":{"originalFunc":{"__isSmartRef__":true,"id":987}},"2605":{"varMapping":{"__isSmartRef__":true,"id":2606},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":2607},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2608},"__LivelyClassName__":"lively.Closure"},"2606":{"this":{"__isSmartRef__":true,"id":2501}},"2607":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"2608":{"originalFunc":{"__isSmartRef__":true,"id":991}},"2609":{"varMapping":{"__isSmartRef__":true,"id":2610},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":2611},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2612},"__LivelyClassName__":"lively.Closure"},"2610":{"this":{"__isSmartRef__":true,"id":2501}},"2611":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"2612":{"originalFunc":{"__isSmartRef__":true,"id":995}},"2613":{"varMapping":{"__isSmartRef__":true,"id":2614},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":2615},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2616},"__LivelyClassName__":"lively.Closure"},"2614":{"this":{"__isSmartRef__":true,"id":2501}},"2615":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"2616":{"originalFunc":{"__isSmartRef__":true,"id":999}},"2617":{"varMapping":{"__isSmartRef__":true,"id":2618},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2619},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2620},"__LivelyClassName__":"lively.Closure"},"2618":{"this":{"__isSmartRef__":true,"id":2501}},"2619":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"2620":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"2621":{"varMapping":{"__isSmartRef__":true,"id":2622},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2623},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2624},"__LivelyClassName__":"lively.Closure"},"2622":{"this":{"__isSmartRef__":true,"id":2501}},"2623":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"2624":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"2625":{"varMapping":{"__isSmartRef__":true,"id":2626},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":2627},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2628},"__LivelyClassName__":"lively.Closure"},"2626":{"this":{"__isSmartRef__":true,"id":2501}},"2627":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"2628":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"2629":{"submorphs":[{"__isSmartRef__":true,"id":2630}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2640},"renderContextTable":{"__isSmartRef__":true,"id":2645},"eventHandler":{"__isSmartRef__":true,"id":2646},"_ClipMode":"visible","derivationIds":[],"id":"F180CFD8-C7AE-46CC-8956-0773D7315CB6","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2647},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":5,"column":7,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":2630},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":2340}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2648},"__LivelyClassName__":"lively.morphic.Box"},"2630":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2631},"renderContextTable":{"__isSmartRef__":true,"id":2636},"eventHandler":{"__isSmartRef__":true,"id":2637},"_ClipMode":"visible","derivationIds":[],"id":"C134AA60-B8CC-49A4-BB50-A5DFE669B0B3","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2638},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2629},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2639},"__LivelyClassName__":"lively.morphic.Image"},"2631":{"_Position":{"__isSmartRef__":true,"id":2632},"renderContextTable":{"__isSmartRef__":true,"id":2633},"_Extent":{"__isSmartRef__":true,"id":2634},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":2635},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"2632":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2633":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"2634":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2635":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2636":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2637":{"morph":{"__isSmartRef__":true,"id":2630},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2638":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2639":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"2640":{"_Position":{"__isSmartRef__":true,"id":2641},"renderContextTable":{"__isSmartRef__":true,"id":2642},"_Extent":{"__isSmartRef__":true,"id":2643},"_Padding":{"__isSmartRef__":true,"id":2644},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2641":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2642":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"2643":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2644":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2645":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2646":{"morph":{"__isSmartRef__":true,"id":2629},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2647":{"x":336,"y":240,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2648":{"setDevStyle":{"__isSmartRef__":true,"id":2649},"setNormalStyle":{"__isSmartRef__":true,"id":2653},"tileSize":{"__isSmartRef__":true,"id":2657},"become":{"__isSmartRef__":true,"id":2661},"onMouseDown":{"__isSmartRef__":true,"id":2665},"setGridPosition":{"__isSmartRef__":true,"id":2673},"toolbox":{"__isSmartRef__":true,"id":2677},"distanceTo":{"__isSmartRef__":true,"id":2681},"tileWasDropped":{"__isSmartRef__":true,"id":2685},"isObstacle":{"__isSmartRef__":true,"id":2689},"neighboursInDirection":{"__isSmartRef__":true,"id":2693},"neighbours":{"__isSmartRef__":true,"id":2697},"zIndex":{"__isSmartRef__":true,"id":2701},"obstacles":{"__isSmartRef__":true,"id":2705},"addObstacle":{"__isSmartRef__":true,"id":2709},"removeObstacle":{"__isSmartRef__":true,"id":2713},"isTile":{"__isSmartRef__":true,"id":2717},"neighbourAt":{"__isSmartRef__":true,"id":2721},"map":{"__isSmartRef__":true,"id":2725},"game":{"__isSmartRef__":true,"id":2729},"reset":{"__isSmartRef__":true,"id":2733},"shallowCopy":{"__isSmartRef__":true,"id":2737},"characters":{"__isSmartRef__":true,"id":2741},"enterTile":{"__isSmartRef__":true,"id":2745},"leaveTile":{"__isSmartRef__":true,"id":2749},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":2753}},"2649":{"varMapping":{"__isSmartRef__":true,"id":2650},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":2651},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2652},"__LivelyClassName__":"lively.Closure"},"2650":{"this":{"__isSmartRef__":true,"id":2629}},"2651":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"2652":{"originalFunc":{"__isSmartRef__":true,"id":892}},"2653":{"varMapping":{"__isSmartRef__":true,"id":2654},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":2655},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2656},"__LivelyClassName__":"lively.Closure"},"2654":{"this":{"__isSmartRef__":true,"id":2629}},"2655":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"2656":{"originalFunc":{"__isSmartRef__":true,"id":911}},"2657":{"varMapping":{"__isSmartRef__":true,"id":2658},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":2659},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2660},"__LivelyClassName__":"lively.Closure"},"2658":{"this":{"__isSmartRef__":true,"id":2629}},"2659":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"2660":{"originalFunc":{"__isSmartRef__":true,"id":915}},"2661":{"varMapping":{"__isSmartRef__":true,"id":2662},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2663},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2664},"__LivelyClassName__":"lively.Closure"},"2662":{"this":{"__isSmartRef__":true,"id":2629}},"2663":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"2664":{"originalFunc":{"__isSmartRef__":true,"id":919}},"2665":{"varMapping":{"__isSmartRef__":true,"id":2666},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2671},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2672},"__LivelyClassName__":"lively.Closure"},"2666":{"this":{"__isSmartRef__":true,"id":2629},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2667}},"2667":{"$super":{"__isSmartRef__":true,"id":2668}},"2668":{"varMapping":{"__isSmartRef__":true,"id":2669},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2670},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2669":{"obj":{"__isSmartRef__":true,"id":2629},"name":"onMouseDown"},"2670":{},"2671":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"2672":{"originalFunc":{"__isSmartRef__":true,"id":923}},"2673":{"varMapping":{"__isSmartRef__":true,"id":2674},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":2675},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2676},"__LivelyClassName__":"lively.Closure"},"2674":{"this":{"__isSmartRef__":true,"id":2629}},"2675":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"2676":{"originalFunc":{"__isSmartRef__":true,"id":931}},"2677":{"varMapping":{"__isSmartRef__":true,"id":2678},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":2679},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2680},"__LivelyClassName__":"lively.Closure"},"2678":{"this":{"__isSmartRef__":true,"id":2629}},"2679":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"2680":{"originalFunc":{"__isSmartRef__":true,"id":935}},"2681":{"varMapping":{"__isSmartRef__":true,"id":2682},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":2683},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2684},"__LivelyClassName__":"lively.Closure"},"2682":{"this":{"__isSmartRef__":true,"id":2629}},"2683":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"2684":{"originalFunc":{"__isSmartRef__":true,"id":939}},"2685":{"varMapping":{"__isSmartRef__":true,"id":2686},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":2687},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2688},"__LivelyClassName__":"lively.Closure"},"2686":{"this":{"__isSmartRef__":true,"id":2629}},"2687":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"2688":{"originalFunc":{"__isSmartRef__":true,"id":943}},"2689":{"varMapping":{"__isSmartRef__":true,"id":2690},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":2691},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2692},"__LivelyClassName__":"lively.Closure"},"2690":{"this":{"__isSmartRef__":true,"id":2629}},"2691":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"2692":{"originalFunc":{"__isSmartRef__":true,"id":947}},"2693":{"varMapping":{"__isSmartRef__":true,"id":2694},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":2695},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2696},"__LivelyClassName__":"lively.Closure"},"2694":{"this":{"__isSmartRef__":true,"id":2629}},"2695":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"2696":{"originalFunc":{"__isSmartRef__":true,"id":951}},"2697":{"varMapping":{"__isSmartRef__":true,"id":2698},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":2699},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2700},"__LivelyClassName__":"lively.Closure"},"2698":{"this":{"__isSmartRef__":true,"id":2629}},"2699":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"2700":{"originalFunc":{"__isSmartRef__":true,"id":955}},"2701":{"varMapping":{"__isSmartRef__":true,"id":2702},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":2703},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2704},"__LivelyClassName__":"lively.Closure"},"2702":{"this":{"__isSmartRef__":true,"id":2629}},"2703":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"2704":{"originalFunc":{"__isSmartRef__":true,"id":959}},"2705":{"varMapping":{"__isSmartRef__":true,"id":2706},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":2707},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2708},"__LivelyClassName__":"lively.Closure"},"2706":{"this":{"__isSmartRef__":true,"id":2629}},"2707":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"2708":{"originalFunc":{"__isSmartRef__":true,"id":963}},"2709":{"varMapping":{"__isSmartRef__":true,"id":2710},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2711},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2712},"__LivelyClassName__":"lively.Closure"},"2710":{"this":{"__isSmartRef__":true,"id":2629}},"2711":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"2712":{"originalFunc":{"__isSmartRef__":true,"id":967}},"2713":{"varMapping":{"__isSmartRef__":true,"id":2714},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2715},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2716},"__LivelyClassName__":"lively.Closure"},"2714":{"this":{"__isSmartRef__":true,"id":2629}},"2715":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"2716":{"originalFunc":{"__isSmartRef__":true,"id":971}},"2717":{"varMapping":{"__isSmartRef__":true,"id":2718},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":2719},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2720},"__LivelyClassName__":"lively.Closure"},"2718":{"this":{"__isSmartRef__":true,"id":2629}},"2719":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"2720":{"originalFunc":{"__isSmartRef__":true,"id":975}},"2721":{"varMapping":{"__isSmartRef__":true,"id":2722},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":2723},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2724},"__LivelyClassName__":"lively.Closure"},"2722":{"this":{"__isSmartRef__":true,"id":2629}},"2723":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"2724":{"originalFunc":{"__isSmartRef__":true,"id":979}},"2725":{"varMapping":{"__isSmartRef__":true,"id":2726},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":2727},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2728},"__LivelyClassName__":"lively.Closure"},"2726":{"this":{"__isSmartRef__":true,"id":2629}},"2727":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"2728":{"originalFunc":{"__isSmartRef__":true,"id":983}},"2729":{"varMapping":{"__isSmartRef__":true,"id":2730},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":2731},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2732},"__LivelyClassName__":"lively.Closure"},"2730":{"this":{"__isSmartRef__":true,"id":2629}},"2731":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"2732":{"originalFunc":{"__isSmartRef__":true,"id":987}},"2733":{"varMapping":{"__isSmartRef__":true,"id":2734},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":2735},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2736},"__LivelyClassName__":"lively.Closure"},"2734":{"this":{"__isSmartRef__":true,"id":2629}},"2735":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"2736":{"originalFunc":{"__isSmartRef__":true,"id":991}},"2737":{"varMapping":{"__isSmartRef__":true,"id":2738},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":2739},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2740},"__LivelyClassName__":"lively.Closure"},"2738":{"this":{"__isSmartRef__":true,"id":2629}},"2739":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"2740":{"originalFunc":{"__isSmartRef__":true,"id":995}},"2741":{"varMapping":{"__isSmartRef__":true,"id":2742},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":2743},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2744},"__LivelyClassName__":"lively.Closure"},"2742":{"this":{"__isSmartRef__":true,"id":2629}},"2743":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"2744":{"originalFunc":{"__isSmartRef__":true,"id":999}},"2745":{"varMapping":{"__isSmartRef__":true,"id":2746},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2747},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2748},"__LivelyClassName__":"lively.Closure"},"2746":{"this":{"__isSmartRef__":true,"id":2629}},"2747":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"2748":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"2749":{"varMapping":{"__isSmartRef__":true,"id":2750},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2751},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2752},"__LivelyClassName__":"lively.Closure"},"2750":{"this":{"__isSmartRef__":true,"id":2629}},"2751":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"2752":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"2753":{"varMapping":{"__isSmartRef__":true,"id":2754},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":2755},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2756},"__LivelyClassName__":"lively.Closure"},"2754":{"this":{"__isSmartRef__":true,"id":2629}},"2755":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"2756":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"2757":{"submorphs":[{"__isSmartRef__":true,"id":2758}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2768},"renderContextTable":{"__isSmartRef__":true,"id":2773},"eventHandler":{"__isSmartRef__":true,"id":2774},"_ClipMode":"visible","derivationIds":[],"id":"C587995E-F760-43CC-B7AA-92F3B53BA81A","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2775},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":4,"column":7,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":2758},"grabbingEnabled":false,"charactersStandingHere":[],"__obstacles":[{"__isSmartRef__":true,"id":2340}],"cachedNeightbours":[{"__isSmartRef__":true,"id":1278},{"__isSmartRef__":true,"id":868},{"__isSmartRef__":true,"id":2776},{"__isSmartRef__":true,"id":11838},{"__isSmartRef__":true,"id":2909},{"__isSmartRef__":true,"id":11966},{"__isSmartRef__":true,"id":2629},{"__isSmartRef__":true,"id":2968}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12094},"__LivelyClassName__":"lively.morphic.Box"},"2758":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2759},"renderContextTable":{"__isSmartRef__":true,"id":2764},"eventHandler":{"__isSmartRef__":true,"id":2765},"_ClipMode":"visible","derivationIds":[],"id":"147573FE-0EDF-4092-AFF9-75B1FCA04492","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2766},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2757},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2767},"__LivelyClassName__":"lively.morphic.Image"},"2759":{"_Position":{"__isSmartRef__":true,"id":2760},"renderContextTable":{"__isSmartRef__":true,"id":2761},"_Extent":{"__isSmartRef__":true,"id":2762},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":2763},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"2760":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2761":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"2762":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2763":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2764":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2765":{"morph":{"__isSmartRef__":true,"id":2758},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2766":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2767":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"2768":{"_Position":{"__isSmartRef__":true,"id":2769},"renderContextTable":{"__isSmartRef__":true,"id":2770},"_Extent":{"__isSmartRef__":true,"id":2771},"_Padding":{"__isSmartRef__":true,"id":2772},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2769":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2770":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"2771":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2772":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2773":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2774":{"morph":{"__isSmartRef__":true,"id":2757},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2775":{"x":336,"y":192,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2776":{"submorphs":[{"__isSmartRef__":true,"id":2777}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2787},"renderContextTable":{"__isSmartRef__":true,"id":2792},"eventHandler":{"__isSmartRef__":true,"id":2793},"_ClipMode":"visible","derivationIds":[],"id":"7DAFFE6F-CB43-43A8-B358-839AA5D871F7","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2794},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":3,"column":8,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":2777},"grabbingEnabled":false,"charactersStandingHere":[],"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":1150},{"__isSmartRef__":true,"id":2795},{"__isSmartRef__":true,"id":2833},{"__isSmartRef__":true,"id":868},{"__isSmartRef__":true,"id":2890},{"__isSmartRef__":true,"id":2757},{"__isSmartRef__":true,"id":2909},{"__isSmartRef__":true,"id":2949}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11729},"__LivelyClassName__":"lively.morphic.Box"},"2777":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2778},"renderContextTable":{"__isSmartRef__":true,"id":2783},"eventHandler":{"__isSmartRef__":true,"id":2784},"_ClipMode":"visible","derivationIds":[],"id":"8BCB8F9D-85F5-4C51-A4A6-97B67E0811CB","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2785},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2776},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2786},"__LivelyClassName__":"lively.morphic.Image"},"2778":{"_Position":{"__isSmartRef__":true,"id":2779},"renderContextTable":{"__isSmartRef__":true,"id":2780},"_Extent":{"__isSmartRef__":true,"id":2781},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/desert.png","_Padding":{"__isSmartRef__":true,"id":2782},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"2779":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2780":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"2781":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2782":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2783":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2784":{"morph":{"__isSmartRef__":true,"id":2777},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2785":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2786":{"dropOn":{"__isSmartRef__":true,"id":276},"shallowCopy":{"__isSmartRef__":true,"id":303}},"2787":{"_Position":{"__isSmartRef__":true,"id":2788},"renderContextTable":{"__isSmartRef__":true,"id":2789},"_Extent":{"__isSmartRef__":true,"id":2790},"_Padding":{"__isSmartRef__":true,"id":2791},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2788":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2789":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"2790":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2791":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2792":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2793":{"morph":{"__isSmartRef__":true,"id":2776},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2794":{"x":384,"y":144,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2795":{"submorphs":[{"__isSmartRef__":true,"id":2796}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2806},"renderContextTable":{"__isSmartRef__":true,"id":2811},"eventHandler":{"__isSmartRef__":true,"id":2812},"_ClipMode":"visible","derivationIds":[],"id":"F7230DF4-479F-40B2-8E00-5C943AEE0F80","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2813},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":2,"column":8,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":2796},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":396},{"__isSmartRef__":true,"id":377},{"__isSmartRef__":true,"id":2814},{"__isSmartRef__":true,"id":1150},{"__isSmartRef__":true,"id":2833},{"__isSmartRef__":true,"id":868},{"__isSmartRef__":true,"id":2776},{"__isSmartRef__":true,"id":2890}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11620},"__LivelyClassName__":"lively.morphic.Box"},"2796":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2797},"renderContextTable":{"__isSmartRef__":true,"id":2802},"eventHandler":{"__isSmartRef__":true,"id":2803},"_ClipMode":"visible","derivationIds":[],"id":"4EE51AA1-9CB2-45C8-8422-D1CB0E331A44","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2804},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2795},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2805},"__LivelyClassName__":"lively.morphic.Image"},"2797":{"_Position":{"__isSmartRef__":true,"id":2798},"renderContextTable":{"__isSmartRef__":true,"id":2799},"_Extent":{"__isSmartRef__":true,"id":2800},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/desert.png","_Padding":{"__isSmartRef__":true,"id":2801},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"2798":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2799":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"2800":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2801":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2802":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2803":{"morph":{"__isSmartRef__":true,"id":2796},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2804":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2805":{"dropOn":{"__isSmartRef__":true,"id":276},"shallowCopy":{"__isSmartRef__":true,"id":303}},"2806":{"_Position":{"__isSmartRef__":true,"id":2807},"renderContextTable":{"__isSmartRef__":true,"id":2808},"_Extent":{"__isSmartRef__":true,"id":2809},"_Padding":{"__isSmartRef__":true,"id":2810},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2807":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2808":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"2809":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2810":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2811":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2812":{"morph":{"__isSmartRef__":true,"id":2795},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2813":{"x":384,"y":96,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2814":{"submorphs":[{"__isSmartRef__":true,"id":2815}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2825},"renderContextTable":{"__isSmartRef__":true,"id":2830},"eventHandler":{"__isSmartRef__":true,"id":2831},"_ClipMode":"visible","derivationIds":[],"id":"D873B015-2E7C-4051-85C4-00280A219E11","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2832},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":1,"column":9,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":2815},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":339},{"__isSmartRef__":true,"id":358},{"__isSmartRef__":true,"id":377},{"__isSmartRef__":true,"id":2795},{"__isSmartRef__":true,"id":2833}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11511},"__LivelyClassName__":"lively.morphic.Box"},"2815":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2816},"renderContextTable":{"__isSmartRef__":true,"id":2821},"eventHandler":{"__isSmartRef__":true,"id":2822},"_ClipMode":"visible","derivationIds":[],"id":"C6D992FD-07C9-47FB-8BA9-BAC0A43B5D22","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2823},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2814},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2824},"__LivelyClassName__":"lively.morphic.Image"},"2816":{"_Position":{"__isSmartRef__":true,"id":2817},"renderContextTable":{"__isSmartRef__":true,"id":2818},"_Extent":{"__isSmartRef__":true,"id":2819},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/desert.png","_Padding":{"__isSmartRef__":true,"id":2820},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"2817":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2818":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"2819":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2820":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2821":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2822":{"morph":{"__isSmartRef__":true,"id":2815},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2823":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2824":{"dropOn":{"__isSmartRef__":true,"id":276},"shallowCopy":{"__isSmartRef__":true,"id":303}},"2825":{"_Position":{"__isSmartRef__":true,"id":2826},"renderContextTable":{"__isSmartRef__":true,"id":2827},"_Extent":{"__isSmartRef__":true,"id":2828},"_Padding":{"__isSmartRef__":true,"id":2829},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2826":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2827":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"2828":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2829":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2830":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2831":{"morph":{"__isSmartRef__":true,"id":2814},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2832":{"x":432,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2833":{"submorphs":[{"__isSmartRef__":true,"id":2834}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2882},"renderContextTable":{"__isSmartRef__":true,"id":2887},"eventHandler":{"__isSmartRef__":true,"id":2888},"_ClipMode":"visible","derivationIds":[],"id":"685CBB7C-A17E-403D-9768-4B64F54DFCC0","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2889},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":2,"column":9,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":2834},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":377},{"__isSmartRef__":true,"id":2814},{"__isSmartRef__":true,"id":2795},{"__isSmartRef__":true,"id":2776},{"__isSmartRef__":true,"id":2890}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11402},"__LivelyClassName__":"lively.morphic.Box"},"2834":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2835},"renderContextTable":{"__isSmartRef__":true,"id":2840},"eventHandler":{"__isSmartRef__":true,"id":2841},"_ClipMode":"visible","derivationIds":[],"id":"BDA45F2C-1F5E-4357-B792-12D6CC6914A1","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2842},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2833},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2843},"__LivelyClassName__":"lively.morphic.Image"},"2835":{"_Position":{"__isSmartRef__":true,"id":2836},"renderContextTable":{"__isSmartRef__":true,"id":2837},"_Extent":{"__isSmartRef__":true,"id":2838},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/lillypad.png","_Padding":{"__isSmartRef__":true,"id":2839},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"2836":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2837":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"2838":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2839":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2840":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2841":{"morph":{"__isSmartRef__":true,"id":2834},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2842":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2843":{"dropOn":{"__isSmartRef__":true,"id":2844},"shallowCopy":{"__isSmartRef__":true,"id":2873}},"2844":{"varMapping":{"__isSmartRef__":true,"id":2845},"source":"function dropOn(morph) {\n if (morph.tileWasDropped) {\n morph.tileWasDropped(this);\n } else {\n $super(morph);\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2881},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2845":{"this":{"__isSmartRef__":true,"id":2846},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2877}},"2846":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2847},"derivationIds":[null,"833DCB7D-4DE3-4A52-B9B3-0FCACBB32EE7","3ADBCC4D-AA97-4353-B91D-211A92DBDFD4","047E8936-5ADF-45AD-BEEF-496516A4C1BA","ECD46F5B-C466-43B0-B33A-033FF7550591","560A1A49-DBB6-433F-82DD-86E568AB02E7","F046DE53-7DF8-4E27-AA2D-C4286A9D5E2F","BF9FEE19-C873-403C-8D7C-1216D073085E","AF32EA29-A8A1-4FD8-AC8C-FFF1D3376084","A8BE32AC-8931-4CE9-8F7F-2D1E30B236D5","CD2F2A00-D300-4516-9525-B4A6AAAB85F1","8C2E4DB6-A872-4289-AA6D-D78327777244","5C9A1DE5-E81E-44CB-A52C-024F46AEA1A5"],"id":"61AE4C8C-1B95-4EFE-9C36-38A6E2E735AA","renderContextTable":{"__isSmartRef__":true,"id":2852},"eventHandler":{"__isSmartRef__":true,"id":2853},"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2854},"name":"LillypadTile1","showsHalos":false,"isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__SourceModuleName__":"Global.lively.morphic.Widgets","partsBinMetaInfo":{"__isSmartRef__":true,"id":2855},"moved":true,"isObstacle":false,"isTile":true,"_ClipMode":"visible","eventsAreIgnored":true,"grabbingEnabled":false,"draggingEnabled":false,"_Rotation":0,"_Scale":1.0060210561262526,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2872},"__LivelyClassName__":"lively.morphic.Image"},"2847":{"_Position":{"__isSmartRef__":true,"id":2848},"renderContextTable":{"__isSmartRef__":true,"id":2849},"_Extent":{"__isSmartRef__":true,"id":2850},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2851},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/lillypad.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"2848":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2849":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"2850":{"x":16,"y":16,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2851":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2852":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2853":{"morph":{"__isSmartRef__":true,"id":2846},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2854":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2855":{"partName":"LillypadTile","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"undefined","changes":[{"__isSmartRef__":true,"id":2856},{"__isSmartRef__":true,"id":2858},{"__isSmartRef__":true,"id":2860},{"__isSmartRef__":true,"id":2862},{"__isSmartRef__":true,"id":2864},{"__isSmartRef__":true,"id":2866},{"__isSmartRef__":true,"id":2868},{"__isSmartRef__":true,"id":2870}],"migrationLevel":4,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2856":{"date":{"__isSmartRef__":true,"id":2857},"author":"tessi","message":"no comment","id":"29FD4B9C-C2E1-4FB6-AACB-7A611A7E3261"},"2857":{"isSerializedDate":true,"string":"Fri May 04 2012 17:03:05 GMT+0200 (CEST)"},"2858":{"date":{"__isSmartRef__":true,"id":2859},"author":"timfelgentreff","message":"no comment","id":"80F18506-2049-4010-9016-09FEBBC1AC94"},"2859":{"isSerializedDate":true,"string":"Thu May 03 2012 13:41:04 GMT+0200 (CEST)"},"2860":{"date":{"__isSmartRef__":true,"id":2861},"author":"timfelgentreff","message":"no comment","id":"7FAE6469-6085-4F1C-82BE-9565567DEB4A"},"2861":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:38:04 GMT+0200 (CEST)"},"2862":{"date":{"__isSmartRef__":true,"id":2863},"author":"timfelgentreff","message":"no comment","id":"56DB171B-6F3A-4540-B192-834483274113"},"2863":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:34:03 GMT+0200 (CEST)"},"2864":{"date":{"__isSmartRef__":true,"id":2865},"author":"tessi","message":"","id":"0859DE78-85F6-4A96-B28F-EF1FBB00BBC2"},"2865":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:16:43 GMT+0200 (CEST)"},"2866":{"date":{"__isSmartRef__":true,"id":2867},"author":"lauritz","message":"","id":"3A112EF9-C1FB-40A4-B3BD-2886F7A97260"},"2867":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:21:43 GMT+0200 (CEST)"},"2868":{"date":{"__isSmartRef__":true,"id":2869},"author":"timfelgentreff","message":"","id":"EC68CCC4-D23F-44EA-9E3B-3495848929F1"},"2869":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:31:31 GMT+0200 (CEST)"},"2870":{"date":{"__isSmartRef__":true,"id":2871},"author":"tessi","message":"","id":"96CFC2C8-59E4-46A1-AC4B-11777D05A46F"},"2871":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:41:59 GMT+0200 (CEST)"},"2872":{"dropOn":{"__isSmartRef__":true,"id":2844},"shallowCopy":{"__isSmartRef__":true,"id":2873}},"2873":{"varMapping":{"__isSmartRef__":true,"id":2874},"source":"function shallowCopy() {\n var that = this\n var copy = ImageMorph.fromURL(this.getImageURL(), this.getBounds())\n Functions.own(this).each(function (ea) { copy[ea] = that[ea] })\n copy.isObstacle = that.isObstacle\n return copy\n }","funcProperties":{"__isSmartRef__":true,"id":2875},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2874":{"this":{"__isSmartRef__":true,"id":2846}},"2875":{"timestamp":{"__isSmartRef__":true,"id":2876},"user":"timfelgentreff","tags":[]},"2876":{"isSerializedDate":true,"string":"Thu May 03 2012 13:40:40 GMT+0200 (CEST)"},"2877":{"$super":{"__isSmartRef__":true,"id":2878}},"2878":{"varMapping":{"__isSmartRef__":true,"id":2879},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2880},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2879":{"obj":{"__isSmartRef__":true,"id":2846},"name":"dropOn"},"2880":{},"2881":{},"2882":{"_Position":{"__isSmartRef__":true,"id":2883},"renderContextTable":{"__isSmartRef__":true,"id":2884},"_Extent":{"__isSmartRef__":true,"id":2885},"_Padding":{"__isSmartRef__":true,"id":2886},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2883":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2884":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"2885":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2886":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2887":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2888":{"morph":{"__isSmartRef__":true,"id":2833},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2889":{"x":432,"y":96,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2890":{"submorphs":[{"__isSmartRef__":true,"id":2891}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2901},"renderContextTable":{"__isSmartRef__":true,"id":2906},"eventHandler":{"__isSmartRef__":true,"id":2907},"_ClipMode":"visible","derivationIds":[],"id":"A6ED19E2-33FB-401B-A234-9B09B215B464","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2908},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":3,"column":9,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":2891},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":2795},{"__isSmartRef__":true,"id":2833},{"__isSmartRef__":true,"id":2776},{"__isSmartRef__":true,"id":2909},{"__isSmartRef__":true,"id":2949}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11293},"__LivelyClassName__":"lively.morphic.Box"},"2891":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2892},"renderContextTable":{"__isSmartRef__":true,"id":2897},"eventHandler":{"__isSmartRef__":true,"id":2898},"_ClipMode":"visible","derivationIds":[],"id":"6E39EFFF-8017-4AD0-BC0C-EE9AF5C8579F","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2899},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2890},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2900},"__LivelyClassName__":"lively.morphic.Image"},"2892":{"_Position":{"__isSmartRef__":true,"id":2893},"renderContextTable":{"__isSmartRef__":true,"id":2894},"_Extent":{"__isSmartRef__":true,"id":2895},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/lillypad.png","_Padding":{"__isSmartRef__":true,"id":2896},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"2893":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2894":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"2895":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2896":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2897":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2898":{"morph":{"__isSmartRef__":true,"id":2891},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2899":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2900":{"dropOn":{"__isSmartRef__":true,"id":2844},"shallowCopy":{"__isSmartRef__":true,"id":2873}},"2901":{"_Position":{"__isSmartRef__":true,"id":2902},"renderContextTable":{"__isSmartRef__":true,"id":2903},"_Extent":{"__isSmartRef__":true,"id":2904},"_Padding":{"__isSmartRef__":true,"id":2905},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2902":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2903":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"2904":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2905":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2906":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2907":{"morph":{"__isSmartRef__":true,"id":2890},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2908":{"x":432,"y":144,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2909":{"submorphs":[{"__isSmartRef__":true,"id":2910}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2941},"renderContextTable":{"__isSmartRef__":true,"id":2946},"eventHandler":{"__isSmartRef__":true,"id":2947},"_ClipMode":"visible","derivationIds":[],"id":"D0DC0B39-AFC1-4C3B-AE29-AD27B47481F7","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2948},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":4,"column":8,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":2910},"grabbingEnabled":false,"charactersStandingHere":[],"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":868},{"__isSmartRef__":true,"id":2776},{"__isSmartRef__":true,"id":2890},{"__isSmartRef__":true,"id":2757},{"__isSmartRef__":true,"id":2949},{"__isSmartRef__":true,"id":2629},{"__isSmartRef__":true,"id":2968},{"__isSmartRef__":true,"id":2987}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11184},"__LivelyClassName__":"lively.morphic.Box"},"2910":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2911},"renderContextTable":{"__isSmartRef__":true,"id":2916},"eventHandler":{"__isSmartRef__":true,"id":2917},"_ClipMode":"visible","derivationIds":[],"id":"40C71D8D-4840-4E4E-8FAA-33DB6E268D51","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2918},"isObstacle":true,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2909},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2919},"__LivelyClassName__":"lively.morphic.Image"},"2911":{"_Position":{"__isSmartRef__":true,"id":2912},"renderContextTable":{"__isSmartRef__":true,"id":2913},"_Extent":{"__isSmartRef__":true,"id":2914},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/water.gif","_Padding":{"__isSmartRef__":true,"id":2915},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"2912":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2913":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"2914":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2915":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2916":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2917":{"morph":{"__isSmartRef__":true,"id":2910},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2918":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2919":{"dropOn":{"__isSmartRef__":true,"id":2920},"shallowCopy":{"__isSmartRef__":true,"id":2932}},"2920":{"varMapping":{"__isSmartRef__":true,"id":2921},"source":"function dropOn(morph) {\n if (morph.tileWasDropped) {\n morph.tileWasDropped(this);\n } else {\n $super(morph);\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2940},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2921":{"this":{"__isSmartRef__":true,"id":2922},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2936}},"2922":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2923},"derivationIds":[null,"BAB9B97E-AD98-4F56-A972-566A3E629B8C","E4F22AE4-EE21-49B5-8C28-CA286BEEB3DB","BF57EBFA-7758-4140-A230-374EC4044FF8","50C9D870-38AC-4D0E-8D2A-1A096F2342FA","6F16581D-421C-41DB-91F7-631AC69608F0","C7CAA681-3DF1-470F-B89C-B6DB193302E7","0F55A9D5-A7B9-430A-8E74-2936AF458B62","75A38F54-FB28-44BE-BBF2-7E16DA399411","7F844676-0F98-44EE-8F0D-054418464953","446F8732-10D2-43C1-AB0E-8F7EA9839C4C","26A7851A-878C-4E3F-9E8D-736240BE45AB","6764706B-5EDA-4AFB-8D1B-DEC368259E38"],"id":"9346481E-02F9-4198-9136-BC3FCBBAEDB6","renderContextTable":{"__isSmartRef__":true,"id":2928},"eventHandler":{"__isSmartRef__":true,"id":2929},"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2930},"name":"WaterTile1","showsHalos":false,"isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"partsBinMetaInfo":{"__isSmartRef__":true,"id":750},"__SourceModuleName__":"Global.lively.morphic.Widgets","moved":true,"isObstacle":true,"isTile":true,"_ClipMode":"visible","eventsAreIgnored":true,"grabbingEnabled":false,"draggingEnabled":false,"_Rotation":0,"_Scale":1.0060210561262526,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2931},"__LivelyClassName__":"lively.morphic.Image"},"2923":{"_Position":{"__isSmartRef__":true,"id":2924},"renderContextTable":{"__isSmartRef__":true,"id":2925},"_Extent":{"__isSmartRef__":true,"id":2926},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2927},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/water.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"2924":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2925":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"2926":{"x":16,"y":16,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2927":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2928":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2929":{"morph":{"__isSmartRef__":true,"id":2922},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2930":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2931":{"dropOn":{"__isSmartRef__":true,"id":2920},"shallowCopy":{"__isSmartRef__":true,"id":2932}},"2932":{"varMapping":{"__isSmartRef__":true,"id":2933},"source":"function shallowCopy() {\n var that = this\n var copy = ImageMorph.fromURL(this.getImageURL(), this.getBounds())\n Functions.own(this).each(function (ea) { copy[ea] = that[ea] })\n copy.isObstacle = that.isObstacle\n return copy\n }","funcProperties":{"__isSmartRef__":true,"id":2934},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2933":{"this":{"__isSmartRef__":true,"id":2922}},"2934":{"timestamp":{"__isSmartRef__":true,"id":2935},"user":"timfelgentreff","tags":[]},"2935":{"isSerializedDate":true,"string":"Thu May 03 2012 13:42:26 GMT+0200 (CEST)"},"2936":{"$super":{"__isSmartRef__":true,"id":2937}},"2937":{"varMapping":{"__isSmartRef__":true,"id":2938},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2939},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2938":{"obj":{"__isSmartRef__":true,"id":2922},"name":"dropOn"},"2939":{},"2940":{},"2941":{"_Position":{"__isSmartRef__":true,"id":2942},"renderContextTable":{"__isSmartRef__":true,"id":2943},"_Extent":{"__isSmartRef__":true,"id":2944},"_Padding":{"__isSmartRef__":true,"id":2945},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2942":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2943":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"2944":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2945":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2946":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2947":{"morph":{"__isSmartRef__":true,"id":2909},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2948":{"x":384,"y":192,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2949":{"submorphs":[{"__isSmartRef__":true,"id":2950}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2960},"renderContextTable":{"__isSmartRef__":true,"id":2965},"eventHandler":{"__isSmartRef__":true,"id":2966},"_ClipMode":"visible","derivationIds":[],"id":"124161BB-B77F-463C-A991-AC8886720290","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2967},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":4,"column":9,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":2950},"grabbingEnabled":false,"__obstacles":[],"charactersStandingHere":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":2776},{"__isSmartRef__":true,"id":2890},{"__isSmartRef__":true,"id":2909},{"__isSmartRef__":true,"id":2968},{"__isSmartRef__":true,"id":2987}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11075},"__LivelyClassName__":"lively.morphic.Box"},"2950":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2951},"renderContextTable":{"__isSmartRef__":true,"id":2956},"eventHandler":{"__isSmartRef__":true,"id":2957},"_ClipMode":"visible","derivationIds":[],"id":"3712E821-343D-4749-97A8-8979222507AA","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2958},"isObstacle":true,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2949},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2959},"__LivelyClassName__":"lively.morphic.Image"},"2951":{"_Position":{"__isSmartRef__":true,"id":2952},"renderContextTable":{"__isSmartRef__":true,"id":2953},"_Extent":{"__isSmartRef__":true,"id":2954},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/water.gif","_Padding":{"__isSmartRef__":true,"id":2955},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"2952":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2953":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"2954":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2955":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2956":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2957":{"morph":{"__isSmartRef__":true,"id":2950},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2958":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2959":{"dropOn":{"__isSmartRef__":true,"id":2920},"shallowCopy":{"__isSmartRef__":true,"id":2932}},"2960":{"_Position":{"__isSmartRef__":true,"id":2961},"renderContextTable":{"__isSmartRef__":true,"id":2962},"_Extent":{"__isSmartRef__":true,"id":2963},"_Padding":{"__isSmartRef__":true,"id":2964},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2961":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2962":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"2963":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2964":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2965":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2966":{"morph":{"__isSmartRef__":true,"id":2949},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2967":{"x":432,"y":192,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2968":{"submorphs":[{"__isSmartRef__":true,"id":2969}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2979},"renderContextTable":{"__isSmartRef__":true,"id":2984},"eventHandler":{"__isSmartRef__":true,"id":2985},"_ClipMode":"visible","derivationIds":[],"id":"F7B42771-787C-4D66-8BB0-3E1054991FFC","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2986},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":5,"column":8,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":2969},"grabbingEnabled":false,"charactersStandingHere":[],"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":2757},{"__isSmartRef__":true,"id":2909},{"__isSmartRef__":true,"id":2949},{"__isSmartRef__":true,"id":2629},{"__isSmartRef__":true,"id":2987},{"__isSmartRef__":true,"id":2501},{"__isSmartRef__":true,"id":3006},{"__isSmartRef__":true,"id":3025}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10966},"__LivelyClassName__":"lively.morphic.Box"},"2969":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2970},"renderContextTable":{"__isSmartRef__":true,"id":2975},"eventHandler":{"__isSmartRef__":true,"id":2976},"_ClipMode":"visible","derivationIds":[],"id":"B0639BA9-ED47-4EE0-BB47-F77A5589F9BF","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2977},"isObstacle":true,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2968},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2978},"__LivelyClassName__":"lively.morphic.Image"},"2970":{"_Position":{"__isSmartRef__":true,"id":2971},"renderContextTable":{"__isSmartRef__":true,"id":2972},"_Extent":{"__isSmartRef__":true,"id":2973},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/water.gif","_Padding":{"__isSmartRef__":true,"id":2974},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"2971":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2972":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"2973":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2974":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2975":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2976":{"morph":{"__isSmartRef__":true,"id":2969},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2977":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2978":{"dropOn":{"__isSmartRef__":true,"id":2920},"shallowCopy":{"__isSmartRef__":true,"id":2932}},"2979":{"_Position":{"__isSmartRef__":true,"id":2980},"renderContextTable":{"__isSmartRef__":true,"id":2981},"_Extent":{"__isSmartRef__":true,"id":2982},"_Padding":{"__isSmartRef__":true,"id":2983},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2980":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2981":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"2982":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2983":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2984":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2985":{"morph":{"__isSmartRef__":true,"id":2968},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2986":{"x":384,"y":240,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2987":{"submorphs":[{"__isSmartRef__":true,"id":2988}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2998},"renderContextTable":{"__isSmartRef__":true,"id":3003},"eventHandler":{"__isSmartRef__":true,"id":3004},"_ClipMode":"visible","derivationIds":[],"id":"CFA294BA-2911-45DD-AB53-9BA15109E0C6","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3005},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":5,"column":9,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":2988},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":2909},{"__isSmartRef__":true,"id":2949},{"__isSmartRef__":true,"id":2968},{"__isSmartRef__":true,"id":3006},{"__isSmartRef__":true,"id":3025}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10857},"__LivelyClassName__":"lively.morphic.Box"},"2988":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2989},"renderContextTable":{"__isSmartRef__":true,"id":2994},"eventHandler":{"__isSmartRef__":true,"id":2995},"_ClipMode":"visible","derivationIds":[],"id":"9149DDC7-4D46-4CA2-B15F-E7D5C873E0DC","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2996},"isObstacle":true,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2987},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2997},"__LivelyClassName__":"lively.morphic.Image"},"2989":{"_Position":{"__isSmartRef__":true,"id":2990},"renderContextTable":{"__isSmartRef__":true,"id":2991},"_Extent":{"__isSmartRef__":true,"id":2992},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/water.gif","_Padding":{"__isSmartRef__":true,"id":2993},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"2990":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2991":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"2992":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2993":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2994":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"2995":{"morph":{"__isSmartRef__":true,"id":2988},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2996":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2997":{"dropOn":{"__isSmartRef__":true,"id":2920},"shallowCopy":{"__isSmartRef__":true,"id":2932}},"2998":{"_Position":{"__isSmartRef__":true,"id":2999},"renderContextTable":{"__isSmartRef__":true,"id":3000},"_Extent":{"__isSmartRef__":true,"id":3001},"_Padding":{"__isSmartRef__":true,"id":3002},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2999":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3000":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"3001":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3002":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3003":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3004":{"morph":{"__isSmartRef__":true,"id":2987},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3005":{"x":432,"y":240,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3006":{"submorphs":[{"__isSmartRef__":true,"id":3007}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3017},"renderContextTable":{"__isSmartRef__":true,"id":3022},"eventHandler":{"__isSmartRef__":true,"id":3023},"_ClipMode":"visible","derivationIds":[],"id":"5DEBBC73-95C0-4F74-9625-0AD1F692CB0B","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3024},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":6,"column":8,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":3007},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":2629},{"__isSmartRef__":true,"id":2968},{"__isSmartRef__":true,"id":2987},{"__isSmartRef__":true,"id":2501},{"__isSmartRef__":true,"id":3025},{"__isSmartRef__":true,"id":2373},{"__isSmartRef__":true,"id":3044},{"__isSmartRef__":true,"id":3063}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10748},"__LivelyClassName__":"lively.morphic.Box"},"3007":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3008},"renderContextTable":{"__isSmartRef__":true,"id":3013},"eventHandler":{"__isSmartRef__":true,"id":3014},"_ClipMode":"visible","derivationIds":[],"id":"1ECC9FBA-478D-4769-84CE-8A8F63FF4D39","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3015},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3006},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3016},"__LivelyClassName__":"lively.morphic.Image"},"3008":{"_Position":{"__isSmartRef__":true,"id":3009},"renderContextTable":{"__isSmartRef__":true,"id":3010},"_Extent":{"__isSmartRef__":true,"id":3011},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":3012},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"3009":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3010":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"3011":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3012":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3013":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3014":{"morph":{"__isSmartRef__":true,"id":3007},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3015":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3016":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"3017":{"_Position":{"__isSmartRef__":true,"id":3018},"renderContextTable":{"__isSmartRef__":true,"id":3019},"_Extent":{"__isSmartRef__":true,"id":3020},"_Padding":{"__isSmartRef__":true,"id":3021},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3018":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3019":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"3020":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3021":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3022":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3023":{"morph":{"__isSmartRef__":true,"id":3006},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3024":{"x":384,"y":288,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3025":{"submorphs":[{"__isSmartRef__":true,"id":3026}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3036},"renderContextTable":{"__isSmartRef__":true,"id":3041},"eventHandler":{"__isSmartRef__":true,"id":3042},"_ClipMode":"visible","derivationIds":[],"id":"D8F74834-B2E9-4456-885F-1679AEF7BFBE","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3043},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":6,"column":9,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":3026},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":2968},{"__isSmartRef__":true,"id":2987},{"__isSmartRef__":true,"id":3006},{"__isSmartRef__":true,"id":3044},{"__isSmartRef__":true,"id":3063}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10639},"__LivelyClassName__":"lively.morphic.Box"},"3026":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3027},"renderContextTable":{"__isSmartRef__":true,"id":3032},"eventHandler":{"__isSmartRef__":true,"id":3033},"_ClipMode":"visible","derivationIds":[],"id":"72295961-F9E8-440D-BFDC-27C24C278ED2","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3034},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3025},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3035},"__LivelyClassName__":"lively.morphic.Image"},"3027":{"_Position":{"__isSmartRef__":true,"id":3028},"renderContextTable":{"__isSmartRef__":true,"id":3029},"_Extent":{"__isSmartRef__":true,"id":3030},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":3031},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"3028":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3029":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"3030":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3031":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3032":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3033":{"morph":{"__isSmartRef__":true,"id":3026},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3034":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3035":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"3036":{"_Position":{"__isSmartRef__":true,"id":3037},"renderContextTable":{"__isSmartRef__":true,"id":3038},"_Extent":{"__isSmartRef__":true,"id":3039},"_Padding":{"__isSmartRef__":true,"id":3040},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3037":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3038":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"3039":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3040":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3041":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3042":{"morph":{"__isSmartRef__":true,"id":3025},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3043":{"x":432,"y":288,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3044":{"submorphs":[{"__isSmartRef__":true,"id":3045}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3055},"renderContextTable":{"__isSmartRef__":true,"id":3060},"eventHandler":{"__isSmartRef__":true,"id":3061},"_ClipMode":"visible","derivationIds":[],"id":"4E8CE7FC-16B9-477E-9C15-5B6B2D6DBE7D","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3062},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":7,"column":8,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":3045},"grabbingEnabled":false,"__obstacles":[],"charactersStandingHere":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":2501},{"__isSmartRef__":true,"id":3006},{"__isSmartRef__":true,"id":3025},{"__isSmartRef__":true,"id":2373},{"__isSmartRef__":true,"id":3063},{"__isSmartRef__":true,"id":3101},{"__isSmartRef__":true,"id":3082},{"__isSmartRef__":true,"id":6793}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10530},"__LivelyClassName__":"lively.morphic.Box"},"3045":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3046},"renderContextTable":{"__isSmartRef__":true,"id":3051},"eventHandler":{"__isSmartRef__":true,"id":3052},"_ClipMode":"visible","derivationIds":[],"id":"190F388B-1BA2-4672-B8ED-E190FE13DAFD","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3053},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3044},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3054},"__LivelyClassName__":"lively.morphic.Image"},"3046":{"_Position":{"__isSmartRef__":true,"id":3047},"renderContextTable":{"__isSmartRef__":true,"id":3048},"_Extent":{"__isSmartRef__":true,"id":3049},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass_some_flowers.png","_Padding":{"__isSmartRef__":true,"id":3050},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"3047":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3048":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"3049":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3050":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3051":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3052":{"morph":{"__isSmartRef__":true,"id":3045},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3053":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3054":{"dropOn":{"__isSmartRef__":true,"id":656},"shallowCopy":{"__isSmartRef__":true,"id":685}},"3055":{"_Position":{"__isSmartRef__":true,"id":3056},"renderContextTable":{"__isSmartRef__":true,"id":3057},"_Extent":{"__isSmartRef__":true,"id":3058},"_Padding":{"__isSmartRef__":true,"id":3059},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3056":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3057":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"3058":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3059":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3060":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3061":{"morph":{"__isSmartRef__":true,"id":3044},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3062":{"x":384,"y":336,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3063":{"submorphs":[{"__isSmartRef__":true,"id":3064}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3074},"renderContextTable":{"__isSmartRef__":true,"id":3079},"eventHandler":{"__isSmartRef__":true,"id":3080},"_ClipMode":"visible","derivationIds":[],"id":"E49CB0AE-7144-4F71-83F8-489EC74E8E7B","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3081},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":7,"column":9,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":3064},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":3006},{"__isSmartRef__":true,"id":3025},{"__isSmartRef__":true,"id":3044},{"__isSmartRef__":true,"id":3082},{"__isSmartRef__":true,"id":6793}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10421},"__LivelyClassName__":"lively.morphic.Box"},"3064":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3065},"renderContextTable":{"__isSmartRef__":true,"id":3070},"eventHandler":{"__isSmartRef__":true,"id":3071},"_ClipMode":"visible","derivationIds":[],"id":"9B1ACD2E-97F8-4CF5-85ED-90D5247D4239","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3072},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3063},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3073},"__LivelyClassName__":"lively.morphic.Image"},"3065":{"_Position":{"__isSmartRef__":true,"id":3066},"renderContextTable":{"__isSmartRef__":true,"id":3067},"_Extent":{"__isSmartRef__":true,"id":3068},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":3069},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"3066":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3067":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"3068":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3069":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3070":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3071":{"morph":{"__isSmartRef__":true,"id":3064},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3072":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3073":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"3074":{"_Position":{"__isSmartRef__":true,"id":3075},"renderContextTable":{"__isSmartRef__":true,"id":3076},"_Extent":{"__isSmartRef__":true,"id":3077},"_Padding":{"__isSmartRef__":true,"id":3078},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3075":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3076":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"3077":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3078":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3079":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3080":{"morph":{"__isSmartRef__":true,"id":3063},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3081":{"x":432,"y":336,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3082":{"submorphs":[{"__isSmartRef__":true,"id":3083}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3093},"renderContextTable":{"__isSmartRef__":true,"id":3098},"eventHandler":{"__isSmartRef__":true,"id":3099},"_ClipMode":"visible","derivationIds":[],"id":"DE03CB78-D3BB-48A5-BC35-998ADFEF3118","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3100},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":8,"column":8,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":3083},"grabbingEnabled":false,"__obstacles":[],"charactersStandingHere":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":2373},{"__isSmartRef__":true,"id":3044},{"__isSmartRef__":true,"id":3063},{"__isSmartRef__":true,"id":3101},{"__isSmartRef__":true,"id":6793},{"__isSmartRef__":true,"id":6755},{"__isSmartRef__":true,"id":6774},{"__isSmartRef__":true,"id":6812}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10312},"__LivelyClassName__":"lively.morphic.Box"},"3083":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3084},"renderContextTable":{"__isSmartRef__":true,"id":3089},"eventHandler":{"__isSmartRef__":true,"id":3090},"_ClipMode":"visible","derivationIds":[],"id":"E5D790AF-EC12-486B-BBD0-93C77FB073A8","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3091},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3082},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3092},"__LivelyClassName__":"lively.morphic.Image"},"3084":{"_Position":{"__isSmartRef__":true,"id":3085},"renderContextTable":{"__isSmartRef__":true,"id":3086},"_Extent":{"__isSmartRef__":true,"id":3087},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":3088},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"3085":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3086":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"3087":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3088":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3089":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3090":{"morph":{"__isSmartRef__":true,"id":3083},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3091":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3092":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"3093":{"_Position":{"__isSmartRef__":true,"id":3094},"renderContextTable":{"__isSmartRef__":true,"id":3095},"_Extent":{"__isSmartRef__":true,"id":3096},"_Padding":{"__isSmartRef__":true,"id":3097},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3094":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3095":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"3096":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3097":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3098":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3099":{"morph":{"__isSmartRef__":true,"id":3082},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3100":{"x":384,"y":384,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3101":{"submorphs":[{"__isSmartRef__":true,"id":3102}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3112},"renderContextTable":{"__isSmartRef__":true,"id":3117},"eventHandler":{"__isSmartRef__":true,"id":3118},"_ClipMode":"visible","derivationIds":[],"id":"FCBC18EF-149C-4142-AEA0-60E8C3110ED4","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3119},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":8,"column":7,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":3102},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":3120},{"__isSmartRef__":true,"id":2373},{"__isSmartRef__":true,"id":3044},{"__isSmartRef__":true,"id":6717},{"__isSmartRef__":true,"id":3082},{"__isSmartRef__":true,"id":6736},{"__isSmartRef__":true,"id":6755},{"__isSmartRef__":true,"id":6774}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10203},"__LivelyClassName__":"lively.morphic.Box"},"3102":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3103},"renderContextTable":{"__isSmartRef__":true,"id":3108},"eventHandler":{"__isSmartRef__":true,"id":3109},"_ClipMode":"visible","derivationIds":[],"id":"581B6125-0787-42E2-9947-881DD4239F0F","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3110},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3101},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3111},"__LivelyClassName__":"lively.morphic.Image"},"3103":{"_Position":{"__isSmartRef__":true,"id":3104},"renderContextTable":{"__isSmartRef__":true,"id":3105},"_Extent":{"__isSmartRef__":true,"id":3106},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":3107},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"3104":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3105":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"3106":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3107":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3108":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3109":{"morph":{"__isSmartRef__":true,"id":3102},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3110":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3111":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"3112":{"_Position":{"__isSmartRef__":true,"id":3113},"renderContextTable":{"__isSmartRef__":true,"id":3114},"_Extent":{"__isSmartRef__":true,"id":3115},"_Padding":{"__isSmartRef__":true,"id":3116},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3113":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3114":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"3115":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3116":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3117":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3118":{"morph":{"__isSmartRef__":true,"id":3101},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3119":{"x":336,"y":384,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3120":{"submorphs":[{"__isSmartRef__":true,"id":3121}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3131},"renderContextTable":{"__isSmartRef__":true,"id":3136},"eventHandler":{"__isSmartRef__":true,"id":3137},"_ClipMode":"visible","derivationIds":[],"id":"0C8F44D8-BA04-477B-AB8D-4377378C330D","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3138},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":7,"column":6,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":3121},"grabbingEnabled":false,"charactersStandingHere":[],"__obstacles":[{"__isSmartRef__":true,"id":2340}],"cachedNeightbours":[{"__isSmartRef__":true,"id":3139},{"__isSmartRef__":true,"id":3267},{"__isSmartRef__":true,"id":2501},{"__isSmartRef__":true,"id":3395},{"__isSmartRef__":true,"id":2373},{"__isSmartRef__":true,"id":3523},{"__isSmartRef__":true,"id":6717},{"__isSmartRef__":true,"id":3101}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10094},"__LivelyClassName__":"lively.morphic.Box"},"3121":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3122},"renderContextTable":{"__isSmartRef__":true,"id":3127},"eventHandler":{"__isSmartRef__":true,"id":3128},"_ClipMode":"visible","derivationIds":[],"id":"11F4DA77-63A3-4B63-93F6-89622AC1F2A7","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3129},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3120},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3130},"__LivelyClassName__":"lively.morphic.Image"},"3122":{"_Position":{"__isSmartRef__":true,"id":3123},"renderContextTable":{"__isSmartRef__":true,"id":3124},"_Extent":{"__isSmartRef__":true,"id":3125},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":3126},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"3123":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3124":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"3125":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3126":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3127":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3128":{"morph":{"__isSmartRef__":true,"id":3121},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3129":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3130":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"3131":{"_Position":{"__isSmartRef__":true,"id":3132},"renderContextTable":{"__isSmartRef__":true,"id":3133},"_Extent":{"__isSmartRef__":true,"id":3134},"_Padding":{"__isSmartRef__":true,"id":3135},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3132":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3133":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"3134":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3135":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3136":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3137":{"morph":{"__isSmartRef__":true,"id":3120},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3138":{"x":288,"y":336,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3139":{"submorphs":[{"__isSmartRef__":true,"id":3140}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3150},"renderContextTable":{"__isSmartRef__":true,"id":3155},"eventHandler":{"__isSmartRef__":true,"id":3156},"_ClipMode":"visible","derivationIds":[],"id":"A6645458-B6EA-4B9B-BDB5-8A14FFA6D177","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3157},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":6,"column":5,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":3140},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":2340}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3158},"__LivelyClassName__":"lively.morphic.Box"},"3140":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3141},"renderContextTable":{"__isSmartRef__":true,"id":3146},"eventHandler":{"__isSmartRef__":true,"id":3147},"_ClipMode":"visible","derivationIds":[],"id":"C8413932-991B-4F8B-84FF-79C760575AA8","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3148},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3139},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3149},"__LivelyClassName__":"lively.morphic.Image"},"3141":{"_Position":{"__isSmartRef__":true,"id":3142},"renderContextTable":{"__isSmartRef__":true,"id":3143},"_Extent":{"__isSmartRef__":true,"id":3144},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":3145},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"3142":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3143":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"3144":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3145":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3146":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3147":{"morph":{"__isSmartRef__":true,"id":3140},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3148":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3149":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"3150":{"_Position":{"__isSmartRef__":true,"id":3151},"renderContextTable":{"__isSmartRef__":true,"id":3152},"_Extent":{"__isSmartRef__":true,"id":3153},"_Padding":{"__isSmartRef__":true,"id":3154},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3151":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3152":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"3153":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3154":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3155":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3156":{"morph":{"__isSmartRef__":true,"id":3139},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3157":{"x":240,"y":288,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3158":{"setDevStyle":{"__isSmartRef__":true,"id":3159},"setNormalStyle":{"__isSmartRef__":true,"id":3163},"tileSize":{"__isSmartRef__":true,"id":3167},"become":{"__isSmartRef__":true,"id":3171},"onMouseDown":{"__isSmartRef__":true,"id":3175},"setGridPosition":{"__isSmartRef__":true,"id":3183},"toolbox":{"__isSmartRef__":true,"id":3187},"distanceTo":{"__isSmartRef__":true,"id":3191},"tileWasDropped":{"__isSmartRef__":true,"id":3195},"isObstacle":{"__isSmartRef__":true,"id":3199},"neighboursInDirection":{"__isSmartRef__":true,"id":3203},"neighbours":{"__isSmartRef__":true,"id":3207},"zIndex":{"__isSmartRef__":true,"id":3211},"obstacles":{"__isSmartRef__":true,"id":3215},"addObstacle":{"__isSmartRef__":true,"id":3219},"removeObstacle":{"__isSmartRef__":true,"id":3223},"isTile":{"__isSmartRef__":true,"id":3227},"neighbourAt":{"__isSmartRef__":true,"id":3231},"map":{"__isSmartRef__":true,"id":3235},"game":{"__isSmartRef__":true,"id":3239},"reset":{"__isSmartRef__":true,"id":3243},"shallowCopy":{"__isSmartRef__":true,"id":3247},"characters":{"__isSmartRef__":true,"id":3251},"enterTile":{"__isSmartRef__":true,"id":3255},"leaveTile":{"__isSmartRef__":true,"id":3259},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":3263}},"3159":{"varMapping":{"__isSmartRef__":true,"id":3160},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":3161},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3162},"__LivelyClassName__":"lively.Closure"},"3160":{"this":{"__isSmartRef__":true,"id":3139}},"3161":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"3162":{"originalFunc":{"__isSmartRef__":true,"id":892}},"3163":{"varMapping":{"__isSmartRef__":true,"id":3164},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":3165},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3166},"__LivelyClassName__":"lively.Closure"},"3164":{"this":{"__isSmartRef__":true,"id":3139}},"3165":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"3166":{"originalFunc":{"__isSmartRef__":true,"id":911}},"3167":{"varMapping":{"__isSmartRef__":true,"id":3168},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":3169},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3170},"__LivelyClassName__":"lively.Closure"},"3168":{"this":{"__isSmartRef__":true,"id":3139}},"3169":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"3170":{"originalFunc":{"__isSmartRef__":true,"id":915}},"3171":{"varMapping":{"__isSmartRef__":true,"id":3172},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3173},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3174},"__LivelyClassName__":"lively.Closure"},"3172":{"this":{"__isSmartRef__":true,"id":3139}},"3173":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"3174":{"originalFunc":{"__isSmartRef__":true,"id":919}},"3175":{"varMapping":{"__isSmartRef__":true,"id":3176},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3181},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3182},"__LivelyClassName__":"lively.Closure"},"3176":{"this":{"__isSmartRef__":true,"id":3139},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3177}},"3177":{"$super":{"__isSmartRef__":true,"id":3178}},"3178":{"varMapping":{"__isSmartRef__":true,"id":3179},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3180},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3179":{"obj":{"__isSmartRef__":true,"id":3139},"name":"onMouseDown"},"3180":{},"3181":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"3182":{"originalFunc":{"__isSmartRef__":true,"id":923}},"3183":{"varMapping":{"__isSmartRef__":true,"id":3184},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":3185},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3186},"__LivelyClassName__":"lively.Closure"},"3184":{"this":{"__isSmartRef__":true,"id":3139}},"3185":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"3186":{"originalFunc":{"__isSmartRef__":true,"id":931}},"3187":{"varMapping":{"__isSmartRef__":true,"id":3188},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":3189},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3190},"__LivelyClassName__":"lively.Closure"},"3188":{"this":{"__isSmartRef__":true,"id":3139}},"3189":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"3190":{"originalFunc":{"__isSmartRef__":true,"id":935}},"3191":{"varMapping":{"__isSmartRef__":true,"id":3192},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":3193},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3194},"__LivelyClassName__":"lively.Closure"},"3192":{"this":{"__isSmartRef__":true,"id":3139}},"3193":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"3194":{"originalFunc":{"__isSmartRef__":true,"id":939}},"3195":{"varMapping":{"__isSmartRef__":true,"id":3196},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":3197},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3198},"__LivelyClassName__":"lively.Closure"},"3196":{"this":{"__isSmartRef__":true,"id":3139}},"3197":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"3198":{"originalFunc":{"__isSmartRef__":true,"id":943}},"3199":{"varMapping":{"__isSmartRef__":true,"id":3200},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":3201},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3202},"__LivelyClassName__":"lively.Closure"},"3200":{"this":{"__isSmartRef__":true,"id":3139}},"3201":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"3202":{"originalFunc":{"__isSmartRef__":true,"id":947}},"3203":{"varMapping":{"__isSmartRef__":true,"id":3204},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":3205},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3206},"__LivelyClassName__":"lively.Closure"},"3204":{"this":{"__isSmartRef__":true,"id":3139}},"3205":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"3206":{"originalFunc":{"__isSmartRef__":true,"id":951}},"3207":{"varMapping":{"__isSmartRef__":true,"id":3208},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":3209},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3210},"__LivelyClassName__":"lively.Closure"},"3208":{"this":{"__isSmartRef__":true,"id":3139}},"3209":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"3210":{"originalFunc":{"__isSmartRef__":true,"id":955}},"3211":{"varMapping":{"__isSmartRef__":true,"id":3212},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":3213},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3214},"__LivelyClassName__":"lively.Closure"},"3212":{"this":{"__isSmartRef__":true,"id":3139}},"3213":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"3214":{"originalFunc":{"__isSmartRef__":true,"id":959}},"3215":{"varMapping":{"__isSmartRef__":true,"id":3216},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":3217},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3218},"__LivelyClassName__":"lively.Closure"},"3216":{"this":{"__isSmartRef__":true,"id":3139}},"3217":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"3218":{"originalFunc":{"__isSmartRef__":true,"id":963}},"3219":{"varMapping":{"__isSmartRef__":true,"id":3220},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3221},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3222},"__LivelyClassName__":"lively.Closure"},"3220":{"this":{"__isSmartRef__":true,"id":3139}},"3221":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"3222":{"originalFunc":{"__isSmartRef__":true,"id":967}},"3223":{"varMapping":{"__isSmartRef__":true,"id":3224},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3225},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3226},"__LivelyClassName__":"lively.Closure"},"3224":{"this":{"__isSmartRef__":true,"id":3139}},"3225":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"3226":{"originalFunc":{"__isSmartRef__":true,"id":971}},"3227":{"varMapping":{"__isSmartRef__":true,"id":3228},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":3229},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3230},"__LivelyClassName__":"lively.Closure"},"3228":{"this":{"__isSmartRef__":true,"id":3139}},"3229":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"3230":{"originalFunc":{"__isSmartRef__":true,"id":975}},"3231":{"varMapping":{"__isSmartRef__":true,"id":3232},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":3233},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3234},"__LivelyClassName__":"lively.Closure"},"3232":{"this":{"__isSmartRef__":true,"id":3139}},"3233":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"3234":{"originalFunc":{"__isSmartRef__":true,"id":979}},"3235":{"varMapping":{"__isSmartRef__":true,"id":3236},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":3237},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3238},"__LivelyClassName__":"lively.Closure"},"3236":{"this":{"__isSmartRef__":true,"id":3139}},"3237":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"3238":{"originalFunc":{"__isSmartRef__":true,"id":983}},"3239":{"varMapping":{"__isSmartRef__":true,"id":3240},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":3241},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3242},"__LivelyClassName__":"lively.Closure"},"3240":{"this":{"__isSmartRef__":true,"id":3139}},"3241":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"3242":{"originalFunc":{"__isSmartRef__":true,"id":987}},"3243":{"varMapping":{"__isSmartRef__":true,"id":3244},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":3245},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3246},"__LivelyClassName__":"lively.Closure"},"3244":{"this":{"__isSmartRef__":true,"id":3139}},"3245":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"3246":{"originalFunc":{"__isSmartRef__":true,"id":991}},"3247":{"varMapping":{"__isSmartRef__":true,"id":3248},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":3249},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3250},"__LivelyClassName__":"lively.Closure"},"3248":{"this":{"__isSmartRef__":true,"id":3139}},"3249":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"3250":{"originalFunc":{"__isSmartRef__":true,"id":995}},"3251":{"varMapping":{"__isSmartRef__":true,"id":3252},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":3253},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3254},"__LivelyClassName__":"lively.Closure"},"3252":{"this":{"__isSmartRef__":true,"id":3139}},"3253":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"3254":{"originalFunc":{"__isSmartRef__":true,"id":999}},"3255":{"varMapping":{"__isSmartRef__":true,"id":3256},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3257},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3258},"__LivelyClassName__":"lively.Closure"},"3256":{"this":{"__isSmartRef__":true,"id":3139}},"3257":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"3258":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"3259":{"varMapping":{"__isSmartRef__":true,"id":3260},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3261},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3262},"__LivelyClassName__":"lively.Closure"},"3260":{"this":{"__isSmartRef__":true,"id":3139}},"3261":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"3262":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"3263":{"varMapping":{"__isSmartRef__":true,"id":3264},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":3265},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3266},"__LivelyClassName__":"lively.Closure"},"3264":{"this":{"__isSmartRef__":true,"id":3139}},"3265":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"3266":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"3267":{"submorphs":[{"__isSmartRef__":true,"id":3268}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3278},"renderContextTable":{"__isSmartRef__":true,"id":3283},"eventHandler":{"__isSmartRef__":true,"id":3284},"_ClipMode":"visible","derivationIds":[],"id":"60F2890E-4015-423D-A7DB-C082E93527B6","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3285},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":6,"column":6,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":3268},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":2340}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3286},"__LivelyClassName__":"lively.morphic.Box"},"3268":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3269},"renderContextTable":{"__isSmartRef__":true,"id":3274},"eventHandler":{"__isSmartRef__":true,"id":3275},"_ClipMode":"visible","derivationIds":[],"id":"93B5FE65-A201-4831-8338-86F803076EEF","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3276},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3267},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3277},"__LivelyClassName__":"lively.morphic.Image"},"3269":{"_Position":{"__isSmartRef__":true,"id":3270},"renderContextTable":{"__isSmartRef__":true,"id":3271},"_Extent":{"__isSmartRef__":true,"id":3272},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":3273},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"3270":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3271":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"3272":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3273":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3274":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3275":{"morph":{"__isSmartRef__":true,"id":3268},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3276":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3277":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"3278":{"_Position":{"__isSmartRef__":true,"id":3279},"renderContextTable":{"__isSmartRef__":true,"id":3280},"_Extent":{"__isSmartRef__":true,"id":3281},"_Padding":{"__isSmartRef__":true,"id":3282},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3279":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3280":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"3281":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3282":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3283":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3284":{"morph":{"__isSmartRef__":true,"id":3267},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3285":{"x":288,"y":288,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3286":{"setDevStyle":{"__isSmartRef__":true,"id":3287},"setNormalStyle":{"__isSmartRef__":true,"id":3291},"tileSize":{"__isSmartRef__":true,"id":3295},"become":{"__isSmartRef__":true,"id":3299},"onMouseDown":{"__isSmartRef__":true,"id":3303},"setGridPosition":{"__isSmartRef__":true,"id":3311},"toolbox":{"__isSmartRef__":true,"id":3315},"distanceTo":{"__isSmartRef__":true,"id":3319},"tileWasDropped":{"__isSmartRef__":true,"id":3323},"isObstacle":{"__isSmartRef__":true,"id":3327},"neighboursInDirection":{"__isSmartRef__":true,"id":3331},"neighbours":{"__isSmartRef__":true,"id":3335},"zIndex":{"__isSmartRef__":true,"id":3339},"obstacles":{"__isSmartRef__":true,"id":3343},"addObstacle":{"__isSmartRef__":true,"id":3347},"removeObstacle":{"__isSmartRef__":true,"id":3351},"isTile":{"__isSmartRef__":true,"id":3355},"neighbourAt":{"__isSmartRef__":true,"id":3359},"map":{"__isSmartRef__":true,"id":3363},"game":{"__isSmartRef__":true,"id":3367},"reset":{"__isSmartRef__":true,"id":3371},"shallowCopy":{"__isSmartRef__":true,"id":3375},"characters":{"__isSmartRef__":true,"id":3379},"enterTile":{"__isSmartRef__":true,"id":3383},"leaveTile":{"__isSmartRef__":true,"id":3387},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":3391}},"3287":{"varMapping":{"__isSmartRef__":true,"id":3288},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":3289},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3290},"__LivelyClassName__":"lively.Closure"},"3288":{"this":{"__isSmartRef__":true,"id":3267}},"3289":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"3290":{"originalFunc":{"__isSmartRef__":true,"id":892}},"3291":{"varMapping":{"__isSmartRef__":true,"id":3292},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":3293},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3294},"__LivelyClassName__":"lively.Closure"},"3292":{"this":{"__isSmartRef__":true,"id":3267}},"3293":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"3294":{"originalFunc":{"__isSmartRef__":true,"id":911}},"3295":{"varMapping":{"__isSmartRef__":true,"id":3296},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":3297},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3298},"__LivelyClassName__":"lively.Closure"},"3296":{"this":{"__isSmartRef__":true,"id":3267}},"3297":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"3298":{"originalFunc":{"__isSmartRef__":true,"id":915}},"3299":{"varMapping":{"__isSmartRef__":true,"id":3300},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3301},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3302},"__LivelyClassName__":"lively.Closure"},"3300":{"this":{"__isSmartRef__":true,"id":3267}},"3301":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"3302":{"originalFunc":{"__isSmartRef__":true,"id":919}},"3303":{"varMapping":{"__isSmartRef__":true,"id":3304},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3309},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3310},"__LivelyClassName__":"lively.Closure"},"3304":{"this":{"__isSmartRef__":true,"id":3267},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3305}},"3305":{"$super":{"__isSmartRef__":true,"id":3306}},"3306":{"varMapping":{"__isSmartRef__":true,"id":3307},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3308},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3307":{"obj":{"__isSmartRef__":true,"id":3267},"name":"onMouseDown"},"3308":{},"3309":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"3310":{"originalFunc":{"__isSmartRef__":true,"id":923}},"3311":{"varMapping":{"__isSmartRef__":true,"id":3312},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":3313},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3314},"__LivelyClassName__":"lively.Closure"},"3312":{"this":{"__isSmartRef__":true,"id":3267}},"3313":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"3314":{"originalFunc":{"__isSmartRef__":true,"id":931}},"3315":{"varMapping":{"__isSmartRef__":true,"id":3316},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":3317},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3318},"__LivelyClassName__":"lively.Closure"},"3316":{"this":{"__isSmartRef__":true,"id":3267}},"3317":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"3318":{"originalFunc":{"__isSmartRef__":true,"id":935}},"3319":{"varMapping":{"__isSmartRef__":true,"id":3320},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":3321},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3322},"__LivelyClassName__":"lively.Closure"},"3320":{"this":{"__isSmartRef__":true,"id":3267}},"3321":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"3322":{"originalFunc":{"__isSmartRef__":true,"id":939}},"3323":{"varMapping":{"__isSmartRef__":true,"id":3324},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":3325},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3326},"__LivelyClassName__":"lively.Closure"},"3324":{"this":{"__isSmartRef__":true,"id":3267}},"3325":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"3326":{"originalFunc":{"__isSmartRef__":true,"id":943}},"3327":{"varMapping":{"__isSmartRef__":true,"id":3328},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":3329},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3330},"__LivelyClassName__":"lively.Closure"},"3328":{"this":{"__isSmartRef__":true,"id":3267}},"3329":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"3330":{"originalFunc":{"__isSmartRef__":true,"id":947}},"3331":{"varMapping":{"__isSmartRef__":true,"id":3332},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":3333},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3334},"__LivelyClassName__":"lively.Closure"},"3332":{"this":{"__isSmartRef__":true,"id":3267}},"3333":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"3334":{"originalFunc":{"__isSmartRef__":true,"id":951}},"3335":{"varMapping":{"__isSmartRef__":true,"id":3336},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":3337},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3338},"__LivelyClassName__":"lively.Closure"},"3336":{"this":{"__isSmartRef__":true,"id":3267}},"3337":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"3338":{"originalFunc":{"__isSmartRef__":true,"id":955}},"3339":{"varMapping":{"__isSmartRef__":true,"id":3340},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":3341},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3342},"__LivelyClassName__":"lively.Closure"},"3340":{"this":{"__isSmartRef__":true,"id":3267}},"3341":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"3342":{"originalFunc":{"__isSmartRef__":true,"id":959}},"3343":{"varMapping":{"__isSmartRef__":true,"id":3344},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":3345},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3346},"__LivelyClassName__":"lively.Closure"},"3344":{"this":{"__isSmartRef__":true,"id":3267}},"3345":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"3346":{"originalFunc":{"__isSmartRef__":true,"id":963}},"3347":{"varMapping":{"__isSmartRef__":true,"id":3348},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3349},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3350},"__LivelyClassName__":"lively.Closure"},"3348":{"this":{"__isSmartRef__":true,"id":3267}},"3349":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"3350":{"originalFunc":{"__isSmartRef__":true,"id":967}},"3351":{"varMapping":{"__isSmartRef__":true,"id":3352},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3353},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3354},"__LivelyClassName__":"lively.Closure"},"3352":{"this":{"__isSmartRef__":true,"id":3267}},"3353":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"3354":{"originalFunc":{"__isSmartRef__":true,"id":971}},"3355":{"varMapping":{"__isSmartRef__":true,"id":3356},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":3357},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3358},"__LivelyClassName__":"lively.Closure"},"3356":{"this":{"__isSmartRef__":true,"id":3267}},"3357":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"3358":{"originalFunc":{"__isSmartRef__":true,"id":975}},"3359":{"varMapping":{"__isSmartRef__":true,"id":3360},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":3361},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3362},"__LivelyClassName__":"lively.Closure"},"3360":{"this":{"__isSmartRef__":true,"id":3267}},"3361":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"3362":{"originalFunc":{"__isSmartRef__":true,"id":979}},"3363":{"varMapping":{"__isSmartRef__":true,"id":3364},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":3365},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3366},"__LivelyClassName__":"lively.Closure"},"3364":{"this":{"__isSmartRef__":true,"id":3267}},"3365":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"3366":{"originalFunc":{"__isSmartRef__":true,"id":983}},"3367":{"varMapping":{"__isSmartRef__":true,"id":3368},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":3369},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3370},"__LivelyClassName__":"lively.Closure"},"3368":{"this":{"__isSmartRef__":true,"id":3267}},"3369":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"3370":{"originalFunc":{"__isSmartRef__":true,"id":987}},"3371":{"varMapping":{"__isSmartRef__":true,"id":3372},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":3373},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3374},"__LivelyClassName__":"lively.Closure"},"3372":{"this":{"__isSmartRef__":true,"id":3267}},"3373":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"3374":{"originalFunc":{"__isSmartRef__":true,"id":991}},"3375":{"varMapping":{"__isSmartRef__":true,"id":3376},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":3377},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3378},"__LivelyClassName__":"lively.Closure"},"3376":{"this":{"__isSmartRef__":true,"id":3267}},"3377":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"3378":{"originalFunc":{"__isSmartRef__":true,"id":995}},"3379":{"varMapping":{"__isSmartRef__":true,"id":3380},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":3381},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3382},"__LivelyClassName__":"lively.Closure"},"3380":{"this":{"__isSmartRef__":true,"id":3267}},"3381":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"3382":{"originalFunc":{"__isSmartRef__":true,"id":999}},"3383":{"varMapping":{"__isSmartRef__":true,"id":3384},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3385},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3386},"__LivelyClassName__":"lively.Closure"},"3384":{"this":{"__isSmartRef__":true,"id":3267}},"3385":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"3386":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"3387":{"varMapping":{"__isSmartRef__":true,"id":3388},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3389},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3390},"__LivelyClassName__":"lively.Closure"},"3388":{"this":{"__isSmartRef__":true,"id":3267}},"3389":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"3390":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"3391":{"varMapping":{"__isSmartRef__":true,"id":3392},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":3393},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3394},"__LivelyClassName__":"lively.Closure"},"3392":{"this":{"__isSmartRef__":true,"id":3267}},"3393":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"3394":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"3395":{"submorphs":[{"__isSmartRef__":true,"id":3396}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3406},"renderContextTable":{"__isSmartRef__":true,"id":3411},"eventHandler":{"__isSmartRef__":true,"id":3412},"_ClipMode":"visible","derivationIds":[],"id":"75C27733-3A49-4C2E-8921-89D5CA672293","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3413},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":7,"column":5,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":3396},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":2340}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3414},"__LivelyClassName__":"lively.morphic.Box"},"3396":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3397},"renderContextTable":{"__isSmartRef__":true,"id":3402},"eventHandler":{"__isSmartRef__":true,"id":3403},"_ClipMode":"visible","derivationIds":[],"id":"38EA05E4-9496-4500-BE82-5D3AB7E1D0A3","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3404},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3395},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3405},"__LivelyClassName__":"lively.morphic.Image"},"3397":{"_Position":{"__isSmartRef__":true,"id":3398},"renderContextTable":{"__isSmartRef__":true,"id":3399},"_Extent":{"__isSmartRef__":true,"id":3400},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":3401},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"3398":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3399":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"3400":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3401":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3402":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3403":{"morph":{"__isSmartRef__":true,"id":3396},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3404":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3405":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"3406":{"_Position":{"__isSmartRef__":true,"id":3407},"renderContextTable":{"__isSmartRef__":true,"id":3408},"_Extent":{"__isSmartRef__":true,"id":3409},"_Padding":{"__isSmartRef__":true,"id":3410},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3407":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3408":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"3409":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3410":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3411":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3412":{"morph":{"__isSmartRef__":true,"id":3395},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3413":{"x":240,"y":336,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3414":{"setDevStyle":{"__isSmartRef__":true,"id":3415},"setNormalStyle":{"__isSmartRef__":true,"id":3419},"tileSize":{"__isSmartRef__":true,"id":3423},"become":{"__isSmartRef__":true,"id":3427},"onMouseDown":{"__isSmartRef__":true,"id":3431},"setGridPosition":{"__isSmartRef__":true,"id":3439},"toolbox":{"__isSmartRef__":true,"id":3443},"distanceTo":{"__isSmartRef__":true,"id":3447},"tileWasDropped":{"__isSmartRef__":true,"id":3451},"isObstacle":{"__isSmartRef__":true,"id":3455},"neighboursInDirection":{"__isSmartRef__":true,"id":3459},"neighbours":{"__isSmartRef__":true,"id":3463},"zIndex":{"__isSmartRef__":true,"id":3467},"obstacles":{"__isSmartRef__":true,"id":3471},"addObstacle":{"__isSmartRef__":true,"id":3475},"removeObstacle":{"__isSmartRef__":true,"id":3479},"isTile":{"__isSmartRef__":true,"id":3483},"neighbourAt":{"__isSmartRef__":true,"id":3487},"map":{"__isSmartRef__":true,"id":3491},"game":{"__isSmartRef__":true,"id":3495},"reset":{"__isSmartRef__":true,"id":3499},"shallowCopy":{"__isSmartRef__":true,"id":3503},"characters":{"__isSmartRef__":true,"id":3507},"enterTile":{"__isSmartRef__":true,"id":3511},"leaveTile":{"__isSmartRef__":true,"id":3515},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":3519}},"3415":{"varMapping":{"__isSmartRef__":true,"id":3416},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":3417},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3418},"__LivelyClassName__":"lively.Closure"},"3416":{"this":{"__isSmartRef__":true,"id":3395}},"3417":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"3418":{"originalFunc":{"__isSmartRef__":true,"id":892}},"3419":{"varMapping":{"__isSmartRef__":true,"id":3420},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":3421},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3422},"__LivelyClassName__":"lively.Closure"},"3420":{"this":{"__isSmartRef__":true,"id":3395}},"3421":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"3422":{"originalFunc":{"__isSmartRef__":true,"id":911}},"3423":{"varMapping":{"__isSmartRef__":true,"id":3424},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":3425},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3426},"__LivelyClassName__":"lively.Closure"},"3424":{"this":{"__isSmartRef__":true,"id":3395}},"3425":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"3426":{"originalFunc":{"__isSmartRef__":true,"id":915}},"3427":{"varMapping":{"__isSmartRef__":true,"id":3428},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3429},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3430},"__LivelyClassName__":"lively.Closure"},"3428":{"this":{"__isSmartRef__":true,"id":3395}},"3429":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"3430":{"originalFunc":{"__isSmartRef__":true,"id":919}},"3431":{"varMapping":{"__isSmartRef__":true,"id":3432},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3437},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3438},"__LivelyClassName__":"lively.Closure"},"3432":{"this":{"__isSmartRef__":true,"id":3395},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3433}},"3433":{"$super":{"__isSmartRef__":true,"id":3434}},"3434":{"varMapping":{"__isSmartRef__":true,"id":3435},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3436},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3435":{"obj":{"__isSmartRef__":true,"id":3395},"name":"onMouseDown"},"3436":{},"3437":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"3438":{"originalFunc":{"__isSmartRef__":true,"id":923}},"3439":{"varMapping":{"__isSmartRef__":true,"id":3440},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":3441},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3442},"__LivelyClassName__":"lively.Closure"},"3440":{"this":{"__isSmartRef__":true,"id":3395}},"3441":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"3442":{"originalFunc":{"__isSmartRef__":true,"id":931}},"3443":{"varMapping":{"__isSmartRef__":true,"id":3444},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":3445},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3446},"__LivelyClassName__":"lively.Closure"},"3444":{"this":{"__isSmartRef__":true,"id":3395}},"3445":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"3446":{"originalFunc":{"__isSmartRef__":true,"id":935}},"3447":{"varMapping":{"__isSmartRef__":true,"id":3448},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":3449},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3450},"__LivelyClassName__":"lively.Closure"},"3448":{"this":{"__isSmartRef__":true,"id":3395}},"3449":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"3450":{"originalFunc":{"__isSmartRef__":true,"id":939}},"3451":{"varMapping":{"__isSmartRef__":true,"id":3452},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":3453},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3454},"__LivelyClassName__":"lively.Closure"},"3452":{"this":{"__isSmartRef__":true,"id":3395}},"3453":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"3454":{"originalFunc":{"__isSmartRef__":true,"id":943}},"3455":{"varMapping":{"__isSmartRef__":true,"id":3456},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":3457},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3458},"__LivelyClassName__":"lively.Closure"},"3456":{"this":{"__isSmartRef__":true,"id":3395}},"3457":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"3458":{"originalFunc":{"__isSmartRef__":true,"id":947}},"3459":{"varMapping":{"__isSmartRef__":true,"id":3460},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":3461},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3462},"__LivelyClassName__":"lively.Closure"},"3460":{"this":{"__isSmartRef__":true,"id":3395}},"3461":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"3462":{"originalFunc":{"__isSmartRef__":true,"id":951}},"3463":{"varMapping":{"__isSmartRef__":true,"id":3464},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":3465},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3466},"__LivelyClassName__":"lively.Closure"},"3464":{"this":{"__isSmartRef__":true,"id":3395}},"3465":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"3466":{"originalFunc":{"__isSmartRef__":true,"id":955}},"3467":{"varMapping":{"__isSmartRef__":true,"id":3468},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":3469},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3470},"__LivelyClassName__":"lively.Closure"},"3468":{"this":{"__isSmartRef__":true,"id":3395}},"3469":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"3470":{"originalFunc":{"__isSmartRef__":true,"id":959}},"3471":{"varMapping":{"__isSmartRef__":true,"id":3472},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":3473},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3474},"__LivelyClassName__":"lively.Closure"},"3472":{"this":{"__isSmartRef__":true,"id":3395}},"3473":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"3474":{"originalFunc":{"__isSmartRef__":true,"id":963}},"3475":{"varMapping":{"__isSmartRef__":true,"id":3476},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3477},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3478},"__LivelyClassName__":"lively.Closure"},"3476":{"this":{"__isSmartRef__":true,"id":3395}},"3477":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"3478":{"originalFunc":{"__isSmartRef__":true,"id":967}},"3479":{"varMapping":{"__isSmartRef__":true,"id":3480},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3481},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3482},"__LivelyClassName__":"lively.Closure"},"3480":{"this":{"__isSmartRef__":true,"id":3395}},"3481":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"3482":{"originalFunc":{"__isSmartRef__":true,"id":971}},"3483":{"varMapping":{"__isSmartRef__":true,"id":3484},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":3485},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3486},"__LivelyClassName__":"lively.Closure"},"3484":{"this":{"__isSmartRef__":true,"id":3395}},"3485":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"3486":{"originalFunc":{"__isSmartRef__":true,"id":975}},"3487":{"varMapping":{"__isSmartRef__":true,"id":3488},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":3489},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3490},"__LivelyClassName__":"lively.Closure"},"3488":{"this":{"__isSmartRef__":true,"id":3395}},"3489":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"3490":{"originalFunc":{"__isSmartRef__":true,"id":979}},"3491":{"varMapping":{"__isSmartRef__":true,"id":3492},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":3493},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3494},"__LivelyClassName__":"lively.Closure"},"3492":{"this":{"__isSmartRef__":true,"id":3395}},"3493":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"3494":{"originalFunc":{"__isSmartRef__":true,"id":983}},"3495":{"varMapping":{"__isSmartRef__":true,"id":3496},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":3497},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3498},"__LivelyClassName__":"lively.Closure"},"3496":{"this":{"__isSmartRef__":true,"id":3395}},"3497":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"3498":{"originalFunc":{"__isSmartRef__":true,"id":987}},"3499":{"varMapping":{"__isSmartRef__":true,"id":3500},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":3501},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3502},"__LivelyClassName__":"lively.Closure"},"3500":{"this":{"__isSmartRef__":true,"id":3395}},"3501":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"3502":{"originalFunc":{"__isSmartRef__":true,"id":991}},"3503":{"varMapping":{"__isSmartRef__":true,"id":3504},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":3505},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3506},"__LivelyClassName__":"lively.Closure"},"3504":{"this":{"__isSmartRef__":true,"id":3395}},"3505":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"3506":{"originalFunc":{"__isSmartRef__":true,"id":995}},"3507":{"varMapping":{"__isSmartRef__":true,"id":3508},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":3509},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3510},"__LivelyClassName__":"lively.Closure"},"3508":{"this":{"__isSmartRef__":true,"id":3395}},"3509":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"3510":{"originalFunc":{"__isSmartRef__":true,"id":999}},"3511":{"varMapping":{"__isSmartRef__":true,"id":3512},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3513},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3514},"__LivelyClassName__":"lively.Closure"},"3512":{"this":{"__isSmartRef__":true,"id":3395}},"3513":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"3514":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"3515":{"varMapping":{"__isSmartRef__":true,"id":3516},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3517},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3518},"__LivelyClassName__":"lively.Closure"},"3516":{"this":{"__isSmartRef__":true,"id":3395}},"3517":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"3518":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"3519":{"varMapping":{"__isSmartRef__":true,"id":3520},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":3521},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3522},"__LivelyClassName__":"lively.Closure"},"3520":{"this":{"__isSmartRef__":true,"id":3395}},"3521":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"3522":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"3523":{"submorphs":[{"__isSmartRef__":true,"id":3524},{"__isSmartRef__":true,"id":3534}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3645},"renderContextTable":{"__isSmartRef__":true,"id":3650},"eventHandler":{"__isSmartRef__":true,"id":3651},"_ClipMode":"visible","derivationIds":[],"id":"EAD3CF61-2718-4624-92EF-134FE1CFA74E","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3652},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":8,"column":5,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":3524},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":3534}],"cachedNeightbours":[{"__isSmartRef__":true,"id":3653},{"__isSmartRef__":true,"id":3395},{"__isSmartRef__":true,"id":3120},{"__isSmartRef__":true,"id":6257},{"__isSmartRef__":true,"id":6717},{"__isSmartRef__":true,"id":6679},{"__isSmartRef__":true,"id":6698},{"__isSmartRef__":true,"id":6736}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9985},"__LivelyClassName__":"lively.morphic.Box"},"3524":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3525},"renderContextTable":{"__isSmartRef__":true,"id":3530},"eventHandler":{"__isSmartRef__":true,"id":3531},"_ClipMode":"visible","derivationIds":[],"id":"E106810F-5B8A-46DC-A479-8FD47601CC0D","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3532},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3523},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3533},"__LivelyClassName__":"lively.morphic.Image"},"3525":{"_Position":{"__isSmartRef__":true,"id":3526},"renderContextTable":{"__isSmartRef__":true,"id":3527},"_Extent":{"__isSmartRef__":true,"id":3528},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":3529},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"3526":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3527":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"3528":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3529":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3530":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3531":{"morph":{"__isSmartRef__":true,"id":3524},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3532":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3533":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"3534":{"submorphs":[{"__isSmartRef__":true,"id":3535}],"scripts":[],"id":"BFB91138-6D50-42AC-A4DC-D83D4E94B179","shape":{"__isSmartRef__":true,"id":3566},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3572},"showsHalos":false,"name":"Thing4","partsBinMetaInfo":{"__isSmartRef__":true,"id":786},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":3573},"eventHandler":{"__isSmartRef__":true,"id":3574},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","DF863BAB-9987-4611-BCD2-DE9FDCE7D3B5","768ED97D-1E05-415B-AB3F-B6495AC603A0","5A0ECA63-F6E2-4E35-B9A2-75DE2A4C4158","3B4EDC8A-0E99-4F45-A6D5-5CCE7E75BC88","1A900574-7D84-44F3-BB9D-1A1E26FDDB9B","383B3B54-4D0D-42E5-88C6-460045549029","EFC22A04-8B3C-48A8-9C5F-1EBC66DFD6D6","52D7E09F-EA1F-44D5-A893-F72A70D40429","CAC332B2-DA3A-4534-B3C7-E03D31DE9D2C","2CDD083E-3AB7-4BB9-B6D1-A70716226BDF","B4327E15-A3DA-44A6-89B0-71AFB39350AA","D2E0258B-443A-444C-8640-C595ECC95152","6C8F2B5B-D9E4-4742-B4A1-DA08C3B66E3A","34B4B715-9D86-4D1A-921B-5340CDC05F73","4CA32288-0E12-49F5-A485-634D7D327287","5941FCB6-8C08-405A-B2C2-D84C19F702E2","7BA243A0-B441-41E9-B4AE-A18EDB0F9A8A","C1A510A2-576D-49C6-89EA-56953C5D6FC1","372DAC3D-D2F5-47C2-8538-A2EEE9D3A073","6E3BFF0C-E4EB-4D35-959F-9C12F885012C","5D157E3A-5D4F-4C0A-888F-5FE24CBFC6E5","8C8C94D0-B291-47D8-8B8D-F606AF1A59B1","4794D8F3-DD25-4AFF-A687-079AB3EB7B71","324C5BEC-5664-49AD-AE50-4F3AD40CB933"],"partTests":{"__isSmartRef__":true,"id":3575},"isBeingDragged":false,"moved":true,"_ClipMode":"visible","tile":{"__isSmartRef__":true,"id":3523},"thing":{"__isSmartRef__":true,"id":3535},"prevScroll":[0,0],"occludedTiles":[{"__isSmartRef__":true,"id":3523}],"_Rotation":0,"_Scale":1.002003004005006,"owner":{"__isSmartRef__":true,"id":3523},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3580},"__LivelyClassName__":"lively.morphic.Box"},"3535":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3536},"derivationIds":[null,"C188371A-F14F-4035-A3D4-B776EDFBFCF9","EF23DF7A-0D88-45DD-B480-BD1C8E726507","C1EFA8FF-AE64-4AD9-9BC2-F1B5FCD38DBF","443604EA-26E0-4808-A686-AC440094D394","4F48AD47-828B-4BBE-BE8F-C16CE7CC8CEB","7C9FDB30-E114-4BC2-BFDB-975B9E034515","60BB5D96-D695-4F29-9712-0922C8129FDD","E0309664-B784-40F5-9DBC-56F4FC69FE74","97615A2C-A0FF-44EB-8A51-3D495D123CAC"],"id":"2D8828EA-E7C8-42E4-A399-A437020157CB","renderContextTable":{"__isSmartRef__":true,"id":3541},"eventHandler":{"__isSmartRef__":true,"id":3542},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3543},"name":"WoodstackThing1","isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3544},"__SourceModuleName__":"Global.lively.morphic.Widgets","moved":true,"isThing":true,"_ClipMode":"visible","previousPosition":{"__isSmartRef__":true,"id":3557},"_Rotation":0,"_Scale":1,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3534},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3558},"__LivelyClassName__":"lively.morphic.Image"},"3536":{"_Position":{"__isSmartRef__":true,"id":3537},"renderContextTable":{"__isSmartRef__":true,"id":3538},"_Extent":{"__isSmartRef__":true,"id":3539},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3540},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/woodstack.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"3537":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3538":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"3539":{"x":40,"y":44,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3540":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3541":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3542":{"morph":{"__isSmartRef__":true,"id":3535},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3543":{"x":8,"y":4,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3544":{"partName":"WoodstackThing","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"A not movable pile of wood","changes":[{"__isSmartRef__":true,"id":3545},{"__isSmartRef__":true,"id":3547},{"__isSmartRef__":true,"id":3549},{"__isSmartRef__":true,"id":3551},{"__isSmartRef__":true,"id":3553},{"__isSmartRef__":true,"id":3555}],"migrationLevel":4,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3545":{"date":{"__isSmartRef__":true,"id":3546},"author":"timfelgentreff","message":"no comment","id":"12F3271A-3B3E-4552-8F58-D624397EBE9C"},"3546":{"isSerializedDate":true,"string":"Thu May 03 2012 14:03:40 GMT+0200 (CEST)"},"3547":{"date":{"__isSmartRef__":true,"id":3548},"author":"timfelgentreff","message":"resize","id":"25C768D6-D9E6-408C-9EC3-DA5E2F40EE31"},"3548":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:32:41 GMT+0200 (CEST)"},"3549":{"date":{"__isSmartRef__":true,"id":3550},"author":"tessi","message":"","id":"8DD457D2-AEDF-49EB-B709-175D70D13811"},"3550":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:15:10 GMT+0200 (CEST)"},"3551":{"date":{"__isSmartRef__":true,"id":3552},"author":"tessi","message":"","id":"929ADB98-2EB3-4DDD-A80B-03F2D63F1F37"},"3552":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:44:01 GMT+0200 (CEST)"},"3553":{"date":{"__isSmartRef__":true,"id":3554},"author":"tessi","message":"","id":"05265F01-D0D8-4994-B47D-5CEA345DB6E1"},"3554":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:50:38 GMT+0200 (CEST)"},"3555":{"date":{"__isSmartRef__":true,"id":3556},"author":"timfelgentreff","message":"no comment","id":"1A0C6AA2-1339-4430-9D90-041573EBACD1"},"3556":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:08:05 GMT+0200 (CEST)"},"3557":{"x":1625,"y":645,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3558":{"dropOn":{"__isSmartRef__":true,"id":3559}},"3559":{"varMapping":{"__isSmartRef__":true,"id":3560},"source":"function dropOn(morph) {\n if (morph.isTile && morph.isTile()) {\n var thing = morph.toolbox(\"Thing\")\n thing.dropOn(morph)\n thing.setNormalStyle()\n thing.become(this.copy())\n } else {\n $super(morph);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3565},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3560":{"this":{"__isSmartRef__":true,"id":3535},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3561}},"3561":{"$super":{"__isSmartRef__":true,"id":3562}},"3562":{"varMapping":{"__isSmartRef__":true,"id":3563},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3564},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3563":{"obj":{"__isSmartRef__":true,"id":3535},"name":"dropOn"},"3564":{},"3565":{},"3566":{"position":{"__isSmartRef__":true,"id":3567},"_Extent":{"__isSmartRef__":true,"id":3568},"_BorderWidth":1.148,"_BorderColor":{"__isSmartRef__":true,"id":3569},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3570},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3571},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3567":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3568":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3569":{"r":0,"g":0,"b":0,"a":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3570":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"3571":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3572":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3573":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3574":{"morph":{"__isSmartRef__":true,"id":3534},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3575":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3576}},"3576":{"test01IsMorph":{"__isSmartRef__":true,"id":3577}},"3577":{"varMapping":{"__isSmartRef__":true,"id":3578},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3579},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3578":{"this":{"__isSmartRef__":true,"id":3575}},"3579":{},"3580":{"setDevStyle":{"__isSmartRef__":true,"id":3581},"setNormalStyle":{"__isSmartRef__":true,"id":3585},"become":{"__isSmartRef__":true,"id":3589},"onMouseDown":{"__isSmartRef__":true,"id":3593},"toolbox":{"__isSmartRef__":true,"id":3601},"zIndex":{"__isSmartRef__":true,"id":3605},"becomeRandomThing":{"__isSmartRef__":true,"id":3609},"reset":{"__isSmartRef__":true,"id":3613},"registerAsObstacle":{"__isSmartRef__":true,"id":3617},"deregisterAsObstacle":{"__isSmartRef__":true,"id":3621},"tileSize":{"__isSmartRef__":true,"id":3625},"dropOn":{"__isSmartRef__":true,"id":3629},"map":{"__isSmartRef__":true,"id":3637},"game":{"__isSmartRef__":true,"id":3641}},"3581":{"varMapping":{"__isSmartRef__":true,"id":3582},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.shape.setBorderColor(Color.blue)\n if (this.thing) {\n this.thing.shape.setBorderColor(Color.red)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3583},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3582":{"this":{"__isSmartRef__":true,"id":3534}},"3583":{"timestamp":{"__isSmartRef__":true,"id":3584},"user":"timfelgentreff","tags":[]},"3584":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:34:18 GMT+0200 (CEST)"},"3585":{"varMapping":{"__isSmartRef__":true,"id":3586},"source":"function setNormalStyle() {\n this.setDevStyle()\n this.shape.setBorderColor(new Color.rgba(0,0,0,0))\n if (this.thing) {\n this.thing.shape.setBorderColor(new Color.rgba(0,0,0,0))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3587},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3586":{"this":{"__isSmartRef__":true,"id":3534}},"3587":{"timestamp":{"__isSmartRef__":true,"id":3588},"user":"tessi","tags":[]},"3588":{"isSerializedDate":true,"string":"Thu May 03 2012 15:24:43 GMT+0200 (CEST)"},"3589":{"varMapping":{"__isSmartRef__":true,"id":3590},"source":"function become(thingName) {\n var thing\n if (typeof thingName === \"string\") {\n thing = this.toolbox(thingName + \"Thing\")\n } else {\n thing = thingName\n }\n if (thing) {\n if (this.thing) {\n this.thing.remove();\n }\n this.thing = thing;\n thing.ignoreEvents()\n thing.setExtent(thing.shape.getExtent())\n thing.setPosition(this.getExtent().subPt(this.thing.getExtent()))\n this.addMorph(thing)\n this.registerAsObstacle()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3591},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3590":{"this":{"__isSmartRef__":true,"id":3534}},"3591":{"timestamp":{"__isSmartRef__":true,"id":3592},"user":"timfelgentreff","tags":[]},"3592":{"isSerializedDate":true,"string":"Thu May 03 2012 13:48:50 GMT+0200 (CEST)"},"3593":{"varMapping":{"__isSmartRef__":true,"id":3594},"source":"function onMouseDown(evt) {\n if (this.tile && evt.isLeftMouseButtonDown() && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this.tile)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3599},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3594":{"this":{"__isSmartRef__":true,"id":3534},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3595}},"3595":{"$super":{"__isSmartRef__":true,"id":3596}},"3596":{"varMapping":{"__isSmartRef__":true,"id":3597},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3598},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3597":{"obj":{"__isSmartRef__":true,"id":3534},"name":"onMouseDown"},"3598":{},"3599":{"timestamp":{"__isSmartRef__":true,"id":3600},"user":"tessi","tags":[]},"3600":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:27:13 GMT+0200 (CEST)"},"3601":{"varMapping":{"__isSmartRef__":true,"id":3602},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":3603},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3602":{"this":{"__isSmartRef__":true,"id":3534}},"3603":{"timestamp":{"__isSmartRef__":true,"id":3604},"user":"tessi","tags":[]},"3604":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:27:30 GMT+0200 (CEST)"},"3605":{"varMapping":{"__isSmartRef__":true,"id":3606},"source":"function zIndex(idx) {\n if (idx) {\n return this.renderContext().morphNode.style.zIndex = idx\n } else {\n return this.renderContext().morphNode.style.zIndex\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3607},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3606":{"this":{"__isSmartRef__":true,"id":3534}},"3607":{"timestamp":{"__isSmartRef__":true,"id":3608},"user":"timfelgentreff","tags":[]},"3608":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:28:09 GMT+0200 (CEST)"},"3609":{"varMapping":{"__isSmartRef__":true,"id":3610},"source":"function becomeRandomThing() {\n var thingNames = this.game().partNamesEndingWith(\"Thing\")\n this.become(thingNames[Math.round(Math.random() * (thingNames.length - 1))])\n}","funcProperties":{"__isSmartRef__":true,"id":3611},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3610":{"this":{"__isSmartRef__":true,"id":3534}},"3611":{"timestamp":{"__isSmartRef__":true,"id":3612},"user":"tessi","tags":[]},"3612":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:54 GMT+0200 (CEST)"},"3613":{"varMapping":{"__isSmartRef__":true,"id":3614},"source":"function reset() {\n if (this.thing) {\n this.thing.remove()\n this.thing = null\n }\n this.deregisterAsObstacle()\n this.tile = null\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":3615},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3614":{"this":{"__isSmartRef__":true,"id":3534}},"3615":{"timestamp":{"__isSmartRef__":true,"id":3616},"user":"tessi","tags":[]},"3616":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:28:03 GMT+0200 (CEST)"},"3617":{"varMapping":{"__isSmartRef__":true,"id":3618},"source":"function registerAsObstacle() {\n this.deregisterAsObstacle()\n\n if (this.tile && this.thing) {\n this.occludedTiles = []\n\n // things are anchored at bottom-left, so neighbours direction is negative\n var neighboursBlockVertical = Math.ceil(this.thing.getExtent().y / this.tileSize().y),\n neighboursBlockHorizontal = Math.ceil(this.thing.getExtent().x / this.tileSize().x),\n neighbour\n\n this.occludedTiles.push(this.tile)\n this.tile.addObstacle(this)\n for (var i = 0; i < neighboursBlockHorizontal; i++) {\n for (var j = 0; j < neighboursBlockVertical; j++) {\n neighbour = this.tile.neighbourAt(pt(-i,-j))\n if (neighbour && !this.occludedTiles.member(neighbour)) {\n neighbour.addObstacle(this)\n this.occludedTiles.push(neighbour)\n }\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3619},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3618":{"this":{"__isSmartRef__":true,"id":3534}},"3619":{"timestamp":{"__isSmartRef__":true,"id":3620},"user":"timfelgentreff","tags":[]},"3620":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:18:39 GMT+0200 (CEST)"},"3621":{"varMapping":{"__isSmartRef__":true,"id":3622},"source":"function deregisterAsObstacle() {\n var that = this\n if (this.occludedTiles) {\n this.occludedTiles.each(function (tile) {\n tile.removeObstacle(that)\n })\n this.occludedTiles = null\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3623},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3622":{"this":{"__isSmartRef__":true,"id":3534}},"3623":{"timestamp":{"__isSmartRef__":true,"id":3624},"user":"timfelgentreff","tags":[]},"3624":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:25:37 GMT+0200 (CEST)"},"3625":{"varMapping":{"__isSmartRef__":true,"id":3626},"source":"function tileSize() {\n if (this.tile) {\n return this.tile.tileSize()\n } else {\n return this.toolbox(\"Tile\").tileSize()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3627},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3626":{"this":{"__isSmartRef__":true,"id":3534}},"3627":{"timestamp":{"__isSmartRef__":true,"id":3628},"user":"timfelgentreff","tags":[]},"3628":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:01:00 GMT+0200 (CEST)"},"3629":{"varMapping":{"__isSmartRef__":true,"id":3630},"source":"function dropOn(morph) {\n $super(morph);\n this.deregisterAsObstacle()\n if (morph.isTile) {\n this.tile = morph\n this.setPosition(pt(0,0))\n this.registerAsObstacle()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3635},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3630":{"this":{"__isSmartRef__":true,"id":3534},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3631}},"3631":{"$super":{"__isSmartRef__":true,"id":3632}},"3632":{"varMapping":{"__isSmartRef__":true,"id":3633},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3634},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3633":{"obj":{"__isSmartRef__":true,"id":3534},"name":"dropOn"},"3634":{},"3635":{"timestamp":{"__isSmartRef__":true,"id":3636},"user":"timfelgentreff","tags":[]},"3636":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:13:07 GMT+0200 (CEST)"},"3637":{"varMapping":{"__isSmartRef__":true,"id":3638},"source":"function map() {\n return this.owner.map()\n}","funcProperties":{"__isSmartRef__":true,"id":3639},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3638":{"this":{"__isSmartRef__":true,"id":3534}},"3639":{"timestamp":{"__isSmartRef__":true,"id":3640},"user":"tessi","tags":[]},"3640":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:34 GMT+0200 (CEST)"},"3641":{"varMapping":{"__isSmartRef__":true,"id":3642},"source":"function game() {\n return this.owner.game()\n}","funcProperties":{"__isSmartRef__":true,"id":3643},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3642":{"this":{"__isSmartRef__":true,"id":3534}},"3643":{"timestamp":{"__isSmartRef__":true,"id":3644},"user":"tessi","tags":[]},"3644":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:45 GMT+0200 (CEST)"},"3645":{"_Position":{"__isSmartRef__":true,"id":3646},"renderContextTable":{"__isSmartRef__":true,"id":3647},"_Extent":{"__isSmartRef__":true,"id":3648},"_Padding":{"__isSmartRef__":true,"id":3649},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3646":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3647":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"3648":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3649":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3650":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3651":{"morph":{"__isSmartRef__":true,"id":3523},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3652":{"x":240,"y":384,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3653":{"submorphs":[{"__isSmartRef__":true,"id":3654}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3664},"renderContextTable":{"__isSmartRef__":true,"id":3669},"eventHandler":{"__isSmartRef__":true,"id":3670},"_ClipMode":"visible","derivationIds":[],"id":"8716ECBB-1093-439D-AAA5-000226C6A509","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3671},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":7,"column":4,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":3654},"grabbingEnabled":false,"charactersStandingHere":[],"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":1662},{"__isSmartRef__":true,"id":3672},{"__isSmartRef__":true,"id":3139},{"__isSmartRef__":true,"id":4953},{"__isSmartRef__":true,"id":3395},{"__isSmartRef__":true,"id":6238},{"__isSmartRef__":true,"id":6257},{"__isSmartRef__":true,"id":3523}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9876},"__LivelyClassName__":"lively.morphic.Box"},"3654":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3655},"renderContextTable":{"__isSmartRef__":true,"id":3660},"eventHandler":{"__isSmartRef__":true,"id":3661},"_ClipMode":"visible","derivationIds":[],"id":"BEB0316A-6DA4-461F-ADC3-C27ACA9560C8","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3662},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3653},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3663},"__LivelyClassName__":"lively.morphic.Image"},"3655":{"_Position":{"__isSmartRef__":true,"id":3656},"renderContextTable":{"__isSmartRef__":true,"id":3657},"_Extent":{"__isSmartRef__":true,"id":3658},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":3659},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"3656":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3657":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"3658":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3659":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3660":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3661":{"morph":{"__isSmartRef__":true,"id":3654},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3662":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3663":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"3664":{"_Position":{"__isSmartRef__":true,"id":3665},"renderContextTable":{"__isSmartRef__":true,"id":3666},"_Extent":{"__isSmartRef__":true,"id":3667},"_Padding":{"__isSmartRef__":true,"id":3668},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3665":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3666":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"3667":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3668":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3669":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3670":{"morph":{"__isSmartRef__":true,"id":3653},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3671":{"x":192,"y":336,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3672":{"submorphs":[{"__isSmartRef__":true,"id":3673}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3683},"renderContextTable":{"__isSmartRef__":true,"id":3688},"eventHandler":{"__isSmartRef__":true,"id":3689},"_ClipMode":"visible","derivationIds":[],"id":"C84A9070-9F32-4B75-806F-C594C1276F62","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3690},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":6,"column":4,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":3673},"grabbingEnabled":false,"charactersStandingHere":[{"__isSmartRef__":true,"id":3691}],"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":1790},{"__isSmartRef__":true,"id":4697},{"__isSmartRef__":true,"id":4716},{"__isSmartRef__":true,"id":1662},{"__isSmartRef__":true,"id":3139},{"__isSmartRef__":true,"id":4953},{"__isSmartRef__":true,"id":3653},{"__isSmartRef__":true,"id":3395}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9767},"__LivelyClassName__":"lively.morphic.Box"},"3673":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3674},"renderContextTable":{"__isSmartRef__":true,"id":3679},"eventHandler":{"__isSmartRef__":true,"id":3680},"_ClipMode":"visible","derivationIds":[],"id":"304B547A-3264-4207-9410-8FBFCC0D8236","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3681},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":3672},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3682},"__LivelyClassName__":"lively.morphic.Image"},"3674":{"_Position":{"__isSmartRef__":true,"id":3675},"renderContextTable":{"__isSmartRef__":true,"id":3676},"_Extent":{"__isSmartRef__":true,"id":3677},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":3678},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"3675":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3676":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"3677":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3678":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3679":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3680":{"morph":{"__isSmartRef__":true,"id":3673},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3681":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3682":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"3683":{"_Position":{"__isSmartRef__":true,"id":3684},"renderContextTable":{"__isSmartRef__":true,"id":3685},"_Extent":{"__isSmartRef__":true,"id":3686},"_Padding":{"__isSmartRef__":true,"id":3687},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3684":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3685":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"3686":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3687":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3688":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3689":{"morph":{"__isSmartRef__":true,"id":3672},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3690":{"x":192,"y":288,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3691":{"submorphs":[{"__isSmartRef__":true,"id":3692},{"__isSmartRef__":true,"id":3748},{"__isSmartRef__":true,"id":3822},{"__isSmartRef__":true,"id":3849}],"scripts":[{"__isSmartRef__":true,"id":3915},{"__isSmartRef__":true,"id":3917}],"shape":{"__isSmartRef__":true,"id":3918},"renderContextTable":{"__isSmartRef__":true,"id":3924},"eventHandler":{"__isSmartRef__":true,"id":3925},"_ClipMode":"visible","derivationIds":[],"id":"217661DE-7BA6-4C83-9F55-74DA2DF1E994","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3926},"partsBinMetaInfo":{"__isSmartRef__":true,"id":3927},"lifeBar":{"__isSmartRef__":true,"id":3692},"deathAnimation":{"__isSmartRef__":true,"id":3748},"owner":{"__isSmartRef__":true,"id":2},"character":{"__isSmartRef__":true,"id":3822},"animateScript":{"__isSmartRef__":true,"id":3915},"isBusy":false,"showsHalos":false,"textBubble":{"__isSmartRef__":true,"id":3849},"lastSpeedTimestamp":1343639970476,"walkScript":{"__isSmartRef__":true,"id":3917},"direction":{"__isSmartRef__":true,"id":4146},"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4147},"__LivelyClassName__":"lively.morphic.Box"},"3692":{"submorphs":[],"scripts":[],"id":"8B045979-B01D-4ADF-AF71-C5811D373945","shape":{"__isSmartRef__":true,"id":3693},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3700},"showsHalos":false,"name":"LifeBar1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3701},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":3716},"eventHandler":{"__isSmartRef__":true,"id":3717},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","2DB0D0C7-DC87-4CFA-83D0-A3C69D36DFF5","D5A167D3-1B45-47C6-9589-88D524CBB671","B99E0377-C191-4217-A6A5-9C8B280EBFC7","30BAB7C0-114B-4F37-878B-09C11E3D5549","FB770FA2-2303-4F51-B162-092CD8F21AA0","612FF3E2-A0BA-4252-92A6-28D30F489F85","78D369CF-E59B-4EB9-8D69-151A5EC7EBC2","E425FE9E-F1B0-438A-A245-16A29D9D258B","803FB59F-23F3-4A2F-9E13-DC3FB4D6FBC2","16E73362-4726-4C37-8412-BB7F76E007B7","8F9461A6-FB84-4875-BE34-EDF06F5CF22B","E7D9DE9E-946E-47E7-B684-63DCCE65106B","CEE4682F-B1A8-4163-8208-67DAD6993B52","D3072470-ABA6-4EB9-8D01-4BB11A39B26D","31496EA1-A9DF-4D97-835B-E76BA2171F1A"],"partTests":{"__isSmartRef__":true,"id":3718},"_ClipMode":"visible","isBeingDragged":false,"#startLetters":"","_Rotation":0,"_Scale":1.002003004005006,"character":{"__isSmartRef__":true,"id":3691},"owner":{"__isSmartRef__":true,"id":3691},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3723},"__LivelyClassName__":"lively.morphic.Box"},"3693":{"position":{"__isSmartRef__":true,"id":3694},"_Extent":{"__isSmartRef__":true,"id":3695},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":3696},"_Fill":{"__isSmartRef__":true,"id":3697},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3698},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3699},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3694":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3695":{"x":48,"y":8,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3696":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3697":{"r":0.59375,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3698":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"3699":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3700":{"x":0,"y":-13,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3701":{"partsSpaceName":"PartsBin/FreedomOfSpeech/","__SourceModuleName__":"Global.lively.PartsBin","comment":"A life bar","migrationLevel":4,"partName":"LifeBar","changes":[{"__isSmartRef__":true,"id":3702},{"__isSmartRef__":true,"id":3704},{"__isSmartRef__":true,"id":3706},{"__isSmartRef__":true,"id":3708},{"__isSmartRef__":true,"id":3710},{"__isSmartRef__":true,"id":3712},{"__isSmartRef__":true,"id":3714}],"revisionOnLoad":159331,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3702":{"date":{"__isSmartRef__":true,"id":3703},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"3703":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"3704":{"date":{"__isSmartRef__":true,"id":3705},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"3705":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"3706":{"date":{"__isSmartRef__":true,"id":3707},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"3707":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"3708":{"date":{"__isSmartRef__":true,"id":3709},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"3709":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"3710":{"date":{"__isSmartRef__":true,"id":3711},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"3711":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"3712":{"date":{"__isSmartRef__":true,"id":3713},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"3713":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"3714":{"date":{"__isSmartRef__":true,"id":3715},"author":"timfelgentreff","message":"no comment","id":"655F8C6A-8060-4BEC-9535-09682C8F0066"},"3715":{"isSerializedDate":true,"string":"Fri May 04 2012 16:52:35 GMT+0200 (CEST)"},"3716":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3717":{"morph":{"__isSmartRef__":true,"id":3692},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3718":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3719}},"3719":{"test01IsMorph":{"__isSmartRef__":true,"id":3720}},"3720":{"varMapping":{"__isSmartRef__":true,"id":3721},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3722},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3721":{"this":{"__isSmartRef__":true,"id":3718}},"3722":{},"3723":{"setColorForWidth":{"__isSmartRef__":true,"id":3724},"reset":{"__isSmartRef__":true,"id":3728},"hit":{"__isSmartRef__":true,"id":3732},"extent":{"__isSmartRef__":true,"id":3736},"isDead":{"__isSmartRef__":true,"id":3740},"lifeLoss":{"__isSmartRef__":true,"id":3744},"heal":{"__isSmartRef__":true,"id":3728}},"3724":{"varMapping":{"__isSmartRef__":true,"id":3725},"source":"function setColorForWidth() {\n this.setFill(Color.hsb((this.getExtent().x - this.lifeLoss() / 2) / this.extent().x * 100, 1, 1))\n}","funcProperties":{"__isSmartRef__":true,"id":3726},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3725":{"this":{"__isSmartRef__":true,"id":3692}},"3726":{"timestamp":{"__isSmartRef__":true,"id":3727},"user":"timfelgentreff","tags":[]},"3727":{"isSerializedDate":true,"string":"Fri May 04 2012 16:51:59 GMT+0200 (CEST)"},"3728":{"varMapping":{"__isSmartRef__":true,"id":3729},"source":"function reset() {\n this.setExtent(this.extent())\n this.setColorForWidth()\n this.setPosition(pt(0, -13))\n}","funcProperties":{"__isSmartRef__":true,"id":3730},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3729":{"this":{"__isSmartRef__":true,"id":3692}},"3730":{"timestamp":{"__isSmartRef__":true,"id":3731},"user":"timfelgentreff","tags":[]},"3731":{"isSerializedDate":true,"string":"Fri May 04 2012 17:19:31 GMT+0200 (CEST)"},"3732":{"varMapping":{"__isSmartRef__":true,"id":3733},"source":"function hit() {\n this.setExtent(this.getExtent().subPt(pt(this.lifeLoss(), 0)))\n this.setColorForWidth()\n if (this.isDead()) {\n this.character.become(null)\n this.character.deathAnimation.start()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3734},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3733":{"this":{"__isSmartRef__":true,"id":3692}},"3734":{"timestamp":{"__isSmartRef__":true,"id":3735},"user":"timfelgentreff","tags":[]},"3735":{"isSerializedDate":true,"string":"Fri May 04 2012 17:12:01 GMT+0200 (CEST)"},"3736":{"varMapping":{"__isSmartRef__":true,"id":3737},"source":"function extent() {\n return pt(48,8)\n}","funcProperties":{"__isSmartRef__":true,"id":3738},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3737":{"this":{"__isSmartRef__":true,"id":3692}},"3738":{"timestamp":{"__isSmartRef__":true,"id":3739},"user":"timfelgentreff","tags":[]},"3739":{"isSerializedDate":true,"string":"Fri May 04 2012 16:49:30 GMT+0200 (CEST)"},"3740":{"varMapping":{"__isSmartRef__":true,"id":3741},"source":"function isDead() {\n return this.getExtent().x < this.lifeLoss()\n}","funcProperties":{"__isSmartRef__":true,"id":3742},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3741":{"this":{"__isSmartRef__":true,"id":3692}},"3742":{"timestamp":{"__isSmartRef__":true,"id":3743},"user":"timfelgentreff","tags":[]},"3743":{"isSerializedDate":true,"string":"Fri May 04 2012 16:50:02 GMT+0200 (CEST)"},"3744":{"varMapping":{"__isSmartRef__":true,"id":3745},"source":"function lifeLoss() {\n return this.extent().x / 3 - 1\n}","funcProperties":{"__isSmartRef__":true,"id":3746},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3745":{"this":{"__isSmartRef__":true,"id":3692}},"3746":{"timestamp":{"__isSmartRef__":true,"id":3747},"user":"timfelgentreff","tags":[]},"3747":{"isSerializedDate":true,"string":"Fri May 04 2012 16:50:22 GMT+0200 (CEST)"},"3748":{"submorphs":[{"__isSmartRef__":true,"id":3749}],"scripts":[],"id":"9A3EB5B9-FED7-40BF-B18A-9AEB08739AC0","shape":{"__isSmartRef__":true,"id":3778},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3785},"showsHalos":false,"name":"DeathAnimation1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3786},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":3799},"eventHandler":{"__isSmartRef__":true,"id":3800},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","BFF48C2B-8378-49C8-A6EC-5205A2A46D92","0322384E-8399-4532-BD09-846510E4CEB2","D94E58BE-3730-4E93-886D-57D5F7FEDE66","8BA6D9A0-76BF-45F9-8257-B44CE32DC0E8","627E352B-D135-4086-86B2-C7271180C415","1E2E609F-0D3C-43B7-A41A-DEF99F217F62","C106586D-69FF-492C-86C0-9105E43A395A","14B978ED-D71B-4400-8BD0-92F5EB55D3FB","1F548A2A-9935-42D6-A43F-57A789A17989","7AB0E0C5-F3F5-44B8-84A4-FE58514B9CBB","0B24C9CE-0E0A-420E-BABB-1EECAF2A75F7","8BCF21E1-00C1-47E1-8C9D-C6CD6F611A30","94B8E0BB-A727-4D1F-9FCD-57500677A0E3","875CC266-7C10-4E98-A6B6-17C7EB3C93A3","8CBF3E25-2EB1-4DE6-AAB2-17CB254C9012"],"partTests":{"__isSmartRef__":true,"id":3801},"_ClipMode":"visible","isBeingDragged":false,"#startLetters":"image","image":{"__isSmartRef__":true,"id":3749},"baseUrl":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_","counter":1,"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","_Rotation":0,"_Scale":1.002003004005006,"character":{"__isSmartRef__":true,"id":3691},"owner":{"__isSmartRef__":true,"id":3691},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3806},"__LivelyClassName__":"lively.morphic.Box"},"3749":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3750},"derivationIds":[null,"238E91DE-656E-43B5-8E3D-904CDA28A277","C00A3C0E-CF81-421A-BF06-DE6D4804AC6B","4382B5D0-4A0C-4EF1-8EA4-8A5F8AE07FED","C63F1CBE-8F12-4DFF-8B87-724D9AFDE572","4C4D5150-2BCE-4514-A48A-3787AC0E3CCF","8D704A99-14C3-4137-9E77-31DEBF2AA651","40D79729-F063-4AC0-8BA8-E1A794FC48A8","F658FB14-4DBB-4056-9F28-DD002EF336C6","19619216-9747-4EA9-A444-FFBBB4310049","40016546-5DEA-40CF-82DD-70C1F06413D4","0D8C6CD9-1951-4437-8DB1-3C658360D9B3","4A305064-C6ED-4B9B-AE1D-D1C8B588E724","438C7CD7-16E4-4D9E-A015-6D204ADE7635","92787D53-FD63-40D2-B832-464328EA031D","2A03C966-9450-4DC5-9084-A4966D9718CA","27A384D8-C394-47A1-BAE3-C121747B4EAF","D48DE2C7-4C3D-48D4-B639-D97975FE3A81","1EF27416-D2A4-4F72-A536-D94226AE04E2","D504024B-30A0-4034-B03E-EE97D7D12A3A","B8A96F87-B36E-4C2A-A697-1911B0D4A10E","CA123CA5-7C77-457D-8505-3D1E2EA12ACC"],"id":"6C3DEADD-7425-4592-B5FA-5E22BA604A80","renderContextTable":{"__isSmartRef__":true,"id":3755},"eventHandler":{"__isSmartRef__":true,"id":3756},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3757},"name":"DeathAnimationImage","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3758},"__SourceModuleName__":"Global.lively.morphic.Widgets","moved":true,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_ClipMode":"visible","isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":3748},"#startLetters":"","eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","_Visible":false,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3773},"__LivelyClassName__":"lively.morphic.Image"},"3750":{"_Position":{"__isSmartRef__":true,"id":3751},"renderContextTable":{"__isSmartRef__":true,"id":3752},"_Extent":{"__isSmartRef__":true,"id":3753},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3754},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_1.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"3751":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3752":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"3753":{"x":72,"y":72,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3754":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3755":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3756":{"morph":{"__isSmartRef__":true,"id":3749},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3757":{"x":-12,"y":-12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3758":{"partName":"CoderCharacter","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"An animated character with a Apple Macbook Air, hacking away and looking suspicious. He loves Latté and hacks Rails...he's a real hipster, living in Mission, SF.","changes":[{"__isSmartRef__":true,"id":3759},{"__isSmartRef__":true,"id":3761},{"__isSmartRef__":true,"id":3763},{"__isSmartRef__":true,"id":3765},{"__isSmartRef__":true,"id":3767},{"__isSmartRef__":true,"id":3769},{"__isSmartRef__":true,"id":3771}],"migrationLevel":4,"__SourceModuleName__":"Global.lively.PartsBin","revisionOnLoad":156414,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3759":{"date":{"__isSmartRef__":true,"id":3760},"author":"lauritz","message":"extended his horizon minimally","id":"50EA136D-373D-4B07-9743-671C5D5FD786"},"3760":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:36:11 GMT+0200 (CEST)"},"3761":{"date":{"__isSmartRef__":true,"id":3762},"author":"tessi","message":"typo","id":"C3C7C127-AA94-4893-ACE9-14FE290D4CE1"},"3762":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:33:53 GMT+0200 (CEST)"},"3763":{"date":{"__isSmartRef__":true,"id":3764},"author":"tessi","message":"","id":"F17F7ABD-5B30-4809-9E08-0A11240FCE2B"},"3764":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:32:18 GMT+0200 (CEST)"},"3765":{"date":{"__isSmartRef__":true,"id":3766},"author":"tessi","message":"","id":"AC6C3961-CFFB-4C4A-8769-970359274337"},"3766":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:01:43 GMT+0200 (CEST)"},"3767":{"date":{"__isSmartRef__":true,"id":3768},"author":"tessi","message":"some soliloquize sentences for the awesome coder!","id":"892B001E-626A-4EE7-A217-E88C4E1F6088"},"3768":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:52:20 GMT+0200 (CEST)"},"3769":{"date":{"__isSmartRef__":true,"id":3770},"author":"lauritz","message":"no comment","id":"56F017FB-5032-49A5-A6C0-A856F2AB5B55"},"3770":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:23:49 GMT+0200 (CEST)"},"3771":{"date":{"__isSmartRef__":true,"id":3772},"author":"lauritz","message":"no comment","id":"52EB067D-BE9C-4E05-9599-5B3D0D663B9E"},"3772":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:30:38 GMT+0200 (CEST)"},"3773":{"soliloquize":{"__isSmartRef__":true,"id":3774}},"3774":{"varMapping":{"__isSmartRef__":true,"id":3775},"source":"function soliloquize() {\n this.soloSentences = this.soloSentences || [\n \"Wonder what the new iPony will be like\",\n \"Can i have some Mate pl0x?\",\n \"*click* *clack* *clack*\",\n \"Shouldn't this run faster?\",\n \"Wonder why people use Windows...\",\n \"Lets start a new programming language!\",\n \"Awesome!\",\n \"git rebase to the rescue!\",\n \"Array(16).join(\\\"wat\\\" - 1) + \\\" Batman!\\\"\",\n \"aww. screwed up the pointers\\n.. again!\",\n \"i need horn-rimmed glasses\",\n \"i'm no hipster.\",\n \"can i have a lattai\",\n \"everything you can do i can do better\",\n \"i can do everything better than you\",\n \"i studied at HPI\",\n \"oop is not for everyone\",\n \"it's spring after the java nuclear winter\",\n \"Is the company based in Mission?\",\n \"Who's that Alan Kay dude?\",\n \"I [github] code\"\n ]\n return this.soloSentences[Math.floor(Math.random() * this.soloSentences.length)]\n}","funcProperties":{"__isSmartRef__":true,"id":3776},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3775":{"this":{"__isSmartRef__":true,"id":3749}},"3776":{"timestamp":{"__isSmartRef__":true,"id":3777},"user":"lauritz","tags":[]},"3777":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:35:45 GMT+0200 (CEST)"},"3778":{"position":{"__isSmartRef__":true,"id":3779},"_Extent":{"__isSmartRef__":true,"id":3780},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3781},"_Fill":{"__isSmartRef__":true,"id":3782},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3783},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3784},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3779":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3780":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3781":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3782":{"r":0,"g":0,"b":0,"a":0,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3783":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"3784":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3785":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3786":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph. A really blue one. Its amazing what you can build out of simple boxes.... Who needs stars when you got blue rectangles!","migrationLevel":4,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":3787},{"__isSmartRef__":true,"id":3789},{"__isSmartRef__":true,"id":3791},{"__isSmartRef__":true,"id":3793},{"__isSmartRef__":true,"id":3795},{"__isSmartRef__":true,"id":3797}],"revisionOnLoad":158846,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3787":{"date":{"__isSmartRef__":true,"id":3788},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"3788":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"3789":{"date":{"__isSmartRef__":true,"id":3790},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"3790":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"3791":{"date":{"__isSmartRef__":true,"id":3792},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"3792":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"3793":{"date":{"__isSmartRef__":true,"id":3794},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"3794":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"3795":{"date":{"__isSmartRef__":true,"id":3796},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"3796":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"3797":{"date":{"__isSmartRef__":true,"id":3798},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"3798":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"3799":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3800":{"morph":{"__isSmartRef__":true,"id":3748},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3801":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3802}},"3802":{"test01IsMorph":{"__isSmartRef__":true,"id":3803}},"3803":{"varMapping":{"__isSmartRef__":true,"id":3804},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3805},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3804":{"this":{"__isSmartRef__":true,"id":3801}},"3805":{},"3806":{"die":{"__isSmartRef__":true,"id":3807},"reset":{"__isSmartRef__":true,"id":3810},"nextImage":{"__isSmartRef__":true,"id":3814},"start":{"__isSmartRef__":true,"id":3818}},"3807":{"varMapping":{"__isSmartRef__":true,"id":3808},"source":"function die() {\n this.nextImage()\n if (this.counter === 1) {\n this.character.animate(false);\n this.character.remove()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3809},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3808":{"this":{"__isSmartRef__":true,"id":3748}},"3809":{},"3810":{"varMapping":{"__isSmartRef__":true,"id":3811},"source":"function reset() {\n this.stopStepping()\n this.baseUrl = \"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_\"\n this.counter = 0\n this.image.setPosition(pt(-12,-12))\n this.image.disableEvents()\n this.nextImage()\n this.setPosition(pt(0,0))\n this.setBorderWidth(0)\n this.image.setVisible(false)\n}","funcProperties":{"__isSmartRef__":true,"id":3812},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3811":{"this":{"__isSmartRef__":true,"id":3748}},"3812":{"timestamp":{"__isSmartRef__":true,"id":3813},"user":"timfelgentreff","tags":[]},"3813":{"isSerializedDate":true,"string":"Fri May 04 2012 17:24:17 GMT+0200 (CEST)"},"3814":{"varMapping":{"__isSmartRef__":true,"id":3815},"source":"function nextImage() {\n this.counter = this.counter % 6 + 1\n this.image.setImageURL(this.baseUrl + this.counter + \".png\")\n}","funcProperties":{"__isSmartRef__":true,"id":3816},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3815":{"this":{"__isSmartRef__":true,"id":3748}},"3816":{"timestamp":{"__isSmartRef__":true,"id":3817},"user":"timfelgentreff","tags":[]},"3817":{"isSerializedDate":true,"string":"Fri May 04 2012 17:09:29 GMT+0200 (CEST)"},"3818":{"varMapping":{"__isSmartRef__":true,"id":3819},"source":"function start() {\n this.image.setVisible(true)\n this.startStepping(150, \"die\")\n}","funcProperties":{"__isSmartRef__":true,"id":3820},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3819":{"this":{"__isSmartRef__":true,"id":3748}},"3820":{"timestamp":{"__isSmartRef__":true,"id":3821},"user":"timfelgentreff","tags":[]},"3821":{"isSerializedDate":true,"string":"Fri May 04 2012 17:25:07 GMT+0200 (CEST)"},"3822":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3823},"derivationIds":[null,"2C67266A-A4B7-45B9-A07E-349249D8E3D6","1866B5DE-176E-428D-8316-6E4B0D199C0D","BB78A49E-84AE-47AB-8DBA-57DD832FBE7A","FDD7C748-96A8-4A25-BCBB-A548FD2BEB6D","F7908E3B-0761-47BD-99B4-61822128EF86","E2A6B364-2FF5-4CDC-B74C-0884CB516E97"],"id":"88FC44DD-ED09-46CE-81E8-45734C6D2DD6","renderContextTable":{"__isSmartRef__":true,"id":3828},"eventHandler":{"__isSmartRef__":true,"id":3829},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3830},"name":"OgreCharacter","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3831},"__SourceModuleName__":"Global.lively.morphic.Widgets","moved":true,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_ClipMode":"visible","_Rotation":0,"_Scale":1.002003004005006,"owner":{"__isSmartRef__":true,"id":3691},"eventsAreIgnored":true,"soloSentences":["Awwwwrrrr!","ogre tasty humans eat","*urgs*","Me very hungry. Ogre sad.","... this stone was tasty","things that don't talk, don't taste good","Flowers make ogre ANGRY!","People say ogre stupid. But ogre happy, poeple not","i put programmers on cupboards","fiiiire!!","humans smell, but taste"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3844},"__LivelyClassName__":"lively.morphic.Image"},"3823":{"_Position":{"__isSmartRef__":true,"id":3824},"renderContextTable":{"__isSmartRef__":true,"id":3825},"_Extent":{"__isSmartRef__":true,"id":3826},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3827},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/ogre.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"3824":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3825":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"3826":{"x":72,"y":72,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3827":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3828":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3829":{"morph":{"__isSmartRef__":true,"id":3822},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3830":{"x":-12,"y":-12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3831":{"partName":"OgreCharacter","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"An animated ogre character, who is in desperate search for a toilet or something to eat (any human would propably do well enough for his needs)","changes":[{"__isSmartRef__":true,"id":3832},{"__isSmartRef__":true,"id":3834},{"__isSmartRef__":true,"id":3836},{"__isSmartRef__":true,"id":3838},{"__isSmartRef__":true,"id":3840},{"__isSmartRef__":true,"id":3842}],"migrationLevel":4,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3832":{"date":{"__isSmartRef__":true,"id":3833},"author":"lauritz","message":"no comment","id":"A49B0290-BC2D-4D41-9981-C0207ECC4EE5"},"3833":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:29:57 GMT+0200 (CEST)"},"3834":{"date":{"__isSmartRef__":true,"id":3835},"author":"tessi","message":"an ogre now talks some sentences when soliloquizing","id":"9B52F781-C25B-44D7-B07A-BF47EA424C08"},"3835":{"isSerializedDate":true,"string":"Sat Apr 21 2012 17:34:12 GMT+0200 (CEST)"},"3836":{"date":{"__isSmartRef__":true,"id":3837},"author":"tessi","message":"","id":"27266C01-3C1A-49AC-ADAF-D4699D234741"},"3837":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:23:00 GMT+0200 (CEST)"},"3838":{"date":{"__isSmartRef__":true,"id":3839},"author":"tessi","message":"","id":"037D4B98-0FC3-4F01-AAC5-1A7043695CDF"},"3839":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:42:21 GMT+0200 (CEST)"},"3840":{"date":{"__isSmartRef__":true,"id":3841},"author":"tessi","message":"some more sentences for our lovely ogre","id":"CAA81E8E-2A04-4B19-A2A3-BDC1DE903D07"},"3841":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:41:46 GMT+0200 (CEST)"},"3842":{"date":{"__isSmartRef__":true,"id":3843},"author":"lauritz","message":"i've got to tell a thing or two","id":"70436981-18DC-4F38-8140-749232838288"},"3843":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:36:29 GMT+0200 (CEST)"},"3844":{"soliloquize":{"__isSmartRef__":true,"id":3845}},"3845":{"varMapping":{"__isSmartRef__":true,"id":3846},"source":"function soliloquize() {\n this.soloSentences = this.soloSentences || [\n \"Awwwwrrrr!\",\n \"ogre tasty humans eat\",\n \"*urgs*\",\n \"Me very hungry. Ogre sad.\",\n \"... this stone was tasty\",\n \"things that don't talk, don't taste good\",\n \"Flowers make ogre ANGRY!\",\n \"People say ogre stupid. But ogre happy, poeple not\",\n \"i put programmers on cupboards\",\n \"fiiiire!!\",\n \"humans smell, but taste\"\n ]\n return this.soloSentences[Math.floor(Math.random() * this.soloSentences.length)]\n}","funcProperties":{"__isSmartRef__":true,"id":3847},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3846":{"this":{"__isSmartRef__":true,"id":3822}},"3847":{"timestamp":{"__isSmartRef__":true,"id":3848},"user":"lauritz","tags":[]},"3848":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:26:22 GMT+0200 (CEST)"},"3849":{"submorphs":[{"__isSmartRef__":true,"id":3850}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3872},"id":"F33F112F-EE94-44A9-A405-8FEE4144192E","renderContextTable":{"__isSmartRef__":true,"id":3879},"eventHandler":{"__isSmartRef__":true,"id":3880},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":3881},"__SourceModuleName__":"Global.lively.morphic.Core","showsHalos":false,"layout":{"__isSmartRef__":true,"id":3882},"name":"TextBubble2","partsBinMetaInfo":{"__isSmartRef__":true,"id":3883},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","DE7B4D82-53D6-47AB-B640-FF3635F70AA7","99C53948-AA15-4796-B491-DB674F1EE087","58EDE5FE-6BAF-448F-B9DB-E94E1A69C992","2325F322-A469-433D-8288-7419BADD05F5"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_ClipMode":"visible","isBeingDragged":false,"text":{"__isSmartRef__":true,"id":3850},"isCopyMorphRef":true,"morphRefId":1,"_Visible":false,"moved":true,"_Rotation":0,"_Scale":1,"owner":{"__isSmartRef__":true,"id":3691},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3894},"__LivelyClassName__":"lively.morphic.Morph"},"3850":{"submorphs":[],"scripts":[],"id":"6E6CE72A-931A-42D6-A15F-5BEB4A499A49","shape":{"__isSmartRef__":true,"id":3851},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3857},"_MaxTextWidth":null,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":3854},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Text","partsBinMetaInfo":{"__isSmartRef__":true,"id":3858},"textChunks":[{"__isSmartRef__":true,"id":3865}],"charsReplaced":"s","lastFindLoc":6,"prevScroll":[0,0],"renderContextTable":{"__isSmartRef__":true,"id":3867},"eventHandler":{"__isSmartRef__":true,"id":3868},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Padding":{"__isSmartRef__":true,"id":3869},"_ClipMode":"none","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","ECCF99AE-9763-4D68-9C21-0B5A520DB15D","2EA15529-B8A7-4D60-BAE3-8E14E934A428","3A910B2E-EF96-4264-95AF-E82F57C6DBFD","506A72F2-95FC-4677-B6D2-03CA2EC46DBB"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":null,"_MinTextHeight":null,"previousSelection":[2,2],"owner":{"__isSmartRef__":true,"id":3849},"isBeingDragged":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":3870},"isLabel":true,"_HandStyle":"default","allowInput":false,"eventsAreIgnored":true,"layout":{"__isSmartRef__":true,"id":3871},"_Rotation":0,"_Scale":1.002003004005006,"__LivelyClassName__":"lively.morphic.Text"},"3851":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3852},"_Extent":{"__isSmartRef__":true,"id":3853},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3854},"renderContextTable":{"__isSmartRef__":true,"id":3855},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3856},"_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3852":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3853":{"x":252,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3854":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3855":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"3856":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3857":{"x":-28,"y":-42,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3858":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3859},{"__isSmartRef__":true,"id":3861},{"__isSmartRef__":true,"id":3863}],"revisionOnLoad":154217,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3859":{"date":{"__isSmartRef__":true,"id":3860},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"3860":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"3861":{"date":{"__isSmartRef__":true,"id":3862},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"3862":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"3863":{"date":{"__isSmartRef__":true,"id":3864},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"3864":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"3865":{"style":{"__isSmartRef__":true,"id":3866},"chunkOwner":{"__isSmartRef__":true,"id":3850},"_id":"_859","storedString":"Flowers make ogre ANGRY!","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3866":{"whiteSpace":"pre","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3867":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"3868":{"morph":{"__isSmartRef__":true,"id":3850},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3869":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3870":{"x":66,"y":-19,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3871":{"centeredHorizontal":true,"centeredVertical":true,"adjustForNewBounds":true},"3872":{"_Position":{"__isSmartRef__":true,"id":3873},"renderContextTable":{"__isSmartRef__":true,"id":3874},"_Extent":{"__isSmartRef__":true,"id":3875},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3876},"_BorderWidth":2.444,"_BorderColor":{"__isSmartRef__":true,"id":3877},"_Fill":{"__isSmartRef__":true,"id":3878},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"_Opacity":0.6818000000000001,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Ellipse"},"3873":{"x":-50,"y":-50,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3874":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"3875":{"x":302,"y":47,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3876":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3877":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3878":{"r":0.921,"g":0.921,"b":0.921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3879":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3880":{"morph":{"__isSmartRef__":true,"id":3849},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3881":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3882":{"resizeWidth":true,"resizeHeight":true},"3883":{"partName":"TextBubble","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/FreedomOfSpeech","__SourceModuleName__":"Global.lively.PartsBin","comment":"A little text bubble with a say(\"string\") method","changes":[{"__isSmartRef__":true,"id":3884},{"__isSmartRef__":true,"id":3886},{"__isSmartRef__":true,"id":3888},{"__isSmartRef__":true,"id":3890},{"__isSmartRef__":true,"id":3892}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3884":{"date":{"__isSmartRef__":true,"id":3885},"author":"tessi","message":"Fix multiline text and text wrapping bugs; added reset() function","id":"F30F2C0C-BE12-4128-A871-336DBCFEA0E4"},"3885":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:18:14 GMT+0200 (CEST)"},"3886":{"date":{"__isSmartRef__":true,"id":3887},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"3887":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"3888":{"date":{"__isSmartRef__":true,"id":3889},"author":"tessi","message":"no comment","id":"F0B6C1B2-B5D8-4250-9126-12195350AC31"},"3889":{"isSerializedDate":true,"string":"Fri Apr 20 2012 23:58:32 GMT+0200 (CEST)"},"3890":{"date":{"__isSmartRef__":true,"id":3891},"author":"tessi","message":"let TextBubble disappear when nothing was said some tim","id":"10474226-7FE2-4BFB-AEA5-365C537C3666"},"3891":{"isSerializedDate":true,"string":"Sat Apr 21 2012 11:49:01 GMT+0200 (CEST)"},"3892":{"date":{"__isSmartRef__":true,"id":3893},"author":"tessi","message":"added hide() method","id":"D8F1C9C7-279C-441E-85C1-1F6BBC58E311"},"3893":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:15:55 GMT+0200 (CEST)"},"3894":{"say":{"__isSmartRef__":true,"id":3895},"showBubbleTime":{"__isSmartRef__":true,"id":3899},"disappear":{"__isSmartRef__":true,"id":3903},"reset":{"__isSmartRef__":true,"id":3907},"hide":{"__isSmartRef__":true,"id":3911}},"3895":{"varMapping":{"__isSmartRef__":true,"id":3896},"source":"function say(aString) {\n var textExtent, _this = this\n if (aString !== undefined ) {\n this.text.setTextString(aString)\n } else {\n this.text.setTextString(\"TextBubble\")\n }\n this.text.getTextChunks().first().styleText({whiteSpace: \"pre\"})\n this.text.fit()\n textExtent = this.text.getExtent()\n textExtent.y = this.text.getTextChunks().first().chunkNode.parentElement.scrollHeight\n this.setExtent(pt(textExtent.x + 50, textExtent.y + 25))\n this.setVisible(true)\n if (aString !== undefined ) {\n window.setTimeout(function(){ _this.disappear(aString) }, this.showBubbleTime())\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3897},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3896":{"this":{"__isSmartRef__":true,"id":3849}},"3897":{"timestamp":{"__isSmartRef__":true,"id":3898},"user":"tessi","tags":[]},"3898":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:16:26 GMT+0200 (CEST)"},"3899":{"varMapping":{"__isSmartRef__":true,"id":3900},"source":"function showBubbleTime() {\n return 6000\n}","funcProperties":{"__isSmartRef__":true,"id":3901},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3900":{"this":{"__isSmartRef__":true,"id":3849}},"3901":{"timestamp":{"__isSmartRef__":true,"id":3902},"user":"timfelgentreff","tags":[]},"3902":{"isSerializedDate":true,"string":"Sat May 05 2012 19:26:43 GMT+0200 (CEST)"},"3903":{"varMapping":{"__isSmartRef__":true,"id":3904},"source":"function disappear(oldText) {\n if (this.text.getTextString() == oldText) {\n this.hide()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3905},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3904":{"this":{"__isSmartRef__":true,"id":3849}},"3905":{"timestamp":{"__isSmartRef__":true,"id":3906},"user":"tessi","tags":[]},"3906":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:15:35 GMT+0200 (CEST)"},"3907":{"varMapping":{"__isSmartRef__":true,"id":3908},"source":"function reset() {\n this.say()\n}","funcProperties":{"__isSmartRef__":true,"id":3909},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3908":{"this":{"__isSmartRef__":true,"id":3849}},"3909":{"timestamp":{"__isSmartRef__":true,"id":3910},"user":"tessi","tags":[]},"3910":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:17:22 GMT+0200 (CEST)"},"3911":{"varMapping":{"__isSmartRef__":true,"id":3912},"source":"function hide() {\n this.setVisible(false)\n}","funcProperties":{"__isSmartRef__":true,"id":3913},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3912":{"this":{"__isSmartRef__":true,"id":3849}},"3913":{"timestamp":{"__isSmartRef__":true,"id":3914},"user":"tessi","tags":[]},"3914":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:15:24 GMT+0200 (CEST)"},"3915":{"target":{"__isSmartRef__":true,"id":3691},"selector":"doSomething","args":[{"__isSmartRef__":true,"id":3916}],"stopped":false,"tickTime":3000,"__SourceModuleName__":"Global.lively.morphic.Core","suspended":false,"__LivelyClassName__":"lively.morphic.TargetScript"},"3916":{},"3917":{"target":{"__isSmartRef__":true,"id":3691},"selector":"aStarWalkPath","args":[[{"__isSmartRef__":true,"id":3672}]],"stopped":true,"tickTime":10,"__SourceModuleName__":"Global.lively.morphic.Core","suspended":false,"__LivelyClassName__":"lively.morphic.TargetScript"},"3918":{"_Position":{"__isSmartRef__":true,"id":3919},"renderContextTable":{"__isSmartRef__":true,"id":3920},"_Extent":{"__isSmartRef__":true,"id":3921},"_Padding":{"__isSmartRef__":true,"id":3922},"_NodeClass":["Morph","Box"],"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":3923},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3919":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3920":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"3921":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3922":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3923":{"r":0,"g":0,"b":0,"a":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3924":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"3925":{"morph":{"__isSmartRef__":true,"id":3691},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3926":{"x":192,"y":288,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3927":{"partsSpaceName":"PartsBin/FreedomOfSpeech","__SourceModuleName__":"Global.lively.PartsBin","comment":"A character is a moving, talking unit/player/movable/NPC/villager","migrationLevel":4,"partName":"Character","changes":[{"__isSmartRef__":true,"id":3928},{"__isSmartRef__":true,"id":3930},{"__isSmartRef__":true,"id":3932},{"__isSmartRef__":true,"id":3934},{"__isSmartRef__":true,"id":3936},{"__isSmartRef__":true,"id":3938},{"__isSmartRef__":true,"id":3940},{"__isSmartRef__":true,"id":3942},{"__isSmartRef__":true,"id":3944},{"__isSmartRef__":true,"id":3946},{"__isSmartRef__":true,"id":3948},{"__isSmartRef__":true,"id":3950},{"__isSmartRef__":true,"id":3952},{"__isSmartRef__":true,"id":3954},{"__isSmartRef__":true,"id":3956},{"__isSmartRef__":true,"id":3958},{"__isSmartRef__":true,"id":3960},{"__isSmartRef__":true,"id":3962},{"__isSmartRef__":true,"id":3964},{"__isSmartRef__":true,"id":3966},{"__isSmartRef__":true,"id":3968},{"__isSmartRef__":true,"id":3970},{"__isSmartRef__":true,"id":3972},{"__isSmartRef__":true,"id":3974},{"__isSmartRef__":true,"id":3976},{"__isSmartRef__":true,"id":3978},{"__isSmartRef__":true,"id":3980},{"__isSmartRef__":true,"id":3982},{"__isSmartRef__":true,"id":3984},{"__isSmartRef__":true,"id":3986},{"__isSmartRef__":true,"id":3988},{"__isSmartRef__":true,"id":3990},{"__isSmartRef__":true,"id":3992},{"__isSmartRef__":true,"id":3994},{"__isSmartRef__":true,"id":3996},{"__isSmartRef__":true,"id":3998},{"__isSmartRef__":true,"id":4000},{"__isSmartRef__":true,"id":4002},{"__isSmartRef__":true,"id":4004},{"__isSmartRef__":true,"id":4006},{"__isSmartRef__":true,"id":4008},{"__isSmartRef__":true,"id":4010},{"__isSmartRef__":true,"id":4012},{"__isSmartRef__":true,"id":4014},{"__isSmartRef__":true,"id":4016},{"__isSmartRef__":true,"id":4018},{"__isSmartRef__":true,"id":4020},{"__isSmartRef__":true,"id":4022},{"__isSmartRef__":true,"id":4024},{"__isSmartRef__":true,"id":4026},{"__isSmartRef__":true,"id":4028},{"__isSmartRef__":true,"id":4030},{"__isSmartRef__":true,"id":4032},{"__isSmartRef__":true,"id":4034},{"__isSmartRef__":true,"id":4036},{"__isSmartRef__":true,"id":4038},{"__isSmartRef__":true,"id":4040},{"__isSmartRef__":true,"id":4042},{"__isSmartRef__":true,"id":4044},{"__isSmartRef__":true,"id":4046},{"__isSmartRef__":true,"id":4048},{"__isSmartRef__":true,"id":4050},{"__isSmartRef__":true,"id":4052},{"__isSmartRef__":true,"id":4054},{"__isSmartRef__":true,"id":4056},{"__isSmartRef__":true,"id":4058},{"__isSmartRef__":true,"id":4060},{"__isSmartRef__":true,"id":4062},{"__isSmartRef__":true,"id":4064},{"__isSmartRef__":true,"id":4066},{"__isSmartRef__":true,"id":4068},{"__isSmartRef__":true,"id":4070},{"__isSmartRef__":true,"id":4072},{"__isSmartRef__":true,"id":4074},{"__isSmartRef__":true,"id":4076},{"__isSmartRef__":true,"id":4078},{"__isSmartRef__":true,"id":4080},{"__isSmartRef__":true,"id":4082},{"__isSmartRef__":true,"id":4084},{"__isSmartRef__":true,"id":4086},{"__isSmartRef__":true,"id":4088},{"__isSmartRef__":true,"id":4090},{"__isSmartRef__":true,"id":4092},{"__isSmartRef__":true,"id":4094},{"__isSmartRef__":true,"id":4096},{"__isSmartRef__":true,"id":4098},{"__isSmartRef__":true,"id":4100},{"__isSmartRef__":true,"id":4102},{"__isSmartRef__":true,"id":4104},{"__isSmartRef__":true,"id":4106},{"__isSmartRef__":true,"id":4108},{"__isSmartRef__":true,"id":4110},{"__isSmartRef__":true,"id":4112},{"__isSmartRef__":true,"id":4114},{"__isSmartRef__":true,"id":4116},{"__isSmartRef__":true,"id":4118},{"__isSmartRef__":true,"id":4120},{"__isSmartRef__":true,"id":4122},{"__isSmartRef__":true,"id":4124},{"__isSmartRef__":true,"id":4126},{"__isSmartRef__":true,"id":4128},{"__isSmartRef__":true,"id":4130},{"__isSmartRef__":true,"id":4132},{"__isSmartRef__":true,"id":4134},{"__isSmartRef__":true,"id":4136},{"__isSmartRef__":true,"id":4138},{"__isSmartRef__":true,"id":4140},{"__isSmartRef__":true,"id":4142},{"__isSmartRef__":true,"id":4144}],"requiredModules":["projects.WebDev2012.Telautim.js.chatbot"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3928":{"date":{"__isSmartRef__":true,"id":3929},"author":"lauritz","message":"fixed shuffling of answer possibilities in debates.","id":"1B6E19E3-2737-4598-A8E3-FEAAFC8BFF48"},"3929":{"isSerializedDate":true,"string":"Mon May 07 2012 19:20:25 GMT+0200 (CEST)"},"3930":{"date":{"__isSmartRef__":true,"id":3931},"author":"lauritz","message":"no comment","id":"AF6C3CC5-9EAB-4F84-A91F-F90E8EF1571C"},"3931":{"isSerializedDate":true,"string":"Mon May 07 2012 10:58:34 GMT+0200 (CEST)"},"3932":{"date":{"__isSmartRef__":true,"id":3933},"author":"timfelgentreff","message":"remove character for death animation","id":"679D5E2B-8559-414E-B9BE-3E7840EF084F"},"3933":{"isSerializedDate":true,"string":"Sat May 05 2012 13:06:37 GMT+0200 (CEST)"},"3934":{"date":{"__isSmartRef__":true,"id":3935},"author":"timfelgentreff","message":"little harder npc fights","id":"F28D1CA1-D307-4F2B-BF97-119E2A107B70"},"3935":{"isSerializedDate":true,"string":"Sat May 05 2012 13:04:37 GMT+0200 (CEST)"},"3936":{"date":{"__isSmartRef__":true,"id":3937},"author":"timfelgentreff","message":"make fights easier","id":"C707BCA9-92E4-43E6-95D4-22B840F322AE"},"3937":{"isSerializedDate":true,"string":"Sat May 05 2012 12:59:25 GMT+0200 (CEST)"},"3938":{"date":{"__isSmartRef__":true,"id":3939},"author":"timfelgentreff","message":"talk timeout in fights needs to be closer to text bubble timeout","id":"139B596D-D4BF-4A12-B177-BC7D3AA516D1"},"3939":{"isSerializedDate":true,"string":"Sat May 05 2012 12:58:15 GMT+0200 (CEST)"},"3940":{"date":{"__isSmartRef__":true,"id":3941},"author":"timfelgentreff","message":"remove menu after choosing","id":"98432B46-2F70-48EF-B357-56F419789F63"},"3941":{"isSerializedDate":true,"string":"Sat May 05 2012 12:54:26 GMT+0200 (CEST)"},"3942":{"date":{"__isSmartRef__":true,"id":3943},"author":"timfelgentreff","message":"add fighting, isDead and healing","id":"49162D76-8BAB-4488-9D81-6C5F3F9E9A7B"},"3943":{"isSerializedDate":true,"string":"Sat May 05 2012 12:38:51 GMT+0200 (CEST)"},"3944":{"date":{"__isSmartRef__":true,"id":3945},"author":"timfelgentreff","message":"support directions for the player animations","id":"69DE1485-AECF-45C1-9777-18ED9ADE260C"},"3945":{"isSerializedDate":true,"string":"Fri May 04 2012 17:37:43 GMT+0200 (CEST)"},"3946":{"date":{"__isSmartRef__":true,"id":3947},"author":"tessi","message":" normal border color is transparent","id":"F921DA1B-4626-4B18-953B-5E402B28F855"},"3947":{"isSerializedDate":true,"string":"Thu May 03 2012 15:26:05 GMT+0200 (CEST)"},"3948":{"date":{"__isSmartRef__":true,"id":3949},"author":"tessi","message":"have a chatbot","id":"358609CE-869C-4C32-8159-077252DCA5AF"},"3949":{"isSerializedDate":true,"string":"Thu May 03 2012 15:10:55 GMT+0200 (CEST)"},"3950":{"date":{"__isSmartRef__":true,"id":3951},"author":"tessi","message":"require module chatbot","id":"014ABA59-3301-4F2C-9D20-05859045AB5F"},"3951":{"isSerializedDate":true,"string":"Thu May 03 2012 15:00:31 GMT+0200 (CEST)"},"3952":{"date":{"__isSmartRef__":true,"id":3953},"author":"timfelgentreff","message":"implement walking for A*","id":"0F3AA4B2-39C6-4CBA-A410-72E9D6DD310A"},"3953":{"isSerializedDate":true,"string":"Thu May 03 2012 12:38:15 GMT+0200 (CEST)"},"3954":{"date":{"__isSmartRef__":true,"id":3955},"author":"lauritz","message":"no comment","id":"882374DC-58F6-413A-A909-04B4B9FC0213"},"3955":{"isSerializedDate":true,"string":"Wed May 02 2012 17:43:13 GMT+0200 (CEST)"},"3956":{"date":{"__isSmartRef__":true,"id":3957},"author":"lauritz","message":"yellow border color in dev mode, distinguishes character and tile","id":"CD0BE784-3A0A-4F31-BD29-A7B23BB4D110"},"3957":{"isSerializedDate":true,"string":"Fri Apr 27 2012 13:57:02 GMT+0200 (CEST)"},"3958":{"date":{"__isSmartRef__":true,"id":3959},"author":"tessi","message":"","id":"2AB48789-9884-4B49-BE6D-9F6B05F91FC1"},"3959":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:32:08 GMT+0200 (CEST)"},"3960":{"date":{"__isSmartRef__":true,"id":3961},"author":"tessi","message":"","id":"2756AB2C-8345-4A1A-9D5E-2A837C5BCF19"},"3961":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:27:05 GMT+0200 (CEST)"},"3962":{"date":{"__isSmartRef__":true,"id":3963},"author":"tessi","message":"fix setTimeout bug","id":"6A244DDE-DA87-4360-BE58-3D50E455AD3D"},"3963":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:23:14 GMT+0200 (CEST)"},"3964":{"date":{"__isSmartRef__":true,"id":3965},"author":"timfelgentreff","message":"no comment","id":"06241D99-F4AF-4997-BEF5-A05CAB5516FA"},"3965":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:54:14 GMT+0200 (CEST)"},"3966":{"date":{"__isSmartRef__":true,"id":3967},"author":"tessi","message":"isBusy = false when starting a conversation failed","id":"B91EF496-BC58-49B4-AA5D-B0296829A331"},"3967":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:38:18 GMT+0200 (CEST)"},"3968":{"date":{"__isSmartRef__":true,"id":3969},"author":"tessi","message":"have a default-goodbye in answer() and proxy answer-call to character-type if possible","id":"E7051C47-72C5-4F41-A7EE-5D843B84CD5C"},"3969":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:33:56 GMT+0200 (CEST)"},"3970":{"date":{"__isSmartRef__":true,"id":3971},"author":"tessi","message":"conversation","id":"92D475C5-8AFA-4704-B31A-E0323A2F80CA"},"3971":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:29:27 GMT+0200 (CEST)"},"3972":{"date":{"__isSmartRef__":true,"id":3973},"author":"tessi","message":"typo","id":"651358CA-816D-45A4-A6D4-EDDE6445D105"},"3973":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:30:15 GMT+0200 (CEST)"},"3974":{"date":{"__isSmartRef__":true,"id":3975},"author":"tessi","message":"do not take a callback anymore for walkUntilReached","id":"5E146087-30CB-4C83-9B6F-0805908CFD24"},"3975":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:26:11 GMT+0200 (CEST)"},"3976":{"date":{"__isSmartRef__":true,"id":3977},"author":"tessi","message":"character now leaves and enters a tile when walking","id":"86E09CBB-9697-4065-B4D7-38130EA26F03"},"3977":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:04 GMT+0200 (CEST)"},"3978":{"date":{"__isSmartRef__":true,"id":3979},"author":"lauritz","message":"added shadow copy to characters as well","id":"D0B45A60-90FD-405B-8410-02E39C2766FB"},"3979":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:26:12 GMT+0200 (CEST)"},"3980":{"date":{"__isSmartRef__":true,"id":3981},"author":"tessi","message":"do not setup when comitting a character","id":"998DCFDD-7C21-486F-8873-EB500F5D828C"},"3981":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:40:44 GMT+0200 (CEST)"},"3982":{"date":{"__isSmartRef__":true,"id":3983},"author":"tessi","message":"reset isBusy flag when resetting","id":"1C10FA19-01A5-4A0F-9660-E714888E1632"},"3983":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:16:55 GMT+0200 (CEST)"},"3984":{"date":{"__isSmartRef__":true,"id":3985},"author":"tessi","message":"only do something every 3 seconds","id":"380054EE-6F1F-4DCC-BBE1-0A3F3C041652"},"3985":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:49:26 GMT+0200 (CEST)"},"3986":{"date":{"__isSmartRef__":true,"id":3987},"author":"tessi","message":"remove textBubble on reset","id":"F1B5D5ED-7465-4842-8AE8-0D2D5EFEC89D"},"3987":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:31:17 GMT+0200 (CEST)"},"3988":{"date":{"__isSmartRef__":true,"id":3989},"author":"tessi","message":"did a reset","id":"D90F8A53-5943-4780-A68C-03A9795959BD"},"3989":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:28:31 GMT+0200 (CEST)"},"3990":{"date":{"__isSmartRef__":true,"id":3991},"author":"tessi","message":"do not soliloquize too often","id":"C7DF35C3-3829-4869-973A-BF8329278BDD"},"3991":{"isSerializedDate":true,"string":"Sat Apr 21 2012 13:31:17 GMT+0200 (CEST)"},"3992":{"date":{"__isSmartRef__":true,"id":3993},"author":"tessi","message":"add animation loop","id":"05FA5AFA-66B9-4E5E-A2AE-D0F798FE2F8C"},"3993":{"isSerializedDate":true,"string":"Sat Apr 21 2012 13:22:56 GMT+0200 (CEST)"},"3994":{"date":{"__isSmartRef__":true,"id":3995},"author":"tessi","message":"a character may not soliloquize (talk to himself)","id":"094BB96A-4E2B-4839-A378-B59C9CECF2B4"},"3995":{"isSerializedDate":true,"string":"Sat Apr 21 2012 12:36:08 GMT+0200 (CEST)"},"3996":{"date":{"__isSmartRef__":true,"id":3997},"author":"tessi","message":"do a copy() when getting the text bubble","id":"F94DDE8C-9992-4552-82AF-40B62EC980C7"},"3997":{"isSerializedDate":true,"string":"Sat Apr 21 2012 12:25:58 GMT+0200 (CEST)"},"3998":{"date":{"__isSmartRef__":true,"id":3999},"author":"tessi","message":"Added functionality to say something - this.say(\"Foo!\")","id":"D3310A2C-9375-4910-8AD0-1624086A18C5"},"3999":{"isSerializedDate":true,"string":"Sat Apr 21 2012 12:21:54 GMT+0200 (CEST)"},"4000":{"date":{"__isSmartRef__":true,"id":4001},"author":"tessi","message":"cached character names list in becomeRandomCharacter","id":"F24125F0-9BEE-4CB9-8919-4184B4237A23"},"4001":{"isSerializedDate":true,"string":"Sat Apr 21 2012 12:06:32 GMT+0200 (CEST)"},"4002":{"date":{"__isSmartRef__":true,"id":4003},"author":"tessi","message":"Do not throw error on left click if the character is not within a game","id":"8B76A606-75E7-44F9-81B3-4A7D32710930"},"4003":{"isSerializedDate":true,"string":"Sat Apr 21 2012 11:53:06 GMT+0200 (CEST)"},"4004":{"date":{"__isSmartRef__":true,"id":4005},"author":"timfelgentreff","message":"","id":"F897DF97-32A2-4CE7-9A35-53212D4A26E3"},"4005":{"isSerializedDate":true,"string":"Thu Apr 19 2012 18:03:29 GMT+0200 (CEST)"},"4006":{"date":{"__isSmartRef__":true,"id":4007},"author":"timfelgentreff","message":"","id":"A38CB8F1-BDF4-452A-A4D3-860ADFB0C56B"},"4007":{"isSerializedDate":true,"string":"Thu Apr 19 2012 18:03:05 GMT+0200 (CEST)"},"4008":{"date":{"__isSmartRef__":true,"id":4009},"author":"timfelgentreff","message":"","id":"7EF9C9F0-6D1A-4EEC-A4C7-E8413604B1F8"},"4009":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:20:32 GMT+0200 (CEST)"},"4010":{"date":{"__isSmartRef__":true,"id":4011},"author":"timfelgentreff","message":"","id":"48990527-46C3-4754-B62F-86A06C3683E4"},"4011":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:15:33 GMT+0200 (CEST)"},"4012":{"date":{"__isSmartRef__":true,"id":4013},"author":"timfelgentreff","message":"","id":"A801296C-B767-4752-9C39-B91FC2CB09D1"},"4013":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:14:30 GMT+0200 (CEST)"},"4014":{"date":{"__isSmartRef__":true,"id":4015},"author":"timfelgentreff","message":"","id":"110ED1B9-D63C-4832-A17C-48410A99EBE8"},"4015":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:06:44 GMT+0200 (CEST)"},"4016":{"date":{"__isSmartRef__":true,"id":4017},"author":"timfelgentreff","message":"","id":"FB4CEBF9-0379-4033-A173-5297EFC0B5BE"},"4017":{"isSerializedDate":true,"string":"Thu Apr 19 2012 15:44:05 GMT+0200 (CEST)"},"4018":{"date":{"__isSmartRef__":true,"id":4019},"author":"timfelgentreff","message":"","id":"268C27C2-3DAB-4D17-AB4F-8319341CBE51"},"4019":{"isSerializedDate":true,"string":"Thu Apr 19 2012 15:14:35 GMT+0200 (CEST)"},"4020":{"date":{"__isSmartRef__":true,"id":4021},"author":"timfelgentreff","message":"","id":"EA0606B9-830C-4424-9950-55893DCE4622"},"4021":{"isSerializedDate":true,"string":"Thu Apr 19 2012 15:03:33 GMT+0200 (CEST)"},"4022":{"date":{"__isSmartRef__":true,"id":4023},"author":"timfelgentreff","message":"","id":"77F93C94-EAD5-4F89-AA8A-E4102AAEC3CB"},"4023":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:23:21 GMT+0200 (CEST)"},"4024":{"date":{"__isSmartRef__":true,"id":4025},"author":"timfelgentreff","message":"","id":"4F98DE4B-29D4-46EF-8F3F-277038AE57A2"},"4025":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:03:58 GMT+0200 (CEST)"},"4026":{"date":{"__isSmartRef__":true,"id":4027},"author":"timfelgentreff","message":"","id":"B5F2B437-806A-447F-B407-7C5FFCE479B0"},"4027":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:01:02 GMT+0200 (CEST)"},"4028":{"date":{"__isSmartRef__":true,"id":4029},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"4029":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"4030":{"date":{"__isSmartRef__":true,"id":4031},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"4031":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"4032":{"date":{"__isSmartRef__":true,"id":4033},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"4033":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"4034":{"date":{"__isSmartRef__":true,"id":4035},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"4035":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"4036":{"date":{"__isSmartRef__":true,"id":4037},"author":"timfelgentreff","message":"","id":"6B60055B-55B1-4E2A-AD9C-FA5408E28AB7"},"4037":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:29:52 GMT+0200 (CEST)"},"4038":{"date":{"__isSmartRef__":true,"id":4039},"author":"timfelgentreff","message":"","id":"85BC7627-55A6-4E30-B13F-1227C9196849"},"4039":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:17:51 GMT+0200 (CEST)"},"4040":{"date":{"__isSmartRef__":true,"id":4041},"author":"timfelgentreff","message":"","id":"0FED5A50-603F-474D-BAB3-3D252B7C0D12"},"4041":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:24:02 GMT+0200 (CEST)"},"4042":{"date":{"__isSmartRef__":true,"id":4043},"author":"timfelgentreff","message":"","id":"158C6E00-18B6-4CB2-9E5F-D99927550506"},"4043":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:11:41 GMT+0200 (CEST)"},"4044":{"date":{"__isSmartRef__":true,"id":4045},"author":"timfelgentreff","message":"","id":"D5B99567-984F-4ED8-86EF-7314F0876EF1"},"4045":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:20:46 GMT+0200 (CEST)"},"4046":{"date":{"__isSmartRef__":true,"id":4047},"author":"timfelgentreff","message":"","id":"74ECE854-1AF0-4527-8FAD-52DA991B5F48"},"4047":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:28:31 GMT+0200 (CEST)"},"4048":{"date":{"__isSmartRef__":true,"id":4049},"author":"timfelgentreff","message":"","id":"F0A0187B-50D8-410C-BA09-0AE944E5BAC2"},"4049":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:29:41 GMT+0200 (CEST)"},"4050":{"date":{"__isSmartRef__":true,"id":4051},"author":"timfelgentreff","message":"","id":"84662911-A76F-443A-A285-71B3ECEEF099"},"4051":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:37:03 GMT+0200 (CEST)"},"4052":{"date":{"__isSmartRef__":true,"id":4053},"author":"timfelgentreff","message":"","id":"5193293E-D9DE-406D-AD6A-589A904409FE"},"4053":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:54:23 GMT+0200 (CEST)"},"4054":{"date":{"__isSmartRef__":true,"id":4055},"author":"timfelgentreff","message":"","id":"42D19C5A-8D17-4352-B10F-D69925A338CF"},"4055":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:07:22 GMT+0200 (CEST)"},"4056":{"date":{"__isSmartRef__":true,"id":4057},"author":"timfelgentreff","message":"","id":"7A79A18C-B093-44EA-8522-7A3D2013F7F9"},"4057":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:12:47 GMT+0200 (CEST)"},"4058":{"date":{"__isSmartRef__":true,"id":4059},"author":"timfelgentreff","message":"","id":"BB97EFD5-248F-4B83-A177-F68CC9FE7744"},"4059":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:10:09 GMT+0200 (CEST)"},"4060":{"date":{"__isSmartRef__":true,"id":4061},"author":"timfelgentreff","message":"","id":"29A66B5D-C073-40D0-B445-4B92C0315243"},"4061":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:11:14 GMT+0200 (CEST)"},"4062":{"date":{"__isSmartRef__":true,"id":4063},"author":"timfelgentreff","message":"","id":"45A004C9-FD27-4FDD-8910-03240CEDBB33"},"4063":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:13:43 GMT+0200 (CEST)"},"4064":{"date":{"__isSmartRef__":true,"id":4065},"author":"timfelgentreff","message":"","id":"4D440D8C-20BF-4088-A05C-48ADE0376E9C"},"4065":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:33:42 GMT+0200 (CEST)"},"4066":{"date":{"__isSmartRef__":true,"id":4067},"author":"timfelgentreff","message":"","id":"F496AFC6-959F-4EC9-AED3-0CACA9686C50"},"4067":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:50:45 GMT+0200 (CEST)"},"4068":{"date":{"__isSmartRef__":true,"id":4069},"author":"timfelgentreff","message":"game loop implemented","id":"5F56A7B0-C894-4B53-99EA-23CA74E07649"},"4069":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:19:13 GMT+0200 (CEST)"},"4070":{"date":{"__isSmartRef__":true,"id":4071},"author":"timfelgentreff","message":"","id":"8B2931F8-644C-441D-8ED0-1055AC1A8466"},"4071":{"isSerializedDate":true,"string":"Thu Apr 19 2012 18:09:54 GMT+0200 (CEST)"},"4072":{"date":{"__isSmartRef__":true,"id":4073},"author":"timfelgentreff","message":"use convenience method to get all the character names from the Game","id":"64A0DAD1-6DCA-4A5E-A1C4-1245B5142904"},"4073":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:25:05 GMT+0200 (CEST)"},"4074":{"date":{"__isSmartRef__":true,"id":4075},"author":"tessi","message":"do not talk if aString is undefined or null","id":"6CC7D989-E7E7-455A-9548-6E11E062868C"},"4075":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:42:15 GMT+0200 (CEST)"},"4076":{"date":{"__isSmartRef__":true,"id":4077},"author":"tessi","message":"fixed bug: error when aString and textBubble was both undefined","id":"B7C5702A-5A72-4B4E-8495-6C7091FB90E7"},"4077":{"isSerializedDate":true,"string":"Mon Apr 23 2012 16:08:46 GMT+0200 (CEST)"},"4078":{"date":{"__isSmartRef__":true,"id":4079},"author":"tessi","message":"reset() sets devStyle; replace get() calls with map() and game()","id":"632B5695-D5F1-4549-A4C4-57118B5CC18C"},"4079":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:23:43 GMT+0200 (CEST)"},"4080":{"date":{"__isSmartRef__":true,"id":4081},"author":"timfelgentreff","message":"keep reference to character image, and use that to find the current tile, to match player expectations","id":"E636EC78-9EF7-426B-A6C7-958C35EB5025"},"4081":{"isSerializedDate":true,"string":"Wed Apr 25 2012 14:08:44 GMT+0200 (CEST)"},"4082":{"date":{"__isSmartRef__":true,"id":4083},"author":"timfelgentreff","message":"keep reference to character image, and use that to find the current tile, to match player expectations","id":"FA63AB65-E0D8-4640-8A97-8658CB5CC784"},"4083":{"isSerializedDate":true,"string":"Wed Apr 25 2012 14:09:04 GMT+0200 (CEST)"},"4084":{"date":{"__isSmartRef__":true,"id":4085},"author":"tessi","message":"fix currentTile() calculation","id":"5DFDC67F-C2B3-446A-B98F-9D783D86AE67"},"4085":{"isSerializedDate":true,"string":"Wed Apr 25 2012 15:20:10 GMT+0200 (CEST)"},"4086":{"date":{"__isSmartRef__":true,"id":4087},"author":"tessi","message":"remove coder from character wooooo!","id":"CC460BFD-5714-4136-9D71-C27CB357B03D"},"4087":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:26:11 GMT+0200 (CEST)"},"4088":{"date":{"__isSmartRef__":true,"id":4089},"author":"tessi","message":"fix reset()","id":"25318C72-069B-4982-80C1-3D6BB62CAEEB"},"4089":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:35:54 GMT+0200 (CEST)"},"4090":{"date":{"__isSmartRef__":true,"id":4091},"author":"tessi","message":"WIP: startConversation","id":"CDE4457D-E565-4B2B-B9A2-11B469420208"},"4091":{"isSerializedDate":true,"string":"Wed Apr 25 2012 17:08:28 GMT+0200 (CEST)"},"4092":{"date":{"__isSmartRef__":true,"id":4093},"author":"tessi","message":"removed todo on getting tile characters","id":"E53A3851-D321-46AB-BAEC-00F6DB517896"},"4093":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:23:53 GMT+0200 (CEST)"},"4094":{"date":{"__isSmartRef__":true,"id":4095},"author":"tessi","message":"removed todo on getting tile characters","id":"481343BD-AEE2-4403-8C34-F8ED283FB915"},"4095":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:23:54 GMT+0200 (CEST)"},"4096":{"date":{"__isSmartRef__":true,"id":4097},"author":"lauritz","message":"no comment","id":"312F87FF-9A4A-4537-94FC-17A675B8F1D0"},"4097":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:00:17 GMT+0200 (CEST)"},"4098":{"date":{"__isSmartRef__":true,"id":4099},"author":"timfelgentreff","message":"no comment","id":"A9AE4A60-C66D-40B6-BAAF-1D9D71F84B6E"},"4099":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:53:18 GMT+0200 (CEST)"},"4100":{"date":{"__isSmartRef__":true,"id":4101},"author":"timfelgentreff","message":"no comment","id":"39F64661-30D8-4C21-8955-3577D7999A1E"},"4101":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:14:46 GMT+0200 (CEST)"},"4102":{"date":{"__isSmartRef__":true,"id":4103},"author":"tessi","message":"","id":"86997E8C-1851-4003-AF70-3637C964F4C2"},"4103":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:40:38 GMT+0200 (CEST)"},"4104":{"date":{"__isSmartRef__":true,"id":4105},"author":"tessi","message":"do not try to start a conversation with busy characters anymore","id":"FC5A962A-B4F5-4952-9DA3-93178498B650"},"4105":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:45:52 GMT+0200 (CEST)"},"4106":{"date":{"__isSmartRef__":true,"id":4107},"author":"timfelgentreff","message":"add A* algorithm","id":"2463589C-B2A5-49C5-B4AC-61C44963498C"},"4107":{"isSerializedDate":true,"string":"Thu May 03 2012 12:16:42 GMT+0200 (CEST)"},"4108":{"date":{"__isSmartRef__":true,"id":4109},"author":"timfelgentreff","message":"start including A* as the walking script","id":"0CE0539A-F853-4368-B65C-FBF9FA1374F6"},"4109":{"isSerializedDate":true,"string":"Thu May 03 2012 12:22:29 GMT+0200 (CEST)"},"4110":{"date":{"__isSmartRef__":true,"id":4111},"author":"timfelgentreff","message":"avoid crashing chrome","id":"C08488EB-0F4F-4D1B-8158-4B4CECA13310"},"4111":{"isSerializedDate":true,"string":"Thu May 03 2012 12:39:24 GMT+0200 (CEST)"},"4112":{"date":{"__isSmartRef__":true,"id":4113},"author":"timfelgentreff","message":"update A*","id":"0ADDF3A6-9B36-4836-952A-034C8AFB76AE"},"4113":{"isSerializedDate":true,"string":"Thu May 03 2012 13:30:55 GMT+0200 (CEST)"},"4114":{"date":{"__isSmartRef__":true,"id":4115},"author":"tessi","message":"talk","id":"A54BE0A6-A721-4931-9C16-1B10721DB077"},"4115":{"isSerializedDate":true,"string":"Thu May 03 2012 15:07:51 GMT+0200 (CEST)"},"4116":{"date":{"__isSmartRef__":true,"id":4117},"author":"tessi","message":"cannot set color to null","id":"8282460E-42E5-474F-B4B1-779328A0CA12"},"4117":{"isSerializedDate":true,"string":"Thu May 03 2012 15:19:48 GMT+0200 (CEST)"},"4118":{"date":{"__isSmartRef__":true,"id":4119},"author":"timfelgentreff","message":"add lifebar and death animation","id":"56443440-08E1-4535-A501-313169B43CF6"},"4119":{"isSerializedDate":true,"string":"Fri May 04 2012 17:23:23 GMT+0200 (CEST)"},"4120":{"date":{"__isSmartRef__":true,"id":4121},"author":"timfelgentreff","message":"stopStepping after remove","id":"67474739-FF28-40D1-B14A-576A8BFFEFC6"},"4121":{"isSerializedDate":true,"string":"Fri May 04 2012 17:24:49 GMT+0200 (CEST)"},"4122":{"date":{"__isSmartRef__":true,"id":4123},"author":"timfelgentreff","message":"slower, more painful death","id":"69220053-3258-4538-84FA-5447CC65011C"},"4123":{"isSerializedDate":true,"string":"Fri May 04 2012 17:25:57 GMT+0200 (CEST)"},"4124":{"date":{"__isSmartRef__":true,"id":4125},"author":"timfelgentreff","message":"no comment","id":"A8214C7B-EBBB-4E93-A914-2794143B55BC"},"4125":{"isSerializedDate":true,"string":"Fri May 04 2012 17:45:57 GMT+0200 (CEST)"},"4126":{"date":{"__isSmartRef__":true,"id":4127},"author":"timfelgentreff","message":"no comment","id":"D908D0F4-3ED1-4F1D-AEB9-7CFC3B0C8BA5"},"4127":{"isSerializedDate":true,"string":"Fri May 04 2012 17:46:41 GMT+0200 (CEST)"},"4128":{"date":{"__isSmartRef__":true,"id":4129},"author":"timfelgentreff","message":"no comment","id":"A506CB13-6C0B-433F-8BE4-73FD6319265A"},"4129":{"isSerializedDate":true,"string":"Fri May 04 2012 17:48:35 GMT+0200 (CEST)"},"4130":{"date":{"__isSmartRef__":true,"id":4131},"author":"timfelgentreff","message":"know your fight phrases","id":"2A0FDBCF-F817-40F3-A5A3-B6029BC24B85"},"4131":{"isSerializedDate":true,"string":"Fri May 04 2012 18:00:37 GMT+0200 (CEST)"},"4132":{"date":{"__isSmartRef__":true,"id":4133},"author":"timfelgentreff","message":"fix misnomer","id":"6841DC46-81BA-485A-90FE-40C795FC925D"},"4133":{"isSerializedDate":true,"string":"Sat May 05 2012 12:42:00 GMT+0200 (CEST)"},"4134":{"date":{"__isSmartRef__":true,"id":4135},"author":"timfelgentreff","message":"no comment","id":"9909F62F-D862-408B-B763-7B126CAECB21"},"4135":{"isSerializedDate":true,"string":"Sat May 05 2012 12:46:46 GMT+0200 (CEST)"},"4136":{"date":{"__isSmartRef__":true,"id":4137},"author":"timfelgentreff","message":"no comment","id":"960441EB-D5D2-49ED-918C-C19ED11E90D5"},"4137":{"isSerializedDate":true,"string":"Sat May 05 2012 12:49:21 GMT+0200 (CEST)"},"4138":{"date":{"__isSmartRef__":true,"id":4139},"author":"timfelgentreff","message":"fix typo","id":"05779C1D-DB1E-4CB9-AA2C-6653533F10C8"},"4139":{"isSerializedDate":true,"string":"Sat May 05 2012 12:51:21 GMT+0200 (CEST)"},"4140":{"date":{"__isSmartRef__":true,"id":4141},"author":"lauritz","message":"no comment","id":"FE139E8C-ABF5-4D0C-97D5-C72CDDCF5321"},"4141":{"isSerializedDate":true,"string":"Mon May 07 2012 10:35:19 GMT+0200 (CEST)"},"4142":{"date":{"__isSmartRef__":true,"id":4143},"author":"lauritz","message":"faster fights","id":"0893EC15-CE3B-43C0-AAE5-B3D8EA6E5151"},"4143":{"isSerializedDate":true,"string":"Mon May 07 2012 11:47:58 GMT+0200 (CEST)"},"4144":{"date":{"__isSmartRef__":true,"id":4145},"author":"lauritz","message":"no comment","id":"E5CBCE4F-39BE-4ED3-AD3B-0D490420A83F"},"4145":{"isSerializedDate":true,"string":"Mon May 14 2012 16:09:42 GMT+0200 (CEST)"},"4146":{"x":0,"y":1,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4147":{"setDevStyle":{"__isSmartRef__":true,"id":4148},"setNormalStyle":{"__isSmartRef__":true,"id":4497},"tileSize":{"__isSmartRef__":true,"id":4501},"become":{"__isSmartRef__":true,"id":4505},"walkUntilReached":{"__isSmartRef__":true,"id":4509},"onMouseDown":{"__isSmartRef__":true,"id":4513},"walkTo":{"__isSmartRef__":true,"id":4521},"currentTile":{"__isSmartRef__":true,"id":4525},"toolbox":{"__isSmartRef__":true,"id":4529},"setCurrentSpeed":{"__isSmartRef__":true,"id":4533},"getCurrentSpeed":{"__isSmartRef__":true,"id":4537},"isWalking":{"__isSmartRef__":true,"id":4541},"select":{"__isSmartRef__":true,"id":4545},"deselect":{"__isSmartRef__":true,"id":4549},"becomeRandomCharacter":{"__isSmartRef__":true,"id":4553},"reset":{"__isSmartRef__":true,"id":4557},"setDirectionToTile":{"__isSmartRef__":true,"id":4561},"getDirection":{"__isSmartRef__":true,"id":4565},"setDirection":{"__isSmartRef__":true,"id":4569},"setPosition":{"__isSmartRef__":true,"id":4573},"say":{"__isSmartRef__":true,"id":4581},"soliloquize":{"__isSmartRef__":true,"id":4585},"characterType":{"__isSmartRef__":true,"id":4589},"animate":{"__isSmartRef__":true,"id":4593},"doSomething":{"__isSmartRef__":true,"id":4597},"map":{"__isSmartRef__":true,"id":4601},"game":{"__isSmartRef__":true,"id":4605},"setup":{"__isSmartRef__":true,"id":4609},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":4613},"startConversation":{"__isSmartRef__":true,"id":4621},"startConversationWith":{"__isSmartRef__":true,"id":4625},"shallowCopy":{"__isSmartRef__":true,"id":4629},"conversation":{"__isSmartRef__":true,"id":4633},"answer":{"__isSmartRef__":true,"id":4637},"hideTextBubble":{"__isSmartRef__":true,"id":4641},"aStar":{"__isSmartRef__":true,"id":4645},"aStarHeuristicCostEstimate":{"__isSmartRef__":true,"id":4649},"aStarWalkPath":{"__isSmartRef__":true,"id":4653},"chatBot":{"__isSmartRef__":true,"id":4657},"getHit":{"__isSmartRef__":true,"id":4661},"becomePlayer":{"__isSmartRef__":true,"id":4665},"fight":{"__isSmartRef__":true,"id":4669},"fightPhrases":{"__isSmartRef__":true,"id":4673},"randomQuestions":{"__isSmartRef__":true,"id":4677},"randomAnswersFor":{"__isSmartRef__":true,"id":4681},"executeFightTurnAsking":{"__isSmartRef__":true,"id":4685},"heal":{"__isSmartRef__":true,"id":4689},"isDead":{"__isSmartRef__":true,"id":4693}},"4148":{"varMapping":{"__isSmartRef__":true,"id":4149},"source":"function setDevStyle() {\n if (this.map()) {\n this.setExtent(this.tileSize())\n }\n this.setFill(null)\n this.shape.setBorderColor(Color.yellow)\n}","funcProperties":{"__isSmartRef__":true,"id":4150},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4496},"__LivelyClassName__":"lively.Closure"},"4149":{"this":{"__isSmartRef__":true,"id":3691}},"4150":{"timestamp":{"__isSmartRef__":true,"id":4151},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4152},"declaredObject":""},"4151":{"isSerializedDate":true,"string":"Fri Apr 27 2012 13:55:28 GMT+0200 (CEST)"},"4152":{"varMapping":{"__isSmartRef__":true,"id":4153},"source":"function setDevStyle() {\n if (this.map()) {\n this.setExtent(this.tileSize())\n }\n this.setFill(null)\n this.shape.setBorderColor(Color.yellow)\n}","funcProperties":{"__isSmartRef__":true,"id":4495},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4153":{"this":{"__isSmartRef__":true,"id":4154}},"4154":{"submorphs":[{"__isSmartRef__":true,"id":4155},{"__isSmartRef__":true,"id":4211}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4285},"derivationIds":[null,"6F36A371-1744-4CD4-BE79-F1ADEE98C7FD","C276F06B-32C3-4CCC-91B1-E7174A2A259E","03772C8C-A733-445D-B2BD-98A56DC071E1","90559E29-634C-4AA7-95D5-95F41427A66A","A011B9EB-9775-4B49-9700-0112BA842A67","6ABA4596-3FDF-446D-90AC-457EB1A14E6D","37D45E25-EC49-490C-B7AF-2AA8637345C9","F1F261F4-844F-4387-9B82-A514F4ADD6E3","EB68FEE6-DA39-420B-974D-2EE5C2CA2A18","3D072A4D-9400-4A54-BD63-CB5598CDE004","9721DA76-AC3B-42DB-A4D7-D74E745580FB","E2C6D407-E20E-4F03-AF59-2AEA2178788C","66D0B260-7B35-4ED3-8A4D-38DC14804693","31F62051-B940-4E15-8421-A67CCF17B56E","8BCBAD35-B9E2-4D4C-A3E4-727B538C8FA6","6204B6A3-DE80-432B-B5AF-4146EC4C83B4","FE1B4FC2-8366-4FA3-8A4B-C2C52F07B040","4B0E268B-BFF5-427D-943A-24AC43194E8D","231B4156-267A-4B1C-BCDD-123E5F43CF33","34AA26D2-A835-4BBE-8C19-B5B65C73E969"],"id":"9B38812C-2A71-49E4-89A7-1BF089FECB7A","renderContextTable":{"__isSmartRef__":true,"id":4291},"eventHandler":{"__isSmartRef__":true,"id":4292},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4293},"partsBinMetaInfo":{"__isSmartRef__":true,"id":3927},"character":null,"showsHalos":false,"lastSpeedTimestamp":1336043967089,"direction":{"__isSmartRef__":true,"id":4294},"name":"Character","__SourceModuleName__":"Global.lively.morphic.Core","moved":true,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isBeingDragged":false,"deathAnimation":{"__isSmartRef__":true,"id":4211},"lifeBar":{"__isSmartRef__":true,"id":4155},"#startLetters":"","_Rotation":0,"_Scale":1.0120783653693808,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4295},"__LivelyClassName__":"lively.morphic.Box"},"4155":{"submorphs":[],"scripts":[],"id":"31496EA1-A9DF-4D97-835B-E76BA2171F1A","shape":{"__isSmartRef__":true,"id":4156},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4163},"showsHalos":false,"name":"LifeBar","partsBinMetaInfo":{"__isSmartRef__":true,"id":4164},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":4179},"eventHandler":{"__isSmartRef__":true,"id":4180},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","2DB0D0C7-DC87-4CFA-83D0-A3C69D36DFF5","D5A167D3-1B45-47C6-9589-88D524CBB671","B99E0377-C191-4217-A6A5-9C8B280EBFC7","30BAB7C0-114B-4F37-878B-09C11E3D5549","FB770FA2-2303-4F51-B162-092CD8F21AA0","612FF3E2-A0BA-4252-92A6-28D30F489F85","78D369CF-E59B-4EB9-8D69-151A5EC7EBC2","E425FE9E-F1B0-438A-A245-16A29D9D258B","803FB59F-23F3-4A2F-9E13-DC3FB4D6FBC2","16E73362-4726-4C37-8412-BB7F76E007B7","8F9461A6-FB84-4875-BE34-EDF06F5CF22B","E7D9DE9E-946E-47E7-B684-63DCCE65106B","CEE4682F-B1A8-4163-8208-67DAD6993B52","D3072470-ABA6-4EB9-8D01-4BB11A39B26D"],"partTests":{"__isSmartRef__":true,"id":4181},"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":4154},"isBeingDragged":false,"character":{"__isSmartRef__":true,"id":4154},"#startLetters":"","_Rotation":0,"_Scale":1.002003004005006,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4186},"__LivelyClassName__":"lively.morphic.Box"},"4156":{"position":{"__isSmartRef__":true,"id":4157},"_Extent":{"__isSmartRef__":true,"id":4158},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4159},"_Fill":{"__isSmartRef__":true,"id":4160},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4161},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4162},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4157":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4158":{"x":48,"y":8,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4159":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4160":{"r":0.59375,"g":1,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4161":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"4162":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4163":{"x":0,"y":-13,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4164":{"partsSpaceName":"PartsBin/FreedomOfSpeech/","__SourceModuleName__":"Global.lively.PartsBin","comment":"A life bar","migrationLevel":4,"partName":"LifeBar","changes":[{"__isSmartRef__":true,"id":4165},{"__isSmartRef__":true,"id":4167},{"__isSmartRef__":true,"id":4169},{"__isSmartRef__":true,"id":4171},{"__isSmartRef__":true,"id":4173},{"__isSmartRef__":true,"id":4175},{"__isSmartRef__":true,"id":4177}],"revisionOnLoad":159331,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4165":{"date":{"__isSmartRef__":true,"id":4166},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"4166":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"4167":{"date":{"__isSmartRef__":true,"id":4168},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"4168":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"4169":{"date":{"__isSmartRef__":true,"id":4170},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"4170":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"4171":{"date":{"__isSmartRef__":true,"id":4172},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"4172":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"4173":{"date":{"__isSmartRef__":true,"id":4174},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"4174":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"4175":{"date":{"__isSmartRef__":true,"id":4176},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"4176":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"4177":{"date":{"__isSmartRef__":true,"id":4178},"author":"timfelgentreff","message":"no comment","id":"655F8C6A-8060-4BEC-9535-09682C8F0066"},"4178":{"isSerializedDate":true,"string":"Fri May 04 2012 16:52:35 GMT+0200 (CEST)"},"4179":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"4180":{"morph":{"__isSmartRef__":true,"id":4155},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4181":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4182}},"4182":{"test01IsMorph":{"__isSmartRef__":true,"id":4183}},"4183":{"varMapping":{"__isSmartRef__":true,"id":4184},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":4185},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4184":{"this":{"__isSmartRef__":true,"id":4181}},"4185":{},"4186":{"setColorForWidth":{"__isSmartRef__":true,"id":4187},"reset":{"__isSmartRef__":true,"id":4191},"hit":{"__isSmartRef__":true,"id":4195},"extent":{"__isSmartRef__":true,"id":4199},"isDead":{"__isSmartRef__":true,"id":4203},"lifeLoss":{"__isSmartRef__":true,"id":4207},"heal":{"__isSmartRef__":true,"id":4191}},"4187":{"varMapping":{"__isSmartRef__":true,"id":4188},"source":"function setColorForWidth() {\n this.setFill(Color.hsb((this.getExtent().x - this.lifeLoss() / 2) / this.extent().x * 100, 1, 1))\n}","funcProperties":{"__isSmartRef__":true,"id":4189},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4188":{"this":{"__isSmartRef__":true,"id":4155}},"4189":{"timestamp":{"__isSmartRef__":true,"id":4190},"user":"timfelgentreff","tags":[]},"4190":{"isSerializedDate":true,"string":"Fri May 04 2012 16:51:59 GMT+0200 (CEST)"},"4191":{"varMapping":{"__isSmartRef__":true,"id":4192},"source":"function reset() {\n this.setExtent(this.extent())\n this.setColorForWidth()\n this.setPosition(pt(0, -13))\n}","funcProperties":{"__isSmartRef__":true,"id":4193},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4192":{"this":{"__isSmartRef__":true,"id":4155}},"4193":{"timestamp":{"__isSmartRef__":true,"id":4194},"user":"timfelgentreff","tags":[]},"4194":{"isSerializedDate":true,"string":"Fri May 04 2012 17:19:31 GMT+0200 (CEST)"},"4195":{"varMapping":{"__isSmartRef__":true,"id":4196},"source":"function hit() {\n this.setExtent(this.getExtent().subPt(pt(this.lifeLoss(), 0)))\n this.setColorForWidth()\n if (this.isDead()) {\n this.character.become(null)\n this.character.deathAnimation.start()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4197},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4196":{"this":{"__isSmartRef__":true,"id":4155}},"4197":{"timestamp":{"__isSmartRef__":true,"id":4198},"user":"timfelgentreff","tags":[]},"4198":{"isSerializedDate":true,"string":"Fri May 04 2012 17:12:01 GMT+0200 (CEST)"},"4199":{"varMapping":{"__isSmartRef__":true,"id":4200},"source":"function extent() {\n return pt(48,8)\n}","funcProperties":{"__isSmartRef__":true,"id":4201},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4200":{"this":{"__isSmartRef__":true,"id":4155}},"4201":{"timestamp":{"__isSmartRef__":true,"id":4202},"user":"timfelgentreff","tags":[]},"4202":{"isSerializedDate":true,"string":"Fri May 04 2012 16:49:30 GMT+0200 (CEST)"},"4203":{"varMapping":{"__isSmartRef__":true,"id":4204},"source":"function isDead() {\n return this.getExtent().x < this.lifeLoss()\n}","funcProperties":{"__isSmartRef__":true,"id":4205},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4204":{"this":{"__isSmartRef__":true,"id":4155}},"4205":{"timestamp":{"__isSmartRef__":true,"id":4206},"user":"timfelgentreff","tags":[]},"4206":{"isSerializedDate":true,"string":"Fri May 04 2012 16:50:02 GMT+0200 (CEST)"},"4207":{"varMapping":{"__isSmartRef__":true,"id":4208},"source":"function lifeLoss() {\n return this.extent().x / 3 - 1\n}","funcProperties":{"__isSmartRef__":true,"id":4209},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4208":{"this":{"__isSmartRef__":true,"id":4155}},"4209":{"timestamp":{"__isSmartRef__":true,"id":4210},"user":"timfelgentreff","tags":[]},"4210":{"isSerializedDate":true,"string":"Fri May 04 2012 16:50:22 GMT+0200 (CEST)"},"4211":{"submorphs":[{"__isSmartRef__":true,"id":4212}],"scripts":[],"id":"8CBF3E25-2EB1-4DE6-AAB2-17CB254C9012","shape":{"__isSmartRef__":true,"id":4241},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4248},"showsHalos":false,"name":"DeathAnimation","partsBinMetaInfo":{"__isSmartRef__":true,"id":4249},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":4262},"eventHandler":{"__isSmartRef__":true,"id":4263},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","BFF48C2B-8378-49C8-A6EC-5205A2A46D92","0322384E-8399-4532-BD09-846510E4CEB2","D94E58BE-3730-4E93-886D-57D5F7FEDE66","8BA6D9A0-76BF-45F9-8257-B44CE32DC0E8","627E352B-D135-4086-86B2-C7271180C415","1E2E609F-0D3C-43B7-A41A-DEF99F217F62","C106586D-69FF-492C-86C0-9105E43A395A","14B978ED-D71B-4400-8BD0-92F5EB55D3FB","1F548A2A-9935-42D6-A43F-57A789A17989","7AB0E0C5-F3F5-44B8-84A4-FE58514B9CBB","0B24C9CE-0E0A-420E-BABB-1EECAF2A75F7","8BCF21E1-00C1-47E1-8C9D-C6CD6F611A30","94B8E0BB-A727-4D1F-9FCD-57500677A0E3","875CC266-7C10-4E98-A6B6-17C7EB3C93A3"],"partTests":{"__isSmartRef__":true,"id":4264},"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":4154},"isBeingDragged":false,"#startLetters":"image","image":{"__isSmartRef__":true,"id":4212},"baseUrl":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_","counter":1,"character":{"__isSmartRef__":true,"id":4154},"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","_Rotation":0,"_Scale":1.002003004005006,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4269},"__LivelyClassName__":"lively.morphic.Box"},"4212":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4213},"derivationIds":[null,"238E91DE-656E-43B5-8E3D-904CDA28A277","C00A3C0E-CF81-421A-BF06-DE6D4804AC6B","4382B5D0-4A0C-4EF1-8EA4-8A5F8AE07FED","C63F1CBE-8F12-4DFF-8B87-724D9AFDE572","4C4D5150-2BCE-4514-A48A-3787AC0E3CCF","8D704A99-14C3-4137-9E77-31DEBF2AA651","40D79729-F063-4AC0-8BA8-E1A794FC48A8","F658FB14-4DBB-4056-9F28-DD002EF336C6","19619216-9747-4EA9-A444-FFBBB4310049","40016546-5DEA-40CF-82DD-70C1F06413D4","0D8C6CD9-1951-4437-8DB1-3C658360D9B3","4A305064-C6ED-4B9B-AE1D-D1C8B588E724","438C7CD7-16E4-4D9E-A015-6D204ADE7635","92787D53-FD63-40D2-B832-464328EA031D","2A03C966-9450-4DC5-9084-A4966D9718CA","27A384D8-C394-47A1-BAE3-C121747B4EAF","D48DE2C7-4C3D-48D4-B639-D97975FE3A81","1EF27416-D2A4-4F72-A536-D94226AE04E2","D504024B-30A0-4034-B03E-EE97D7D12A3A","B8A96F87-B36E-4C2A-A697-1911B0D4A10E"],"id":"CA123CA5-7C77-457D-8505-3D1E2EA12ACC","renderContextTable":{"__isSmartRef__":true,"id":4218},"eventHandler":{"__isSmartRef__":true,"id":4219},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4220},"name":"DeathAnimationImage","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":4221},"__SourceModuleName__":"Global.lively.morphic.Widgets","moved":true,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_ClipMode":"visible","isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":4211},"#startLetters":"","eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","_Visible":false,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4236},"__LivelyClassName__":"lively.morphic.Image"},"4213":{"_Position":{"__isSmartRef__":true,"id":4214},"renderContextTable":{"__isSmartRef__":true,"id":4215},"_Extent":{"__isSmartRef__":true,"id":4216},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4217},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_1.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"4214":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4215":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"4216":{"x":72,"y":72,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4217":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4218":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"4219":{"morph":{"__isSmartRef__":true,"id":4212},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4220":{"x":-12,"y":-12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4221":{"partName":"CoderCharacter","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"An animated character with a Apple Macbook Air, hacking away and looking suspicious. He loves Latté and hacks Rails...he's a real hipster, living in Mission, SF.","changes":[{"__isSmartRef__":true,"id":4222},{"__isSmartRef__":true,"id":4224},{"__isSmartRef__":true,"id":4226},{"__isSmartRef__":true,"id":4228},{"__isSmartRef__":true,"id":4230},{"__isSmartRef__":true,"id":4232},{"__isSmartRef__":true,"id":4234}],"migrationLevel":4,"__SourceModuleName__":"Global.lively.PartsBin","revisionOnLoad":156414,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4222":{"date":{"__isSmartRef__":true,"id":4223},"author":"lauritz","message":"extended his horizon minimally","id":"50EA136D-373D-4B07-9743-671C5D5FD786"},"4223":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:36:11 GMT+0200 (CEST)"},"4224":{"date":{"__isSmartRef__":true,"id":4225},"author":"tessi","message":"typo","id":"C3C7C127-AA94-4893-ACE9-14FE290D4CE1"},"4225":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:33:53 GMT+0200 (CEST)"},"4226":{"date":{"__isSmartRef__":true,"id":4227},"author":"tessi","message":"","id":"F17F7ABD-5B30-4809-9E08-0A11240FCE2B"},"4227":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:32:18 GMT+0200 (CEST)"},"4228":{"date":{"__isSmartRef__":true,"id":4229},"author":"tessi","message":"","id":"AC6C3961-CFFB-4C4A-8769-970359274337"},"4229":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:01:43 GMT+0200 (CEST)"},"4230":{"date":{"__isSmartRef__":true,"id":4231},"author":"tessi","message":"some soliloquize sentences for the awesome coder!","id":"892B001E-626A-4EE7-A217-E88C4E1F6088"},"4231":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:52:20 GMT+0200 (CEST)"},"4232":{"date":{"__isSmartRef__":true,"id":4233},"author":"lauritz","message":"no comment","id":"56F017FB-5032-49A5-A6C0-A856F2AB5B55"},"4233":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:23:49 GMT+0200 (CEST)"},"4234":{"date":{"__isSmartRef__":true,"id":4235},"author":"lauritz","message":"no comment","id":"52EB067D-BE9C-4E05-9599-5B3D0D663B9E"},"4235":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:30:38 GMT+0200 (CEST)"},"4236":{"soliloquize":{"__isSmartRef__":true,"id":4237}},"4237":{"varMapping":{"__isSmartRef__":true,"id":4238},"source":"function soliloquize() {\n this.soloSentences = this.soloSentences || [\n \"Wonder what the new iPony will be like\",\n \"Can i have some Mate pl0x?\",\n \"*click* *clack* *clack*\",\n \"Shouldn't this run faster?\",\n \"Wonder why people use Windows...\",\n \"Lets start a new programming language!\",\n \"Awesome!\",\n \"git rebase to the rescue!\",\n \"Array(16).join(\\\"wat\\\" - 1) + \\\" Batman!\\\"\",\n \"aww. screwed up the pointers\\n.. again!\",\n \"i need horn-rimmed glasses\",\n \"i'm no hipster.\",\n \"can i have a lattai\",\n \"everything you can do i can do better\",\n \"i can do everything better than you\",\n \"i studied at HPI\",\n \"oop is not for everyone\",\n \"it's spring after the java nuclear winter\",\n \"Is the company based in Mission?\",\n \"Who's that Alan Kay dude?\",\n \"I [github] code\"\n ]\n return this.soloSentences[Math.floor(Math.random() * this.soloSentences.length)]\n}","funcProperties":{"__isSmartRef__":true,"id":4239},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4238":{"this":{"__isSmartRef__":true,"id":4212}},"4239":{"timestamp":{"__isSmartRef__":true,"id":4240},"user":"lauritz","tags":[]},"4240":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:35:45 GMT+0200 (CEST)"},"4241":{"position":{"__isSmartRef__":true,"id":4242},"_Extent":{"__isSmartRef__":true,"id":4243},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4244},"_Fill":{"__isSmartRef__":true,"id":4245},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4246},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4247},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4242":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4243":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4244":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4245":{"r":0,"g":0,"b":0,"a":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4246":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"4247":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4248":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4249":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph. A really blue one. Its amazing what you can build out of simple boxes.... Who needs stars when you got blue rectangles!","migrationLevel":4,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":4250},{"__isSmartRef__":true,"id":4252},{"__isSmartRef__":true,"id":4254},{"__isSmartRef__":true,"id":4256},{"__isSmartRef__":true,"id":4258},{"__isSmartRef__":true,"id":4260}],"revisionOnLoad":158846,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4250":{"date":{"__isSmartRef__":true,"id":4251},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"4251":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"4252":{"date":{"__isSmartRef__":true,"id":4253},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"4253":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"4254":{"date":{"__isSmartRef__":true,"id":4255},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"4255":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"4256":{"date":{"__isSmartRef__":true,"id":4257},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"4257":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"4258":{"date":{"__isSmartRef__":true,"id":4259},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"4259":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"4260":{"date":{"__isSmartRef__":true,"id":4261},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"4261":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"4262":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"4263":{"morph":{"__isSmartRef__":true,"id":4211},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4264":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4265}},"4265":{"test01IsMorph":{"__isSmartRef__":true,"id":4266}},"4266":{"varMapping":{"__isSmartRef__":true,"id":4267},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":4268},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4267":{"this":{"__isSmartRef__":true,"id":4264}},"4268":{},"4269":{"die":{"__isSmartRef__":true,"id":4270},"reset":{"__isSmartRef__":true,"id":4273},"nextImage":{"__isSmartRef__":true,"id":4277},"start":{"__isSmartRef__":true,"id":4281}},"4270":{"varMapping":{"__isSmartRef__":true,"id":4271},"source":"function die() {\n this.nextImage()\n if (this.counter === 1) {\n this.character.animate(false);\n this.character.remove()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4272},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4271":{"this":{"__isSmartRef__":true,"id":4211}},"4272":{},"4273":{"varMapping":{"__isSmartRef__":true,"id":4274},"source":"function reset() {\n this.stopStepping()\n this.baseUrl = \"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_\"\n this.counter = 0\n this.image.setPosition(pt(-12,-12))\n this.image.disableEvents()\n this.nextImage()\n this.setPosition(pt(0,0))\n this.setBorderWidth(0)\n this.image.setVisible(false)\n}","funcProperties":{"__isSmartRef__":true,"id":4275},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4274":{"this":{"__isSmartRef__":true,"id":4211}},"4275":{"timestamp":{"__isSmartRef__":true,"id":4276},"user":"timfelgentreff","tags":[]},"4276":{"isSerializedDate":true,"string":"Fri May 04 2012 17:24:17 GMT+0200 (CEST)"},"4277":{"varMapping":{"__isSmartRef__":true,"id":4278},"source":"function nextImage() {\n this.counter = this.counter % 6 + 1\n this.image.setImageURL(this.baseUrl + this.counter + \".png\")\n}","funcProperties":{"__isSmartRef__":true,"id":4279},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4278":{"this":{"__isSmartRef__":true,"id":4211}},"4279":{"timestamp":{"__isSmartRef__":true,"id":4280},"user":"timfelgentreff","tags":[]},"4280":{"isSerializedDate":true,"string":"Fri May 04 2012 17:09:29 GMT+0200 (CEST)"},"4281":{"varMapping":{"__isSmartRef__":true,"id":4282},"source":"function start() {\n this.image.setVisible(true)\n this.startStepping(150, \"die\")\n}","funcProperties":{"__isSmartRef__":true,"id":4283},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4282":{"this":{"__isSmartRef__":true,"id":4211}},"4283":{"timestamp":{"__isSmartRef__":true,"id":4284},"user":"timfelgentreff","tags":[]},"4284":{"isSerializedDate":true,"string":"Fri May 04 2012 17:25:07 GMT+0200 (CEST)"},"4285":{"_Position":{"__isSmartRef__":true,"id":4286},"renderContextTable":{"__isSmartRef__":true,"id":4287},"_Extent":{"__isSmartRef__":true,"id":4288},"_Padding":{"__isSmartRef__":true,"id":4289},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4290},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4286":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4287":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"4288":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4289":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4290":{"r":0.8,"g":0.8,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4291":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"4292":{"morph":{"__isSmartRef__":true,"id":4154},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4293":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4294":{"x":-1,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4295":{"setDevStyle":{"__isSmartRef__":true,"id":4152},"setNormalStyle":{"__isSmartRef__":true,"id":4296},"tileSize":{"__isSmartRef__":true,"id":4300},"become":{"__isSmartRef__":true,"id":4304},"walkUntilReached":{"__isSmartRef__":true,"id":4307},"onMouseDown":{"__isSmartRef__":true,"id":4311},"walkTo":{"__isSmartRef__":true,"id":4319},"currentTile":{"__isSmartRef__":true,"id":4323},"toolbox":{"__isSmartRef__":true,"id":4327},"setCurrentSpeed":{"__isSmartRef__":true,"id":4331},"getCurrentSpeed":{"__isSmartRef__":true,"id":4335},"isWalking":{"__isSmartRef__":true,"id":4339},"select":{"__isSmartRef__":true,"id":4343},"deselect":{"__isSmartRef__":true,"id":4347},"becomeRandomCharacter":{"__isSmartRef__":true,"id":4351},"reset":{"__isSmartRef__":true,"id":4355},"setDirectionToTile":{"__isSmartRef__":true,"id":4359},"getDirection":{"__isSmartRef__":true,"id":4363},"setDirection":{"__isSmartRef__":true,"id":4367},"setPosition":{"__isSmartRef__":true,"id":4371},"say":{"__isSmartRef__":true,"id":4379},"soliloquize":{"__isSmartRef__":true,"id":4383},"characterType":{"__isSmartRef__":true,"id":4387},"animate":{"__isSmartRef__":true,"id":4391},"doSomething":{"__isSmartRef__":true,"id":4395},"map":{"__isSmartRef__":true,"id":4399},"game":{"__isSmartRef__":true,"id":4403},"setup":{"__isSmartRef__":true,"id":4407},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":4411},"startConversation":{"__isSmartRef__":true,"id":4419},"startConversationWith":{"__isSmartRef__":true,"id":4423},"shallowCopy":{"__isSmartRef__":true,"id":4427},"conversation":{"__isSmartRef__":true,"id":4431},"answer":{"__isSmartRef__":true,"id":4435},"hideTextBubble":{"__isSmartRef__":true,"id":4439},"aStar":{"__isSmartRef__":true,"id":4443},"aStarHeuristicCostEstimate":{"__isSmartRef__":true,"id":4447},"aStarWalkPath":{"__isSmartRef__":true,"id":4451},"chatBot":{"__isSmartRef__":true,"id":4455},"getHit":{"__isSmartRef__":true,"id":4459},"becomePlayer":{"__isSmartRef__":true,"id":4463},"fight":{"__isSmartRef__":true,"id":4467},"fightPhrases":{"__isSmartRef__":true,"id":4471},"randomQuestions":{"__isSmartRef__":true,"id":4475},"randomAnswersFor":{"__isSmartRef__":true,"id":4479},"executeFightTurnAsking":{"__isSmartRef__":true,"id":4483},"heal":{"__isSmartRef__":true,"id":4487},"isDead":{"__isSmartRef__":true,"id":4491}},"4296":{"varMapping":{"__isSmartRef__":true,"id":4297},"source":"function setNormalStyle() {\n this.setDevStyle()\n this.shape.setBorderColor(new Color.rgba(0,0,0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":4298},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4297":{"this":{"__isSmartRef__":true,"id":4154}},"4298":{"timestamp":{"__isSmartRef__":true,"id":4299},"user":"tessi","tags":[]},"4299":{"isSerializedDate":true,"string":"Thu May 03 2012 15:25:50 GMT+0200 (CEST)"},"4300":{"varMapping":{"__isSmartRef__":true,"id":4301},"source":"function tileSize() {\n return this.map().tileSize()\n}","funcProperties":{"__isSmartRef__":true,"id":4302},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4301":{"this":{"__isSmartRef__":true,"id":4154}},"4302":{"timestamp":{"__isSmartRef__":true,"id":4303},"user":"undefined","tags":[]},"4303":{"isSerializedDate":true,"string":"Wed Apr 25 2012 14:42:19 GMT+0200 (CEST)"},"4304":{"varMapping":{"__isSmartRef__":true,"id":4305},"source":"function become(player) {\n if (this.character) {\n this.character.remove()\n this.character = null\n }\n if (!player) { return this }\n \n this.character = this.toolbox(player + \"Character\")\n if (this.character) {\n // image should be 150% of a tile\n this.character.setExtent(this.tileSize().scaleBy(1.5))\n // -25% offset to center character on tile\n this.character.setPositionTopLeft(this.tileSize().scaleBy(-0.25))\n this.addMorph(this.character)\n this.character.ignoreEvents()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4306},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4305":{"this":{"__isSmartRef__":true,"id":4154}},"4306":{},"4307":{"varMapping":{"__isSmartRef__":true,"id":4308},"source":"function walkUntilReached(tile) {\n var minPositive = function (a, b) {\n a = Math.abs(a), b = Math.abs(b)\n return a ? (b ? Math.min(a, b) : a) : b\n }\n\n // this.setPosition(pt(0,0))\n if (this.getPosition().equals(tile.getPosition())) {\n if (this.walkScript) { this.walkScript.stop() }\n this.setDirection(pt(0,0))\n tile.enterTile(this)\n } else {\n if (this.currentTile() !== tile) {\n this.setDirectionToTile(tile)\n var nextNeighbours = this.currentTile().neighboursInDirection(this.getDirection())\n if (nextNeighbours.any(function (each) { return each.isObstacle() })) {\n this.walkTo(this.currentTile())\n } else {\n var directionVector = this.getPosition().subPt(tile.getPosition()),\n maxSpeed = minPositive(directionVector.x, directionVector.y),\n speed = Math.min(maxSpeed, this.getCurrentSpeed())\n this.moveBy(this.getDirection().scaleBy(speed))\n }\n } else {\n var directionVector = this.getPosition().subPt(tile.getPosition()),\n maxSpeed = minPositive(directionVector.x, directionVector.y),\n speed = Math.min(maxSpeed, this.getCurrentSpeed())\n this.moveBy(this.getDirection().scaleBy(speed))\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4309},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4308":{"this":{"__isSmartRef__":true,"id":4154}},"4309":{"timestamp":{"__isSmartRef__":true,"id":4310},"user":"timfelgentreff","tags":[]},"4310":{"isSerializedDate":true,"string":"Fri May 04 2012 17:37:13 GMT+0200 (CEST)"},"4311":{"varMapping":{"__isSmartRef__":true,"id":4312},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.game()) {\n if (this.game().selectedUnit !== this) {\n if (this.game().selectedUnit !== null) {\n this.game().selectedUnit.deselect()\n }\n this.select()\n } else {\n this.deselect()\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4317},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4312":{"this":{"__isSmartRef__":true,"id":4154},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4313}},"4313":{"$super":{"__isSmartRef__":true,"id":4314}},"4314":{"varMapping":{"__isSmartRef__":true,"id":4315},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4316},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4315":{"obj":{"__isSmartRef__":true,"id":4154},"name":"onMouseDown"},"4316":{},"4317":{"timestamp":{"__isSmartRef__":true,"id":4318},"user":"tessi","tags":[]},"4318":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:21:42 GMT+0200 (CEST)"},"4319":{"varMapping":{"__isSmartRef__":true,"id":4320},"source":"function walkTo(tile) {\n this.lastSpeedTimestamp = Date.now()\n var path = this.aStar(tile),\n that = this\n if (path.length === 0) {\n alertOK(\"No path found\")\n } else {\n this.walkScript = this.startStepping(10, \"aStarWalkPath\", path)\n }\n // this.walkScript = this.startStepping(10, \"walkUntilReached\", tile)\n this.currentTile().leaveTile(this)\n}","funcProperties":{"__isSmartRef__":true,"id":4321},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4320":{"this":{"__isSmartRef__":true,"id":4154}},"4321":{"timestamp":{"__isSmartRef__":true,"id":4322},"user":"timfelgentreff","tags":[]},"4322":{"isSerializedDate":true,"string":"Thu May 03 2012 12:42:41 GMT+0200 (CEST)"},"4323":{"varMapping":{"__isSmartRef__":true,"id":4324},"source":"function currentTile() {\n if ( !this.character || !this.map() ) { return null }\n return this.map().getTileForPosition(\n this.getPosition().addPt(this.character.getBounds().center()))\n}","funcProperties":{"__isSmartRef__":true,"id":4325},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4324":{"this":{"__isSmartRef__":true,"id":4154}},"4325":{"timestamp":{"__isSmartRef__":true,"id":4326},"user":"tessi","tags":[]},"4326":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:13:47 GMT+0200 (CEST)"},"4327":{"varMapping":{"__isSmartRef__":true,"id":4328},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":4329},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4328":{"this":{"__isSmartRef__":true,"id":4154}},"4329":{"timestamp":{"__isSmartRef__":true,"id":4330},"user":"tessi","tags":[]},"4330":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:22:42 GMT+0200 (CEST)"},"4331":{"varMapping":{"__isSmartRef__":true,"id":4332},"source":"function setCurrentSpeed(arg) {\n this.currentSpeed = arg\n}","funcProperties":{"__isSmartRef__":true,"id":4333},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4332":{"this":{"__isSmartRef__":true,"id":4154}},"4333":{"timestamp":{"__isSmartRef__":true,"id":4334},"user":"timfelgentreff","tags":[]},"4334":{"isSerializedDate":true,"string":"Thu Apr 19 2012 13:47:22 GMT+0200 (CEST)"},"4335":{"varMapping":{"__isSmartRef__":true,"id":4336},"source":"function getCurrentSpeed() {\n var multiplier = (Date.now() - this.lastSpeedTimestamp) / 10\n this.lastSpeedTimestamp = Date.now()\n return multiplier\n}","funcProperties":{"__isSmartRef__":true,"id":4337},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4336":{"this":{"__isSmartRef__":true,"id":4154}},"4337":{"timestamp":{"__isSmartRef__":true,"id":4338},"user":"timfelgentreff","tags":[]},"4338":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:55:19 GMT+0200 (CEST)"},"4339":{"varMapping":{"__isSmartRef__":true,"id":4340},"source":"function isWalking() {\n return !this.getDirection().equals(pt(0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":4341},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4340":{"this":{"__isSmartRef__":true,"id":4154}},"4341":{"timestamp":{"__isSmartRef__":true,"id":4342},"user":"lauritz","tags":[]},"4342":{"isSerializedDate":true,"string":"Fri Apr 27 2012 14:07:33 GMT+0200 (CEST)"},"4343":{"varMapping":{"__isSmartRef__":true,"id":4344},"source":"function select() {\n this.game().selectedUnit = this\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":4345},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4344":{"this":{"__isSmartRef__":true,"id":4154}},"4345":{"timestamp":{"__isSmartRef__":true,"id":4346},"user":"tessi","tags":[]},"4346":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:21:57 GMT+0200 (CEST)"},"4347":{"varMapping":{"__isSmartRef__":true,"id":4348},"source":"function deselect() {\n this.game().selectedUnit = null\n this.setNormalStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":4349},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4348":{"this":{"__isSmartRef__":true,"id":4154}},"4349":{"timestamp":{"__isSmartRef__":true,"id":4350},"user":"tessi","tags":[]},"4350":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:20:46 GMT+0200 (CEST)"},"4351":{"varMapping":{"__isSmartRef__":true,"id":4352},"source":"function becomeRandomCharacter() {\n var characterNames = this.game().partNamesEndingWith(\"Character\")\n this.become(characterNames[Math.round(Math.random() * (characterNames.length - 1))])\n}","funcProperties":{"__isSmartRef__":true,"id":4353},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4352":{"this":{"__isSmartRef__":true,"id":4154}},"4353":{"timestamp":{"__isSmartRef__":true,"id":4354},"user":"tessi","tags":[]},"4354":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:20:00 GMT+0200 (CEST)"},"4355":{"varMapping":{"__isSmartRef__":true,"id":4356},"source":"function reset() {\n this.become(null)\n this.submorphs.invoke(\"remove\")\n this.stopStepping()\n this.conversationScript = this.walkScript = this.animateScript = undefined\n this.lastAnswer = this.conversationTurn = this.textBubble = this.isBusy = undefined\n this.setDevStyle()\n this.addMorph(this.lifeBar)\n this.lifeBar.reset()\n this.addMorph(this.deathAnimation)\n this.deathAnimation.reset()\n}","funcProperties":{"__isSmartRef__":true,"id":4357},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4356":{"this":{"__isSmartRef__":true,"id":4154}},"4357":{"timestamp":{"__isSmartRef__":true,"id":4358},"user":"timfelgentreff","tags":[]},"4358":{"isSerializedDate":true,"string":"Fri May 04 2012 17:22:56 GMT+0200 (CEST)"},"4359":{"varMapping":{"__isSmartRef__":true,"id":4360},"source":"function setDirectionToTile(tile) {\n var direction = tile.getPosition().subPt(this.getPosition()),\n xDirection = direction.x / Math.abs(direction.x),\n yDirection = direction.y / Math.abs(direction.y)\n this.setDirection(pt(xDirection, yDirection))\n}","funcProperties":{"__isSmartRef__":true,"id":4361},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4360":{"this":{"__isSmartRef__":true,"id":4154}},"4361":{"timestamp":{"__isSmartRef__":true,"id":4362},"user":"lauritz","tags":[]},"4362":{"isSerializedDate":true,"string":"Fri Apr 27 2012 14:07:33 GMT+0200 (CEST)"},"4363":{"varMapping":{"__isSmartRef__":true,"id":4364},"source":"function getDirection() {\n return this.direction ? this.direction : pt(0,0)\n}","funcProperties":{"__isSmartRef__":true,"id":4365},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4364":{"this":{"__isSmartRef__":true,"id":4154}},"4365":{"timestamp":{"__isSmartRef__":true,"id":4366},"user":"timfelgentreff","tags":[]},"4366":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:50:04 GMT+0200 (CEST)"},"4367":{"varMapping":{"__isSmartRef__":true,"id":4368},"source":"function setDirection(arg) {\n this.direction = arg\n if (this.character && this.character.face) {\n if (arg.x === 0) {\n arg.y > 0 ? this.character.face(\"south\") : this.character.face(\"north\")\n } else if (arg.x === -1) {\n this.character.face(\"west\")\n } else {\n this.character.face(\"east\")\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4369},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4368":{"this":{"__isSmartRef__":true,"id":4154}},"4369":{"timestamp":{"__isSmartRef__":true,"id":4370},"user":"timfelgentreff","tags":[]},"4370":{"isSerializedDate":true,"string":"Fri May 04 2012 17:36:20 GMT+0200 (CEST)"},"4371":{"varMapping":{"__isSmartRef__":true,"id":4372},"source":"function setPosition(point) {\n $super(point)\n if (this.game()) {\n this.renderContext().morphNode.style.zIndex = this.game().zIndexForThings() + point.y\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4377},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4372":{"this":{"__isSmartRef__":true,"id":4154},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4373}},"4373":{"$super":{"__isSmartRef__":true,"id":4374}},"4374":{"varMapping":{"__isSmartRef__":true,"id":4375},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4376},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4375":{"obj":{"__isSmartRef__":true,"id":4154},"name":"setPosition"},"4376":{},"4377":{"timestamp":{"__isSmartRef__":true,"id":4378},"user":"undefined","tags":[]},"4378":{"isSerializedDate":true,"string":"Wed Apr 25 2012 14:54:50 GMT+0200 (CEST)"},"4379":{"varMapping":{"__isSmartRef__":true,"id":4380},"source":"function say(aString) {\n if ( !aString ) { return }\n if (!this.textBubble) {\n this.textBubble = this.toolbox(\"TextBubble\")\n this.addMorph(this.textBubble)\n }\n this.textBubble.say(aString)\n}","funcProperties":{"__isSmartRef__":true,"id":4381},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4380":{"this":{"__isSmartRef__":true,"id":4154}},"4381":{"timestamp":{"__isSmartRef__":true,"id":4382},"user":"timfelgentreff","tags":[]},"4382":{"isSerializedDate":true,"string":"Wed Apr 25 2012 14:03:55 GMT+0200 (CEST)"},"4383":{"varMapping":{"__isSmartRef__":true,"id":4384},"source":"function soliloquize() {\n this.isBusy = true\n // talk to self\n var type = this.characterType()\n if ( type && type.soliloquize ) {\n this.say(type.soliloquize())\n } else {\n this.say(\"...\")\n }\n this.isBusy = false\n}","funcProperties":{"__isSmartRef__":true,"id":4385},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4384":{"this":{"__isSmartRef__":true,"id":4154}},"4385":{"timestamp":{"__isSmartRef__":true,"id":4386},"user":"tessi","tags":[]},"4386":{"isSerializedDate":true,"string":"Sat Apr 21 2012 13:21:54 GMT+0200 (CEST)"},"4387":{"varMapping":{"__isSmartRef__":true,"id":4388},"source":"function characterType() {\n return this.character\n}","funcProperties":{"__isSmartRef__":true,"id":4389},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4388":{"this":{"__isSmartRef__":true,"id":4154}},"4389":{"timestamp":{"__isSmartRef__":true,"id":4390},"user":"timfelgentreff","tags":[]},"4390":{"isSerializedDate":true,"string":"Wed Apr 25 2012 14:00:25 GMT+0200 (CEST)"},"4391":{"varMapping":{"__isSmartRef__":true,"id":4392},"source":"function animate(bool) {\n if (bool || (bool === undefined)) {\n this.animateScript = this.startStepping(3000, \"doSomething\", {})\n } else if ( this.animateScript ){\n this.animateScript.stop()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4393},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4392":{"this":{"__isSmartRef__":true,"id":4154}},"4393":{"timestamp":{"__isSmartRef__":true,"id":4394},"user":"lauritz","tags":[]},"4394":{"isSerializedDate":true,"string":"Mon May 07 2012 11:01:40 GMT+0200 (CEST)"},"4395":{"varMapping":{"__isSmartRef__":true,"id":4396},"source":"function doSomething() {\n var r = Math.random()\n if (this.isBusy) { return }\n if (r < 0.1 && r >= 0.03 ) {\n this.startConversation()\n } else if (r < 0.03 ) {\n this.soliloquize()\n } else if (this.character.isPlayer) {\n this.fight()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4397},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4396":{"this":{"__isSmartRef__":true,"id":4154}},"4397":{"timestamp":{"__isSmartRef__":true,"id":4398},"user":"timfelgentreff","tags":[]},"4398":{"isSerializedDate":true,"string":"Fri May 04 2012 17:51:09 GMT+0200 (CEST)"},"4399":{"varMapping":{"__isSmartRef__":true,"id":4400},"source":"function map() {\n return this.owner && this.owner.isMap ? this.owner : undefined\n}","funcProperties":{"__isSmartRef__":true,"id":4401},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4400":{"this":{"__isSmartRef__":true,"id":4154}},"4401":{"timestamp":{"__isSmartRef__":true,"id":4402},"user":"lauritz","tags":[]},"4402":{"isSerializedDate":true,"string":"Wed May 02 2012 17:43:01 GMT+0200 (CEST)"},"4403":{"varMapping":{"__isSmartRef__":true,"id":4404},"source":"function game() {\n return this.map() ? this.map().game() : undefined\n}","funcProperties":{"__isSmartRef__":true,"id":4405},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4404":{"this":{"__isSmartRef__":true,"id":4154}},"4405":{"timestamp":{"__isSmartRef__":true,"id":4406},"user":"undefined","tags":[]},"4406":{"isSerializedDate":true,"string":"Wed Apr 25 2012 14:32:54 GMT+0200 (CEST)"},"4407":{"varMapping":{"__isSmartRef__":true,"id":4408},"source":"function setup() {\n this.becomeRandomCharacter()\n this.animate()\n}","funcProperties":{"__isSmartRef__":true,"id":4409},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4408":{"this":{"__isSmartRef__":true,"id":4154}},"4409":{"timestamp":{"__isSmartRef__":true,"id":4410},"user":"undefined","tags":[]},"4410":{"isSerializedDate":true,"string":"Wed Apr 25 2012 14:40:06 GMT+0200 (CEST)"},"4411":{"varMapping":{"__isSmartRef__":true,"id":4412},"source":"function copyToPartsBinWithUserRequest() {\n this.reset()\n $super()\n}","funcProperties":{"__isSmartRef__":true,"id":4417},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4412":{"this":{"__isSmartRef__":true,"id":4154},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4413}},"4413":{"$super":{"__isSmartRef__":true,"id":4414}},"4414":{"varMapping":{"__isSmartRef__":true,"id":4415},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4416},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4415":{"obj":{"__isSmartRef__":true,"id":4154},"name":"copyToPartsBinWithUserRequest"},"4416":{},"4417":{"timestamp":{"__isSmartRef__":true,"id":4418},"user":"tessi","tags":[]},"4418":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:40:19 GMT+0200 (CEST)"},"4419":{"varMapping":{"__isSmartRef__":true,"id":4420},"source":"function startConversation() {\n this.isBusy = true\n var persons = []\n this.currentTile().neighbours().each(function(tile) {\n persons.pushAll(tile.characters())\n })\n persons = persons.select(function(each) { return !each.isBusy })\n if (persons.length > 0) {\n this.startConversationWith(persons[Math.floor(Math.random()*persons.length)])\n } else {\n this.isBusy = false\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4421},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4420":{"this":{"__isSmartRef__":true,"id":4154}},"4421":{"timestamp":{"__isSmartRef__":true,"id":4422},"user":"lauritz","tags":[]},"4422":{"isSerializedDate":true,"string":"Fri Apr 27 2012 13:59:27 GMT+0200 (CEST)"},"4423":{"varMapping":{"__isSmartRef__":true,"id":4424},"source":"function startConversationWith(character) {\n // I serve as the \"conversation host\" while the other character remains passive\n // The other character is controlled by me\n this.conversationScript = this.startStepping(4000, \"conversation\", {other: character})\n}","funcProperties":{"__isSmartRef__":true,"id":4425},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4424":{"this":{"__isSmartRef__":true,"id":4154}},"4425":{"timestamp":{"__isSmartRef__":true,"id":4426},"user":"lauritz","tags":[]},"4426":{"isSerializedDate":true,"string":"Fri Apr 27 2012 13:57:47 GMT+0200 (CEST)"},"4427":{"varMapping":{"__isSmartRef__":true,"id":4428},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // full copy for death animation and life bar\n copy.lifeBar = this.lifeBar.copy()\n copy.lifeBar.character = copy\n copy.addMorph(copy.lifeBar)\n copy.deathAnimation = this.deathAnimation.copy()\n copy.deathAnimation.character = copy\n copy.addMorph(copy.deathAnimation)\n\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":4429},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4428":{"this":{"__isSmartRef__":true,"id":4154}},"4429":{"timestamp":{"__isSmartRef__":true,"id":4430},"user":"timfelgentreff","tags":[]},"4430":{"isSerializedDate":true,"string":"Fri May 04 2012 17:48:29 GMT+0200 (CEST)"},"4431":{"varMapping":{"__isSmartRef__":true,"id":4432},"source":"function conversation(args) {\n var other = args.other, a, b, stopConversation\n if (this.conversationTurn) {\n a = this; b = other\n } else {\n a = other; b = this\n }\n [a,b].invoke(\"hideTextBubble\")\n if (this.lastAnswer == null) {\n this.conversationScript.stop()\n this.lastAnswer = a.answer(undefined, b, true)\n if (this.lastAnswer) { a.say(this.lastAnswer) }\n var that = this\n setTimeout(function() {\n a.hideTextBubble()\n that.lastAnswer = b.answer(that.lastAnswer, a, true)\n if (that.lastAnswer) { b.say(that.lastAnswer) }\n a.isBusy = false\n b.isBusy = false\n }, 4000)\n }\n this.lastAnswer = a.answer(this.lastAnswer, b, false)\n if (this.lastAnswer) { a.say(this.lastAnswer) }\n this.conversationTurn = !this.conversationTurn\n}","funcProperties":{"__isSmartRef__":true,"id":4433},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4432":{"this":{"__isSmartRef__":true,"id":4154}},"4433":{"timestamp":{"__isSmartRef__":true,"id":4434},"user":"lauritz","tags":[]},"4434":{"isSerializedDate":true,"string":"Fri Apr 27 2012 14:50:04 GMT+0200 (CEST)"},"4435":{"varMapping":{"__isSmartRef__":true,"id":4436},"source":"function answer(lastSaid, other, sayGoodbye) {\n // either return a string or null to indicate that you want to stop the conversation\n // when sayGoodbye-flag is set, this is the last answer-call for this conversation\n var type = this.characterType()\n if ( type && type.answer ) {\n return type.answer(lastSaid, other, sayGoodbye)\n } else {\n if (sayGoodbye) {\n return \"Goodbye!\"\n } else {\n if ( Math.random() > 0.2 ) {\n return this.chatBot().answerTo(lastSaid);\n }\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":4437},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4436":{"this":{"__isSmartRef__":true,"id":4154}},"4437":{"timestamp":{"__isSmartRef__":true,"id":4438},"user":"tessi","tags":[]},"4438":{"isSerializedDate":true,"string":"Thu May 03 2012 15:09:16 GMT+0200 (CEST)"},"4439":{"varMapping":{"__isSmartRef__":true,"id":4440},"source":"function hideTextBubble() {\n if (this.textBubble) {\n this.textBubble.hide()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4441},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4440":{"this":{"__isSmartRef__":true,"id":4154}},"4441":{"timestamp":{"__isSmartRef__":true,"id":4442},"user":"tessi","tags":[]},"4442":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:16:32 GMT+0200 (CEST)"},"4443":{"varMapping":{"__isSmartRef__":true,"id":4444},"source":"function aStar(goal) {\n var that = this,\n start = this.currentTile(),\n closedset = [],\n openset = [start], // The set of tentative nodes to be evaluated\n came_from = {}, // The map of navigated nodes.\n g_score = {}, // general cost along best known path (as the bird flies)\n h_score = {}, // heuristic cost - used to drive parameters\n f_score = {} // sum of heuristic and general cost\n\n g_score[start] = 0 // Cost from start along best known path.\n h_score[start] = this.aStarHeuristicCostEstimate(start, goal)\n f_score[start] = g_score[start] + h_score[start] // Estimated total cost from start to goal\n\n while (openset.length > 0) { // Search until we have nothing more to search\n // Pick the next best scored candidate\n var current = openset.sortBy(function (e) { return f_score[e] }).first()\n\n if (current === goal) { // we found a path, construct the whole path and return\n var path = [],\n current_node = current\n while (came_from[current_node]) {\n path.push(current_node)\n current_node = came_from[current_node]\n }\n path.push(current_node)\n return path.reverse()\n }\n\n // We haven't found a path, mark the candidate as checked\n openset = openset.without(current)\n closedset.push(current)\n\n // check all neighbours\n current.neighboursReachableFromHere().each(function (neighbour) {\n if (!closedset.member(neighbour)) {\n // this neighbour can be walked upon and we haven't checked it before\n // assign it a score via the current path\n var tentative_g_score = g_score[current] + current.distanceTo(neighbour).r(),\n tentative_is_better = true\n\n if (!openset.member(neighbour)) {\n // we haven't given this a score before, give it a heuristic score\n openset.push(neighbour)\n h_score[neighbour] = that.aStarHeuristicCostEstimate(neighbour, goal)\n } else if (tentative_g_score >= g_score[neighbour]) {\n // we have given a better score before, this one can be dismissed\n tentative_is_better = false\n }\n\n if (tentative_is_better === true) {\n // the new score we found for this neighbour is better than the previous\n // set the new score and the new path\n came_from[neighbour] = current\n g_score[neighbour] = tentative_g_score\n f_score[neighbour] = g_score[neighbour] + h_score[neighbour]\n }\n }\n })\n }\n return []\n}","funcProperties":{"__isSmartRef__":true,"id":4445},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4444":{"this":{"__isSmartRef__":true,"id":4154}},"4445":{"timestamp":{"__isSmartRef__":true,"id":4446},"user":"timfelgentreff","tags":["pathfinding"]},"4446":{"isSerializedDate":true,"string":"Thu May 03 2012 13:29:11 GMT+0200 (CEST)"},"4447":{"varMapping":{"__isSmartRef__":true,"id":4448},"source":"function aStarHeuristicCostEstimate(from, to) {\n // this should be monotonic and consistent\n // see comment to: http://en.wikipedia.org/wiki/A*_search_algorithm#Pseudocode\n return 0\n}","funcProperties":{"__isSmartRef__":true,"id":4449},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4448":{"this":{"__isSmartRef__":true,"id":4154}},"4449":{"timestamp":{"__isSmartRef__":true,"id":4450},"user":"timfelgentreff","tags":["pathfinding"]},"4450":{"isSerializedDate":true,"string":"Thu May 03 2012 13:17:11 GMT+0200 (CEST)"},"4451":{"varMapping":{"__isSmartRef__":true,"id":4452},"source":"function aStarWalkPath(path) {\n var minPositive = function (a, b) {\n a = Math.abs(a), b = Math.abs(b)\n return a ? (b ? Math.min(a, b) : a) : b\n }\n\n var finalTile = path.last(),\n nextTile = path.first()\n\n // this.setPosition(pt(0,0))\n if (this.getPosition().equals(finalTile.getPosition())) {\n if (this.walkScript) { this.walkScript.stop() }\n this.setDirection(pt(0,1))\n this.currentTile().enterTile(this)\n } else {\n this.setDirectionToTile(nextTile)\n var directionVector = this.getPosition().subPt(nextTile.getPosition()),\n maxSpeed = minPositive(directionVector.x, directionVector.y),\n speed = Math.min(maxSpeed, this.getCurrentSpeed())\n this.moveBy(this.getDirection().scaleBy(speed))\n if (path.length > 1) { // remove all but the final tile,\n // we need that one for positioning\n var idx = path.indexOf(this.currentTile())\n if (idx > -1) {\n path.removeAt(idx)\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4453},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4452":{"this":{"__isSmartRef__":true,"id":4154}},"4453":{"timestamp":{"__isSmartRef__":true,"id":4454},"user":"lauritz","tags":[]},"4454":{"isSerializedDate":true,"string":"Sat May 05 2012 19:26:02 GMT+0200 (CEST)"},"4455":{"varMapping":{"__isSmartRef__":true,"id":4456},"source":"function chatBot() {\n if ( !this._chatbot ) { this._chatbot = new ChatBot() }\n return this._chatbot\n}","funcProperties":{"__isSmartRef__":true,"id":4457},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4456":{"this":{"__isSmartRef__":true,"id":4154}},"4457":{"timestamp":{"__isSmartRef__":true,"id":4458},"user":"tessi","tags":[]},"4458":{"isSerializedDate":true,"string":"Thu May 03 2012 15:10:15 GMT+0200 (CEST)"},"4459":{"varMapping":{"__isSmartRef__":true,"id":4460},"source":"function getHit() {\n this.lifeBar.hit()\n}","funcProperties":{"__isSmartRef__":true,"id":4461},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4460":{"this":{"__isSmartRef__":true,"id":4154}},"4461":{"timestamp":{"__isSmartRef__":true,"id":4462},"user":"timfelgentreff","tags":[]},"4462":{"isSerializedDate":true,"string":"Fri May 04 2012 17:17:49 GMT+0200 (CEST)"},"4463":{"varMapping":{"__isSmartRef__":true,"id":4464},"source":"function becomePlayer() {\n if (this.character) {\n this.character.remove()\n this.character = null\n }\n \n this.character = this.toolbox(\"Player\")\n if (this.character) {\n this.character.setExtent(this.character.getExtent().scaleBy(1.2))\n this.character.setPosition(pt(6, -5))\n this.addMorph(this.character)\n this.character.disableEvents()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4465},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4464":{"this":{"__isSmartRef__":true,"id":4154}},"4465":{"timestamp":{"__isSmartRef__":true,"id":4466},"user":"timfelgentreff","tags":[]},"4466":{"isSerializedDate":true,"string":"Fri May 04 2012 17:46:36 GMT+0200 (CEST)"},"4467":{"varMapping":{"__isSmartRef__":true,"id":4468},"source":"function fight() {\n this.isBusy = true\n var persons = []\n this.currentTile().neighbours().each(function(tile) {\n persons.pushAll(tile.characters())\n })\n persons = persons.select(function(each) { return !each.isBusy })\n if (persons.length > 0) {\n var personForFight = persons[Math.floor(Math.random()*persons.length)]\n personForFight.isBusy = true\n if (Math.round(Math.random()) === 0) {\n this.executeFightTurnAsking(this, personForFight)\n } else {\n this.executeFightTurnAsking(personForFight, this)\n }\n } else {\n this.isBusy = false\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4469},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4468":{"this":{"__isSmartRef__":true,"id":4154}},"4469":{"timestamp":{"__isSmartRef__":true,"id":4470},"user":"timfelgentreff","tags":[]},"4470":{"isSerializedDate":true,"string":"Sat May 05 2012 12:46:40 GMT+0200 (CEST)"},"4471":{"varMapping":{"__isSmartRef__":true,"id":4472},"source":"function fightPhrases() {\n return {\"This is the END for you, you gutter-crawling cur!\": \"And I've got a little TIP for you, get the POINT?\",\n\t\"Soon you'll be wearing my sword like a shish kebab!\": \"First you better stop waiving it like a feather-duster.\",\n\t\"My handkerchief will wipe up your blood!\": \"So you got that job as janitor, after all.\",\n\t\"People fall at my feet when they see me coming.\": \"Even BEFORE they smell your breath?\",\n\t\"I once owned a dog that was smarter then you.\": \"He must have taught you everything you know.\",\n\t\"You make me want to puke.\": \"You make me think somebody already did.\",\n\t\"Nobody's ever drawn blood from me and nobody ever will.\": \"You run THAT fast?\",\n\t\"You fight like a dairy farmer.\": \"How appropriate. You fight like a cow.\",\n\t\"I got this scar on my face during a mighty struggle!\": \"I hope now you've learned to stop picking your nose.\",\n\t\"Have you stopped wearing diapers yet?\": \"Why, did you want to borrow one?\",\n\t\"I've heard you were a contemptible sneak.\": \"Too bad no one's ever heard of YOU at all.\",\n\t\"You're no match for my brains, you poor fool.\": \"I'd be in real trouble if you ever used them.\",\n\t\"You have the manners of a beggar.\": \"I wanted to make sure you'd feel comfortable with me.\",\n\t\"I'm not going to take your insolence sitting down!\": \"Your hemorrhoids are flaring up again, eh?\",\n\t\"There are no words for how disgusting you are.\": \"Yes there are. You just never learned them.\",\n\t\"I've spoken with apes more polite then you.\": \"I'm glad to hear you attended your family reunion. \",\n\t\"I've got a long, sharp lesson for you you to learn today.\": \"And I've got a little TIP for you. Get the POINT?\",\n\t\"My tongue is sharper then any sword.\": \"First you better stop waving it like a feather-duster.\",\n\t\"My name is feared in every dirty corner of this island!\": \"So you got that job as janitor, after all.\",\n\t\"My wisest enemies run away at the first sight of me!\": \"Even BEFORE they smell your breath?\",\n\t\"Only once have I met such a coward!\": \"He must have taught you everything you know.\",\n\t\"If your brother's like you, better to marry a pig.\": \"You make me think somebody already did.\",\n\t\"No one will ever catch ME fighting as badly as you do.\": \"You run THAT fast?\",\n\t\"I will milk every drop of blood from your body!\": \"How appropriate. You fight like a cow.\",\n\t\"My last fight ended with my hands covered with blood.\": \"I hope now you've learned to stop picking your nose.\",\n\t\"I hope you have a boat ready for a quick escape.\": \"Why, did you want to borrow one?\",\n\t\"My sword is famous all over the Caribbean!\": \"Too bad no one's ever heard of YOU at all.\",\n\t\"I've got the courage and skill of a master swordsman!\": \"I'd be in real trouble if you ever used them.\",\n\t\"Every word you say to me is stupid.\": \"I wanted to make sure you'd feel comfortable with me.\",\n\t\"You are a pain in the backside, sir!\": \"Your hemorrhoids are flaring up again, eh?\",\n\t\"There are no clever moves that can help you now.\": \"Yes there are. You just never learned them.\",\n\t\"Now I know what filth and stupidity really are.\": \"I'm glad to hear you attended your family reunion.\",\n\t\"I usually see people like you passed-out on tavern floors.\": \"Even BEFORE they smell your breath? \",\n\t\"My attacks have left entire islands depopulated!\": \"With your breath, I'm sure they all suffocated.\",\n\t\"You have the sex appeal of a shar-pei!\": \"I look that much like your fiancée?\",\n\t\"When I'm done, your body will be rotted and putrefied!\": \"Then killing you must be justifiable fungicide.\",\n\t\"Your looks would make pigs nauseated!\": \"If you don't count all the ones you've dated.\",\n\t\"Your lips look like they belong on the catch of the day!\": \"When I'm done with you, you'll be a boneless filet.\",\n\t\"I give you a choice. You can be gutted, or decapitated!\": \"With you around, I'd rather be fumigated.\",\n\t\"Never before have I faced someone so sissified!\": \"Is that your face? I thought it was your backside.\",\n\t\"You're a disgrace to your species, you're so undignified!\": \"At least mine can be identified.\",\n\t\"Nothing can stop me from blowing you away!\": \"I could, if you would use some breath spray.\",\n\t\"I have never lost a melee!\": \"You would have, but you were always running away.\",\n\t\"Your mother wears a toupee!\": \"Oh, that is so cliché.\",\n\t\"My skills with a sword are highly venerated!\": \"Too bad they're all fabricated.\",\n\t\"Your stench would make an outhouse cleaner irritated!\": \"Then perhaps you should switch to decaffeinated.\",\n\t\"I can't tell which of my traits have you the most intimidated!\": \"Your odor alone makes me aggravated, agitated, and infuriated\",\n\t\"Nothing on this earth can save your sorry hide!\": \"The only way you'll be preserved is in formaldehyde\",\n\t\"You'll find I'm dogged and relentless to my prey!\": \"Then be a good dog, Sit! Stay! \",\n\t\"Every enemy I have met, I've annihilated!\": \"With your breath, I'm sure they all suffocated.\",\n\t\"You're as repulsive as a monkey in a negligee!\": \"I look that much like your fiancée?\",\n\t\"Killing you would be justifiable homicide!\": \"Then killing you must be justifiable fungicide.\",\n\t\"You're the ugliest monster ever created!\": \"If you don't count all the ones you've dated.\",\n\t\"I'll skewer you like a sow at a buffet!\": \"When I'm done with you, you'll be a boneless filet.\",\n\t\"Would you like to be buried, or cremated?\": \"With you around, I'd rather be fumigated.\",\n\t\"Coming face to face with me must leave you petrified!\": \"Is that your face? I thought it was your backside.\",\n\t\"When your father first saw you, he must have been mortified!\": \"At least mine can be identified.\",\n\t\"You can't match my witty repartee!\": \"I could, if you would use some breath spray.\",\n\t\"I have never seen such clumsy swordplay!\": \"You would have, but you were always running away.\",\n\t\"En Garde! Touché!\": \"Oh, that is so cliché.\",\n\t\"Throughout the Caribbean, my great deeds are celebrated!\": \"Too bad they're all fabricated.\",\n\t\"I can't rest 'til' you've been exterminated!\": \"Then perhaps you should switch to decaffeinated.\",\n\t\"I'll leave you devastated, mutilated, and perforated!\": \"Your odor alone makes me aggravated, agitated, and infuriated\",\n\t\"Heaven preserve me! You look like something that's died!\": \"The only way you'll be preserved is in formaldehyde\",\n\t\"I'll hound you night and day!\": \"Then be a good dog, Sit! Stay! \",\n\t\"Today, by myself, twelve people I've beaten.\": \"From the size of your gut I'd guess they were eaten.\",\n\t\"I've got muscles in places you've never even heard of.\": \"It's too bad none of them are in your arms.\",\n\t\"Give up now, or I'll crush you like a grape!\": \"I would if it would stop your WINE-ING.\",\n\t\"My ninety-eight year old grandmother has bigger arms than you!\": \"Yeah, but we both got better bladder control than you do.\",\n\t\"I'm going to put your arm in a sling!\": \"Why, ya studying to be a nurse?\",\n\t\"My stupefying strength will shatter your ulna into a million pieces!\": \"I'm surprised you can count that high!\",\n\t\"Hey, look over there!\": \"Yeah, yeah I know: it's a three headed monkey.\",\n\t\"Your knuckles I'll grind to a splintery paste.\": \"I thought that the been dip had a strange taste.\",\n\t\"Your arms are no bigger than fleas that I've met!\": \"So THAT'S why you're scratching. I'd go see a vet.\",\n\t\"People consider my fists lethal weapons!\": \"Sadly, your breath should be equally reckoned.\",\n\t\"Only once have I met such a coward!\": \"He must have taught you everything you know.\",\n\t\"You're the ugliest creature I've ever seen in my life.\": \"I'm shocked that you've never gazed at your wife.\",\n\t\"My forearms have been mistaken for tree trunks!\": \"An over-the-counter defoliant could help with that problem.\",\n\t\"I've out-wrestled octopi with these arms!\": \"I'm sure that spineless creatures everywhere are humbled by your might.\",\n\t\"Do I see quivers of agony dance on your lip?\": \"It's laughter that's caused by your feathery grip.\"}\n}","funcProperties":{"__isSmartRef__":true,"id":4473},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4472":{"this":{"__isSmartRef__":true,"id":4154}},"4473":{"timestamp":{"__isSmartRef__":true,"id":4474},"user":"timfelgentreff","tags":[]},"4474":{"isSerializedDate":true,"string":"Fri May 04 2012 17:54:30 GMT+0200 (CEST)"},"4475":{"varMapping":{"__isSmartRef__":true,"id":4476},"source":"function randomQuestions(count) {\n if (!count) { count = 8 }\n\n var choices = [],\n questions = Properties.own(this.fightPhrases())\n\n for (var i = 0; i < count; i++) {\n var idx = Math.round(Math.random() * questions.length)\n choices.push(questions[idx])\n questions.removeAt(idx)\n }\n\n return choices\n}","funcProperties":{"__isSmartRef__":true,"id":4477},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4476":{"this":{"__isSmartRef__":true,"id":4154}},"4477":{"timestamp":{"__isSmartRef__":true,"id":4478},"user":"timfelgentreff","tags":[]},"4478":{"isSerializedDate":true,"string":"Fri May 04 2012 17:56:30 GMT+0200 (CEST)"},"4479":{"varMapping":{"__isSmartRef__":true,"id":4480},"source":"function randomAnswersFor(question, count) {\n if (!count) { count = 8 }\n\n var choices = [],\n phrases = this.fightPhrases(),\n answers = Properties.own(phrases).collect(function (q) {\n return phrases[q]\n })\n\n choices.push(phrases[question])\n answers.removeAt(Properties.own(phrases).indexOf(question))\n\n for (var i = 1; i < count; i++) {\n var idx = Math.round(Math.random() * answers.length)\n choices.push(answers[idx])\n answers.removeAt(idx)\n }\n\n return choices.sortBy(function (ea) { return Math.random() })\n}","funcProperties":{"__isSmartRef__":true,"id":4481},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4480":{"this":{"__isSmartRef__":true,"id":4154}},"4481":{"timestamp":{"__isSmartRef__":true,"id":4482},"user":"lauritz","tags":[]},"4482":{"isSerializedDate":true,"string":"Mon May 07 2012 19:18:12 GMT+0200 (CEST)"},"4483":{"varMapping":{"__isSmartRef__":true,"id":4484},"source":"function executeFightTurnAsking(asker, responder) {\n var menu = this.toolbox(\"FightMenu\"),\n talkTimeout = 4000,\n nextTurnCallback = function (answer, correctAnswer) {\n if (correctAnswer === answer) {\n // switch turns\n asker.executeFightTurnAsking(responder, asker)\n } else {\n responder.getHit()\n if (!responder.isDead()) {\n asker.executeFightTurnAsking(asker, responder)\n }\n }\n }\n\n // Check if the last looser is dead, first\n if (responder.isDead()) {\n responder.isBusy = false\n asker.isBusy = false\n asker.heal()\n asker.select()\n return\n }\n \n // Fight\n if (asker.character.isPlayer) {\n menu.setHeader(\"Choose your insult\")\n menu.setList(asker.randomQuestions(8), function (str) {\n menu.remove()\n asker.say(str)\n setTimeout(function () {\n // the npc has a 1/3 chance of answering right\n var response = responder.randomAnswersFor(str, 3)[Math.round(Math.random() * 2)],\n correctAnswer = responder.randomAnswersFor(str, 1)[0]\n responder.say(response)\n setTimeout(function () {\n nextTurnCallback(response, correctAnswer)\n }, talkTimeout)\n }, talkTimeout)\n })\n asker.map().addMorph(menu)\n menu.setPosition(pt(asker.map().getExtent().x / 2 - menu.getExtent().x / 2, 0))\n } else {\n var question = asker.randomQuestions(1)[0],\n answer = asker.randomAnswersFor(question)[0]\n asker.say(question)\n setTimeout(function () {\n menu.setHeader(\"What do you reply to '\" + question + \"'?\")\n menu.setList(responder.randomAnswersFor(question, 7), function (str) {\n menu.remove()\n responder.say(str)\n setTimeout(function () {\n nextTurnCallback(str, answer)\n }, talkTimeout)\n })\n asker.map().addMorph(menu)\n menu.setPosition(pt(asker.map().getExtent().x / 2 - menu.getExtent().x / 2, 0))\n }, talkTimeout)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4485},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4484":{"this":{"__isSmartRef__":true,"id":4154}},"4485":{"timestamp":{"__isSmartRef__":true,"id":4486},"user":"lauritz","tags":[]},"4486":{"isSerializedDate":true,"string":"Mon May 07 2012 11:47:46 GMT+0200 (CEST)"},"4487":{"varMapping":{"__isSmartRef__":true,"id":4488},"source":"function heal() {\n this.lifeBar.heal()\n}","funcProperties":{"__isSmartRef__":true,"id":4489},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4488":{"this":{"__isSmartRef__":true,"id":4154}},"4489":{"timestamp":{"__isSmartRef__":true,"id":4490},"user":"timfelgentreff","tags":[]},"4490":{"isSerializedDate":true,"string":"Sat May 05 2012 12:38:05 GMT+0200 (CEST)"},"4491":{"varMapping":{"__isSmartRef__":true,"id":4492},"source":"function isDead() {\n return this.lifeBar.isDead()\n}","funcProperties":{"__isSmartRef__":true,"id":4493},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4492":{"this":{"__isSmartRef__":true,"id":4154}},"4493":{"timestamp":{"__isSmartRef__":true,"id":4494},"user":"timfelgentreff","tags":[]},"4494":{"isSerializedDate":true,"string":"Sat May 05 2012 12:38:28 GMT+0200 (CEST)"},"4495":{"timestamp":{"__isSmartRef__":true,"id":4151},"user":"lauritz","tags":[]},"4496":{"originalFunc":{"__isSmartRef__":true,"id":4152}},"4497":{"varMapping":{"__isSmartRef__":true,"id":4498},"source":"function setNormalStyle() {\n this.setDevStyle()\n this.shape.setBorderColor(new Color.rgba(0,0,0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":4499},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4500},"__LivelyClassName__":"lively.Closure"},"4498":{"this":{"__isSmartRef__":true,"id":3691}},"4499":{"timestamp":{"__isSmartRef__":true,"id":4299},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4296},"declaredObject":""},"4500":{"originalFunc":{"__isSmartRef__":true,"id":4296}},"4501":{"varMapping":{"__isSmartRef__":true,"id":4502},"source":"function tileSize() {\n return this.map().tileSize()\n}","funcProperties":{"__isSmartRef__":true,"id":4503},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4504},"__LivelyClassName__":"lively.Closure"},"4502":{"this":{"__isSmartRef__":true,"id":3691}},"4503":{"timestamp":{"__isSmartRef__":true,"id":4303},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4300},"declaredObject":""},"4504":{"originalFunc":{"__isSmartRef__":true,"id":4300}},"4505":{"varMapping":{"__isSmartRef__":true,"id":4506},"source":"function become(player) {\n if (this.character) {\n this.character.remove()\n this.character = null\n }\n if (!player) { return this }\n \n this.character = this.toolbox(player + \"Character\")\n if (this.character) {\n // image should be 150% of a tile\n this.character.setExtent(this.tileSize().scaleBy(1.5))\n // -25% offset to center character on tile\n this.character.setPositionTopLeft(this.tileSize().scaleBy(-0.25))\n this.addMorph(this.character)\n this.character.ignoreEvents()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4507},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4508},"__LivelyClassName__":"lively.Closure"},"4506":{"this":{"__isSmartRef__":true,"id":3691}},"4507":{"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4304},"declaredObject":""},"4508":{"originalFunc":{"__isSmartRef__":true,"id":4304}},"4509":{"varMapping":{"__isSmartRef__":true,"id":4510},"source":"function walkUntilReached(tile) {\n var minPositive = function (a, b) {\n a = Math.abs(a), b = Math.abs(b)\n return a ? (b ? Math.min(a, b) : a) : b\n }\n\n // this.setPosition(pt(0,0))\n if (this.getPosition().equals(tile.getPosition())) {\n if (this.walkScript) { this.walkScript.stop() }\n this.setDirection(pt(0,0))\n tile.enterTile(this)\n } else {\n if (this.currentTile() !== tile) {\n this.setDirectionToTile(tile)\n var nextNeighbours = this.currentTile().neighboursInDirection(this.getDirection())\n if (nextNeighbours.any(function (each) { return each.isObstacle() })) {\n this.walkTo(this.currentTile())\n } else {\n var directionVector = this.getPosition().subPt(tile.getPosition()),\n maxSpeed = minPositive(directionVector.x, directionVector.y),\n speed = Math.min(maxSpeed, this.getCurrentSpeed())\n this.moveBy(this.getDirection().scaleBy(speed))\n }\n } else {\n var directionVector = this.getPosition().subPt(tile.getPosition()),\n maxSpeed = minPositive(directionVector.x, directionVector.y),\n speed = Math.min(maxSpeed, this.getCurrentSpeed())\n this.moveBy(this.getDirection().scaleBy(speed))\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4511},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4512},"__LivelyClassName__":"lively.Closure"},"4510":{"this":{"__isSmartRef__":true,"id":3691}},"4511":{"timestamp":{"__isSmartRef__":true,"id":4310},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4307},"declaredObject":""},"4512":{"originalFunc":{"__isSmartRef__":true,"id":4307}},"4513":{"varMapping":{"__isSmartRef__":true,"id":4514},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.game()) {\n if (this.game().selectedUnit !== this) {\n if (this.game().selectedUnit !== null) {\n this.game().selectedUnit.deselect()\n }\n this.select()\n } else {\n this.deselect()\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4519},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4520},"__LivelyClassName__":"lively.Closure"},"4514":{"this":{"__isSmartRef__":true,"id":3691},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4515}},"4515":{"$super":{"__isSmartRef__":true,"id":4516}},"4516":{"varMapping":{"__isSmartRef__":true,"id":4517},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4518},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4517":{"obj":{"__isSmartRef__":true,"id":3691},"name":"onMouseDown"},"4518":{},"4519":{"timestamp":{"__isSmartRef__":true,"id":4318},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4311},"declaredObject":""},"4520":{"originalFunc":{"__isSmartRef__":true,"id":4311}},"4521":{"varMapping":{"__isSmartRef__":true,"id":4522},"source":"function walkTo(tile) {\n this.lastSpeedTimestamp = Date.now()\n var path = this.aStar(tile),\n that = this\n if (path.length === 0) {\n alertOK(\"No path found\")\n } else {\n this.walkScript = this.startStepping(10, \"aStarWalkPath\", path)\n }\n // this.walkScript = this.startStepping(10, \"walkUntilReached\", tile)\n this.currentTile().leaveTile(this)\n}","funcProperties":{"__isSmartRef__":true,"id":4523},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4524},"__LivelyClassName__":"lively.Closure"},"4522":{"this":{"__isSmartRef__":true,"id":3691}},"4523":{"timestamp":{"__isSmartRef__":true,"id":4322},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4319},"declaredObject":""},"4524":{"originalFunc":{"__isSmartRef__":true,"id":4319}},"4525":{"varMapping":{"__isSmartRef__":true,"id":4526},"source":"function currentTile() {\n if ( !this.character || !this.map() ) { return null }\n return this.map().getTileForPosition(\n this.getPosition().addPt(this.character.getBounds().center()))\n}","funcProperties":{"__isSmartRef__":true,"id":4527},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4528},"__LivelyClassName__":"lively.Closure"},"4526":{"this":{"__isSmartRef__":true,"id":3691}},"4527":{"timestamp":{"__isSmartRef__":true,"id":4326},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4323},"declaredObject":""},"4528":{"originalFunc":{"__isSmartRef__":true,"id":4323}},"4529":{"varMapping":{"__isSmartRef__":true,"id":4530},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":4531},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4532},"__LivelyClassName__":"lively.Closure"},"4530":{"this":{"__isSmartRef__":true,"id":3691}},"4531":{"timestamp":{"__isSmartRef__":true,"id":4330},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4327},"declaredObject":""},"4532":{"originalFunc":{"__isSmartRef__":true,"id":4327}},"4533":{"varMapping":{"__isSmartRef__":true,"id":4534},"source":"function setCurrentSpeed(arg) {\n this.currentSpeed = arg\n}","funcProperties":{"__isSmartRef__":true,"id":4535},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4536},"__LivelyClassName__":"lively.Closure"},"4534":{"this":{"__isSmartRef__":true,"id":3691}},"4535":{"timestamp":{"__isSmartRef__":true,"id":4334},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4331},"declaredObject":""},"4536":{"originalFunc":{"__isSmartRef__":true,"id":4331}},"4537":{"varMapping":{"__isSmartRef__":true,"id":4538},"source":"function getCurrentSpeed() {\n var multiplier = (Date.now() - this.lastSpeedTimestamp) / 10\n this.lastSpeedTimestamp = Date.now()\n return multiplier\n}","funcProperties":{"__isSmartRef__":true,"id":4539},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4540},"__LivelyClassName__":"lively.Closure"},"4538":{"this":{"__isSmartRef__":true,"id":3691}},"4539":{"timestamp":{"__isSmartRef__":true,"id":4338},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4335},"declaredObject":""},"4540":{"originalFunc":{"__isSmartRef__":true,"id":4335}},"4541":{"varMapping":{"__isSmartRef__":true,"id":4542},"source":"function isWalking() {\n return !this.getDirection().equals(pt(0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":4543},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4544},"__LivelyClassName__":"lively.Closure"},"4542":{"this":{"__isSmartRef__":true,"id":3691}},"4543":{"timestamp":{"__isSmartRef__":true,"id":4342},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4339},"declaredObject":""},"4544":{"originalFunc":{"__isSmartRef__":true,"id":4339}},"4545":{"varMapping":{"__isSmartRef__":true,"id":4546},"source":"function select() {\n this.game().selectedUnit = this\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":4547},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4548},"__LivelyClassName__":"lively.Closure"},"4546":{"this":{"__isSmartRef__":true,"id":3691}},"4547":{"timestamp":{"__isSmartRef__":true,"id":4346},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4343},"declaredObject":""},"4548":{"originalFunc":{"__isSmartRef__":true,"id":4343}},"4549":{"varMapping":{"__isSmartRef__":true,"id":4550},"source":"function deselect() {\n this.game().selectedUnit = null\n this.setNormalStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":4551},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4552},"__LivelyClassName__":"lively.Closure"},"4550":{"this":{"__isSmartRef__":true,"id":3691}},"4551":{"timestamp":{"__isSmartRef__":true,"id":4350},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4347},"declaredObject":""},"4552":{"originalFunc":{"__isSmartRef__":true,"id":4347}},"4553":{"varMapping":{"__isSmartRef__":true,"id":4554},"source":"function becomeRandomCharacter() {\n var characterNames = this.game().partNamesEndingWith(\"Character\")\n this.become(characterNames[Math.round(Math.random() * (characterNames.length - 1))])\n}","funcProperties":{"__isSmartRef__":true,"id":4555},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4556},"__LivelyClassName__":"lively.Closure"},"4554":{"this":{"__isSmartRef__":true,"id":3691}},"4555":{"timestamp":{"__isSmartRef__":true,"id":4354},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4351},"declaredObject":""},"4556":{"originalFunc":{"__isSmartRef__":true,"id":4351}},"4557":{"varMapping":{"__isSmartRef__":true,"id":4558},"source":"function reset() {\n this.become(null)\n this.submorphs.invoke(\"remove\")\n this.stopStepping()\n this.conversationScript = this.walkScript = this.animateScript = undefined\n this.lastAnswer = this.conversationTurn = this.textBubble = this.isBusy = undefined\n this.setDevStyle()\n this.addMorph(this.lifeBar)\n this.lifeBar.reset()\n this.addMorph(this.deathAnimation)\n this.deathAnimation.reset()\n}","funcProperties":{"__isSmartRef__":true,"id":4559},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4560},"__LivelyClassName__":"lively.Closure"},"4558":{"this":{"__isSmartRef__":true,"id":3691}},"4559":{"timestamp":{"__isSmartRef__":true,"id":4358},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4355},"declaredObject":""},"4560":{"originalFunc":{"__isSmartRef__":true,"id":4355}},"4561":{"varMapping":{"__isSmartRef__":true,"id":4562},"source":"function setDirectionToTile(tile) {\n var direction = tile.getPosition().subPt(this.getPosition()),\n xDirection = direction.x / Math.abs(direction.x),\n yDirection = direction.y / Math.abs(direction.y)\n this.setDirection(pt(xDirection, yDirection))\n}","funcProperties":{"__isSmartRef__":true,"id":4563},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4564},"__LivelyClassName__":"lively.Closure"},"4562":{"this":{"__isSmartRef__":true,"id":3691}},"4563":{"timestamp":{"__isSmartRef__":true,"id":4362},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4359},"declaredObject":""},"4564":{"originalFunc":{"__isSmartRef__":true,"id":4359}},"4565":{"varMapping":{"__isSmartRef__":true,"id":4566},"source":"function getDirection() {\n return this.direction ? this.direction : pt(0,0)\n}","funcProperties":{"__isSmartRef__":true,"id":4567},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4568},"__LivelyClassName__":"lively.Closure"},"4566":{"this":{"__isSmartRef__":true,"id":3691}},"4567":{"timestamp":{"__isSmartRef__":true,"id":4366},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4363},"declaredObject":""},"4568":{"originalFunc":{"__isSmartRef__":true,"id":4363}},"4569":{"varMapping":{"__isSmartRef__":true,"id":4570},"source":"function setDirection(arg) {\n this.direction = arg\n if (this.character && this.character.face) {\n if (arg.x === 0) {\n arg.y > 0 ? this.character.face(\"south\") : this.character.face(\"north\")\n } else if (arg.x === -1) {\n this.character.face(\"west\")\n } else {\n this.character.face(\"east\")\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4571},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4572},"__LivelyClassName__":"lively.Closure"},"4570":{"this":{"__isSmartRef__":true,"id":3691}},"4571":{"timestamp":{"__isSmartRef__":true,"id":4370},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4367},"declaredObject":""},"4572":{"originalFunc":{"__isSmartRef__":true,"id":4367}},"4573":{"varMapping":{"__isSmartRef__":true,"id":4574},"source":"function setPosition(point) {\n $super(point)\n if (this.game()) {\n this.renderContext().morphNode.style.zIndex = this.game().zIndexForThings() + point.y\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4579},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4580},"__LivelyClassName__":"lively.Closure"},"4574":{"this":{"__isSmartRef__":true,"id":3691},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4575}},"4575":{"$super":{"__isSmartRef__":true,"id":4576}},"4576":{"varMapping":{"__isSmartRef__":true,"id":4577},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4578},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4577":{"obj":{"__isSmartRef__":true,"id":3691},"name":"setPosition"},"4578":{},"4579":{"timestamp":{"__isSmartRef__":true,"id":4378},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4371},"declaredObject":""},"4580":{"originalFunc":{"__isSmartRef__":true,"id":4371}},"4581":{"varMapping":{"__isSmartRef__":true,"id":4582},"source":"function say(aString) {\n if ( !aString ) { return }\n if (!this.textBubble) {\n this.textBubble = this.toolbox(\"TextBubble\")\n this.addMorph(this.textBubble)\n }\n this.textBubble.say(aString)\n}","funcProperties":{"__isSmartRef__":true,"id":4583},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4584},"__LivelyClassName__":"lively.Closure"},"4582":{"this":{"__isSmartRef__":true,"id":3691}},"4583":{"timestamp":{"__isSmartRef__":true,"id":4382},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4379},"declaredObject":""},"4584":{"originalFunc":{"__isSmartRef__":true,"id":4379}},"4585":{"varMapping":{"__isSmartRef__":true,"id":4586},"source":"function soliloquize() {\n this.isBusy = true\n // talk to self\n var type = this.characterType()\n if ( type && type.soliloquize ) {\n this.say(type.soliloquize())\n } else {\n this.say(\"...\")\n }\n this.isBusy = false\n}","funcProperties":{"__isSmartRef__":true,"id":4587},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4588},"__LivelyClassName__":"lively.Closure"},"4586":{"this":{"__isSmartRef__":true,"id":3691}},"4587":{"timestamp":{"__isSmartRef__":true,"id":4386},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4383},"declaredObject":""},"4588":{"originalFunc":{"__isSmartRef__":true,"id":4383}},"4589":{"varMapping":{"__isSmartRef__":true,"id":4590},"source":"function characterType() {\n return this.character\n}","funcProperties":{"__isSmartRef__":true,"id":4591},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4592},"__LivelyClassName__":"lively.Closure"},"4590":{"this":{"__isSmartRef__":true,"id":3691}},"4591":{"timestamp":{"__isSmartRef__":true,"id":4390},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4387},"declaredObject":""},"4592":{"originalFunc":{"__isSmartRef__":true,"id":4387}},"4593":{"varMapping":{"__isSmartRef__":true,"id":4594},"source":"function animate(bool) {\n if (bool || (bool === undefined)) {\n this.animateScript = this.startStepping(3000, \"doSomething\", {})\n } else if ( this.animateScript ){\n this.animateScript.stop()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4595},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4596},"__LivelyClassName__":"lively.Closure"},"4594":{"this":{"__isSmartRef__":true,"id":3691}},"4595":{"timestamp":{"__isSmartRef__":true,"id":4394},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4391},"declaredObject":""},"4596":{"originalFunc":{"__isSmartRef__":true,"id":4391}},"4597":{"varMapping":{"__isSmartRef__":true,"id":4598},"source":"function doSomething() {\n var r = Math.random()\n if (this.isBusy) { return }\n if (r < 0.1 && r >= 0.03 ) {\n this.startConversation()\n } else if (r < 0.03 ) {\n this.soliloquize()\n } else if (this.character.isPlayer) {\n this.fight()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4599},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4600},"__LivelyClassName__":"lively.Closure"},"4598":{"this":{"__isSmartRef__":true,"id":3691}},"4599":{"timestamp":{"__isSmartRef__":true,"id":4398},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4395},"declaredObject":""},"4600":{"originalFunc":{"__isSmartRef__":true,"id":4395}},"4601":{"varMapping":{"__isSmartRef__":true,"id":4602},"source":"function map() {\n return this.owner && this.owner.isMap ? this.owner : undefined\n}","funcProperties":{"__isSmartRef__":true,"id":4603},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4604},"__LivelyClassName__":"lively.Closure"},"4602":{"this":{"__isSmartRef__":true,"id":3691}},"4603":{"timestamp":{"__isSmartRef__":true,"id":4402},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4399},"declaredObject":""},"4604":{"originalFunc":{"__isSmartRef__":true,"id":4399}},"4605":{"varMapping":{"__isSmartRef__":true,"id":4606},"source":"function game() {\n return this.map() ? this.map().game() : undefined\n}","funcProperties":{"__isSmartRef__":true,"id":4607},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4608},"__LivelyClassName__":"lively.Closure"},"4606":{"this":{"__isSmartRef__":true,"id":3691}},"4607":{"timestamp":{"__isSmartRef__":true,"id":4406},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4403},"declaredObject":""},"4608":{"originalFunc":{"__isSmartRef__":true,"id":4403}},"4609":{"varMapping":{"__isSmartRef__":true,"id":4610},"source":"function setup() {\n this.becomeRandomCharacter()\n this.animate()\n}","funcProperties":{"__isSmartRef__":true,"id":4611},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4612},"__LivelyClassName__":"lively.Closure"},"4610":{"this":{"__isSmartRef__":true,"id":3691}},"4611":{"timestamp":{"__isSmartRef__":true,"id":4410},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4407},"declaredObject":""},"4612":{"originalFunc":{"__isSmartRef__":true,"id":4407}},"4613":{"varMapping":{"__isSmartRef__":true,"id":4614},"source":"function copyToPartsBinWithUserRequest() {\n this.reset()\n $super()\n}","funcProperties":{"__isSmartRef__":true,"id":4619},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4620},"__LivelyClassName__":"lively.Closure"},"4614":{"this":{"__isSmartRef__":true,"id":3691},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4615}},"4615":{"$super":{"__isSmartRef__":true,"id":4616}},"4616":{"varMapping":{"__isSmartRef__":true,"id":4617},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4618},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4617":{"obj":{"__isSmartRef__":true,"id":3691},"name":"copyToPartsBinWithUserRequest"},"4618":{},"4619":{"timestamp":{"__isSmartRef__":true,"id":4418},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4411},"declaredObject":""},"4620":{"originalFunc":{"__isSmartRef__":true,"id":4411}},"4621":{"varMapping":{"__isSmartRef__":true,"id":4622},"source":"function startConversation() {\n this.isBusy = true\n var persons = []\n this.currentTile().neighbours().each(function(tile) {\n persons.pushAll(tile.characters())\n })\n persons = persons.select(function(each) { return !each.isBusy })\n if (persons.length > 0) {\n this.startConversationWith(persons[Math.floor(Math.random()*persons.length)])\n } else {\n this.isBusy = false\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4623},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4624},"__LivelyClassName__":"lively.Closure"},"4622":{"this":{"__isSmartRef__":true,"id":3691}},"4623":{"timestamp":{"__isSmartRef__":true,"id":4422},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4419},"declaredObject":""},"4624":{"originalFunc":{"__isSmartRef__":true,"id":4419}},"4625":{"varMapping":{"__isSmartRef__":true,"id":4626},"source":"function startConversationWith(character) {\n // I serve as the \"conversation host\" while the other character remains passive\n // The other character is controlled by me\n this.conversationScript = this.startStepping(4000, \"conversation\", {other: character})\n}","funcProperties":{"__isSmartRef__":true,"id":4627},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4628},"__LivelyClassName__":"lively.Closure"},"4626":{"this":{"__isSmartRef__":true,"id":3691}},"4627":{"timestamp":{"__isSmartRef__":true,"id":4426},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4423},"declaredObject":""},"4628":{"originalFunc":{"__isSmartRef__":true,"id":4423}},"4629":{"varMapping":{"__isSmartRef__":true,"id":4630},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // full copy for death animation and life bar\n copy.lifeBar = this.lifeBar.copy()\n copy.lifeBar.character = copy\n copy.addMorph(copy.lifeBar)\n copy.deathAnimation = this.deathAnimation.copy()\n copy.deathAnimation.character = copy\n copy.addMorph(copy.deathAnimation)\n\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":4631},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4632},"__LivelyClassName__":"lively.Closure"},"4630":{"this":{"__isSmartRef__":true,"id":3691}},"4631":{"timestamp":{"__isSmartRef__":true,"id":4430},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4427},"declaredObject":""},"4632":{"originalFunc":{"__isSmartRef__":true,"id":4427}},"4633":{"varMapping":{"__isSmartRef__":true,"id":4634},"source":"function conversation(args) {\n var other = args.other, a, b, stopConversation\n if (this.conversationTurn) {\n a = this; b = other\n } else {\n a = other; b = this\n }\n [a,b].invoke(\"hideTextBubble\")\n if (this.lastAnswer == null) {\n this.conversationScript.stop()\n this.lastAnswer = a.answer(undefined, b, true)\n if (this.lastAnswer) { a.say(this.lastAnswer) }\n var that = this\n setTimeout(function() {\n a.hideTextBubble()\n that.lastAnswer = b.answer(that.lastAnswer, a, true)\n if (that.lastAnswer) { b.say(that.lastAnswer) }\n a.isBusy = false\n b.isBusy = false\n }, 4000)\n }\n this.lastAnswer = a.answer(this.lastAnswer, b, false)\n if (this.lastAnswer) { a.say(this.lastAnswer) }\n this.conversationTurn = !this.conversationTurn\n}","funcProperties":{"__isSmartRef__":true,"id":4635},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4636},"__LivelyClassName__":"lively.Closure"},"4634":{"this":{"__isSmartRef__":true,"id":3691}},"4635":{"timestamp":{"__isSmartRef__":true,"id":4434},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4431},"declaredObject":""},"4636":{"originalFunc":{"__isSmartRef__":true,"id":4431}},"4637":{"varMapping":{"__isSmartRef__":true,"id":4638},"source":"function answer(lastSaid, other, sayGoodbye) {\n // either return a string or null to indicate that you want to stop the conversation\n // when sayGoodbye-flag is set, this is the last answer-call for this conversation\n var type = this.characterType()\n if ( type && type.answer ) {\n return type.answer(lastSaid, other, sayGoodbye)\n } else {\n if (sayGoodbye) {\n return \"Goodbye!\"\n } else {\n if ( Math.random() > 0.2 ) {\n return this.chatBot().answerTo(lastSaid);\n }\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":4639},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4640},"__LivelyClassName__":"lively.Closure"},"4638":{"this":{"__isSmartRef__":true,"id":3691}},"4639":{"timestamp":{"__isSmartRef__":true,"id":4438},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4435},"declaredObject":""},"4640":{"originalFunc":{"__isSmartRef__":true,"id":4435}},"4641":{"varMapping":{"__isSmartRef__":true,"id":4642},"source":"function hideTextBubble() {\n if (this.textBubble) {\n this.textBubble.hide()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4643},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4644},"__LivelyClassName__":"lively.Closure"},"4642":{"this":{"__isSmartRef__":true,"id":3691}},"4643":{"timestamp":{"__isSmartRef__":true,"id":4442},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4439},"declaredObject":""},"4644":{"originalFunc":{"__isSmartRef__":true,"id":4439}},"4645":{"varMapping":{"__isSmartRef__":true,"id":4646},"source":"function aStar(goal) {\n var that = this,\n start = this.currentTile(),\n closedset = [],\n openset = [start], // The set of tentative nodes to be evaluated\n came_from = {}, // The map of navigated nodes.\n g_score = {}, // general cost along best known path (as the bird flies)\n h_score = {}, // heuristic cost - used to drive parameters\n f_score = {} // sum of heuristic and general cost\n\n g_score[start] = 0 // Cost from start along best known path.\n h_score[start] = this.aStarHeuristicCostEstimate(start, goal)\n f_score[start] = g_score[start] + h_score[start] // Estimated total cost from start to goal\n\n while (openset.length > 0) { // Search until we have nothing more to search\n // Pick the next best scored candidate\n var current = openset.sortBy(function (e) { return f_score[e] }).first()\n\n if (current === goal) { // we found a path, construct the whole path and return\n var path = [],\n current_node = current\n while (came_from[current_node]) {\n path.push(current_node)\n current_node = came_from[current_node]\n }\n path.push(current_node)\n return path.reverse()\n }\n\n // We haven't found a path, mark the candidate as checked\n openset = openset.without(current)\n closedset.push(current)\n\n // check all neighbours\n current.neighboursReachableFromHere().each(function (neighbour) {\n if (!closedset.member(neighbour)) {\n // this neighbour can be walked upon and we haven't checked it before\n // assign it a score via the current path\n var tentative_g_score = g_score[current] + current.distanceTo(neighbour).r(),\n tentative_is_better = true\n\n if (!openset.member(neighbour)) {\n // we haven't given this a score before, give it a heuristic score\n openset.push(neighbour)\n h_score[neighbour] = that.aStarHeuristicCostEstimate(neighbour, goal)\n } else if (tentative_g_score >= g_score[neighbour]) {\n // we have given a better score before, this one can be dismissed\n tentative_is_better = false\n }\n\n if (tentative_is_better === true) {\n // the new score we found for this neighbour is better than the previous\n // set the new score and the new path\n came_from[neighbour] = current\n g_score[neighbour] = tentative_g_score\n f_score[neighbour] = g_score[neighbour] + h_score[neighbour]\n }\n }\n })\n }\n return []\n}","funcProperties":{"__isSmartRef__":true,"id":4647},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4648},"__LivelyClassName__":"lively.Closure"},"4646":{"this":{"__isSmartRef__":true,"id":3691}},"4647":{"timestamp":{"__isSmartRef__":true,"id":4446},"user":"timfelgentreff","tags":["pathfinding"],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4443},"declaredObject":""},"4648":{"originalFunc":{"__isSmartRef__":true,"id":4443}},"4649":{"varMapping":{"__isSmartRef__":true,"id":4650},"source":"function aStarHeuristicCostEstimate(from, to) {\n // this should be monotonic and consistent\n // see comment to: http://en.wikipedia.org/wiki/A*_search_algorithm#Pseudocode\n return 0\n}","funcProperties":{"__isSmartRef__":true,"id":4651},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4652},"__LivelyClassName__":"lively.Closure"},"4650":{"this":{"__isSmartRef__":true,"id":3691}},"4651":{"timestamp":{"__isSmartRef__":true,"id":4450},"user":"timfelgentreff","tags":["pathfinding"],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4447},"declaredObject":""},"4652":{"originalFunc":{"__isSmartRef__":true,"id":4447}},"4653":{"varMapping":{"__isSmartRef__":true,"id":4654},"source":"function aStarWalkPath(path) {\n var minPositive = function (a, b) {\n a = Math.abs(a), b = Math.abs(b)\n return a ? (b ? Math.min(a, b) : a) : b\n }\n\n var finalTile = path.last(),\n nextTile = path.first()\n\n // this.setPosition(pt(0,0))\n if (this.getPosition().equals(finalTile.getPosition())) {\n if (this.walkScript) { this.walkScript.stop() }\n this.setDirection(pt(0,1))\n this.currentTile().enterTile(this)\n } else {\n this.setDirectionToTile(nextTile)\n var directionVector = this.getPosition().subPt(nextTile.getPosition()),\n maxSpeed = minPositive(directionVector.x, directionVector.y),\n speed = Math.min(maxSpeed, this.getCurrentSpeed())\n this.moveBy(this.getDirection().scaleBy(speed))\n if (path.length > 1) { // remove all but the final tile,\n // we need that one for positioning\n var idx = path.indexOf(this.currentTile())\n if (idx > -1) {\n path.removeAt(idx)\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4655},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4656},"__LivelyClassName__":"lively.Closure"},"4654":{"this":{"__isSmartRef__":true,"id":3691}},"4655":{"timestamp":{"__isSmartRef__":true,"id":4454},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4451},"declaredObject":""},"4656":{"originalFunc":{"__isSmartRef__":true,"id":4451}},"4657":{"varMapping":{"__isSmartRef__":true,"id":4658},"source":"function chatBot() {\n if ( !this._chatbot ) { this._chatbot = new ChatBot() }\n return this._chatbot\n}","funcProperties":{"__isSmartRef__":true,"id":4659},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4660},"__LivelyClassName__":"lively.Closure"},"4658":{"this":{"__isSmartRef__":true,"id":3691}},"4659":{"timestamp":{"__isSmartRef__":true,"id":4458},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4455},"declaredObject":""},"4660":{"originalFunc":{"__isSmartRef__":true,"id":4455}},"4661":{"varMapping":{"__isSmartRef__":true,"id":4662},"source":"function getHit() {\n this.lifeBar.hit()\n}","funcProperties":{"__isSmartRef__":true,"id":4663},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4664},"__LivelyClassName__":"lively.Closure"},"4662":{"this":{"__isSmartRef__":true,"id":3691}},"4663":{"timestamp":{"__isSmartRef__":true,"id":4462},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4459},"declaredObject":""},"4664":{"originalFunc":{"__isSmartRef__":true,"id":4459}},"4665":{"varMapping":{"__isSmartRef__":true,"id":4666},"source":"function becomePlayer() {\n if (this.character) {\n this.character.remove()\n this.character = null\n }\n \n this.character = this.toolbox(\"Player\")\n if (this.character) {\n this.character.setExtent(this.character.getExtent().scaleBy(1.2))\n this.character.setPosition(pt(6, -5))\n this.addMorph(this.character)\n this.character.disableEvents()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4667},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4668},"__LivelyClassName__":"lively.Closure"},"4666":{"this":{"__isSmartRef__":true,"id":3691}},"4667":{"timestamp":{"__isSmartRef__":true,"id":4466},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4463},"declaredObject":""},"4668":{"originalFunc":{"__isSmartRef__":true,"id":4463}},"4669":{"varMapping":{"__isSmartRef__":true,"id":4670},"source":"function fight() {\n this.isBusy = true\n var persons = []\n this.currentTile().neighbours().each(function(tile) {\n persons.pushAll(tile.characters())\n })\n persons = persons.select(function(each) { return !each.isBusy })\n if (persons.length > 0) {\n var personForFight = persons[Math.floor(Math.random()*persons.length)]\n personForFight.isBusy = true\n if (Math.round(Math.random()) === 0) {\n this.executeFightTurnAsking(this, personForFight)\n } else {\n this.executeFightTurnAsking(personForFight, this)\n }\n } else {\n this.isBusy = false\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4671},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4672},"__LivelyClassName__":"lively.Closure"},"4670":{"this":{"__isSmartRef__":true,"id":3691}},"4671":{"timestamp":{"__isSmartRef__":true,"id":4470},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4467},"declaredObject":""},"4672":{"originalFunc":{"__isSmartRef__":true,"id":4467}},"4673":{"varMapping":{"__isSmartRef__":true,"id":4674},"source":"function fightPhrases() {\n return {\"This is the END for you, you gutter-crawling cur!\": \"And I've got a little TIP for you, get the POINT?\",\n\t\"Soon you'll be wearing my sword like a shish kebab!\": \"First you better stop waiving it like a feather-duster.\",\n\t\"My handkerchief will wipe up your blood!\": \"So you got that job as janitor, after all.\",\n\t\"People fall at my feet when they see me coming.\": \"Even BEFORE they smell your breath?\",\n\t\"I once owned a dog that was smarter then you.\": \"He must have taught you everything you know.\",\n\t\"You make me want to puke.\": \"You make me think somebody already did.\",\n\t\"Nobody's ever drawn blood from me and nobody ever will.\": \"You run THAT fast?\",\n\t\"You fight like a dairy farmer.\": \"How appropriate. You fight like a cow.\",\n\t\"I got this scar on my face during a mighty struggle!\": \"I hope now you've learned to stop picking your nose.\",\n\t\"Have you stopped wearing diapers yet?\": \"Why, did you want to borrow one?\",\n\t\"I've heard you were a contemptible sneak.\": \"Too bad no one's ever heard of YOU at all.\",\n\t\"You're no match for my brains, you poor fool.\": \"I'd be in real trouble if you ever used them.\",\n\t\"You have the manners of a beggar.\": \"I wanted to make sure you'd feel comfortable with me.\",\n\t\"I'm not going to take your insolence sitting down!\": \"Your hemorrhoids are flaring up again, eh?\",\n\t\"There are no words for how disgusting you are.\": \"Yes there are. You just never learned them.\",\n\t\"I've spoken with apes more polite then you.\": \"I'm glad to hear you attended your family reunion. \",\n\t\"I've got a long, sharp lesson for you you to learn today.\": \"And I've got a little TIP for you. Get the POINT?\",\n\t\"My tongue is sharper then any sword.\": \"First you better stop waving it like a feather-duster.\",\n\t\"My name is feared in every dirty corner of this island!\": \"So you got that job as janitor, after all.\",\n\t\"My wisest enemies run away at the first sight of me!\": \"Even BEFORE they smell your breath?\",\n\t\"Only once have I met such a coward!\": \"He must have taught you everything you know.\",\n\t\"If your brother's like you, better to marry a pig.\": \"You make me think somebody already did.\",\n\t\"No one will ever catch ME fighting as badly as you do.\": \"You run THAT fast?\",\n\t\"I will milk every drop of blood from your body!\": \"How appropriate. You fight like a cow.\",\n\t\"My last fight ended with my hands covered with blood.\": \"I hope now you've learned to stop picking your nose.\",\n\t\"I hope you have a boat ready for a quick escape.\": \"Why, did you want to borrow one?\",\n\t\"My sword is famous all over the Caribbean!\": \"Too bad no one's ever heard of YOU at all.\",\n\t\"I've got the courage and skill of a master swordsman!\": \"I'd be in real trouble if you ever used them.\",\n\t\"Every word you say to me is stupid.\": \"I wanted to make sure you'd feel comfortable with me.\",\n\t\"You are a pain in the backside, sir!\": \"Your hemorrhoids are flaring up again, eh?\",\n\t\"There are no clever moves that can help you now.\": \"Yes there are. You just never learned them.\",\n\t\"Now I know what filth and stupidity really are.\": \"I'm glad to hear you attended your family reunion.\",\n\t\"I usually see people like you passed-out on tavern floors.\": \"Even BEFORE they smell your breath? \",\n\t\"My attacks have left entire islands depopulated!\": \"With your breath, I'm sure they all suffocated.\",\n\t\"You have the sex appeal of a shar-pei!\": \"I look that much like your fiancée?\",\n\t\"When I'm done, your body will be rotted and putrefied!\": \"Then killing you must be justifiable fungicide.\",\n\t\"Your looks would make pigs nauseated!\": \"If you don't count all the ones you've dated.\",\n\t\"Your lips look like they belong on the catch of the day!\": \"When I'm done with you, you'll be a boneless filet.\",\n\t\"I give you a choice. You can be gutted, or decapitated!\": \"With you around, I'd rather be fumigated.\",\n\t\"Never before have I faced someone so sissified!\": \"Is that your face? I thought it was your backside.\",\n\t\"You're a disgrace to your species, you're so undignified!\": \"At least mine can be identified.\",\n\t\"Nothing can stop me from blowing you away!\": \"I could, if you would use some breath spray.\",\n\t\"I have never lost a melee!\": \"You would have, but you were always running away.\",\n\t\"Your mother wears a toupee!\": \"Oh, that is so cliché.\",\n\t\"My skills with a sword are highly venerated!\": \"Too bad they're all fabricated.\",\n\t\"Your stench would make an outhouse cleaner irritated!\": \"Then perhaps you should switch to decaffeinated.\",\n\t\"I can't tell which of my traits have you the most intimidated!\": \"Your odor alone makes me aggravated, agitated, and infuriated\",\n\t\"Nothing on this earth can save your sorry hide!\": \"The only way you'll be preserved is in formaldehyde\",\n\t\"You'll find I'm dogged and relentless to my prey!\": \"Then be a good dog, Sit! Stay! \",\n\t\"Every enemy I have met, I've annihilated!\": \"With your breath, I'm sure they all suffocated.\",\n\t\"You're as repulsive as a monkey in a negligee!\": \"I look that much like your fiancée?\",\n\t\"Killing you would be justifiable homicide!\": \"Then killing you must be justifiable fungicide.\",\n\t\"You're the ugliest monster ever created!\": \"If you don't count all the ones you've dated.\",\n\t\"I'll skewer you like a sow at a buffet!\": \"When I'm done with you, you'll be a boneless filet.\",\n\t\"Would you like to be buried, or cremated?\": \"With you around, I'd rather be fumigated.\",\n\t\"Coming face to face with me must leave you petrified!\": \"Is that your face? I thought it was your backside.\",\n\t\"When your father first saw you, he must have been mortified!\": \"At least mine can be identified.\",\n\t\"You can't match my witty repartee!\": \"I could, if you would use some breath spray.\",\n\t\"I have never seen such clumsy swordplay!\": \"You would have, but you were always running away.\",\n\t\"En Garde! Touché!\": \"Oh, that is so cliché.\",\n\t\"Throughout the Caribbean, my great deeds are celebrated!\": \"Too bad they're all fabricated.\",\n\t\"I can't rest 'til' you've been exterminated!\": \"Then perhaps you should switch to decaffeinated.\",\n\t\"I'll leave you devastated, mutilated, and perforated!\": \"Your odor alone makes me aggravated, agitated, and infuriated\",\n\t\"Heaven preserve me! You look like something that's died!\": \"The only way you'll be preserved is in formaldehyde\",\n\t\"I'll hound you night and day!\": \"Then be a good dog, Sit! Stay! \",\n\t\"Today, by myself, twelve people I've beaten.\": \"From the size of your gut I'd guess they were eaten.\",\n\t\"I've got muscles in places you've never even heard of.\": \"It's too bad none of them are in your arms.\",\n\t\"Give up now, or I'll crush you like a grape!\": \"I would if it would stop your WINE-ING.\",\n\t\"My ninety-eight year old grandmother has bigger arms than you!\": \"Yeah, but we both got better bladder control than you do.\",\n\t\"I'm going to put your arm in a sling!\": \"Why, ya studying to be a nurse?\",\n\t\"My stupefying strength will shatter your ulna into a million pieces!\": \"I'm surprised you can count that high!\",\n\t\"Hey, look over there!\": \"Yeah, yeah I know: it's a three headed monkey.\",\n\t\"Your knuckles I'll grind to a splintery paste.\": \"I thought that the been dip had a strange taste.\",\n\t\"Your arms are no bigger than fleas that I've met!\": \"So THAT'S why you're scratching. I'd go see a vet.\",\n\t\"People consider my fists lethal weapons!\": \"Sadly, your breath should be equally reckoned.\",\n\t\"Only once have I met such a coward!\": \"He must have taught you everything you know.\",\n\t\"You're the ugliest creature I've ever seen in my life.\": \"I'm shocked that you've never gazed at your wife.\",\n\t\"My forearms have been mistaken for tree trunks!\": \"An over-the-counter defoliant could help with that problem.\",\n\t\"I've out-wrestled octopi with these arms!\": \"I'm sure that spineless creatures everywhere are humbled by your might.\",\n\t\"Do I see quivers of agony dance on your lip?\": \"It's laughter that's caused by your feathery grip.\"}\n}","funcProperties":{"__isSmartRef__":true,"id":4675},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4676},"__LivelyClassName__":"lively.Closure"},"4674":{"this":{"__isSmartRef__":true,"id":3691}},"4675":{"timestamp":{"__isSmartRef__":true,"id":4474},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4471},"declaredObject":""},"4676":{"originalFunc":{"__isSmartRef__":true,"id":4471}},"4677":{"varMapping":{"__isSmartRef__":true,"id":4678},"source":"function randomQuestions(count) {\n if (!count) { count = 8 }\n\n var choices = [],\n questions = Properties.own(this.fightPhrases())\n\n for (var i = 0; i < count; i++) {\n var idx = Math.round(Math.random() * questions.length)\n choices.push(questions[idx])\n questions.removeAt(idx)\n }\n\n return choices\n}","funcProperties":{"__isSmartRef__":true,"id":4679},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4680},"__LivelyClassName__":"lively.Closure"},"4678":{"this":{"__isSmartRef__":true,"id":3691}},"4679":{"timestamp":{"__isSmartRef__":true,"id":4478},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4475},"declaredObject":""},"4680":{"originalFunc":{"__isSmartRef__":true,"id":4475}},"4681":{"varMapping":{"__isSmartRef__":true,"id":4682},"source":"function randomAnswersFor(question, count) {\n if (!count) { count = 8 }\n\n var choices = [],\n phrases = this.fightPhrases(),\n answers = Properties.own(phrases).collect(function (q) {\n return phrases[q]\n })\n\n choices.push(phrases[question])\n answers.removeAt(Properties.own(phrases).indexOf(question))\n\n for (var i = 1; i < count; i++) {\n var idx = Math.round(Math.random() * answers.length)\n choices.push(answers[idx])\n answers.removeAt(idx)\n }\n\n return choices.sortBy(function (ea) { return Math.random() })\n}","funcProperties":{"__isSmartRef__":true,"id":4683},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4684},"__LivelyClassName__":"lively.Closure"},"4682":{"this":{"__isSmartRef__":true,"id":3691}},"4683":{"timestamp":{"__isSmartRef__":true,"id":4482},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4479},"declaredObject":""},"4684":{"originalFunc":{"__isSmartRef__":true,"id":4479}},"4685":{"varMapping":{"__isSmartRef__":true,"id":4686},"source":"function executeFightTurnAsking(asker, responder) {\n var menu = this.toolbox(\"FightMenu\"),\n worldCenter = rect(pt(0, 0), pt(window.innerWidth, window.innerHeight)).center(),\n talkTimeout = 4000,\n nextTurnCallback = function (answer, correctAnswer) {\n if (correctAnswer === answer) {\n // switch turns\n asker.executeFightTurnAsking(responder, asker)\n } else {\n responder.getHit()\n if (!responder.isDead()) {\n asker.executeFightTurnAsking(asker, responder)\n }\n }\n }\n\n // Check if the last looser is dead, first\n if (responder.isDead()) {\n responder.isBusy = false\n asker.isBusy = false\n asker.heal()\n asker.select()\n return\n }\n \n // Fight\n if (asker.character.isPlayer) {\n menu.setHeader(\"Choose your insult\")\n menu.setList(asker.randomQuestions(8), function (str) {\n menu.remove()\n asker.say(str)\n setTimeout(function () {\n // the npc has a 1/3 chance of answering right\n var response = responder.randomAnswersFor(str, 3)[Math.round(Math.random() * 2)],\n correctAnswer = responder.randomAnswersFor(str, 1)[0]\n responder.say(response)\n setTimeout(function () {\n nextTurnCallback(response, correctAnswer)\n }, talkTimeout)\n }, talkTimeout)\n })\n asker.map().addMorph(menu)\n menu.centerAt(worldCenter)\n } else {\n var question = asker.randomQuestions(1)[0],\n answer = asker.randomAnswersFor(question, 1)[0]\n asker.say(question)\n setTimeout(function () {\n menu.setHeader(\"What do you reply to '\" + question + \"'?\")\n menu.setList(responder.randomAnswersFor(question, 7), function (str) {\n menu.remove()\n responder.say(str)\n setTimeout(function () {\n nextTurnCallback(str, answer)\n }, talkTimeout)\n })\n asker.map().addMorph(menu)\n menu.centerAt(worldCenter)\n }, talkTimeout)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4687},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"4686":{"this":{"__isSmartRef__":true,"id":3691}},"4687":{"timestamp":{"__isSmartRef__":true,"id":4688},"user":"lauritz","tags":[]},"4688":{"isSerializedDate":true,"string":"Mon Jul 30 2012 12:48:41 GMT+0200 (CEST)"},"4689":{"varMapping":{"__isSmartRef__":true,"id":4690},"source":"function heal() {\n this.lifeBar.heal()\n}","funcProperties":{"__isSmartRef__":true,"id":4691},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4692},"__LivelyClassName__":"lively.Closure"},"4690":{"this":{"__isSmartRef__":true,"id":3691}},"4691":{"timestamp":{"__isSmartRef__":true,"id":4490},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4487},"declaredObject":""},"4692":{"originalFunc":{"__isSmartRef__":true,"id":4487}},"4693":{"varMapping":{"__isSmartRef__":true,"id":4694},"source":"function isDead() {\n return this.lifeBar.isDead()\n}","funcProperties":{"__isSmartRef__":true,"id":4695},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4696},"__LivelyClassName__":"lively.Closure"},"4694":{"this":{"__isSmartRef__":true,"id":3691}},"4695":{"timestamp":{"__isSmartRef__":true,"id":4494},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4491},"declaredObject":""},"4696":{"originalFunc":{"__isSmartRef__":true,"id":4491}},"4697":{"submorphs":[{"__isSmartRef__":true,"id":4698}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4708},"renderContextTable":{"__isSmartRef__":true,"id":4713},"eventHandler":{"__isSmartRef__":true,"id":4714},"_ClipMode":"visible","derivationIds":[],"id":"6162AD47-95C5-4F55-96D2-1E372CA40552","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4715},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":5,"column":4,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":4698},"grabbingEnabled":false,"charactersStandingHere":[],"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":1937},{"__isSmartRef__":true,"id":2065},{"__isSmartRef__":true,"id":2321},{"__isSmartRef__":true,"id":1790},{"__isSmartRef__":true,"id":4716},{"__isSmartRef__":true,"id":1662},{"__isSmartRef__":true,"id":3672},{"__isSmartRef__":true,"id":3139}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4844},"__LivelyClassName__":"lively.morphic.Box"},"4698":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4699},"renderContextTable":{"__isSmartRef__":true,"id":4704},"eventHandler":{"__isSmartRef__":true,"id":4705},"_ClipMode":"visible","derivationIds":[],"id":"AB87E5A9-7517-4813-9191-F19CD1DD4F43","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4706},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4697},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4707},"__LivelyClassName__":"lively.morphic.Image"},"4699":{"_Position":{"__isSmartRef__":true,"id":4700},"renderContextTable":{"__isSmartRef__":true,"id":4701},"_Extent":{"__isSmartRef__":true,"id":4702},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":4703},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"4700":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4701":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"4702":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4703":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4704":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"4705":{"morph":{"__isSmartRef__":true,"id":4698},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4706":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4707":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"4708":{"_Position":{"__isSmartRef__":true,"id":4709},"renderContextTable":{"__isSmartRef__":true,"id":4710},"_Extent":{"__isSmartRef__":true,"id":4711},"_Padding":{"__isSmartRef__":true,"id":4712},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4709":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4710":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"4711":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4712":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4713":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"4714":{"morph":{"__isSmartRef__":true,"id":4697},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4715":{"x":192,"y":240,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4716":{"submorphs":[{"__isSmartRef__":true,"id":4717}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4727},"renderContextTable":{"__isSmartRef__":true,"id":4732},"eventHandler":{"__isSmartRef__":true,"id":4733},"_ClipMode":"visible","derivationIds":[],"id":"95B73C40-CC87-435E-8366-3C5BF7BDFAEE","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4734},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":5,"column":5,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":4717},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":2340}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4735},"__LivelyClassName__":"lively.morphic.Box"},"4717":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4718},"renderContextTable":{"__isSmartRef__":true,"id":4723},"eventHandler":{"__isSmartRef__":true,"id":4724},"_ClipMode":"visible","derivationIds":[],"id":"4C2F9B53-9F7F-47FB-8474-A87BD470912E","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4725},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4716},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4726},"__LivelyClassName__":"lively.morphic.Image"},"4718":{"_Position":{"__isSmartRef__":true,"id":4719},"renderContextTable":{"__isSmartRef__":true,"id":4720},"_Extent":{"__isSmartRef__":true,"id":4721},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":4722},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"4719":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4720":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"4721":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4722":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4723":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"4724":{"morph":{"__isSmartRef__":true,"id":4717},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4725":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4726":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"4727":{"_Position":{"__isSmartRef__":true,"id":4728},"renderContextTable":{"__isSmartRef__":true,"id":4729},"_Extent":{"__isSmartRef__":true,"id":4730},"_Padding":{"__isSmartRef__":true,"id":4731},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4728":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4729":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"4730":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4731":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4732":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"4733":{"morph":{"__isSmartRef__":true,"id":4716},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4734":{"x":240,"y":240,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4735":{"setDevStyle":{"__isSmartRef__":true,"id":4736},"setNormalStyle":{"__isSmartRef__":true,"id":4740},"tileSize":{"__isSmartRef__":true,"id":4744},"become":{"__isSmartRef__":true,"id":4748},"onMouseDown":{"__isSmartRef__":true,"id":4752},"setGridPosition":{"__isSmartRef__":true,"id":4760},"toolbox":{"__isSmartRef__":true,"id":4764},"distanceTo":{"__isSmartRef__":true,"id":4768},"tileWasDropped":{"__isSmartRef__":true,"id":4772},"isObstacle":{"__isSmartRef__":true,"id":4776},"neighboursInDirection":{"__isSmartRef__":true,"id":4780},"neighbours":{"__isSmartRef__":true,"id":4784},"zIndex":{"__isSmartRef__":true,"id":4788},"obstacles":{"__isSmartRef__":true,"id":4792},"addObstacle":{"__isSmartRef__":true,"id":4796},"removeObstacle":{"__isSmartRef__":true,"id":4800},"isTile":{"__isSmartRef__":true,"id":4804},"neighbourAt":{"__isSmartRef__":true,"id":4808},"map":{"__isSmartRef__":true,"id":4812},"game":{"__isSmartRef__":true,"id":4816},"reset":{"__isSmartRef__":true,"id":4820},"shallowCopy":{"__isSmartRef__":true,"id":4824},"characters":{"__isSmartRef__":true,"id":4828},"enterTile":{"__isSmartRef__":true,"id":4832},"leaveTile":{"__isSmartRef__":true,"id":4836},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":4840}},"4736":{"varMapping":{"__isSmartRef__":true,"id":4737},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":4738},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4739},"__LivelyClassName__":"lively.Closure"},"4737":{"this":{"__isSmartRef__":true,"id":4716}},"4738":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"4739":{"originalFunc":{"__isSmartRef__":true,"id":892}},"4740":{"varMapping":{"__isSmartRef__":true,"id":4741},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":4742},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4743},"__LivelyClassName__":"lively.Closure"},"4741":{"this":{"__isSmartRef__":true,"id":4716}},"4742":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"4743":{"originalFunc":{"__isSmartRef__":true,"id":911}},"4744":{"varMapping":{"__isSmartRef__":true,"id":4745},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":4746},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4747},"__LivelyClassName__":"lively.Closure"},"4745":{"this":{"__isSmartRef__":true,"id":4716}},"4746":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"4747":{"originalFunc":{"__isSmartRef__":true,"id":915}},"4748":{"varMapping":{"__isSmartRef__":true,"id":4749},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4750},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4751},"__LivelyClassName__":"lively.Closure"},"4749":{"this":{"__isSmartRef__":true,"id":4716}},"4750":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"4751":{"originalFunc":{"__isSmartRef__":true,"id":919}},"4752":{"varMapping":{"__isSmartRef__":true,"id":4753},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4758},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4759},"__LivelyClassName__":"lively.Closure"},"4753":{"this":{"__isSmartRef__":true,"id":4716},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4754}},"4754":{"$super":{"__isSmartRef__":true,"id":4755}},"4755":{"varMapping":{"__isSmartRef__":true,"id":4756},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4757},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4756":{"obj":{"__isSmartRef__":true,"id":4716},"name":"onMouseDown"},"4757":{},"4758":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"4759":{"originalFunc":{"__isSmartRef__":true,"id":923}},"4760":{"varMapping":{"__isSmartRef__":true,"id":4761},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":4762},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4763},"__LivelyClassName__":"lively.Closure"},"4761":{"this":{"__isSmartRef__":true,"id":4716}},"4762":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"4763":{"originalFunc":{"__isSmartRef__":true,"id":931}},"4764":{"varMapping":{"__isSmartRef__":true,"id":4765},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":4766},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4767},"__LivelyClassName__":"lively.Closure"},"4765":{"this":{"__isSmartRef__":true,"id":4716}},"4766":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"4767":{"originalFunc":{"__isSmartRef__":true,"id":935}},"4768":{"varMapping":{"__isSmartRef__":true,"id":4769},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":4770},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4771},"__LivelyClassName__":"lively.Closure"},"4769":{"this":{"__isSmartRef__":true,"id":4716}},"4770":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"4771":{"originalFunc":{"__isSmartRef__":true,"id":939}},"4772":{"varMapping":{"__isSmartRef__":true,"id":4773},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":4774},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4775},"__LivelyClassName__":"lively.Closure"},"4773":{"this":{"__isSmartRef__":true,"id":4716}},"4774":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"4775":{"originalFunc":{"__isSmartRef__":true,"id":943}},"4776":{"varMapping":{"__isSmartRef__":true,"id":4777},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":4778},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4779},"__LivelyClassName__":"lively.Closure"},"4777":{"this":{"__isSmartRef__":true,"id":4716}},"4778":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"4779":{"originalFunc":{"__isSmartRef__":true,"id":947}},"4780":{"varMapping":{"__isSmartRef__":true,"id":4781},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":4782},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4783},"__LivelyClassName__":"lively.Closure"},"4781":{"this":{"__isSmartRef__":true,"id":4716}},"4782":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"4783":{"originalFunc":{"__isSmartRef__":true,"id":951}},"4784":{"varMapping":{"__isSmartRef__":true,"id":4785},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":4786},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4787},"__LivelyClassName__":"lively.Closure"},"4785":{"this":{"__isSmartRef__":true,"id":4716}},"4786":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"4787":{"originalFunc":{"__isSmartRef__":true,"id":955}},"4788":{"varMapping":{"__isSmartRef__":true,"id":4789},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":4790},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4791},"__LivelyClassName__":"lively.Closure"},"4789":{"this":{"__isSmartRef__":true,"id":4716}},"4790":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"4791":{"originalFunc":{"__isSmartRef__":true,"id":959}},"4792":{"varMapping":{"__isSmartRef__":true,"id":4793},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":4794},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4795},"__LivelyClassName__":"lively.Closure"},"4793":{"this":{"__isSmartRef__":true,"id":4716}},"4794":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"4795":{"originalFunc":{"__isSmartRef__":true,"id":963}},"4796":{"varMapping":{"__isSmartRef__":true,"id":4797},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4798},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4799},"__LivelyClassName__":"lively.Closure"},"4797":{"this":{"__isSmartRef__":true,"id":4716}},"4798":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"4799":{"originalFunc":{"__isSmartRef__":true,"id":967}},"4800":{"varMapping":{"__isSmartRef__":true,"id":4801},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4802},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4803},"__LivelyClassName__":"lively.Closure"},"4801":{"this":{"__isSmartRef__":true,"id":4716}},"4802":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"4803":{"originalFunc":{"__isSmartRef__":true,"id":971}},"4804":{"varMapping":{"__isSmartRef__":true,"id":4805},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":4806},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4807},"__LivelyClassName__":"lively.Closure"},"4805":{"this":{"__isSmartRef__":true,"id":4716}},"4806":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"4807":{"originalFunc":{"__isSmartRef__":true,"id":975}},"4808":{"varMapping":{"__isSmartRef__":true,"id":4809},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":4810},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4811},"__LivelyClassName__":"lively.Closure"},"4809":{"this":{"__isSmartRef__":true,"id":4716}},"4810":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"4811":{"originalFunc":{"__isSmartRef__":true,"id":979}},"4812":{"varMapping":{"__isSmartRef__":true,"id":4813},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":4814},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4815},"__LivelyClassName__":"lively.Closure"},"4813":{"this":{"__isSmartRef__":true,"id":4716}},"4814":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"4815":{"originalFunc":{"__isSmartRef__":true,"id":983}},"4816":{"varMapping":{"__isSmartRef__":true,"id":4817},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":4818},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4819},"__LivelyClassName__":"lively.Closure"},"4817":{"this":{"__isSmartRef__":true,"id":4716}},"4818":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"4819":{"originalFunc":{"__isSmartRef__":true,"id":987}},"4820":{"varMapping":{"__isSmartRef__":true,"id":4821},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":4822},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4823},"__LivelyClassName__":"lively.Closure"},"4821":{"this":{"__isSmartRef__":true,"id":4716}},"4822":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"4823":{"originalFunc":{"__isSmartRef__":true,"id":991}},"4824":{"varMapping":{"__isSmartRef__":true,"id":4825},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":4826},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4827},"__LivelyClassName__":"lively.Closure"},"4825":{"this":{"__isSmartRef__":true,"id":4716}},"4826":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"4827":{"originalFunc":{"__isSmartRef__":true,"id":995}},"4828":{"varMapping":{"__isSmartRef__":true,"id":4829},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":4830},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4831},"__LivelyClassName__":"lively.Closure"},"4829":{"this":{"__isSmartRef__":true,"id":4716}},"4830":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"4831":{"originalFunc":{"__isSmartRef__":true,"id":999}},"4832":{"varMapping":{"__isSmartRef__":true,"id":4833},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4834},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4835},"__LivelyClassName__":"lively.Closure"},"4833":{"this":{"__isSmartRef__":true,"id":4716}},"4834":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"4835":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"4836":{"varMapping":{"__isSmartRef__":true,"id":4837},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4838},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4839},"__LivelyClassName__":"lively.Closure"},"4837":{"this":{"__isSmartRef__":true,"id":4716}},"4838":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"4839":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"4840":{"varMapping":{"__isSmartRef__":true,"id":4841},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":4842},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4843},"__LivelyClassName__":"lively.Closure"},"4841":{"this":{"__isSmartRef__":true,"id":4716}},"4842":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"4843":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"4844":{"setDevStyle":{"__isSmartRef__":true,"id":4845},"setNormalStyle":{"__isSmartRef__":true,"id":4849},"tileSize":{"__isSmartRef__":true,"id":4853},"become":{"__isSmartRef__":true,"id":4857},"onMouseDown":{"__isSmartRef__":true,"id":4861},"setGridPosition":{"__isSmartRef__":true,"id":4869},"toolbox":{"__isSmartRef__":true,"id":4873},"distanceTo":{"__isSmartRef__":true,"id":4877},"tileWasDropped":{"__isSmartRef__":true,"id":4881},"isObstacle":{"__isSmartRef__":true,"id":4885},"neighboursInDirection":{"__isSmartRef__":true,"id":4889},"neighbours":{"__isSmartRef__":true,"id":4893},"zIndex":{"__isSmartRef__":true,"id":4897},"obstacles":{"__isSmartRef__":true,"id":4901},"addObstacle":{"__isSmartRef__":true,"id":4905},"removeObstacle":{"__isSmartRef__":true,"id":4909},"isTile":{"__isSmartRef__":true,"id":4913},"neighbourAt":{"__isSmartRef__":true,"id":4917},"map":{"__isSmartRef__":true,"id":4921},"game":{"__isSmartRef__":true,"id":4925},"reset":{"__isSmartRef__":true,"id":4929},"shallowCopy":{"__isSmartRef__":true,"id":4933},"characters":{"__isSmartRef__":true,"id":4937},"enterTile":{"__isSmartRef__":true,"id":4941},"leaveTile":{"__isSmartRef__":true,"id":4945},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":4949}},"4845":{"varMapping":{"__isSmartRef__":true,"id":4846},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":4847},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4848},"__LivelyClassName__":"lively.Closure"},"4846":{"this":{"__isSmartRef__":true,"id":4697}},"4847":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"4848":{"originalFunc":{"__isSmartRef__":true,"id":892}},"4849":{"varMapping":{"__isSmartRef__":true,"id":4850},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":4851},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4852},"__LivelyClassName__":"lively.Closure"},"4850":{"this":{"__isSmartRef__":true,"id":4697}},"4851":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"4852":{"originalFunc":{"__isSmartRef__":true,"id":911}},"4853":{"varMapping":{"__isSmartRef__":true,"id":4854},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":4855},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4856},"__LivelyClassName__":"lively.Closure"},"4854":{"this":{"__isSmartRef__":true,"id":4697}},"4855":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"4856":{"originalFunc":{"__isSmartRef__":true,"id":915}},"4857":{"varMapping":{"__isSmartRef__":true,"id":4858},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4859},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4860},"__LivelyClassName__":"lively.Closure"},"4858":{"this":{"__isSmartRef__":true,"id":4697}},"4859":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"4860":{"originalFunc":{"__isSmartRef__":true,"id":919}},"4861":{"varMapping":{"__isSmartRef__":true,"id":4862},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4867},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4868},"__LivelyClassName__":"lively.Closure"},"4862":{"this":{"__isSmartRef__":true,"id":4697},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4863}},"4863":{"$super":{"__isSmartRef__":true,"id":4864}},"4864":{"varMapping":{"__isSmartRef__":true,"id":4865},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4866},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4865":{"obj":{"__isSmartRef__":true,"id":4697},"name":"onMouseDown"},"4866":{},"4867":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"4868":{"originalFunc":{"__isSmartRef__":true,"id":923}},"4869":{"varMapping":{"__isSmartRef__":true,"id":4870},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":4871},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4872},"__LivelyClassName__":"lively.Closure"},"4870":{"this":{"__isSmartRef__":true,"id":4697}},"4871":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"4872":{"originalFunc":{"__isSmartRef__":true,"id":931}},"4873":{"varMapping":{"__isSmartRef__":true,"id":4874},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":4875},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4876},"__LivelyClassName__":"lively.Closure"},"4874":{"this":{"__isSmartRef__":true,"id":4697}},"4875":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"4876":{"originalFunc":{"__isSmartRef__":true,"id":935}},"4877":{"varMapping":{"__isSmartRef__":true,"id":4878},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":4879},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4880},"__LivelyClassName__":"lively.Closure"},"4878":{"this":{"__isSmartRef__":true,"id":4697}},"4879":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"4880":{"originalFunc":{"__isSmartRef__":true,"id":939}},"4881":{"varMapping":{"__isSmartRef__":true,"id":4882},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":4883},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4884},"__LivelyClassName__":"lively.Closure"},"4882":{"this":{"__isSmartRef__":true,"id":4697}},"4883":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"4884":{"originalFunc":{"__isSmartRef__":true,"id":943}},"4885":{"varMapping":{"__isSmartRef__":true,"id":4886},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":4887},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4888},"__LivelyClassName__":"lively.Closure"},"4886":{"this":{"__isSmartRef__":true,"id":4697}},"4887":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"4888":{"originalFunc":{"__isSmartRef__":true,"id":947}},"4889":{"varMapping":{"__isSmartRef__":true,"id":4890},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":4891},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4892},"__LivelyClassName__":"lively.Closure"},"4890":{"this":{"__isSmartRef__":true,"id":4697}},"4891":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"4892":{"originalFunc":{"__isSmartRef__":true,"id":951}},"4893":{"varMapping":{"__isSmartRef__":true,"id":4894},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":4895},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4896},"__LivelyClassName__":"lively.Closure"},"4894":{"this":{"__isSmartRef__":true,"id":4697}},"4895":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"4896":{"originalFunc":{"__isSmartRef__":true,"id":955}},"4897":{"varMapping":{"__isSmartRef__":true,"id":4898},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":4899},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4900},"__LivelyClassName__":"lively.Closure"},"4898":{"this":{"__isSmartRef__":true,"id":4697}},"4899":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"4900":{"originalFunc":{"__isSmartRef__":true,"id":959}},"4901":{"varMapping":{"__isSmartRef__":true,"id":4902},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":4903},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4904},"__LivelyClassName__":"lively.Closure"},"4902":{"this":{"__isSmartRef__":true,"id":4697}},"4903":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"4904":{"originalFunc":{"__isSmartRef__":true,"id":963}},"4905":{"varMapping":{"__isSmartRef__":true,"id":4906},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4907},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4908},"__LivelyClassName__":"lively.Closure"},"4906":{"this":{"__isSmartRef__":true,"id":4697}},"4907":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"4908":{"originalFunc":{"__isSmartRef__":true,"id":967}},"4909":{"varMapping":{"__isSmartRef__":true,"id":4910},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4911},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4912},"__LivelyClassName__":"lively.Closure"},"4910":{"this":{"__isSmartRef__":true,"id":4697}},"4911":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"4912":{"originalFunc":{"__isSmartRef__":true,"id":971}},"4913":{"varMapping":{"__isSmartRef__":true,"id":4914},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":4915},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4916},"__LivelyClassName__":"lively.Closure"},"4914":{"this":{"__isSmartRef__":true,"id":4697}},"4915":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"4916":{"originalFunc":{"__isSmartRef__":true,"id":975}},"4917":{"varMapping":{"__isSmartRef__":true,"id":4918},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":4919},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4920},"__LivelyClassName__":"lively.Closure"},"4918":{"this":{"__isSmartRef__":true,"id":4697}},"4919":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"4920":{"originalFunc":{"__isSmartRef__":true,"id":979}},"4921":{"varMapping":{"__isSmartRef__":true,"id":4922},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":4923},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4924},"__LivelyClassName__":"lively.Closure"},"4922":{"this":{"__isSmartRef__":true,"id":4697}},"4923":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"4924":{"originalFunc":{"__isSmartRef__":true,"id":983}},"4925":{"varMapping":{"__isSmartRef__":true,"id":4926},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":4927},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4928},"__LivelyClassName__":"lively.Closure"},"4926":{"this":{"__isSmartRef__":true,"id":4697}},"4927":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"4928":{"originalFunc":{"__isSmartRef__":true,"id":987}},"4929":{"varMapping":{"__isSmartRef__":true,"id":4930},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":4931},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4932},"__LivelyClassName__":"lively.Closure"},"4930":{"this":{"__isSmartRef__":true,"id":4697}},"4931":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"4932":{"originalFunc":{"__isSmartRef__":true,"id":991}},"4933":{"varMapping":{"__isSmartRef__":true,"id":4934},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":4935},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4936},"__LivelyClassName__":"lively.Closure"},"4934":{"this":{"__isSmartRef__":true,"id":4697}},"4935":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"4936":{"originalFunc":{"__isSmartRef__":true,"id":995}},"4937":{"varMapping":{"__isSmartRef__":true,"id":4938},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":4939},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4940},"__LivelyClassName__":"lively.Closure"},"4938":{"this":{"__isSmartRef__":true,"id":4697}},"4939":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"4940":{"originalFunc":{"__isSmartRef__":true,"id":999}},"4941":{"varMapping":{"__isSmartRef__":true,"id":4942},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4943},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4944},"__LivelyClassName__":"lively.Closure"},"4942":{"this":{"__isSmartRef__":true,"id":4697}},"4943":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"4944":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"4945":{"varMapping":{"__isSmartRef__":true,"id":4946},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":4947},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4948},"__LivelyClassName__":"lively.Closure"},"4946":{"this":{"__isSmartRef__":true,"id":4697}},"4947":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"4948":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"4949":{"varMapping":{"__isSmartRef__":true,"id":4950},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":4951},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4952},"__LivelyClassName__":"lively.Closure"},"4950":{"this":{"__isSmartRef__":true,"id":4697}},"4951":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"4952":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"4953":{"submorphs":[{"__isSmartRef__":true,"id":4954}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4964},"renderContextTable":{"__isSmartRef__":true,"id":4969},"eventHandler":{"__isSmartRef__":true,"id":4970},"_ClipMode":"visible","derivationIds":[],"id":"9A27D47D-CCE3-4572-927C-FF66833D23E6","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4971},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":7,"column":3,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":4954},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":4972},{"__isSmartRef__":true,"id":1662},{"__isSmartRef__":true,"id":3672},{"__isSmartRef__":true,"id":5100},{"__isSmartRef__":true,"id":3653},{"__isSmartRef__":true,"id":6219},{"__isSmartRef__":true,"id":6238},{"__isSmartRef__":true,"id":6257}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9658},"__LivelyClassName__":"lively.morphic.Box"},"4954":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4955},"renderContextTable":{"__isSmartRef__":true,"id":4960},"eventHandler":{"__isSmartRef__":true,"id":4961},"_ClipMode":"visible","derivationIds":[],"id":"2F980223-9653-42D5-B3E1-4DC4F1CB4FF0","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4962},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4953},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4963},"__LivelyClassName__":"lively.morphic.Image"},"4955":{"_Position":{"__isSmartRef__":true,"id":4956},"renderContextTable":{"__isSmartRef__":true,"id":4957},"_Extent":{"__isSmartRef__":true,"id":4958},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":4959},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"4956":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4957":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"4958":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4959":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4960":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"4961":{"morph":{"__isSmartRef__":true,"id":4954},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4962":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4963":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"4964":{"_Position":{"__isSmartRef__":true,"id":4965},"renderContextTable":{"__isSmartRef__":true,"id":4966},"_Extent":{"__isSmartRef__":true,"id":4967},"_Padding":{"__isSmartRef__":true,"id":4968},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4965":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4966":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"4967":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4968":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4969":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"4970":{"morph":{"__isSmartRef__":true,"id":4953},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4971":{"x":144,"y":336,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4972":{"submorphs":[{"__isSmartRef__":true,"id":4973}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4983},"renderContextTable":{"__isSmartRef__":true,"id":4988},"eventHandler":{"__isSmartRef__":true,"id":4989},"_ClipMode":"visible","derivationIds":[],"id":"543D869D-454D-49E7-986C-90040BE91FF9","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4990},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":6,"column":2,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":4973},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":1618}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4991},"__LivelyClassName__":"lively.morphic.Box"},"4973":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4974},"renderContextTable":{"__isSmartRef__":true,"id":4979},"eventHandler":{"__isSmartRef__":true,"id":4980},"_ClipMode":"visible","derivationIds":[],"id":"78317265-45B3-4AB1-8803-3606D269A392","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4981},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":4972},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4982},"__LivelyClassName__":"lively.morphic.Image"},"4974":{"_Position":{"__isSmartRef__":true,"id":4975},"renderContextTable":{"__isSmartRef__":true,"id":4976},"_Extent":{"__isSmartRef__":true,"id":4977},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":4978},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"4975":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4976":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"4977":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4978":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4979":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"4980":{"morph":{"__isSmartRef__":true,"id":4973},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4981":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4982":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"4983":{"_Position":{"__isSmartRef__":true,"id":4984},"renderContextTable":{"__isSmartRef__":true,"id":4985},"_Extent":{"__isSmartRef__":true,"id":4986},"_Padding":{"__isSmartRef__":true,"id":4987},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4984":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4985":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"4986":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4987":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4988":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"4989":{"morph":{"__isSmartRef__":true,"id":4972},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4990":{"x":96,"y":288,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4991":{"setDevStyle":{"__isSmartRef__":true,"id":4992},"setNormalStyle":{"__isSmartRef__":true,"id":4996},"tileSize":{"__isSmartRef__":true,"id":5000},"become":{"__isSmartRef__":true,"id":5004},"onMouseDown":{"__isSmartRef__":true,"id":5008},"setGridPosition":{"__isSmartRef__":true,"id":5016},"toolbox":{"__isSmartRef__":true,"id":5020},"distanceTo":{"__isSmartRef__":true,"id":5024},"tileWasDropped":{"__isSmartRef__":true,"id":5028},"isObstacle":{"__isSmartRef__":true,"id":5032},"neighboursInDirection":{"__isSmartRef__":true,"id":5036},"neighbours":{"__isSmartRef__":true,"id":5040},"zIndex":{"__isSmartRef__":true,"id":5044},"obstacles":{"__isSmartRef__":true,"id":5048},"addObstacle":{"__isSmartRef__":true,"id":5052},"removeObstacle":{"__isSmartRef__":true,"id":5056},"isTile":{"__isSmartRef__":true,"id":5060},"neighbourAt":{"__isSmartRef__":true,"id":5064},"map":{"__isSmartRef__":true,"id":5068},"game":{"__isSmartRef__":true,"id":5072},"reset":{"__isSmartRef__":true,"id":5076},"shallowCopy":{"__isSmartRef__":true,"id":5080},"characters":{"__isSmartRef__":true,"id":5084},"enterTile":{"__isSmartRef__":true,"id":5088},"leaveTile":{"__isSmartRef__":true,"id":5092},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":5096}},"4992":{"varMapping":{"__isSmartRef__":true,"id":4993},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":4994},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4995},"__LivelyClassName__":"lively.Closure"},"4993":{"this":{"__isSmartRef__":true,"id":4972}},"4994":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"4995":{"originalFunc":{"__isSmartRef__":true,"id":892}},"4996":{"varMapping":{"__isSmartRef__":true,"id":4997},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":4998},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4999},"__LivelyClassName__":"lively.Closure"},"4997":{"this":{"__isSmartRef__":true,"id":4972}},"4998":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"4999":{"originalFunc":{"__isSmartRef__":true,"id":911}},"5000":{"varMapping":{"__isSmartRef__":true,"id":5001},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":5002},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5003},"__LivelyClassName__":"lively.Closure"},"5001":{"this":{"__isSmartRef__":true,"id":4972}},"5002":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"5003":{"originalFunc":{"__isSmartRef__":true,"id":915}},"5004":{"varMapping":{"__isSmartRef__":true,"id":5005},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5006},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5007},"__LivelyClassName__":"lively.Closure"},"5005":{"this":{"__isSmartRef__":true,"id":4972}},"5006":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"5007":{"originalFunc":{"__isSmartRef__":true,"id":919}},"5008":{"varMapping":{"__isSmartRef__":true,"id":5009},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5014},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5015},"__LivelyClassName__":"lively.Closure"},"5009":{"this":{"__isSmartRef__":true,"id":4972},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5010}},"5010":{"$super":{"__isSmartRef__":true,"id":5011}},"5011":{"varMapping":{"__isSmartRef__":true,"id":5012},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5013},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5012":{"obj":{"__isSmartRef__":true,"id":4972},"name":"onMouseDown"},"5013":{},"5014":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"5015":{"originalFunc":{"__isSmartRef__":true,"id":923}},"5016":{"varMapping":{"__isSmartRef__":true,"id":5017},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":5018},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5019},"__LivelyClassName__":"lively.Closure"},"5017":{"this":{"__isSmartRef__":true,"id":4972}},"5018":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"5019":{"originalFunc":{"__isSmartRef__":true,"id":931}},"5020":{"varMapping":{"__isSmartRef__":true,"id":5021},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":5022},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5023},"__LivelyClassName__":"lively.Closure"},"5021":{"this":{"__isSmartRef__":true,"id":4972}},"5022":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"5023":{"originalFunc":{"__isSmartRef__":true,"id":935}},"5024":{"varMapping":{"__isSmartRef__":true,"id":5025},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":5026},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5027},"__LivelyClassName__":"lively.Closure"},"5025":{"this":{"__isSmartRef__":true,"id":4972}},"5026":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"5027":{"originalFunc":{"__isSmartRef__":true,"id":939}},"5028":{"varMapping":{"__isSmartRef__":true,"id":5029},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":5030},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5031},"__LivelyClassName__":"lively.Closure"},"5029":{"this":{"__isSmartRef__":true,"id":4972}},"5030":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"5031":{"originalFunc":{"__isSmartRef__":true,"id":943}},"5032":{"varMapping":{"__isSmartRef__":true,"id":5033},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":5034},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5035},"__LivelyClassName__":"lively.Closure"},"5033":{"this":{"__isSmartRef__":true,"id":4972}},"5034":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"5035":{"originalFunc":{"__isSmartRef__":true,"id":947}},"5036":{"varMapping":{"__isSmartRef__":true,"id":5037},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":5038},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5039},"__LivelyClassName__":"lively.Closure"},"5037":{"this":{"__isSmartRef__":true,"id":4972}},"5038":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"5039":{"originalFunc":{"__isSmartRef__":true,"id":951}},"5040":{"varMapping":{"__isSmartRef__":true,"id":5041},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":5042},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5043},"__LivelyClassName__":"lively.Closure"},"5041":{"this":{"__isSmartRef__":true,"id":4972}},"5042":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"5043":{"originalFunc":{"__isSmartRef__":true,"id":955}},"5044":{"varMapping":{"__isSmartRef__":true,"id":5045},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":5046},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5047},"__LivelyClassName__":"lively.Closure"},"5045":{"this":{"__isSmartRef__":true,"id":4972}},"5046":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"5047":{"originalFunc":{"__isSmartRef__":true,"id":959}},"5048":{"varMapping":{"__isSmartRef__":true,"id":5049},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":5050},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5051},"__LivelyClassName__":"lively.Closure"},"5049":{"this":{"__isSmartRef__":true,"id":4972}},"5050":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"5051":{"originalFunc":{"__isSmartRef__":true,"id":963}},"5052":{"varMapping":{"__isSmartRef__":true,"id":5053},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5054},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5055},"__LivelyClassName__":"lively.Closure"},"5053":{"this":{"__isSmartRef__":true,"id":4972}},"5054":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"5055":{"originalFunc":{"__isSmartRef__":true,"id":967}},"5056":{"varMapping":{"__isSmartRef__":true,"id":5057},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5058},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5059},"__LivelyClassName__":"lively.Closure"},"5057":{"this":{"__isSmartRef__":true,"id":4972}},"5058":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"5059":{"originalFunc":{"__isSmartRef__":true,"id":971}},"5060":{"varMapping":{"__isSmartRef__":true,"id":5061},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":5062},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5063},"__LivelyClassName__":"lively.Closure"},"5061":{"this":{"__isSmartRef__":true,"id":4972}},"5062":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"5063":{"originalFunc":{"__isSmartRef__":true,"id":975}},"5064":{"varMapping":{"__isSmartRef__":true,"id":5065},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":5066},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5067},"__LivelyClassName__":"lively.Closure"},"5065":{"this":{"__isSmartRef__":true,"id":4972}},"5066":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"5067":{"originalFunc":{"__isSmartRef__":true,"id":979}},"5068":{"varMapping":{"__isSmartRef__":true,"id":5069},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":5070},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5071},"__LivelyClassName__":"lively.Closure"},"5069":{"this":{"__isSmartRef__":true,"id":4972}},"5070":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"5071":{"originalFunc":{"__isSmartRef__":true,"id":983}},"5072":{"varMapping":{"__isSmartRef__":true,"id":5073},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":5074},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5075},"__LivelyClassName__":"lively.Closure"},"5073":{"this":{"__isSmartRef__":true,"id":4972}},"5074":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"5075":{"originalFunc":{"__isSmartRef__":true,"id":987}},"5076":{"varMapping":{"__isSmartRef__":true,"id":5077},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":5078},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5079},"__LivelyClassName__":"lively.Closure"},"5077":{"this":{"__isSmartRef__":true,"id":4972}},"5078":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"5079":{"originalFunc":{"__isSmartRef__":true,"id":991}},"5080":{"varMapping":{"__isSmartRef__":true,"id":5081},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":5082},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5083},"__LivelyClassName__":"lively.Closure"},"5081":{"this":{"__isSmartRef__":true,"id":4972}},"5082":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"5083":{"originalFunc":{"__isSmartRef__":true,"id":995}},"5084":{"varMapping":{"__isSmartRef__":true,"id":5085},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":5086},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5087},"__LivelyClassName__":"lively.Closure"},"5085":{"this":{"__isSmartRef__":true,"id":4972}},"5086":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"5087":{"originalFunc":{"__isSmartRef__":true,"id":999}},"5088":{"varMapping":{"__isSmartRef__":true,"id":5089},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5090},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5091},"__LivelyClassName__":"lively.Closure"},"5089":{"this":{"__isSmartRef__":true,"id":4972}},"5090":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"5091":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"5092":{"varMapping":{"__isSmartRef__":true,"id":5093},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5094},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5095},"__LivelyClassName__":"lively.Closure"},"5093":{"this":{"__isSmartRef__":true,"id":4972}},"5094":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"5095":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"5096":{"varMapping":{"__isSmartRef__":true,"id":5097},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":5098},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5099},"__LivelyClassName__":"lively.Closure"},"5097":{"this":{"__isSmartRef__":true,"id":4972}},"5098":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"5099":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"5100":{"submorphs":[{"__isSmartRef__":true,"id":5101}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5111},"renderContextTable":{"__isSmartRef__":true,"id":5116},"eventHandler":{"__isSmartRef__":true,"id":5117},"_ClipMode":"visible","derivationIds":[],"id":"C483202B-074D-4BDA-B70E-0A4287ED9848","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5118},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":7,"column":2,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":5101},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":5119},{"__isSmartRef__":true,"id":4972},{"__isSmartRef__":true,"id":1662},{"__isSmartRef__":true,"id":5247},{"__isSmartRef__":true,"id":4953},{"__isSmartRef__":true,"id":6200},{"__isSmartRef__":true,"id":6219},{"__isSmartRef__":true,"id":6238}],"__SourceModuleName__":"Global.lively.morphic.Core","charactersStandingHere":[],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9549},"__LivelyClassName__":"lively.morphic.Box"},"5101":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5102},"renderContextTable":{"__isSmartRef__":true,"id":5107},"eventHandler":{"__isSmartRef__":true,"id":5108},"_ClipMode":"visible","derivationIds":[],"id":"5679D8F3-7F6A-4A3E-AC63-F6CA296187A1","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5109},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5100},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5110},"__LivelyClassName__":"lively.morphic.Image"},"5102":{"_Position":{"__isSmartRef__":true,"id":5103},"renderContextTable":{"__isSmartRef__":true,"id":5104},"_Extent":{"__isSmartRef__":true,"id":5105},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass_some_flowers.png","_Padding":{"__isSmartRef__":true,"id":5106},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"5103":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5104":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"5105":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5106":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5107":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"5108":{"morph":{"__isSmartRef__":true,"id":5101},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5109":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5110":{"dropOn":{"__isSmartRef__":true,"id":656},"shallowCopy":{"__isSmartRef__":true,"id":685}},"5111":{"_Position":{"__isSmartRef__":true,"id":5112},"renderContextTable":{"__isSmartRef__":true,"id":5113},"_Extent":{"__isSmartRef__":true,"id":5114},"_Padding":{"__isSmartRef__":true,"id":5115},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5112":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5113":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"5114":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5115":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5116":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"5117":{"morph":{"__isSmartRef__":true,"id":5100},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5118":{"x":96,"y":336,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5119":{"submorphs":[{"__isSmartRef__":true,"id":5120}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5130},"renderContextTable":{"__isSmartRef__":true,"id":5135},"eventHandler":{"__isSmartRef__":true,"id":5136},"_ClipMode":"visible","derivationIds":[],"id":"DE6BA766-F751-4022-A10B-AB57633E1A2D","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5137},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":6,"column":1,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":5120},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":1618}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5138},"__LivelyClassName__":"lively.morphic.Box"},"5120":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5121},"renderContextTable":{"__isSmartRef__":true,"id":5126},"eventHandler":{"__isSmartRef__":true,"id":5127},"_ClipMode":"visible","derivationIds":[],"id":"FDF9028E-5929-4ACD-9C50-BCD25B99CBA0","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5128},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5119},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5129},"__LivelyClassName__":"lively.morphic.Image"},"5121":{"_Position":{"__isSmartRef__":true,"id":5122},"renderContextTable":{"__isSmartRef__":true,"id":5123},"_Extent":{"__isSmartRef__":true,"id":5124},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass_some_flowers.png","_Padding":{"__isSmartRef__":true,"id":5125},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"5122":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5123":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"5124":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5125":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5126":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"5127":{"morph":{"__isSmartRef__":true,"id":5120},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5128":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5129":{"dropOn":{"__isSmartRef__":true,"id":656},"shallowCopy":{"__isSmartRef__":true,"id":685}},"5130":{"_Position":{"__isSmartRef__":true,"id":5131},"renderContextTable":{"__isSmartRef__":true,"id":5132},"_Extent":{"__isSmartRef__":true,"id":5133},"_Padding":{"__isSmartRef__":true,"id":5134},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5131":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5132":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"5133":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5134":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5135":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"5136":{"morph":{"__isSmartRef__":true,"id":5119},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5137":{"x":48,"y":288,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5138":{"setDevStyle":{"__isSmartRef__":true,"id":5139},"setNormalStyle":{"__isSmartRef__":true,"id":5143},"tileSize":{"__isSmartRef__":true,"id":5147},"become":{"__isSmartRef__":true,"id":5151},"onMouseDown":{"__isSmartRef__":true,"id":5155},"setGridPosition":{"__isSmartRef__":true,"id":5163},"toolbox":{"__isSmartRef__":true,"id":5167},"distanceTo":{"__isSmartRef__":true,"id":5171},"tileWasDropped":{"__isSmartRef__":true,"id":5175},"isObstacle":{"__isSmartRef__":true,"id":5179},"neighboursInDirection":{"__isSmartRef__":true,"id":5183},"neighbours":{"__isSmartRef__":true,"id":5187},"zIndex":{"__isSmartRef__":true,"id":5191},"obstacles":{"__isSmartRef__":true,"id":5195},"addObstacle":{"__isSmartRef__":true,"id":5199},"removeObstacle":{"__isSmartRef__":true,"id":5203},"isTile":{"__isSmartRef__":true,"id":5207},"neighbourAt":{"__isSmartRef__":true,"id":5211},"map":{"__isSmartRef__":true,"id":5215},"game":{"__isSmartRef__":true,"id":5219},"reset":{"__isSmartRef__":true,"id":5223},"shallowCopy":{"__isSmartRef__":true,"id":5227},"characters":{"__isSmartRef__":true,"id":5231},"enterTile":{"__isSmartRef__":true,"id":5235},"leaveTile":{"__isSmartRef__":true,"id":5239},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":5243}},"5139":{"varMapping":{"__isSmartRef__":true,"id":5140},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":5141},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5142},"__LivelyClassName__":"lively.Closure"},"5140":{"this":{"__isSmartRef__":true,"id":5119}},"5141":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"5142":{"originalFunc":{"__isSmartRef__":true,"id":892}},"5143":{"varMapping":{"__isSmartRef__":true,"id":5144},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":5145},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5146},"__LivelyClassName__":"lively.Closure"},"5144":{"this":{"__isSmartRef__":true,"id":5119}},"5145":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"5146":{"originalFunc":{"__isSmartRef__":true,"id":911}},"5147":{"varMapping":{"__isSmartRef__":true,"id":5148},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":5149},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5150},"__LivelyClassName__":"lively.Closure"},"5148":{"this":{"__isSmartRef__":true,"id":5119}},"5149":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"5150":{"originalFunc":{"__isSmartRef__":true,"id":915}},"5151":{"varMapping":{"__isSmartRef__":true,"id":5152},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5153},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5154},"__LivelyClassName__":"lively.Closure"},"5152":{"this":{"__isSmartRef__":true,"id":5119}},"5153":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"5154":{"originalFunc":{"__isSmartRef__":true,"id":919}},"5155":{"varMapping":{"__isSmartRef__":true,"id":5156},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5161},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5162},"__LivelyClassName__":"lively.Closure"},"5156":{"this":{"__isSmartRef__":true,"id":5119},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5157}},"5157":{"$super":{"__isSmartRef__":true,"id":5158}},"5158":{"varMapping":{"__isSmartRef__":true,"id":5159},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5160},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5159":{"obj":{"__isSmartRef__":true,"id":5119},"name":"onMouseDown"},"5160":{},"5161":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"5162":{"originalFunc":{"__isSmartRef__":true,"id":923}},"5163":{"varMapping":{"__isSmartRef__":true,"id":5164},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":5165},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5166},"__LivelyClassName__":"lively.Closure"},"5164":{"this":{"__isSmartRef__":true,"id":5119}},"5165":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"5166":{"originalFunc":{"__isSmartRef__":true,"id":931}},"5167":{"varMapping":{"__isSmartRef__":true,"id":5168},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":5169},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5170},"__LivelyClassName__":"lively.Closure"},"5168":{"this":{"__isSmartRef__":true,"id":5119}},"5169":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"5170":{"originalFunc":{"__isSmartRef__":true,"id":935}},"5171":{"varMapping":{"__isSmartRef__":true,"id":5172},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":5173},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5174},"__LivelyClassName__":"lively.Closure"},"5172":{"this":{"__isSmartRef__":true,"id":5119}},"5173":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"5174":{"originalFunc":{"__isSmartRef__":true,"id":939}},"5175":{"varMapping":{"__isSmartRef__":true,"id":5176},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":5177},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5178},"__LivelyClassName__":"lively.Closure"},"5176":{"this":{"__isSmartRef__":true,"id":5119}},"5177":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"5178":{"originalFunc":{"__isSmartRef__":true,"id":943}},"5179":{"varMapping":{"__isSmartRef__":true,"id":5180},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":5181},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5182},"__LivelyClassName__":"lively.Closure"},"5180":{"this":{"__isSmartRef__":true,"id":5119}},"5181":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"5182":{"originalFunc":{"__isSmartRef__":true,"id":947}},"5183":{"varMapping":{"__isSmartRef__":true,"id":5184},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":5185},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5186},"__LivelyClassName__":"lively.Closure"},"5184":{"this":{"__isSmartRef__":true,"id":5119}},"5185":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"5186":{"originalFunc":{"__isSmartRef__":true,"id":951}},"5187":{"varMapping":{"__isSmartRef__":true,"id":5188},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":5189},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5190},"__LivelyClassName__":"lively.Closure"},"5188":{"this":{"__isSmartRef__":true,"id":5119}},"5189":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"5190":{"originalFunc":{"__isSmartRef__":true,"id":955}},"5191":{"varMapping":{"__isSmartRef__":true,"id":5192},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":5193},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5194},"__LivelyClassName__":"lively.Closure"},"5192":{"this":{"__isSmartRef__":true,"id":5119}},"5193":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"5194":{"originalFunc":{"__isSmartRef__":true,"id":959}},"5195":{"varMapping":{"__isSmartRef__":true,"id":5196},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":5197},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5198},"__LivelyClassName__":"lively.Closure"},"5196":{"this":{"__isSmartRef__":true,"id":5119}},"5197":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"5198":{"originalFunc":{"__isSmartRef__":true,"id":963}},"5199":{"varMapping":{"__isSmartRef__":true,"id":5200},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5201},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5202},"__LivelyClassName__":"lively.Closure"},"5200":{"this":{"__isSmartRef__":true,"id":5119}},"5201":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"5202":{"originalFunc":{"__isSmartRef__":true,"id":967}},"5203":{"varMapping":{"__isSmartRef__":true,"id":5204},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5205},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5206},"__LivelyClassName__":"lively.Closure"},"5204":{"this":{"__isSmartRef__":true,"id":5119}},"5205":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"5206":{"originalFunc":{"__isSmartRef__":true,"id":971}},"5207":{"varMapping":{"__isSmartRef__":true,"id":5208},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":5209},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5210},"__LivelyClassName__":"lively.Closure"},"5208":{"this":{"__isSmartRef__":true,"id":5119}},"5209":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"5210":{"originalFunc":{"__isSmartRef__":true,"id":975}},"5211":{"varMapping":{"__isSmartRef__":true,"id":5212},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":5213},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5214},"__LivelyClassName__":"lively.Closure"},"5212":{"this":{"__isSmartRef__":true,"id":5119}},"5213":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"5214":{"originalFunc":{"__isSmartRef__":true,"id":979}},"5215":{"varMapping":{"__isSmartRef__":true,"id":5216},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":5217},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5218},"__LivelyClassName__":"lively.Closure"},"5216":{"this":{"__isSmartRef__":true,"id":5119}},"5217":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"5218":{"originalFunc":{"__isSmartRef__":true,"id":983}},"5219":{"varMapping":{"__isSmartRef__":true,"id":5220},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":5221},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5222},"__LivelyClassName__":"lively.Closure"},"5220":{"this":{"__isSmartRef__":true,"id":5119}},"5221":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"5222":{"originalFunc":{"__isSmartRef__":true,"id":987}},"5223":{"varMapping":{"__isSmartRef__":true,"id":5224},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":5225},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5226},"__LivelyClassName__":"lively.Closure"},"5224":{"this":{"__isSmartRef__":true,"id":5119}},"5225":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"5226":{"originalFunc":{"__isSmartRef__":true,"id":991}},"5227":{"varMapping":{"__isSmartRef__":true,"id":5228},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":5229},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5230},"__LivelyClassName__":"lively.Closure"},"5228":{"this":{"__isSmartRef__":true,"id":5119}},"5229":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"5230":{"originalFunc":{"__isSmartRef__":true,"id":995}},"5231":{"varMapping":{"__isSmartRef__":true,"id":5232},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":5233},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5234},"__LivelyClassName__":"lively.Closure"},"5232":{"this":{"__isSmartRef__":true,"id":5119}},"5233":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"5234":{"originalFunc":{"__isSmartRef__":true,"id":999}},"5235":{"varMapping":{"__isSmartRef__":true,"id":5236},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5237},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5238},"__LivelyClassName__":"lively.Closure"},"5236":{"this":{"__isSmartRef__":true,"id":5119}},"5237":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"5238":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"5239":{"varMapping":{"__isSmartRef__":true,"id":5240},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5241},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5242},"__LivelyClassName__":"lively.Closure"},"5240":{"this":{"__isSmartRef__":true,"id":5119}},"5241":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"5242":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"5243":{"varMapping":{"__isSmartRef__":true,"id":5244},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":5245},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5246},"__LivelyClassName__":"lively.Closure"},"5244":{"this":{"__isSmartRef__":true,"id":5119}},"5245":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"5246":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"5247":{"submorphs":[{"__isSmartRef__":true,"id":5248}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5258},"renderContextTable":{"__isSmartRef__":true,"id":5263},"eventHandler":{"__isSmartRef__":true,"id":5264},"_ClipMode":"visible","derivationIds":[],"id":"6A98DA52-6538-45F8-A51C-59D2ABF9DC37","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5265},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":7,"column":1,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":5248},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":5266},{"__isSmartRef__":true,"id":5119},{"__isSmartRef__":true,"id":4972},{"__isSmartRef__":true,"id":6162},{"__isSmartRef__":true,"id":5100},{"__isSmartRef__":true,"id":6181},{"__isSmartRef__":true,"id":6200},{"__isSmartRef__":true,"id":6219}],"__SourceModuleName__":"Global.lively.morphic.Core","charactersStandingHere":[],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9440},"__LivelyClassName__":"lively.morphic.Box"},"5248":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5249},"renderContextTable":{"__isSmartRef__":true,"id":5254},"eventHandler":{"__isSmartRef__":true,"id":5255},"_ClipMode":"visible","derivationIds":[],"id":"F44EC895-8545-4068-83F1-32E41F955123","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5256},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5247},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5257},"__LivelyClassName__":"lively.morphic.Image"},"5249":{"_Position":{"__isSmartRef__":true,"id":5250},"renderContextTable":{"__isSmartRef__":true,"id":5251},"_Extent":{"__isSmartRef__":true,"id":5252},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":5253},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"5250":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5251":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"5252":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5253":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5254":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"5255":{"morph":{"__isSmartRef__":true,"id":5248},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5256":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5257":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"5258":{"_Position":{"__isSmartRef__":true,"id":5259},"renderContextTable":{"__isSmartRef__":true,"id":5260},"_Extent":{"__isSmartRef__":true,"id":5261},"_Padding":{"__isSmartRef__":true,"id":5262},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5259":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5260":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"5261":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5262":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5263":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"5264":{"morph":{"__isSmartRef__":true,"id":5247},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5265":{"x":48,"y":336,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5266":{"submorphs":[{"__isSmartRef__":true,"id":5267}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5277},"renderContextTable":{"__isSmartRef__":true,"id":5282},"eventHandler":{"__isSmartRef__":true,"id":5283},"_ClipMode":"visible","derivationIds":[],"id":"5AA93462-396E-40FF-984B-5E0027C8A6B0","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5284},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":6,"column":0,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":5267},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":5285},{"__isSmartRef__":true,"id":5816},{"__isSmartRef__":true,"id":5119},{"__isSmartRef__":true,"id":6162},{"__isSmartRef__":true,"id":5247}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9331},"__LivelyClassName__":"lively.morphic.Box"},"5267":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5268},"renderContextTable":{"__isSmartRef__":true,"id":5273},"eventHandler":{"__isSmartRef__":true,"id":5274},"_ClipMode":"visible","derivationIds":[],"id":"FCF9B12C-F28F-4B1A-AA7A-1DFE2E821850","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5275},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5266},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5276},"__LivelyClassName__":"lively.morphic.Image"},"5268":{"_Position":{"__isSmartRef__":true,"id":5269},"renderContextTable":{"__isSmartRef__":true,"id":5270},"_Extent":{"__isSmartRef__":true,"id":5271},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":5272},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"5269":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5270":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"5271":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5272":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5273":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"5274":{"morph":{"__isSmartRef__":true,"id":5267},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5275":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5276":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"5277":{"_Position":{"__isSmartRef__":true,"id":5278},"renderContextTable":{"__isSmartRef__":true,"id":5279},"_Extent":{"__isSmartRef__":true,"id":5280},"_Padding":{"__isSmartRef__":true,"id":5281},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5278":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5279":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"5280":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5281":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5282":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"5283":{"morph":{"__isSmartRef__":true,"id":5266},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5284":{"x":0,"y":288,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5285":{"submorphs":[{"__isSmartRef__":true,"id":5286}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5296},"renderContextTable":{"__isSmartRef__":true,"id":5301},"eventHandler":{"__isSmartRef__":true,"id":5302},"_ClipMode":"visible","derivationIds":[],"id":"EAE228D9-B39E-4D71-8392-DAC45BAF37C2","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5303},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":5,"column":0,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":5286},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":5304},{"__isSmartRef__":true,"id":5579},{"__isSmartRef__":true,"id":5816},{"__isSmartRef__":true,"id":5266},{"__isSmartRef__":true,"id":5119}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6053},"__LivelyClassName__":"lively.morphic.Box"},"5286":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5287},"renderContextTable":{"__isSmartRef__":true,"id":5292},"eventHandler":{"__isSmartRef__":true,"id":5293},"_ClipMode":"visible","derivationIds":[],"id":"FA76E13F-4BD0-4234-8951-06B7D1783BF5","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5294},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5285},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5295},"__LivelyClassName__":"lively.morphic.Image"},"5287":{"_Position":{"__isSmartRef__":true,"id":5288},"renderContextTable":{"__isSmartRef__":true,"id":5289},"_Extent":{"__isSmartRef__":true,"id":5290},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":5291},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"5288":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5289":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"5290":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5291":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5292":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"5293":{"morph":{"__isSmartRef__":true,"id":5286},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5294":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5295":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"5296":{"_Position":{"__isSmartRef__":true,"id":5297},"renderContextTable":{"__isSmartRef__":true,"id":5298},"_Extent":{"__isSmartRef__":true,"id":5299},"_Padding":{"__isSmartRef__":true,"id":5300},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5297":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5298":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"5299":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5300":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5301":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"5302":{"morph":{"__isSmartRef__":true,"id":5285},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5303":{"x":0,"y":240,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5304":{"submorphs":[{"__isSmartRef__":true,"id":5305},{"__isSmartRef__":true,"id":5315}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5424},"renderContextTable":{"__isSmartRef__":true,"id":5429},"eventHandler":{"__isSmartRef__":true,"id":5430},"_ClipMode":"visible","derivationIds":[],"id":"A2FC9131-9281-4A5B-9930-418A27CB8AB3","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5431},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":4,"column":0,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":5305},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":5315}],"cachedNeightbours":[{"__isSmartRef__":true,"id":5432},{"__isSmartRef__":true,"id":5451},{"__isSmartRef__":true,"id":5579},{"__isSmartRef__":true,"id":5285},{"__isSmartRef__":true,"id":5816}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5944},"__LivelyClassName__":"lively.morphic.Box"},"5305":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5306},"renderContextTable":{"__isSmartRef__":true,"id":5311},"eventHandler":{"__isSmartRef__":true,"id":5312},"_ClipMode":"visible","derivationIds":[],"id":"FA2D815D-2FE7-4713-B249-520736B0C713","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5313},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5304},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5314},"__LivelyClassName__":"lively.morphic.Image"},"5306":{"_Position":{"__isSmartRef__":true,"id":5307},"renderContextTable":{"__isSmartRef__":true,"id":5308},"_Extent":{"__isSmartRef__":true,"id":5309},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":5310},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"5307":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5308":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"5309":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5310":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5311":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"5312":{"morph":{"__isSmartRef__":true,"id":5305},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5313":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5314":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"5315":{"submorphs":[{"__isSmartRef__":true,"id":5316}],"scripts":[],"id":"30418700-153D-42B0-8F33-DB91FA7E9A85","shape":{"__isSmartRef__":true,"id":5345},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":5351},"showsHalos":false,"name":"Thing5","partsBinMetaInfo":{"__isSmartRef__":true,"id":786},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":5352},"eventHandler":{"__isSmartRef__":true,"id":5353},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","DF863BAB-9987-4611-BCD2-DE9FDCE7D3B5","768ED97D-1E05-415B-AB3F-B6495AC603A0","5A0ECA63-F6E2-4E35-B9A2-75DE2A4C4158","3B4EDC8A-0E99-4F45-A6D5-5CCE7E75BC88","1A900574-7D84-44F3-BB9D-1A1E26FDDB9B","383B3B54-4D0D-42E5-88C6-460045549029","EFC22A04-8B3C-48A8-9C5F-1EBC66DFD6D6","52D7E09F-EA1F-44D5-A893-F72A70D40429","CAC332B2-DA3A-4534-B3C7-E03D31DE9D2C","2CDD083E-3AB7-4BB9-B6D1-A70716226BDF","B4327E15-A3DA-44A6-89B0-71AFB39350AA","D2E0258B-443A-444C-8640-C595ECC95152","6C8F2B5B-D9E4-4742-B4A1-DA08C3B66E3A","34B4B715-9D86-4D1A-921B-5340CDC05F73","4CA32288-0E12-49F5-A485-634D7D327287","5941FCB6-8C08-405A-B2C2-D84C19F702E2","7BA243A0-B441-41E9-B4AE-A18EDB0F9A8A","C1A510A2-576D-49C6-89EA-56953C5D6FC1","372DAC3D-D2F5-47C2-8538-A2EEE9D3A073","6E3BFF0C-E4EB-4D35-959F-9C12F885012C","5D157E3A-5D4F-4C0A-888F-5FE24CBFC6E5","8C8C94D0-B291-47D8-8B8D-F606AF1A59B1","4794D8F3-DD25-4AFF-A687-079AB3EB7B71","324C5BEC-5664-49AD-AE50-4F3AD40CB933"],"partTests":{"__isSmartRef__":true,"id":5354},"isBeingDragged":false,"moved":true,"_ClipMode":"visible","tile":{"__isSmartRef__":true,"id":5304},"thing":{"__isSmartRef__":true,"id":5316},"prevScroll":[0,0],"occludedTiles":[{"__isSmartRef__":true,"id":5304}],"_Rotation":0,"_Scale":1.002003004005006,"owner":{"__isSmartRef__":true,"id":5304},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5359},"__LivelyClassName__":"lively.morphic.Box"},"5316":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5317},"derivationIds":[null,"C1ED5860-23A2-4206-8DBD-1F71B04E97F3","8D8135BD-16D8-4B1F-A3C8-981810C672EB","35825877-120B-487D-A029-1B6AFFEE3DEF","AB1B83B8-ABF3-4016-B961-DD8DA45F9BD7","86EB0A0D-F1FA-452E-BC0E-ECCE977AB9A3","725AEB57-DFA6-4498-A7A7-FE6FC8BB86D3","BF0C0640-68D4-49DB-ABD7-33E79A716BC8","8EEBB0FC-2004-4AC6-88D1-F5B7318E9229"],"id":"39C0C79C-22DF-420B-8F6C-E966E8A213A1","renderContextTable":{"__isSmartRef__":true,"id":5322},"eventHandler":{"__isSmartRef__":true,"id":5323},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5324},"name":"StoneThing1","isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":true,"partsBinMetaInfo":{"__isSmartRef__":true,"id":5325},"__SourceModuleName__":"Global.lively.morphic.Widgets","moved":true,"isThing":true,"_ClipMode":"visible","previousPosition":{"__isSmartRef__":true,"id":5336},"_Rotation":0,"_Scale":1,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5315},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5337},"__LivelyClassName__":"lively.morphic.Image"},"5317":{"_Position":{"__isSmartRef__":true,"id":5318},"renderContextTable":{"__isSmartRef__":true,"id":5319},"_Extent":{"__isSmartRef__":true,"id":5320},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5321},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/stone.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"5318":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5319":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"5320":{"x":46.93803099999999,"y":40.950025000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5321":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5322":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"5323":{"morph":{"__isSmartRef__":true,"id":5316},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5324":{"x":1.061969000000012,"y":7.049974999999996,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5325":{"partName":"StoneThing","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"A not movable small stone","changes":[{"__isSmartRef__":true,"id":5326},{"__isSmartRef__":true,"id":5328},{"__isSmartRef__":true,"id":5330},{"__isSmartRef__":true,"id":5332},{"__isSmartRef__":true,"id":5334}],"migrationLevel":4,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"5326":{"date":{"__isSmartRef__":true,"id":5327},"author":"tessi","message":"","id":"35E2FCB1-4523-4C38-BF2F-23AF31A6C151"},"5327":{"isSerializedDate":true,"string":"Thu Apr 19 2012 20:16:51 GMT+0200 (CEST)"},"5328":{"date":{"__isSmartRef__":true,"id":5329},"author":"tessi","message":"","id":"D1D6F65B-D24E-4293-8C81-48CBAFEF3099"},"5329":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:45:34 GMT+0200 (CEST)"},"5330":{"date":{"__isSmartRef__":true,"id":5331},"author":"tessi","message":"","id":"36F7E7BC-32AC-43F2-80B4-1E7A9DCD17B5"},"5331":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:15:05 GMT+0200 (CEST)"},"5332":{"date":{"__isSmartRef__":true,"id":5333},"author":"timfelgentreff","message":"no comment","id":"5D1A1DB1-5B9B-495C-B68E-542540FCF595"},"5333":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:08:23 GMT+0200 (CEST)"},"5334":{"date":{"__isSmartRef__":true,"id":5335},"author":"timfelgentreff","message":"no comment","id":"1CA65555-3218-4D9F-A68E-950B51C9D7B8"},"5335":{"isSerializedDate":true,"string":"Thu May 03 2012 14:03:04 GMT+0200 (CEST)"},"5336":{"x":255,"y":528,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5337":{"dropOn":{"__isSmartRef__":true,"id":5338}},"5338":{"varMapping":{"__isSmartRef__":true,"id":5339},"source":"function dropOn(morph) {\n if (morph.isTile && morph.isTile()) {\n var thing = morph.toolbox(\"Thing\")\n thing.dropOn(morph)\n thing.setNormalStyle()\n thing.become(this.copy())\n } else {\n $super(morph);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5344},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5339":{"this":{"__isSmartRef__":true,"id":5316},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5340}},"5340":{"$super":{"__isSmartRef__":true,"id":5341}},"5341":{"varMapping":{"__isSmartRef__":true,"id":5342},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5343},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5342":{"obj":{"__isSmartRef__":true,"id":5316},"name":"dropOn"},"5343":{},"5344":{},"5345":{"position":{"__isSmartRef__":true,"id":5346},"_Extent":{"__isSmartRef__":true,"id":5347},"_BorderWidth":1.148,"_BorderColor":{"__isSmartRef__":true,"id":5348},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":5349},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5350},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5346":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5347":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5348":{"r":0,"g":0,"b":0,"a":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5349":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"5350":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5351":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5352":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"5353":{"morph":{"__isSmartRef__":true,"id":5315},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5354":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5355}},"5355":{"test01IsMorph":{"__isSmartRef__":true,"id":5356}},"5356":{"varMapping":{"__isSmartRef__":true,"id":5357},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":5358},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5357":{"this":{"__isSmartRef__":true,"id":5354}},"5358":{},"5359":{"setDevStyle":{"__isSmartRef__":true,"id":5360},"setNormalStyle":{"__isSmartRef__":true,"id":5364},"become":{"__isSmartRef__":true,"id":5368},"onMouseDown":{"__isSmartRef__":true,"id":5372},"toolbox":{"__isSmartRef__":true,"id":5380},"zIndex":{"__isSmartRef__":true,"id":5384},"becomeRandomThing":{"__isSmartRef__":true,"id":5388},"reset":{"__isSmartRef__":true,"id":5392},"registerAsObstacle":{"__isSmartRef__":true,"id":5396},"deregisterAsObstacle":{"__isSmartRef__":true,"id":5400},"tileSize":{"__isSmartRef__":true,"id":5404},"dropOn":{"__isSmartRef__":true,"id":5408},"map":{"__isSmartRef__":true,"id":5416},"game":{"__isSmartRef__":true,"id":5420}},"5360":{"varMapping":{"__isSmartRef__":true,"id":5361},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.shape.setBorderColor(Color.blue)\n if (this.thing) {\n this.thing.shape.setBorderColor(Color.red)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5362},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5361":{"this":{"__isSmartRef__":true,"id":5315}},"5362":{"timestamp":{"__isSmartRef__":true,"id":5363},"user":"timfelgentreff","tags":[]},"5363":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:34:18 GMT+0200 (CEST)"},"5364":{"varMapping":{"__isSmartRef__":true,"id":5365},"source":"function setNormalStyle() {\n this.setDevStyle()\n this.shape.setBorderColor(new Color.rgba(0,0,0,0))\n if (this.thing) {\n this.thing.shape.setBorderColor(new Color.rgba(0,0,0,0))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5366},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5365":{"this":{"__isSmartRef__":true,"id":5315}},"5366":{"timestamp":{"__isSmartRef__":true,"id":5367},"user":"tessi","tags":[]},"5367":{"isSerializedDate":true,"string":"Thu May 03 2012 15:24:43 GMT+0200 (CEST)"},"5368":{"varMapping":{"__isSmartRef__":true,"id":5369},"source":"function become(thingName) {\n var thing\n if (typeof thingName === \"string\") {\n thing = this.toolbox(thingName + \"Thing\")\n } else {\n thing = thingName\n }\n if (thing) {\n if (this.thing) {\n this.thing.remove();\n }\n this.thing = thing;\n thing.ignoreEvents()\n thing.setExtent(thing.shape.getExtent())\n thing.setPosition(this.getExtent().subPt(this.thing.getExtent()))\n this.addMorph(thing)\n this.registerAsObstacle()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5370},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5369":{"this":{"__isSmartRef__":true,"id":5315}},"5370":{"timestamp":{"__isSmartRef__":true,"id":5371},"user":"timfelgentreff","tags":[]},"5371":{"isSerializedDate":true,"string":"Thu May 03 2012 13:48:50 GMT+0200 (CEST)"},"5372":{"varMapping":{"__isSmartRef__":true,"id":5373},"source":"function onMouseDown(evt) {\n if (this.tile && evt.isLeftMouseButtonDown() && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this.tile)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5378},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5373":{"this":{"__isSmartRef__":true,"id":5315},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5374}},"5374":{"$super":{"__isSmartRef__":true,"id":5375}},"5375":{"varMapping":{"__isSmartRef__":true,"id":5376},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5377},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5376":{"obj":{"__isSmartRef__":true,"id":5315},"name":"onMouseDown"},"5377":{},"5378":{"timestamp":{"__isSmartRef__":true,"id":5379},"user":"tessi","tags":[]},"5379":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:27:13 GMT+0200 (CEST)"},"5380":{"varMapping":{"__isSmartRef__":true,"id":5381},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":5382},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5381":{"this":{"__isSmartRef__":true,"id":5315}},"5382":{"timestamp":{"__isSmartRef__":true,"id":5383},"user":"tessi","tags":[]},"5383":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:27:30 GMT+0200 (CEST)"},"5384":{"varMapping":{"__isSmartRef__":true,"id":5385},"source":"function zIndex(idx) {\n if (idx) {\n return this.renderContext().morphNode.style.zIndex = idx\n } else {\n return this.renderContext().morphNode.style.zIndex\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5386},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5385":{"this":{"__isSmartRef__":true,"id":5315}},"5386":{"timestamp":{"__isSmartRef__":true,"id":5387},"user":"timfelgentreff","tags":[]},"5387":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:28:09 GMT+0200 (CEST)"},"5388":{"varMapping":{"__isSmartRef__":true,"id":5389},"source":"function becomeRandomThing() {\n var thingNames = this.game().partNamesEndingWith(\"Thing\")\n this.become(thingNames[Math.round(Math.random() * (thingNames.length - 1))])\n}","funcProperties":{"__isSmartRef__":true,"id":5390},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5389":{"this":{"__isSmartRef__":true,"id":5315}},"5390":{"timestamp":{"__isSmartRef__":true,"id":5391},"user":"tessi","tags":[]},"5391":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:54 GMT+0200 (CEST)"},"5392":{"varMapping":{"__isSmartRef__":true,"id":5393},"source":"function reset() {\n if (this.thing) {\n this.thing.remove()\n this.thing = null\n }\n this.deregisterAsObstacle()\n this.tile = null\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":5394},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5393":{"this":{"__isSmartRef__":true,"id":5315}},"5394":{"timestamp":{"__isSmartRef__":true,"id":5395},"user":"tessi","tags":[]},"5395":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:28:03 GMT+0200 (CEST)"},"5396":{"varMapping":{"__isSmartRef__":true,"id":5397},"source":"function registerAsObstacle() {\n this.deregisterAsObstacle()\n\n if (this.tile && this.thing) {\n this.occludedTiles = []\n\n // things are anchored at bottom-left, so neighbours direction is negative\n var neighboursBlockVertical = Math.ceil(this.thing.getExtent().y / this.tileSize().y),\n neighboursBlockHorizontal = Math.ceil(this.thing.getExtent().x / this.tileSize().x),\n neighbour\n\n this.occludedTiles.push(this.tile)\n this.tile.addObstacle(this)\n for (var i = 0; i < neighboursBlockHorizontal; i++) {\n for (var j = 0; j < neighboursBlockVertical; j++) {\n neighbour = this.tile.neighbourAt(pt(-i,-j))\n if (neighbour && !this.occludedTiles.member(neighbour)) {\n neighbour.addObstacle(this)\n this.occludedTiles.push(neighbour)\n }\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5398},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5397":{"this":{"__isSmartRef__":true,"id":5315}},"5398":{"timestamp":{"__isSmartRef__":true,"id":5399},"user":"timfelgentreff","tags":[]},"5399":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:18:39 GMT+0200 (CEST)"},"5400":{"varMapping":{"__isSmartRef__":true,"id":5401},"source":"function deregisterAsObstacle() {\n var that = this\n if (this.occludedTiles) {\n this.occludedTiles.each(function (tile) {\n tile.removeObstacle(that)\n })\n this.occludedTiles = null\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5402},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5401":{"this":{"__isSmartRef__":true,"id":5315}},"5402":{"timestamp":{"__isSmartRef__":true,"id":5403},"user":"timfelgentreff","tags":[]},"5403":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:25:37 GMT+0200 (CEST)"},"5404":{"varMapping":{"__isSmartRef__":true,"id":5405},"source":"function tileSize() {\n if (this.tile) {\n return this.tile.tileSize()\n } else {\n return this.toolbox(\"Tile\").tileSize()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5406},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5405":{"this":{"__isSmartRef__":true,"id":5315}},"5406":{"timestamp":{"__isSmartRef__":true,"id":5407},"user":"timfelgentreff","tags":[]},"5407":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:01:00 GMT+0200 (CEST)"},"5408":{"varMapping":{"__isSmartRef__":true,"id":5409},"source":"function dropOn(morph) {\n $super(morph);\n this.deregisterAsObstacle()\n if (morph.isTile) {\n this.tile = morph\n this.setPosition(pt(0,0))\n this.registerAsObstacle()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5414},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5409":{"this":{"__isSmartRef__":true,"id":5315},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5410}},"5410":{"$super":{"__isSmartRef__":true,"id":5411}},"5411":{"varMapping":{"__isSmartRef__":true,"id":5412},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5413},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5412":{"obj":{"__isSmartRef__":true,"id":5315},"name":"dropOn"},"5413":{},"5414":{"timestamp":{"__isSmartRef__":true,"id":5415},"user":"timfelgentreff","tags":[]},"5415":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:13:07 GMT+0200 (CEST)"},"5416":{"varMapping":{"__isSmartRef__":true,"id":5417},"source":"function map() {\n return this.owner.map()\n}","funcProperties":{"__isSmartRef__":true,"id":5418},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5417":{"this":{"__isSmartRef__":true,"id":5315}},"5418":{"timestamp":{"__isSmartRef__":true,"id":5419},"user":"tessi","tags":[]},"5419":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:34 GMT+0200 (CEST)"},"5420":{"varMapping":{"__isSmartRef__":true,"id":5421},"source":"function game() {\n return this.owner.game()\n}","funcProperties":{"__isSmartRef__":true,"id":5422},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5421":{"this":{"__isSmartRef__":true,"id":5315}},"5422":{"timestamp":{"__isSmartRef__":true,"id":5423},"user":"tessi","tags":[]},"5423":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:45 GMT+0200 (CEST)"},"5424":{"_Position":{"__isSmartRef__":true,"id":5425},"renderContextTable":{"__isSmartRef__":true,"id":5426},"_Extent":{"__isSmartRef__":true,"id":5427},"_Padding":{"__isSmartRef__":true,"id":5428},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5425":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5426":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"5427":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5428":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5429":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"5430":{"morph":{"__isSmartRef__":true,"id":5304},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5431":{"x":0,"y":192,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5432":{"submorphs":[{"__isSmartRef__":true,"id":5433}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5443},"renderContextTable":{"__isSmartRef__":true,"id":5448},"eventHandler":{"__isSmartRef__":true,"id":5449},"_ClipMode":"visible","derivationIds":[],"id":"00C16F2B-8CC3-4226-B5AC-16F85DB2647A","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5450},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":3,"column":0,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":5433},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":569},{"__isSmartRef__":true,"id":588},{"__isSmartRef__":true,"id":5451},{"__isSmartRef__":true,"id":5304},{"__isSmartRef__":true,"id":5579}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5707},"__LivelyClassName__":"lively.morphic.Box"},"5433":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5434},"renderContextTable":{"__isSmartRef__":true,"id":5439},"eventHandler":{"__isSmartRef__":true,"id":5440},"_ClipMode":"visible","derivationIds":[],"id":"0C3B544D-C014-4ACC-82A3-796379A88B6D","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5441},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5432},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5442},"__LivelyClassName__":"lively.morphic.Image"},"5434":{"_Position":{"__isSmartRef__":true,"id":5435},"renderContextTable":{"__isSmartRef__":true,"id":5436},"_Extent":{"__isSmartRef__":true,"id":5437},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":5438},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"5435":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5436":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"5437":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5438":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5439":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"5440":{"morph":{"__isSmartRef__":true,"id":5433},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5441":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5442":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"5443":{"_Position":{"__isSmartRef__":true,"id":5444},"renderContextTable":{"__isSmartRef__":true,"id":5445},"_Extent":{"__isSmartRef__":true,"id":5446},"_Padding":{"__isSmartRef__":true,"id":5447},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5444":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5445":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"5446":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5447":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5448":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"5449":{"morph":{"__isSmartRef__":true,"id":5432},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5450":{"x":0,"y":144,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5451":{"submorphs":[{"__isSmartRef__":true,"id":5452}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5462},"renderContextTable":{"__isSmartRef__":true,"id":5467},"eventHandler":{"__isSmartRef__":true,"id":5468},"_ClipMode":"visible","derivationIds":[],"id":"ADDB328E-DEE0-428D-9069-1FD919AE6FFF","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5469},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":3,"column":1,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":5452},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":1618}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5470},"__LivelyClassName__":"lively.morphic.Box"},"5452":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5453},"renderContextTable":{"__isSmartRef__":true,"id":5458},"eventHandler":{"__isSmartRef__":true,"id":5459},"_ClipMode":"visible","derivationIds":[],"id":"A68DB56B-2FFF-46FF-86E8-F37FA7CB394F","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5460},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5451},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5461},"__LivelyClassName__":"lively.morphic.Image"},"5453":{"_Position":{"__isSmartRef__":true,"id":5454},"renderContextTable":{"__isSmartRef__":true,"id":5455},"_Extent":{"__isSmartRef__":true,"id":5456},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass_some_flowers.png","_Padding":{"__isSmartRef__":true,"id":5457},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"5454":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5455":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"5456":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5457":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5458":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"5459":{"morph":{"__isSmartRef__":true,"id":5452},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5460":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5461":{"dropOn":{"__isSmartRef__":true,"id":656},"shallowCopy":{"__isSmartRef__":true,"id":685}},"5462":{"_Position":{"__isSmartRef__":true,"id":5463},"renderContextTable":{"__isSmartRef__":true,"id":5464},"_Extent":{"__isSmartRef__":true,"id":5465},"_Padding":{"__isSmartRef__":true,"id":5466},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5463":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5464":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"5465":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5466":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5467":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"5468":{"morph":{"__isSmartRef__":true,"id":5451},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5469":{"x":48,"y":144,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5470":{"setDevStyle":{"__isSmartRef__":true,"id":5471},"setNormalStyle":{"__isSmartRef__":true,"id":5475},"tileSize":{"__isSmartRef__":true,"id":5479},"become":{"__isSmartRef__":true,"id":5483},"onMouseDown":{"__isSmartRef__":true,"id":5487},"setGridPosition":{"__isSmartRef__":true,"id":5495},"toolbox":{"__isSmartRef__":true,"id":5499},"distanceTo":{"__isSmartRef__":true,"id":5503},"tileWasDropped":{"__isSmartRef__":true,"id":5507},"isObstacle":{"__isSmartRef__":true,"id":5511},"neighboursInDirection":{"__isSmartRef__":true,"id":5515},"neighbours":{"__isSmartRef__":true,"id":5519},"zIndex":{"__isSmartRef__":true,"id":5523},"obstacles":{"__isSmartRef__":true,"id":5527},"addObstacle":{"__isSmartRef__":true,"id":5531},"removeObstacle":{"__isSmartRef__":true,"id":5535},"isTile":{"__isSmartRef__":true,"id":5539},"neighbourAt":{"__isSmartRef__":true,"id":5543},"map":{"__isSmartRef__":true,"id":5547},"game":{"__isSmartRef__":true,"id":5551},"reset":{"__isSmartRef__":true,"id":5555},"shallowCopy":{"__isSmartRef__":true,"id":5559},"characters":{"__isSmartRef__":true,"id":5563},"enterTile":{"__isSmartRef__":true,"id":5567},"leaveTile":{"__isSmartRef__":true,"id":5571},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":5575}},"5471":{"varMapping":{"__isSmartRef__":true,"id":5472},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":5473},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5474},"__LivelyClassName__":"lively.Closure"},"5472":{"this":{"__isSmartRef__":true,"id":5451}},"5473":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"5474":{"originalFunc":{"__isSmartRef__":true,"id":892}},"5475":{"varMapping":{"__isSmartRef__":true,"id":5476},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":5477},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5478},"__LivelyClassName__":"lively.Closure"},"5476":{"this":{"__isSmartRef__":true,"id":5451}},"5477":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"5478":{"originalFunc":{"__isSmartRef__":true,"id":911}},"5479":{"varMapping":{"__isSmartRef__":true,"id":5480},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":5481},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5482},"__LivelyClassName__":"lively.Closure"},"5480":{"this":{"__isSmartRef__":true,"id":5451}},"5481":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"5482":{"originalFunc":{"__isSmartRef__":true,"id":915}},"5483":{"varMapping":{"__isSmartRef__":true,"id":5484},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5485},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5486},"__LivelyClassName__":"lively.Closure"},"5484":{"this":{"__isSmartRef__":true,"id":5451}},"5485":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"5486":{"originalFunc":{"__isSmartRef__":true,"id":919}},"5487":{"varMapping":{"__isSmartRef__":true,"id":5488},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5493},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5494},"__LivelyClassName__":"lively.Closure"},"5488":{"this":{"__isSmartRef__":true,"id":5451},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5489}},"5489":{"$super":{"__isSmartRef__":true,"id":5490}},"5490":{"varMapping":{"__isSmartRef__":true,"id":5491},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5492},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5491":{"obj":{"__isSmartRef__":true,"id":5451},"name":"onMouseDown"},"5492":{},"5493":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"5494":{"originalFunc":{"__isSmartRef__":true,"id":923}},"5495":{"varMapping":{"__isSmartRef__":true,"id":5496},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":5497},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5498},"__LivelyClassName__":"lively.Closure"},"5496":{"this":{"__isSmartRef__":true,"id":5451}},"5497":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"5498":{"originalFunc":{"__isSmartRef__":true,"id":931}},"5499":{"varMapping":{"__isSmartRef__":true,"id":5500},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":5501},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5502},"__LivelyClassName__":"lively.Closure"},"5500":{"this":{"__isSmartRef__":true,"id":5451}},"5501":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"5502":{"originalFunc":{"__isSmartRef__":true,"id":935}},"5503":{"varMapping":{"__isSmartRef__":true,"id":5504},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":5505},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5506},"__LivelyClassName__":"lively.Closure"},"5504":{"this":{"__isSmartRef__":true,"id":5451}},"5505":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"5506":{"originalFunc":{"__isSmartRef__":true,"id":939}},"5507":{"varMapping":{"__isSmartRef__":true,"id":5508},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":5509},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5510},"__LivelyClassName__":"lively.Closure"},"5508":{"this":{"__isSmartRef__":true,"id":5451}},"5509":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"5510":{"originalFunc":{"__isSmartRef__":true,"id":943}},"5511":{"varMapping":{"__isSmartRef__":true,"id":5512},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":5513},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5514},"__LivelyClassName__":"lively.Closure"},"5512":{"this":{"__isSmartRef__":true,"id":5451}},"5513":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"5514":{"originalFunc":{"__isSmartRef__":true,"id":947}},"5515":{"varMapping":{"__isSmartRef__":true,"id":5516},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":5517},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5518},"__LivelyClassName__":"lively.Closure"},"5516":{"this":{"__isSmartRef__":true,"id":5451}},"5517":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"5518":{"originalFunc":{"__isSmartRef__":true,"id":951}},"5519":{"varMapping":{"__isSmartRef__":true,"id":5520},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":5521},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5522},"__LivelyClassName__":"lively.Closure"},"5520":{"this":{"__isSmartRef__":true,"id":5451}},"5521":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"5522":{"originalFunc":{"__isSmartRef__":true,"id":955}},"5523":{"varMapping":{"__isSmartRef__":true,"id":5524},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":5525},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5526},"__LivelyClassName__":"lively.Closure"},"5524":{"this":{"__isSmartRef__":true,"id":5451}},"5525":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"5526":{"originalFunc":{"__isSmartRef__":true,"id":959}},"5527":{"varMapping":{"__isSmartRef__":true,"id":5528},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":5529},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5530},"__LivelyClassName__":"lively.Closure"},"5528":{"this":{"__isSmartRef__":true,"id":5451}},"5529":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"5530":{"originalFunc":{"__isSmartRef__":true,"id":963}},"5531":{"varMapping":{"__isSmartRef__":true,"id":5532},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5533},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5534},"__LivelyClassName__":"lively.Closure"},"5532":{"this":{"__isSmartRef__":true,"id":5451}},"5533":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"5534":{"originalFunc":{"__isSmartRef__":true,"id":967}},"5535":{"varMapping":{"__isSmartRef__":true,"id":5536},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5537},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5538},"__LivelyClassName__":"lively.Closure"},"5536":{"this":{"__isSmartRef__":true,"id":5451}},"5537":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"5538":{"originalFunc":{"__isSmartRef__":true,"id":971}},"5539":{"varMapping":{"__isSmartRef__":true,"id":5540},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":5541},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5542},"__LivelyClassName__":"lively.Closure"},"5540":{"this":{"__isSmartRef__":true,"id":5451}},"5541":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"5542":{"originalFunc":{"__isSmartRef__":true,"id":975}},"5543":{"varMapping":{"__isSmartRef__":true,"id":5544},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":5545},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5546},"__LivelyClassName__":"lively.Closure"},"5544":{"this":{"__isSmartRef__":true,"id":5451}},"5545":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"5546":{"originalFunc":{"__isSmartRef__":true,"id":979}},"5547":{"varMapping":{"__isSmartRef__":true,"id":5548},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":5549},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5550},"__LivelyClassName__":"lively.Closure"},"5548":{"this":{"__isSmartRef__":true,"id":5451}},"5549":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"5550":{"originalFunc":{"__isSmartRef__":true,"id":983}},"5551":{"varMapping":{"__isSmartRef__":true,"id":5552},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":5553},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5554},"__LivelyClassName__":"lively.Closure"},"5552":{"this":{"__isSmartRef__":true,"id":5451}},"5553":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"5554":{"originalFunc":{"__isSmartRef__":true,"id":987}},"5555":{"varMapping":{"__isSmartRef__":true,"id":5556},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":5557},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5558},"__LivelyClassName__":"lively.Closure"},"5556":{"this":{"__isSmartRef__":true,"id":5451}},"5557":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"5558":{"originalFunc":{"__isSmartRef__":true,"id":991}},"5559":{"varMapping":{"__isSmartRef__":true,"id":5560},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":5561},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5562},"__LivelyClassName__":"lively.Closure"},"5560":{"this":{"__isSmartRef__":true,"id":5451}},"5561":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"5562":{"originalFunc":{"__isSmartRef__":true,"id":995}},"5563":{"varMapping":{"__isSmartRef__":true,"id":5564},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":5565},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5566},"__LivelyClassName__":"lively.Closure"},"5564":{"this":{"__isSmartRef__":true,"id":5451}},"5565":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"5566":{"originalFunc":{"__isSmartRef__":true,"id":999}},"5567":{"varMapping":{"__isSmartRef__":true,"id":5568},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5569},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5570},"__LivelyClassName__":"lively.Closure"},"5568":{"this":{"__isSmartRef__":true,"id":5451}},"5569":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"5570":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"5571":{"varMapping":{"__isSmartRef__":true,"id":5572},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5573},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5574},"__LivelyClassName__":"lively.Closure"},"5572":{"this":{"__isSmartRef__":true,"id":5451}},"5573":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"5574":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"5575":{"varMapping":{"__isSmartRef__":true,"id":5576},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":5577},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5578},"__LivelyClassName__":"lively.Closure"},"5576":{"this":{"__isSmartRef__":true,"id":5451}},"5577":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"5578":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"5579":{"submorphs":[{"__isSmartRef__":true,"id":5580}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5590},"renderContextTable":{"__isSmartRef__":true,"id":5595},"eventHandler":{"__isSmartRef__":true,"id":5596},"_ClipMode":"visible","derivationIds":[],"id":"D1624326-5F87-4DC4-A162-62622738C069","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5597},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":4,"column":1,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":5580},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":1618}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5598},"__LivelyClassName__":"lively.morphic.Box"},"5580":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5581},"renderContextTable":{"__isSmartRef__":true,"id":5586},"eventHandler":{"__isSmartRef__":true,"id":5587},"_ClipMode":"visible","derivationIds":[],"id":"3C48D8B1-F1A8-4472-AA2F-A9BC950DED01","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5588},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5579},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5589},"__LivelyClassName__":"lively.morphic.Image"},"5581":{"_Position":{"__isSmartRef__":true,"id":5582},"renderContextTable":{"__isSmartRef__":true,"id":5583},"_Extent":{"__isSmartRef__":true,"id":5584},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":5585},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"5582":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5583":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"5584":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5585":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5586":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"5587":{"morph":{"__isSmartRef__":true,"id":5580},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5588":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5589":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"5590":{"_Position":{"__isSmartRef__":true,"id":5591},"renderContextTable":{"__isSmartRef__":true,"id":5592},"_Extent":{"__isSmartRef__":true,"id":5593},"_Padding":{"__isSmartRef__":true,"id":5594},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5591":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5592":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"5593":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5594":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5595":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"5596":{"morph":{"__isSmartRef__":true,"id":5579},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5597":{"x":48,"y":192,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5598":{"setDevStyle":{"__isSmartRef__":true,"id":5599},"setNormalStyle":{"__isSmartRef__":true,"id":5603},"tileSize":{"__isSmartRef__":true,"id":5607},"become":{"__isSmartRef__":true,"id":5611},"onMouseDown":{"__isSmartRef__":true,"id":5615},"setGridPosition":{"__isSmartRef__":true,"id":5623},"toolbox":{"__isSmartRef__":true,"id":5627},"distanceTo":{"__isSmartRef__":true,"id":5631},"tileWasDropped":{"__isSmartRef__":true,"id":5635},"isObstacle":{"__isSmartRef__":true,"id":5639},"neighboursInDirection":{"__isSmartRef__":true,"id":5643},"neighbours":{"__isSmartRef__":true,"id":5647},"zIndex":{"__isSmartRef__":true,"id":5651},"obstacles":{"__isSmartRef__":true,"id":5655},"addObstacle":{"__isSmartRef__":true,"id":5659},"removeObstacle":{"__isSmartRef__":true,"id":5663},"isTile":{"__isSmartRef__":true,"id":5667},"neighbourAt":{"__isSmartRef__":true,"id":5671},"map":{"__isSmartRef__":true,"id":5675},"game":{"__isSmartRef__":true,"id":5679},"reset":{"__isSmartRef__":true,"id":5683},"shallowCopy":{"__isSmartRef__":true,"id":5687},"characters":{"__isSmartRef__":true,"id":5691},"enterTile":{"__isSmartRef__":true,"id":5695},"leaveTile":{"__isSmartRef__":true,"id":5699},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":5703}},"5599":{"varMapping":{"__isSmartRef__":true,"id":5600},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":5601},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5602},"__LivelyClassName__":"lively.Closure"},"5600":{"this":{"__isSmartRef__":true,"id":5579}},"5601":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"5602":{"originalFunc":{"__isSmartRef__":true,"id":892}},"5603":{"varMapping":{"__isSmartRef__":true,"id":5604},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":5605},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5606},"__LivelyClassName__":"lively.Closure"},"5604":{"this":{"__isSmartRef__":true,"id":5579}},"5605":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"5606":{"originalFunc":{"__isSmartRef__":true,"id":911}},"5607":{"varMapping":{"__isSmartRef__":true,"id":5608},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":5609},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5610},"__LivelyClassName__":"lively.Closure"},"5608":{"this":{"__isSmartRef__":true,"id":5579}},"5609":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"5610":{"originalFunc":{"__isSmartRef__":true,"id":915}},"5611":{"varMapping":{"__isSmartRef__":true,"id":5612},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5613},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5614},"__LivelyClassName__":"lively.Closure"},"5612":{"this":{"__isSmartRef__":true,"id":5579}},"5613":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"5614":{"originalFunc":{"__isSmartRef__":true,"id":919}},"5615":{"varMapping":{"__isSmartRef__":true,"id":5616},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5621},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5622},"__LivelyClassName__":"lively.Closure"},"5616":{"this":{"__isSmartRef__":true,"id":5579},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5617}},"5617":{"$super":{"__isSmartRef__":true,"id":5618}},"5618":{"varMapping":{"__isSmartRef__":true,"id":5619},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5620},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5619":{"obj":{"__isSmartRef__":true,"id":5579},"name":"onMouseDown"},"5620":{},"5621":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"5622":{"originalFunc":{"__isSmartRef__":true,"id":923}},"5623":{"varMapping":{"__isSmartRef__":true,"id":5624},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":5625},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5626},"__LivelyClassName__":"lively.Closure"},"5624":{"this":{"__isSmartRef__":true,"id":5579}},"5625":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"5626":{"originalFunc":{"__isSmartRef__":true,"id":931}},"5627":{"varMapping":{"__isSmartRef__":true,"id":5628},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":5629},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5630},"__LivelyClassName__":"lively.Closure"},"5628":{"this":{"__isSmartRef__":true,"id":5579}},"5629":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"5630":{"originalFunc":{"__isSmartRef__":true,"id":935}},"5631":{"varMapping":{"__isSmartRef__":true,"id":5632},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":5633},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5634},"__LivelyClassName__":"lively.Closure"},"5632":{"this":{"__isSmartRef__":true,"id":5579}},"5633":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"5634":{"originalFunc":{"__isSmartRef__":true,"id":939}},"5635":{"varMapping":{"__isSmartRef__":true,"id":5636},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":5637},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5638},"__LivelyClassName__":"lively.Closure"},"5636":{"this":{"__isSmartRef__":true,"id":5579}},"5637":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"5638":{"originalFunc":{"__isSmartRef__":true,"id":943}},"5639":{"varMapping":{"__isSmartRef__":true,"id":5640},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":5641},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5642},"__LivelyClassName__":"lively.Closure"},"5640":{"this":{"__isSmartRef__":true,"id":5579}},"5641":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"5642":{"originalFunc":{"__isSmartRef__":true,"id":947}},"5643":{"varMapping":{"__isSmartRef__":true,"id":5644},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":5645},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5646},"__LivelyClassName__":"lively.Closure"},"5644":{"this":{"__isSmartRef__":true,"id":5579}},"5645":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"5646":{"originalFunc":{"__isSmartRef__":true,"id":951}},"5647":{"varMapping":{"__isSmartRef__":true,"id":5648},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":5649},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5650},"__LivelyClassName__":"lively.Closure"},"5648":{"this":{"__isSmartRef__":true,"id":5579}},"5649":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"5650":{"originalFunc":{"__isSmartRef__":true,"id":955}},"5651":{"varMapping":{"__isSmartRef__":true,"id":5652},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":5653},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5654},"__LivelyClassName__":"lively.Closure"},"5652":{"this":{"__isSmartRef__":true,"id":5579}},"5653":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"5654":{"originalFunc":{"__isSmartRef__":true,"id":959}},"5655":{"varMapping":{"__isSmartRef__":true,"id":5656},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":5657},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5658},"__LivelyClassName__":"lively.Closure"},"5656":{"this":{"__isSmartRef__":true,"id":5579}},"5657":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"5658":{"originalFunc":{"__isSmartRef__":true,"id":963}},"5659":{"varMapping":{"__isSmartRef__":true,"id":5660},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5661},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5662},"__LivelyClassName__":"lively.Closure"},"5660":{"this":{"__isSmartRef__":true,"id":5579}},"5661":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"5662":{"originalFunc":{"__isSmartRef__":true,"id":967}},"5663":{"varMapping":{"__isSmartRef__":true,"id":5664},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5665},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5666},"__LivelyClassName__":"lively.Closure"},"5664":{"this":{"__isSmartRef__":true,"id":5579}},"5665":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"5666":{"originalFunc":{"__isSmartRef__":true,"id":971}},"5667":{"varMapping":{"__isSmartRef__":true,"id":5668},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":5669},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5670},"__LivelyClassName__":"lively.Closure"},"5668":{"this":{"__isSmartRef__":true,"id":5579}},"5669":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"5670":{"originalFunc":{"__isSmartRef__":true,"id":975}},"5671":{"varMapping":{"__isSmartRef__":true,"id":5672},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":5673},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5674},"__LivelyClassName__":"lively.Closure"},"5672":{"this":{"__isSmartRef__":true,"id":5579}},"5673":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"5674":{"originalFunc":{"__isSmartRef__":true,"id":979}},"5675":{"varMapping":{"__isSmartRef__":true,"id":5676},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":5677},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5678},"__LivelyClassName__":"lively.Closure"},"5676":{"this":{"__isSmartRef__":true,"id":5579}},"5677":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"5678":{"originalFunc":{"__isSmartRef__":true,"id":983}},"5679":{"varMapping":{"__isSmartRef__":true,"id":5680},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":5681},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5682},"__LivelyClassName__":"lively.Closure"},"5680":{"this":{"__isSmartRef__":true,"id":5579}},"5681":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"5682":{"originalFunc":{"__isSmartRef__":true,"id":987}},"5683":{"varMapping":{"__isSmartRef__":true,"id":5684},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":5685},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5686},"__LivelyClassName__":"lively.Closure"},"5684":{"this":{"__isSmartRef__":true,"id":5579}},"5685":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"5686":{"originalFunc":{"__isSmartRef__":true,"id":991}},"5687":{"varMapping":{"__isSmartRef__":true,"id":5688},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":5689},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5690},"__LivelyClassName__":"lively.Closure"},"5688":{"this":{"__isSmartRef__":true,"id":5579}},"5689":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"5690":{"originalFunc":{"__isSmartRef__":true,"id":995}},"5691":{"varMapping":{"__isSmartRef__":true,"id":5692},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":5693},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5694},"__LivelyClassName__":"lively.Closure"},"5692":{"this":{"__isSmartRef__":true,"id":5579}},"5693":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"5694":{"originalFunc":{"__isSmartRef__":true,"id":999}},"5695":{"varMapping":{"__isSmartRef__":true,"id":5696},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5697},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5698},"__LivelyClassName__":"lively.Closure"},"5696":{"this":{"__isSmartRef__":true,"id":5579}},"5697":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"5698":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"5699":{"varMapping":{"__isSmartRef__":true,"id":5700},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5701},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5702},"__LivelyClassName__":"lively.Closure"},"5700":{"this":{"__isSmartRef__":true,"id":5579}},"5701":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"5702":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"5703":{"varMapping":{"__isSmartRef__":true,"id":5704},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":5705},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5706},"__LivelyClassName__":"lively.Closure"},"5704":{"this":{"__isSmartRef__":true,"id":5579}},"5705":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"5706":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"5707":{"setDevStyle":{"__isSmartRef__":true,"id":5708},"setNormalStyle":{"__isSmartRef__":true,"id":5712},"tileSize":{"__isSmartRef__":true,"id":5716},"become":{"__isSmartRef__":true,"id":5720},"onMouseDown":{"__isSmartRef__":true,"id":5724},"setGridPosition":{"__isSmartRef__":true,"id":5732},"toolbox":{"__isSmartRef__":true,"id":5736},"distanceTo":{"__isSmartRef__":true,"id":5740},"tileWasDropped":{"__isSmartRef__":true,"id":5744},"isObstacle":{"__isSmartRef__":true,"id":5748},"neighboursInDirection":{"__isSmartRef__":true,"id":5752},"neighbours":{"__isSmartRef__":true,"id":5756},"zIndex":{"__isSmartRef__":true,"id":5760},"obstacles":{"__isSmartRef__":true,"id":5764},"addObstacle":{"__isSmartRef__":true,"id":5768},"removeObstacle":{"__isSmartRef__":true,"id":5772},"isTile":{"__isSmartRef__":true,"id":5776},"neighbourAt":{"__isSmartRef__":true,"id":5780},"map":{"__isSmartRef__":true,"id":5784},"game":{"__isSmartRef__":true,"id":5788},"reset":{"__isSmartRef__":true,"id":5792},"shallowCopy":{"__isSmartRef__":true,"id":5796},"characters":{"__isSmartRef__":true,"id":5800},"enterTile":{"__isSmartRef__":true,"id":5804},"leaveTile":{"__isSmartRef__":true,"id":5808},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":5812}},"5708":{"varMapping":{"__isSmartRef__":true,"id":5709},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":5710},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5711},"__LivelyClassName__":"lively.Closure"},"5709":{"this":{"__isSmartRef__":true,"id":5432}},"5710":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"5711":{"originalFunc":{"__isSmartRef__":true,"id":892}},"5712":{"varMapping":{"__isSmartRef__":true,"id":5713},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":5714},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5715},"__LivelyClassName__":"lively.Closure"},"5713":{"this":{"__isSmartRef__":true,"id":5432}},"5714":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"5715":{"originalFunc":{"__isSmartRef__":true,"id":911}},"5716":{"varMapping":{"__isSmartRef__":true,"id":5717},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":5718},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5719},"__LivelyClassName__":"lively.Closure"},"5717":{"this":{"__isSmartRef__":true,"id":5432}},"5718":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"5719":{"originalFunc":{"__isSmartRef__":true,"id":915}},"5720":{"varMapping":{"__isSmartRef__":true,"id":5721},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5722},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5723},"__LivelyClassName__":"lively.Closure"},"5721":{"this":{"__isSmartRef__":true,"id":5432}},"5722":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"5723":{"originalFunc":{"__isSmartRef__":true,"id":919}},"5724":{"varMapping":{"__isSmartRef__":true,"id":5725},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5730},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5731},"__LivelyClassName__":"lively.Closure"},"5725":{"this":{"__isSmartRef__":true,"id":5432},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5726}},"5726":{"$super":{"__isSmartRef__":true,"id":5727}},"5727":{"varMapping":{"__isSmartRef__":true,"id":5728},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5729},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5728":{"obj":{"__isSmartRef__":true,"id":5432},"name":"onMouseDown"},"5729":{},"5730":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"5731":{"originalFunc":{"__isSmartRef__":true,"id":923}},"5732":{"varMapping":{"__isSmartRef__":true,"id":5733},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":5734},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5735},"__LivelyClassName__":"lively.Closure"},"5733":{"this":{"__isSmartRef__":true,"id":5432}},"5734":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"5735":{"originalFunc":{"__isSmartRef__":true,"id":931}},"5736":{"varMapping":{"__isSmartRef__":true,"id":5737},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":5738},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5739},"__LivelyClassName__":"lively.Closure"},"5737":{"this":{"__isSmartRef__":true,"id":5432}},"5738":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"5739":{"originalFunc":{"__isSmartRef__":true,"id":935}},"5740":{"varMapping":{"__isSmartRef__":true,"id":5741},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":5742},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5743},"__LivelyClassName__":"lively.Closure"},"5741":{"this":{"__isSmartRef__":true,"id":5432}},"5742":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"5743":{"originalFunc":{"__isSmartRef__":true,"id":939}},"5744":{"varMapping":{"__isSmartRef__":true,"id":5745},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":5746},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5747},"__LivelyClassName__":"lively.Closure"},"5745":{"this":{"__isSmartRef__":true,"id":5432}},"5746":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"5747":{"originalFunc":{"__isSmartRef__":true,"id":943}},"5748":{"varMapping":{"__isSmartRef__":true,"id":5749},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":5750},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5751},"__LivelyClassName__":"lively.Closure"},"5749":{"this":{"__isSmartRef__":true,"id":5432}},"5750":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"5751":{"originalFunc":{"__isSmartRef__":true,"id":947}},"5752":{"varMapping":{"__isSmartRef__":true,"id":5753},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":5754},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5755},"__LivelyClassName__":"lively.Closure"},"5753":{"this":{"__isSmartRef__":true,"id":5432}},"5754":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"5755":{"originalFunc":{"__isSmartRef__":true,"id":951}},"5756":{"varMapping":{"__isSmartRef__":true,"id":5757},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":5758},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5759},"__LivelyClassName__":"lively.Closure"},"5757":{"this":{"__isSmartRef__":true,"id":5432}},"5758":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"5759":{"originalFunc":{"__isSmartRef__":true,"id":955}},"5760":{"varMapping":{"__isSmartRef__":true,"id":5761},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":5762},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5763},"__LivelyClassName__":"lively.Closure"},"5761":{"this":{"__isSmartRef__":true,"id":5432}},"5762":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"5763":{"originalFunc":{"__isSmartRef__":true,"id":959}},"5764":{"varMapping":{"__isSmartRef__":true,"id":5765},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":5766},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5767},"__LivelyClassName__":"lively.Closure"},"5765":{"this":{"__isSmartRef__":true,"id":5432}},"5766":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"5767":{"originalFunc":{"__isSmartRef__":true,"id":963}},"5768":{"varMapping":{"__isSmartRef__":true,"id":5769},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5770},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5771},"__LivelyClassName__":"lively.Closure"},"5769":{"this":{"__isSmartRef__":true,"id":5432}},"5770":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"5771":{"originalFunc":{"__isSmartRef__":true,"id":967}},"5772":{"varMapping":{"__isSmartRef__":true,"id":5773},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5774},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5775},"__LivelyClassName__":"lively.Closure"},"5773":{"this":{"__isSmartRef__":true,"id":5432}},"5774":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"5775":{"originalFunc":{"__isSmartRef__":true,"id":971}},"5776":{"varMapping":{"__isSmartRef__":true,"id":5777},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":5778},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5779},"__LivelyClassName__":"lively.Closure"},"5777":{"this":{"__isSmartRef__":true,"id":5432}},"5778":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"5779":{"originalFunc":{"__isSmartRef__":true,"id":975}},"5780":{"varMapping":{"__isSmartRef__":true,"id":5781},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":5782},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5783},"__LivelyClassName__":"lively.Closure"},"5781":{"this":{"__isSmartRef__":true,"id":5432}},"5782":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"5783":{"originalFunc":{"__isSmartRef__":true,"id":979}},"5784":{"varMapping":{"__isSmartRef__":true,"id":5785},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":5786},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5787},"__LivelyClassName__":"lively.Closure"},"5785":{"this":{"__isSmartRef__":true,"id":5432}},"5786":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"5787":{"originalFunc":{"__isSmartRef__":true,"id":983}},"5788":{"varMapping":{"__isSmartRef__":true,"id":5789},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":5790},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5791},"__LivelyClassName__":"lively.Closure"},"5789":{"this":{"__isSmartRef__":true,"id":5432}},"5790":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"5791":{"originalFunc":{"__isSmartRef__":true,"id":987}},"5792":{"varMapping":{"__isSmartRef__":true,"id":5793},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":5794},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5795},"__LivelyClassName__":"lively.Closure"},"5793":{"this":{"__isSmartRef__":true,"id":5432}},"5794":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"5795":{"originalFunc":{"__isSmartRef__":true,"id":991}},"5796":{"varMapping":{"__isSmartRef__":true,"id":5797},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":5798},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5799},"__LivelyClassName__":"lively.Closure"},"5797":{"this":{"__isSmartRef__":true,"id":5432}},"5798":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"5799":{"originalFunc":{"__isSmartRef__":true,"id":995}},"5800":{"varMapping":{"__isSmartRef__":true,"id":5801},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":5802},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5803},"__LivelyClassName__":"lively.Closure"},"5801":{"this":{"__isSmartRef__":true,"id":5432}},"5802":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"5803":{"originalFunc":{"__isSmartRef__":true,"id":999}},"5804":{"varMapping":{"__isSmartRef__":true,"id":5805},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5806},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5807},"__LivelyClassName__":"lively.Closure"},"5805":{"this":{"__isSmartRef__":true,"id":5432}},"5806":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"5807":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"5808":{"varMapping":{"__isSmartRef__":true,"id":5809},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5810},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5811},"__LivelyClassName__":"lively.Closure"},"5809":{"this":{"__isSmartRef__":true,"id":5432}},"5810":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"5811":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"5812":{"varMapping":{"__isSmartRef__":true,"id":5813},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":5814},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5815},"__LivelyClassName__":"lively.Closure"},"5813":{"this":{"__isSmartRef__":true,"id":5432}},"5814":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"5815":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"5816":{"submorphs":[{"__isSmartRef__":true,"id":5817}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5827},"renderContextTable":{"__isSmartRef__":true,"id":5832},"eventHandler":{"__isSmartRef__":true,"id":5833},"_ClipMode":"visible","derivationIds":[],"id":"2735CE4B-36B4-4B05-AD37-FC8D2CCA5170","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5834},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":5,"column":1,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":5817},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":1618}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5835},"__LivelyClassName__":"lively.morphic.Box"},"5817":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5818},"renderContextTable":{"__isSmartRef__":true,"id":5823},"eventHandler":{"__isSmartRef__":true,"id":5824},"_ClipMode":"visible","derivationIds":[],"id":"AD5C0FFB-1D42-4A52-AD41-465C4C948EE3","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5825},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":5816},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5826},"__LivelyClassName__":"lively.morphic.Image"},"5818":{"_Position":{"__isSmartRef__":true,"id":5819},"renderContextTable":{"__isSmartRef__":true,"id":5820},"_Extent":{"__isSmartRef__":true,"id":5821},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":5822},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"5819":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5820":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"5821":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5822":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5823":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"5824":{"morph":{"__isSmartRef__":true,"id":5817},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5825":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5826":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"5827":{"_Position":{"__isSmartRef__":true,"id":5828},"renderContextTable":{"__isSmartRef__":true,"id":5829},"_Extent":{"__isSmartRef__":true,"id":5830},"_Padding":{"__isSmartRef__":true,"id":5831},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5828":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5829":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"5830":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5831":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5832":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"5833":{"morph":{"__isSmartRef__":true,"id":5816},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5834":{"x":48,"y":240,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5835":{"setDevStyle":{"__isSmartRef__":true,"id":5836},"setNormalStyle":{"__isSmartRef__":true,"id":5840},"tileSize":{"__isSmartRef__":true,"id":5844},"become":{"__isSmartRef__":true,"id":5848},"onMouseDown":{"__isSmartRef__":true,"id":5852},"setGridPosition":{"__isSmartRef__":true,"id":5860},"toolbox":{"__isSmartRef__":true,"id":5864},"distanceTo":{"__isSmartRef__":true,"id":5868},"tileWasDropped":{"__isSmartRef__":true,"id":5872},"isObstacle":{"__isSmartRef__":true,"id":5876},"neighboursInDirection":{"__isSmartRef__":true,"id":5880},"neighbours":{"__isSmartRef__":true,"id":5884},"zIndex":{"__isSmartRef__":true,"id":5888},"obstacles":{"__isSmartRef__":true,"id":5892},"addObstacle":{"__isSmartRef__":true,"id":5896},"removeObstacle":{"__isSmartRef__":true,"id":5900},"isTile":{"__isSmartRef__":true,"id":5904},"neighbourAt":{"__isSmartRef__":true,"id":5908},"map":{"__isSmartRef__":true,"id":5912},"game":{"__isSmartRef__":true,"id":5916},"reset":{"__isSmartRef__":true,"id":5920},"shallowCopy":{"__isSmartRef__":true,"id":5924},"characters":{"__isSmartRef__":true,"id":5928},"enterTile":{"__isSmartRef__":true,"id":5932},"leaveTile":{"__isSmartRef__":true,"id":5936},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":5940}},"5836":{"varMapping":{"__isSmartRef__":true,"id":5837},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":5838},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5839},"__LivelyClassName__":"lively.Closure"},"5837":{"this":{"__isSmartRef__":true,"id":5816}},"5838":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"5839":{"originalFunc":{"__isSmartRef__":true,"id":892}},"5840":{"varMapping":{"__isSmartRef__":true,"id":5841},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":5842},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5843},"__LivelyClassName__":"lively.Closure"},"5841":{"this":{"__isSmartRef__":true,"id":5816}},"5842":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"5843":{"originalFunc":{"__isSmartRef__":true,"id":911}},"5844":{"varMapping":{"__isSmartRef__":true,"id":5845},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":5846},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5847},"__LivelyClassName__":"lively.Closure"},"5845":{"this":{"__isSmartRef__":true,"id":5816}},"5846":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"5847":{"originalFunc":{"__isSmartRef__":true,"id":915}},"5848":{"varMapping":{"__isSmartRef__":true,"id":5849},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5850},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5851},"__LivelyClassName__":"lively.Closure"},"5849":{"this":{"__isSmartRef__":true,"id":5816}},"5850":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"5851":{"originalFunc":{"__isSmartRef__":true,"id":919}},"5852":{"varMapping":{"__isSmartRef__":true,"id":5853},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5858},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5859},"__LivelyClassName__":"lively.Closure"},"5853":{"this":{"__isSmartRef__":true,"id":5816},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5854}},"5854":{"$super":{"__isSmartRef__":true,"id":5855}},"5855":{"varMapping":{"__isSmartRef__":true,"id":5856},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5857},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5856":{"obj":{"__isSmartRef__":true,"id":5816},"name":"onMouseDown"},"5857":{},"5858":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"5859":{"originalFunc":{"__isSmartRef__":true,"id":923}},"5860":{"varMapping":{"__isSmartRef__":true,"id":5861},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":5862},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5863},"__LivelyClassName__":"lively.Closure"},"5861":{"this":{"__isSmartRef__":true,"id":5816}},"5862":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"5863":{"originalFunc":{"__isSmartRef__":true,"id":931}},"5864":{"varMapping":{"__isSmartRef__":true,"id":5865},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":5866},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5867},"__LivelyClassName__":"lively.Closure"},"5865":{"this":{"__isSmartRef__":true,"id":5816}},"5866":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"5867":{"originalFunc":{"__isSmartRef__":true,"id":935}},"5868":{"varMapping":{"__isSmartRef__":true,"id":5869},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":5870},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5871},"__LivelyClassName__":"lively.Closure"},"5869":{"this":{"__isSmartRef__":true,"id":5816}},"5870":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"5871":{"originalFunc":{"__isSmartRef__":true,"id":939}},"5872":{"varMapping":{"__isSmartRef__":true,"id":5873},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":5874},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5875},"__LivelyClassName__":"lively.Closure"},"5873":{"this":{"__isSmartRef__":true,"id":5816}},"5874":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"5875":{"originalFunc":{"__isSmartRef__":true,"id":943}},"5876":{"varMapping":{"__isSmartRef__":true,"id":5877},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":5878},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5879},"__LivelyClassName__":"lively.Closure"},"5877":{"this":{"__isSmartRef__":true,"id":5816}},"5878":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"5879":{"originalFunc":{"__isSmartRef__":true,"id":947}},"5880":{"varMapping":{"__isSmartRef__":true,"id":5881},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":5882},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5883},"__LivelyClassName__":"lively.Closure"},"5881":{"this":{"__isSmartRef__":true,"id":5816}},"5882":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"5883":{"originalFunc":{"__isSmartRef__":true,"id":951}},"5884":{"varMapping":{"__isSmartRef__":true,"id":5885},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":5886},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5887},"__LivelyClassName__":"lively.Closure"},"5885":{"this":{"__isSmartRef__":true,"id":5816}},"5886":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"5887":{"originalFunc":{"__isSmartRef__":true,"id":955}},"5888":{"varMapping":{"__isSmartRef__":true,"id":5889},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":5890},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5891},"__LivelyClassName__":"lively.Closure"},"5889":{"this":{"__isSmartRef__":true,"id":5816}},"5890":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"5891":{"originalFunc":{"__isSmartRef__":true,"id":959}},"5892":{"varMapping":{"__isSmartRef__":true,"id":5893},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":5894},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5895},"__LivelyClassName__":"lively.Closure"},"5893":{"this":{"__isSmartRef__":true,"id":5816}},"5894":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"5895":{"originalFunc":{"__isSmartRef__":true,"id":963}},"5896":{"varMapping":{"__isSmartRef__":true,"id":5897},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5898},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5899},"__LivelyClassName__":"lively.Closure"},"5897":{"this":{"__isSmartRef__":true,"id":5816}},"5898":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"5899":{"originalFunc":{"__isSmartRef__":true,"id":967}},"5900":{"varMapping":{"__isSmartRef__":true,"id":5901},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5902},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5903},"__LivelyClassName__":"lively.Closure"},"5901":{"this":{"__isSmartRef__":true,"id":5816}},"5902":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"5903":{"originalFunc":{"__isSmartRef__":true,"id":971}},"5904":{"varMapping":{"__isSmartRef__":true,"id":5905},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":5906},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5907},"__LivelyClassName__":"lively.Closure"},"5905":{"this":{"__isSmartRef__":true,"id":5816}},"5906":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"5907":{"originalFunc":{"__isSmartRef__":true,"id":975}},"5908":{"varMapping":{"__isSmartRef__":true,"id":5909},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":5910},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5911},"__LivelyClassName__":"lively.Closure"},"5909":{"this":{"__isSmartRef__":true,"id":5816}},"5910":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"5911":{"originalFunc":{"__isSmartRef__":true,"id":979}},"5912":{"varMapping":{"__isSmartRef__":true,"id":5913},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":5914},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5915},"__LivelyClassName__":"lively.Closure"},"5913":{"this":{"__isSmartRef__":true,"id":5816}},"5914":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"5915":{"originalFunc":{"__isSmartRef__":true,"id":983}},"5916":{"varMapping":{"__isSmartRef__":true,"id":5917},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":5918},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5919},"__LivelyClassName__":"lively.Closure"},"5917":{"this":{"__isSmartRef__":true,"id":5816}},"5918":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"5919":{"originalFunc":{"__isSmartRef__":true,"id":987}},"5920":{"varMapping":{"__isSmartRef__":true,"id":5921},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":5922},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5923},"__LivelyClassName__":"lively.Closure"},"5921":{"this":{"__isSmartRef__":true,"id":5816}},"5922":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"5923":{"originalFunc":{"__isSmartRef__":true,"id":991}},"5924":{"varMapping":{"__isSmartRef__":true,"id":5925},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":5926},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5927},"__LivelyClassName__":"lively.Closure"},"5925":{"this":{"__isSmartRef__":true,"id":5816}},"5926":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"5927":{"originalFunc":{"__isSmartRef__":true,"id":995}},"5928":{"varMapping":{"__isSmartRef__":true,"id":5929},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":5930},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5931},"__LivelyClassName__":"lively.Closure"},"5929":{"this":{"__isSmartRef__":true,"id":5816}},"5930":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"5931":{"originalFunc":{"__isSmartRef__":true,"id":999}},"5932":{"varMapping":{"__isSmartRef__":true,"id":5933},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5934},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5935},"__LivelyClassName__":"lively.Closure"},"5933":{"this":{"__isSmartRef__":true,"id":5816}},"5934":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"5935":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"5936":{"varMapping":{"__isSmartRef__":true,"id":5937},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5938},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5939},"__LivelyClassName__":"lively.Closure"},"5937":{"this":{"__isSmartRef__":true,"id":5816}},"5938":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"5939":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"5940":{"varMapping":{"__isSmartRef__":true,"id":5941},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":5942},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5943},"__LivelyClassName__":"lively.Closure"},"5941":{"this":{"__isSmartRef__":true,"id":5816}},"5942":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"5943":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"5944":{"setDevStyle":{"__isSmartRef__":true,"id":5945},"setNormalStyle":{"__isSmartRef__":true,"id":5949},"tileSize":{"__isSmartRef__":true,"id":5953},"become":{"__isSmartRef__":true,"id":5957},"onMouseDown":{"__isSmartRef__":true,"id":5961},"setGridPosition":{"__isSmartRef__":true,"id":5969},"toolbox":{"__isSmartRef__":true,"id":5973},"distanceTo":{"__isSmartRef__":true,"id":5977},"tileWasDropped":{"__isSmartRef__":true,"id":5981},"isObstacle":{"__isSmartRef__":true,"id":5985},"neighboursInDirection":{"__isSmartRef__":true,"id":5989},"neighbours":{"__isSmartRef__":true,"id":5993},"zIndex":{"__isSmartRef__":true,"id":5997},"obstacles":{"__isSmartRef__":true,"id":6001},"addObstacle":{"__isSmartRef__":true,"id":6005},"removeObstacle":{"__isSmartRef__":true,"id":6009},"isTile":{"__isSmartRef__":true,"id":6013},"neighbourAt":{"__isSmartRef__":true,"id":6017},"map":{"__isSmartRef__":true,"id":6021},"game":{"__isSmartRef__":true,"id":6025},"reset":{"__isSmartRef__":true,"id":6029},"shallowCopy":{"__isSmartRef__":true,"id":6033},"characters":{"__isSmartRef__":true,"id":6037},"enterTile":{"__isSmartRef__":true,"id":6041},"leaveTile":{"__isSmartRef__":true,"id":6045},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":6049}},"5945":{"varMapping":{"__isSmartRef__":true,"id":5946},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":5947},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5948},"__LivelyClassName__":"lively.Closure"},"5946":{"this":{"__isSmartRef__":true,"id":5304}},"5947":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"5948":{"originalFunc":{"__isSmartRef__":true,"id":892}},"5949":{"varMapping":{"__isSmartRef__":true,"id":5950},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":5951},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5952},"__LivelyClassName__":"lively.Closure"},"5950":{"this":{"__isSmartRef__":true,"id":5304}},"5951":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"5952":{"originalFunc":{"__isSmartRef__":true,"id":911}},"5953":{"varMapping":{"__isSmartRef__":true,"id":5954},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":5955},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5956},"__LivelyClassName__":"lively.Closure"},"5954":{"this":{"__isSmartRef__":true,"id":5304}},"5955":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"5956":{"originalFunc":{"__isSmartRef__":true,"id":915}},"5957":{"varMapping":{"__isSmartRef__":true,"id":5958},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5959},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5960},"__LivelyClassName__":"lively.Closure"},"5958":{"this":{"__isSmartRef__":true,"id":5304}},"5959":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"5960":{"originalFunc":{"__isSmartRef__":true,"id":919}},"5961":{"varMapping":{"__isSmartRef__":true,"id":5962},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5967},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5968},"__LivelyClassName__":"lively.Closure"},"5962":{"this":{"__isSmartRef__":true,"id":5304},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5963}},"5963":{"$super":{"__isSmartRef__":true,"id":5964}},"5964":{"varMapping":{"__isSmartRef__":true,"id":5965},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5966},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5965":{"obj":{"__isSmartRef__":true,"id":5304},"name":"onMouseDown"},"5966":{},"5967":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"5968":{"originalFunc":{"__isSmartRef__":true,"id":923}},"5969":{"varMapping":{"__isSmartRef__":true,"id":5970},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":5971},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5972},"__LivelyClassName__":"lively.Closure"},"5970":{"this":{"__isSmartRef__":true,"id":5304}},"5971":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"5972":{"originalFunc":{"__isSmartRef__":true,"id":931}},"5973":{"varMapping":{"__isSmartRef__":true,"id":5974},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":5975},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5976},"__LivelyClassName__":"lively.Closure"},"5974":{"this":{"__isSmartRef__":true,"id":5304}},"5975":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"5976":{"originalFunc":{"__isSmartRef__":true,"id":935}},"5977":{"varMapping":{"__isSmartRef__":true,"id":5978},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":5979},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5980},"__LivelyClassName__":"lively.Closure"},"5978":{"this":{"__isSmartRef__":true,"id":5304}},"5979":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"5980":{"originalFunc":{"__isSmartRef__":true,"id":939}},"5981":{"varMapping":{"__isSmartRef__":true,"id":5982},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":5983},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5984},"__LivelyClassName__":"lively.Closure"},"5982":{"this":{"__isSmartRef__":true,"id":5304}},"5983":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"5984":{"originalFunc":{"__isSmartRef__":true,"id":943}},"5985":{"varMapping":{"__isSmartRef__":true,"id":5986},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":5987},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5988},"__LivelyClassName__":"lively.Closure"},"5986":{"this":{"__isSmartRef__":true,"id":5304}},"5987":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"5988":{"originalFunc":{"__isSmartRef__":true,"id":947}},"5989":{"varMapping":{"__isSmartRef__":true,"id":5990},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":5991},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5992},"__LivelyClassName__":"lively.Closure"},"5990":{"this":{"__isSmartRef__":true,"id":5304}},"5991":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"5992":{"originalFunc":{"__isSmartRef__":true,"id":951}},"5993":{"varMapping":{"__isSmartRef__":true,"id":5994},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":5995},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5996},"__LivelyClassName__":"lively.Closure"},"5994":{"this":{"__isSmartRef__":true,"id":5304}},"5995":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"5996":{"originalFunc":{"__isSmartRef__":true,"id":955}},"5997":{"varMapping":{"__isSmartRef__":true,"id":5998},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":5999},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6000},"__LivelyClassName__":"lively.Closure"},"5998":{"this":{"__isSmartRef__":true,"id":5304}},"5999":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"6000":{"originalFunc":{"__isSmartRef__":true,"id":959}},"6001":{"varMapping":{"__isSmartRef__":true,"id":6002},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":6003},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6004},"__LivelyClassName__":"lively.Closure"},"6002":{"this":{"__isSmartRef__":true,"id":5304}},"6003":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"6004":{"originalFunc":{"__isSmartRef__":true,"id":963}},"6005":{"varMapping":{"__isSmartRef__":true,"id":6006},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6007},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6008},"__LivelyClassName__":"lively.Closure"},"6006":{"this":{"__isSmartRef__":true,"id":5304}},"6007":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"6008":{"originalFunc":{"__isSmartRef__":true,"id":967}},"6009":{"varMapping":{"__isSmartRef__":true,"id":6010},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6011},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6012},"__LivelyClassName__":"lively.Closure"},"6010":{"this":{"__isSmartRef__":true,"id":5304}},"6011":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"6012":{"originalFunc":{"__isSmartRef__":true,"id":971}},"6013":{"varMapping":{"__isSmartRef__":true,"id":6014},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":6015},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6016},"__LivelyClassName__":"lively.Closure"},"6014":{"this":{"__isSmartRef__":true,"id":5304}},"6015":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"6016":{"originalFunc":{"__isSmartRef__":true,"id":975}},"6017":{"varMapping":{"__isSmartRef__":true,"id":6018},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":6019},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6020},"__LivelyClassName__":"lively.Closure"},"6018":{"this":{"__isSmartRef__":true,"id":5304}},"6019":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"6020":{"originalFunc":{"__isSmartRef__":true,"id":979}},"6021":{"varMapping":{"__isSmartRef__":true,"id":6022},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":6023},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6024},"__LivelyClassName__":"lively.Closure"},"6022":{"this":{"__isSmartRef__":true,"id":5304}},"6023":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"6024":{"originalFunc":{"__isSmartRef__":true,"id":983}},"6025":{"varMapping":{"__isSmartRef__":true,"id":6026},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":6027},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6028},"__LivelyClassName__":"lively.Closure"},"6026":{"this":{"__isSmartRef__":true,"id":5304}},"6027":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"6028":{"originalFunc":{"__isSmartRef__":true,"id":987}},"6029":{"varMapping":{"__isSmartRef__":true,"id":6030},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":6031},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6032},"__LivelyClassName__":"lively.Closure"},"6030":{"this":{"__isSmartRef__":true,"id":5304}},"6031":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"6032":{"originalFunc":{"__isSmartRef__":true,"id":991}},"6033":{"varMapping":{"__isSmartRef__":true,"id":6034},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":6035},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6036},"__LivelyClassName__":"lively.Closure"},"6034":{"this":{"__isSmartRef__":true,"id":5304}},"6035":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"6036":{"originalFunc":{"__isSmartRef__":true,"id":995}},"6037":{"varMapping":{"__isSmartRef__":true,"id":6038},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":6039},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6040},"__LivelyClassName__":"lively.Closure"},"6038":{"this":{"__isSmartRef__":true,"id":5304}},"6039":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"6040":{"originalFunc":{"__isSmartRef__":true,"id":999}},"6041":{"varMapping":{"__isSmartRef__":true,"id":6042},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6043},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6044},"__LivelyClassName__":"lively.Closure"},"6042":{"this":{"__isSmartRef__":true,"id":5304}},"6043":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"6044":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"6045":{"varMapping":{"__isSmartRef__":true,"id":6046},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6047},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6048},"__LivelyClassName__":"lively.Closure"},"6046":{"this":{"__isSmartRef__":true,"id":5304}},"6047":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"6048":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"6049":{"varMapping":{"__isSmartRef__":true,"id":6050},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":6051},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6052},"__LivelyClassName__":"lively.Closure"},"6050":{"this":{"__isSmartRef__":true,"id":5304}},"6051":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"6052":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"6053":{"setDevStyle":{"__isSmartRef__":true,"id":6054},"setNormalStyle":{"__isSmartRef__":true,"id":6058},"tileSize":{"__isSmartRef__":true,"id":6062},"become":{"__isSmartRef__":true,"id":6066},"onMouseDown":{"__isSmartRef__":true,"id":6070},"setGridPosition":{"__isSmartRef__":true,"id":6078},"toolbox":{"__isSmartRef__":true,"id":6082},"distanceTo":{"__isSmartRef__":true,"id":6086},"tileWasDropped":{"__isSmartRef__":true,"id":6090},"isObstacle":{"__isSmartRef__":true,"id":6094},"neighboursInDirection":{"__isSmartRef__":true,"id":6098},"neighbours":{"__isSmartRef__":true,"id":6102},"zIndex":{"__isSmartRef__":true,"id":6106},"obstacles":{"__isSmartRef__":true,"id":6110},"addObstacle":{"__isSmartRef__":true,"id":6114},"removeObstacle":{"__isSmartRef__":true,"id":6118},"isTile":{"__isSmartRef__":true,"id":6122},"neighbourAt":{"__isSmartRef__":true,"id":6126},"map":{"__isSmartRef__":true,"id":6130},"game":{"__isSmartRef__":true,"id":6134},"reset":{"__isSmartRef__":true,"id":6138},"shallowCopy":{"__isSmartRef__":true,"id":6142},"characters":{"__isSmartRef__":true,"id":6146},"enterTile":{"__isSmartRef__":true,"id":6150},"leaveTile":{"__isSmartRef__":true,"id":6154},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":6158}},"6054":{"varMapping":{"__isSmartRef__":true,"id":6055},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":6056},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6057},"__LivelyClassName__":"lively.Closure"},"6055":{"this":{"__isSmartRef__":true,"id":5285}},"6056":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"6057":{"originalFunc":{"__isSmartRef__":true,"id":892}},"6058":{"varMapping":{"__isSmartRef__":true,"id":6059},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":6060},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6061},"__LivelyClassName__":"lively.Closure"},"6059":{"this":{"__isSmartRef__":true,"id":5285}},"6060":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"6061":{"originalFunc":{"__isSmartRef__":true,"id":911}},"6062":{"varMapping":{"__isSmartRef__":true,"id":6063},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":6064},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6065},"__LivelyClassName__":"lively.Closure"},"6063":{"this":{"__isSmartRef__":true,"id":5285}},"6064":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"6065":{"originalFunc":{"__isSmartRef__":true,"id":915}},"6066":{"varMapping":{"__isSmartRef__":true,"id":6067},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6068},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6069},"__LivelyClassName__":"lively.Closure"},"6067":{"this":{"__isSmartRef__":true,"id":5285}},"6068":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"6069":{"originalFunc":{"__isSmartRef__":true,"id":919}},"6070":{"varMapping":{"__isSmartRef__":true,"id":6071},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6076},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6077},"__LivelyClassName__":"lively.Closure"},"6071":{"this":{"__isSmartRef__":true,"id":5285},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6072}},"6072":{"$super":{"__isSmartRef__":true,"id":6073}},"6073":{"varMapping":{"__isSmartRef__":true,"id":6074},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6075},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6074":{"obj":{"__isSmartRef__":true,"id":5285},"name":"onMouseDown"},"6075":{},"6076":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"6077":{"originalFunc":{"__isSmartRef__":true,"id":923}},"6078":{"varMapping":{"__isSmartRef__":true,"id":6079},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":6080},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6081},"__LivelyClassName__":"lively.Closure"},"6079":{"this":{"__isSmartRef__":true,"id":5285}},"6080":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"6081":{"originalFunc":{"__isSmartRef__":true,"id":931}},"6082":{"varMapping":{"__isSmartRef__":true,"id":6083},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":6084},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6085},"__LivelyClassName__":"lively.Closure"},"6083":{"this":{"__isSmartRef__":true,"id":5285}},"6084":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"6085":{"originalFunc":{"__isSmartRef__":true,"id":935}},"6086":{"varMapping":{"__isSmartRef__":true,"id":6087},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":6088},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6089},"__LivelyClassName__":"lively.Closure"},"6087":{"this":{"__isSmartRef__":true,"id":5285}},"6088":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"6089":{"originalFunc":{"__isSmartRef__":true,"id":939}},"6090":{"varMapping":{"__isSmartRef__":true,"id":6091},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":6092},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6093},"__LivelyClassName__":"lively.Closure"},"6091":{"this":{"__isSmartRef__":true,"id":5285}},"6092":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"6093":{"originalFunc":{"__isSmartRef__":true,"id":943}},"6094":{"varMapping":{"__isSmartRef__":true,"id":6095},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":6096},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6097},"__LivelyClassName__":"lively.Closure"},"6095":{"this":{"__isSmartRef__":true,"id":5285}},"6096":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"6097":{"originalFunc":{"__isSmartRef__":true,"id":947}},"6098":{"varMapping":{"__isSmartRef__":true,"id":6099},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":6100},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6101},"__LivelyClassName__":"lively.Closure"},"6099":{"this":{"__isSmartRef__":true,"id":5285}},"6100":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"6101":{"originalFunc":{"__isSmartRef__":true,"id":951}},"6102":{"varMapping":{"__isSmartRef__":true,"id":6103},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":6104},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6105},"__LivelyClassName__":"lively.Closure"},"6103":{"this":{"__isSmartRef__":true,"id":5285}},"6104":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"6105":{"originalFunc":{"__isSmartRef__":true,"id":955}},"6106":{"varMapping":{"__isSmartRef__":true,"id":6107},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":6108},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6109},"__LivelyClassName__":"lively.Closure"},"6107":{"this":{"__isSmartRef__":true,"id":5285}},"6108":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"6109":{"originalFunc":{"__isSmartRef__":true,"id":959}},"6110":{"varMapping":{"__isSmartRef__":true,"id":6111},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":6112},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6113},"__LivelyClassName__":"lively.Closure"},"6111":{"this":{"__isSmartRef__":true,"id":5285}},"6112":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"6113":{"originalFunc":{"__isSmartRef__":true,"id":963}},"6114":{"varMapping":{"__isSmartRef__":true,"id":6115},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6116},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6117},"__LivelyClassName__":"lively.Closure"},"6115":{"this":{"__isSmartRef__":true,"id":5285}},"6116":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"6117":{"originalFunc":{"__isSmartRef__":true,"id":967}},"6118":{"varMapping":{"__isSmartRef__":true,"id":6119},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6120},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6121},"__LivelyClassName__":"lively.Closure"},"6119":{"this":{"__isSmartRef__":true,"id":5285}},"6120":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"6121":{"originalFunc":{"__isSmartRef__":true,"id":971}},"6122":{"varMapping":{"__isSmartRef__":true,"id":6123},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":6124},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6125},"__LivelyClassName__":"lively.Closure"},"6123":{"this":{"__isSmartRef__":true,"id":5285}},"6124":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"6125":{"originalFunc":{"__isSmartRef__":true,"id":975}},"6126":{"varMapping":{"__isSmartRef__":true,"id":6127},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":6128},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6129},"__LivelyClassName__":"lively.Closure"},"6127":{"this":{"__isSmartRef__":true,"id":5285}},"6128":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"6129":{"originalFunc":{"__isSmartRef__":true,"id":979}},"6130":{"varMapping":{"__isSmartRef__":true,"id":6131},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":6132},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6133},"__LivelyClassName__":"lively.Closure"},"6131":{"this":{"__isSmartRef__":true,"id":5285}},"6132":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"6133":{"originalFunc":{"__isSmartRef__":true,"id":983}},"6134":{"varMapping":{"__isSmartRef__":true,"id":6135},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":6136},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6137},"__LivelyClassName__":"lively.Closure"},"6135":{"this":{"__isSmartRef__":true,"id":5285}},"6136":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"6137":{"originalFunc":{"__isSmartRef__":true,"id":987}},"6138":{"varMapping":{"__isSmartRef__":true,"id":6139},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":6140},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6141},"__LivelyClassName__":"lively.Closure"},"6139":{"this":{"__isSmartRef__":true,"id":5285}},"6140":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"6141":{"originalFunc":{"__isSmartRef__":true,"id":991}},"6142":{"varMapping":{"__isSmartRef__":true,"id":6143},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":6144},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6145},"__LivelyClassName__":"lively.Closure"},"6143":{"this":{"__isSmartRef__":true,"id":5285}},"6144":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"6145":{"originalFunc":{"__isSmartRef__":true,"id":995}},"6146":{"varMapping":{"__isSmartRef__":true,"id":6147},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":6148},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6149},"__LivelyClassName__":"lively.Closure"},"6147":{"this":{"__isSmartRef__":true,"id":5285}},"6148":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"6149":{"originalFunc":{"__isSmartRef__":true,"id":999}},"6150":{"varMapping":{"__isSmartRef__":true,"id":6151},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6152},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6153},"__LivelyClassName__":"lively.Closure"},"6151":{"this":{"__isSmartRef__":true,"id":5285}},"6152":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"6153":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"6154":{"varMapping":{"__isSmartRef__":true,"id":6155},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6156},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6157},"__LivelyClassName__":"lively.Closure"},"6155":{"this":{"__isSmartRef__":true,"id":5285}},"6156":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"6157":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"6158":{"varMapping":{"__isSmartRef__":true,"id":6159},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":6160},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6161},"__LivelyClassName__":"lively.Closure"},"6159":{"this":{"__isSmartRef__":true,"id":5285}},"6160":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"6161":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"6162":{"submorphs":[{"__isSmartRef__":true,"id":6163}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6173},"renderContextTable":{"__isSmartRef__":true,"id":6178},"eventHandler":{"__isSmartRef__":true,"id":6179},"_ClipMode":"visible","derivationIds":[],"id":"C91A9E9E-F6D3-4F1F-B537-3EC989B5CE5D","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6180},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":7,"column":0,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":6163},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":5266},{"__isSmartRef__":true,"id":5119},{"__isSmartRef__":true,"id":5247},{"__isSmartRef__":true,"id":6181},{"__isSmartRef__":true,"id":6200}],"__SourceModuleName__":"Global.lively.morphic.Core","charactersStandingHere":[],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9222},"__LivelyClassName__":"lively.morphic.Box"},"6163":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6164},"renderContextTable":{"__isSmartRef__":true,"id":6169},"eventHandler":{"__isSmartRef__":true,"id":6170},"_ClipMode":"visible","derivationIds":[],"id":"C9000255-EB40-4DB9-8BE4-AB15F7A7D616","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6171},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6162},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6172},"__LivelyClassName__":"lively.morphic.Image"},"6164":{"_Position":{"__isSmartRef__":true,"id":6165},"renderContextTable":{"__isSmartRef__":true,"id":6166},"_Extent":{"__isSmartRef__":true,"id":6167},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":6168},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"6165":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6166":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"6167":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6168":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6169":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6170":{"morph":{"__isSmartRef__":true,"id":6163},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6171":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6172":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"6173":{"_Position":{"__isSmartRef__":true,"id":6174},"renderContextTable":{"__isSmartRef__":true,"id":6175},"_Extent":{"__isSmartRef__":true,"id":6176},"_Padding":{"__isSmartRef__":true,"id":6177},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6174":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6175":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"6176":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6177":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6178":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6179":{"morph":{"__isSmartRef__":true,"id":6162},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6180":{"x":0,"y":336,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6181":{"submorphs":[{"__isSmartRef__":true,"id":6182}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6192},"renderContextTable":{"__isSmartRef__":true,"id":6197},"eventHandler":{"__isSmartRef__":true,"id":6198},"_ClipMode":"visible","derivationIds":[],"id":"2B24E36D-44A0-40B0-B498-E5B173C556E7","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6199},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":8,"column":0,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":6182},"grabbingEnabled":false,"__obstacles":[],"charactersStandingHere":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":6162},{"__isSmartRef__":true,"id":5247},{"__isSmartRef__":true,"id":6200},{"__isSmartRef__":true,"id":6333},{"__isSmartRef__":true,"id":6314}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9113},"__LivelyClassName__":"lively.morphic.Box"},"6182":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6183},"renderContextTable":{"__isSmartRef__":true,"id":6188},"eventHandler":{"__isSmartRef__":true,"id":6189},"_ClipMode":"visible","derivationIds":[],"id":"1B5A76C6-E44A-4CCB-A1B0-FBB26A3F9510","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6190},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6181},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6191},"__LivelyClassName__":"lively.morphic.Image"},"6183":{"_Position":{"__isSmartRef__":true,"id":6184},"renderContextTable":{"__isSmartRef__":true,"id":6185},"_Extent":{"__isSmartRef__":true,"id":6186},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":6187},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"6184":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6185":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"6186":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6187":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6188":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6189":{"morph":{"__isSmartRef__":true,"id":6182},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6190":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6191":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"6192":{"_Position":{"__isSmartRef__":true,"id":6193},"renderContextTable":{"__isSmartRef__":true,"id":6194},"_Extent":{"__isSmartRef__":true,"id":6195},"_Padding":{"__isSmartRef__":true,"id":6196},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6193":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6194":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"6195":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6196":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6197":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6198":{"morph":{"__isSmartRef__":true,"id":6181},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6199":{"x":0,"y":384,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6200":{"submorphs":[{"__isSmartRef__":true,"id":6201}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6211},"renderContextTable":{"__isSmartRef__":true,"id":6216},"eventHandler":{"__isSmartRef__":true,"id":6217},"_ClipMode":"visible","derivationIds":[],"id":"E1BB780D-8DB3-438D-B8BB-388D01E1B040","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6218},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":8,"column":1,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":6201},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":6162},{"__isSmartRef__":true,"id":5247},{"__isSmartRef__":true,"id":5100},{"__isSmartRef__":true,"id":6181},{"__isSmartRef__":true,"id":6219},{"__isSmartRef__":true,"id":6333},{"__isSmartRef__":true,"id":6314},{"__isSmartRef__":true,"id":6295}],"charactersStandingHere":[{"__isSmartRef__":true,"id":8566}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9004},"__LivelyClassName__":"lively.morphic.Box"},"6201":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6202},"renderContextTable":{"__isSmartRef__":true,"id":6207},"eventHandler":{"__isSmartRef__":true,"id":6208},"_ClipMode":"visible","derivationIds":[],"id":"2CC9C38E-2D87-4E09-9507-A1197B4C09B0","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6209},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6200},"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6210},"__LivelyClassName__":"lively.morphic.Image"},"6202":{"_Position":{"__isSmartRef__":true,"id":6203},"renderContextTable":{"__isSmartRef__":true,"id":6204},"_Extent":{"__isSmartRef__":true,"id":6205},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":6206},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"6203":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6204":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"6205":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6206":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6207":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6208":{"morph":{"__isSmartRef__":true,"id":6201},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6209":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6210":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"6211":{"_Position":{"__isSmartRef__":true,"id":6212},"renderContextTable":{"__isSmartRef__":true,"id":6213},"_Extent":{"__isSmartRef__":true,"id":6214},"_Padding":{"__isSmartRef__":true,"id":6215},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6212":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6213":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"6214":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6215":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6216":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6217":{"morph":{"__isSmartRef__":true,"id":6200},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6218":{"x":48,"y":384,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6219":{"submorphs":[{"__isSmartRef__":true,"id":6220}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6230},"renderContextTable":{"__isSmartRef__":true,"id":6235},"eventHandler":{"__isSmartRef__":true,"id":6236},"_ClipMode":"visible","derivationIds":[],"id":"9CEFB462-57E2-4867-9686-F9C20BF059DA","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6237},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":8,"column":2,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":6220},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":5247},{"__isSmartRef__":true,"id":5100},{"__isSmartRef__":true,"id":4953},{"__isSmartRef__":true,"id":6200},{"__isSmartRef__":true,"id":6238},{"__isSmartRef__":true,"id":6314},{"__isSmartRef__":true,"id":6295},{"__isSmartRef__":true,"id":6276}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8457},"__LivelyClassName__":"lively.morphic.Box"},"6220":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6221},"renderContextTable":{"__isSmartRef__":true,"id":6226},"eventHandler":{"__isSmartRef__":true,"id":6227},"_ClipMode":"visible","derivationIds":[],"id":"C8524078-26E1-448B-84B9-6D233E08883D","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6228},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6219},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6229},"__LivelyClassName__":"lively.morphic.Image"},"6221":{"_Position":{"__isSmartRef__":true,"id":6222},"renderContextTable":{"__isSmartRef__":true,"id":6223},"_Extent":{"__isSmartRef__":true,"id":6224},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass_some_flowers.png","_Padding":{"__isSmartRef__":true,"id":6225},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"6222":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6223":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"6224":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6225":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6226":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6227":{"morph":{"__isSmartRef__":true,"id":6220},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6228":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6229":{"dropOn":{"__isSmartRef__":true,"id":656},"shallowCopy":{"__isSmartRef__":true,"id":685}},"6230":{"_Position":{"__isSmartRef__":true,"id":6231},"renderContextTable":{"__isSmartRef__":true,"id":6232},"_Extent":{"__isSmartRef__":true,"id":6233},"_Padding":{"__isSmartRef__":true,"id":6234},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6231":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6232":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"6233":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6234":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6235":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6236":{"morph":{"__isSmartRef__":true,"id":6219},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6237":{"x":96,"y":384,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6238":{"submorphs":[{"__isSmartRef__":true,"id":6239}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6249},"renderContextTable":{"__isSmartRef__":true,"id":6254},"eventHandler":{"__isSmartRef__":true,"id":6255},"_ClipMode":"visible","derivationIds":[],"id":"A1D69F58-2D8E-41D6-AB83-93E355B0CD27","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6256},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":8,"column":3,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":6239},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":5100},{"__isSmartRef__":true,"id":4953},{"__isSmartRef__":true,"id":3653},{"__isSmartRef__":true,"id":6219},{"__isSmartRef__":true,"id":6257},{"__isSmartRef__":true,"id":6295},{"__isSmartRef__":true,"id":6276},{"__isSmartRef__":true,"id":6679}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8348},"__LivelyClassName__":"lively.morphic.Box"},"6239":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6240},"renderContextTable":{"__isSmartRef__":true,"id":6245},"eventHandler":{"__isSmartRef__":true,"id":6246},"_ClipMode":"visible","derivationIds":[],"id":"2DAB7D58-A609-48F4-92B4-0CF6BAB440EC","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6247},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6238},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6248},"__LivelyClassName__":"lively.morphic.Image"},"6240":{"_Position":{"__isSmartRef__":true,"id":6241},"renderContextTable":{"__isSmartRef__":true,"id":6242},"_Extent":{"__isSmartRef__":true,"id":6243},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":6244},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"6241":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6242":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"6243":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6244":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6245":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6246":{"morph":{"__isSmartRef__":true,"id":6239},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6247":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6248":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"6249":{"_Position":{"__isSmartRef__":true,"id":6250},"renderContextTable":{"__isSmartRef__":true,"id":6251},"_Extent":{"__isSmartRef__":true,"id":6252},"_Padding":{"__isSmartRef__":true,"id":6253},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6250":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6251":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"6252":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6253":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6254":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6255":{"morph":{"__isSmartRef__":true,"id":6238},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6256":{"x":144,"y":384,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6257":{"submorphs":[{"__isSmartRef__":true,"id":6258}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6268},"renderContextTable":{"__isSmartRef__":true,"id":6273},"eventHandler":{"__isSmartRef__":true,"id":6274},"_ClipMode":"visible","derivationIds":[],"id":"79402E30-BA3A-438E-9E52-824FC93A6481","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6275},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":8,"column":4,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":6258},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":4953},{"__isSmartRef__":true,"id":3653},{"__isSmartRef__":true,"id":3395},{"__isSmartRef__":true,"id":6238},{"__isSmartRef__":true,"id":3523},{"__isSmartRef__":true,"id":6276},{"__isSmartRef__":true,"id":6679},{"__isSmartRef__":true,"id":6698}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8239},"__LivelyClassName__":"lively.morphic.Box"},"6258":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6259},"renderContextTable":{"__isSmartRef__":true,"id":6264},"eventHandler":{"__isSmartRef__":true,"id":6265},"_ClipMode":"visible","derivationIds":[],"id":"FD3E1F7A-2426-4C1F-A95C-AA53D77390A1","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6266},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6257},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6267},"__LivelyClassName__":"lively.morphic.Image"},"6259":{"_Position":{"__isSmartRef__":true,"id":6260},"renderContextTable":{"__isSmartRef__":true,"id":6261},"_Extent":{"__isSmartRef__":true,"id":6262},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":6263},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"6260":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6261":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"6262":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6263":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6264":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6265":{"morph":{"__isSmartRef__":true,"id":6258},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6266":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6267":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"6268":{"_Position":{"__isSmartRef__":true,"id":6269},"renderContextTable":{"__isSmartRef__":true,"id":6270},"_Extent":{"__isSmartRef__":true,"id":6271},"_Padding":{"__isSmartRef__":true,"id":6272},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6269":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6270":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"6271":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6272":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6273":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6274":{"morph":{"__isSmartRef__":true,"id":6257},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6275":{"x":192,"y":384,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6276":{"submorphs":[{"__isSmartRef__":true,"id":6277}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6287},"renderContextTable":{"__isSmartRef__":true,"id":6292},"eventHandler":{"__isSmartRef__":true,"id":6293},"_ClipMode":"visible","derivationIds":[],"id":"6A4C27C9-CC0D-4BCE-A3E2-A09297440398","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6294},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":9,"column":3,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":6277},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":6219},{"__isSmartRef__":true,"id":6238},{"__isSmartRef__":true,"id":6257},{"__isSmartRef__":true,"id":6295},{"__isSmartRef__":true,"id":6679}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8130},"__LivelyClassName__":"lively.morphic.Box"},"6277":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6278},"renderContextTable":{"__isSmartRef__":true,"id":6283},"eventHandler":{"__isSmartRef__":true,"id":6284},"_ClipMode":"visible","derivationIds":[],"id":"4130FE99-8313-4D1F-B2F5-04D312575514","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6285},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6276},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6286},"__LivelyClassName__":"lively.morphic.Image"},"6278":{"_Position":{"__isSmartRef__":true,"id":6279},"renderContextTable":{"__isSmartRef__":true,"id":6280},"_Extent":{"__isSmartRef__":true,"id":6281},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":6282},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"6279":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6280":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"6281":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6282":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6283":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6284":{"morph":{"__isSmartRef__":true,"id":6277},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6285":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6286":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"6287":{"_Position":{"__isSmartRef__":true,"id":6288},"renderContextTable":{"__isSmartRef__":true,"id":6289},"_Extent":{"__isSmartRef__":true,"id":6290},"_Padding":{"__isSmartRef__":true,"id":6291},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6288":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6289":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"6290":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6291":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6292":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6293":{"morph":{"__isSmartRef__":true,"id":6276},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6294":{"x":144,"y":432,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6295":{"submorphs":[{"__isSmartRef__":true,"id":6296}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6306},"renderContextTable":{"__isSmartRef__":true,"id":6311},"eventHandler":{"__isSmartRef__":true,"id":6312},"_ClipMode":"visible","derivationIds":[],"id":"59F13731-A93E-4755-9186-AD1A074A3BA8","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6313},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":9,"column":2,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":6296},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":6200},{"__isSmartRef__":true,"id":6219},{"__isSmartRef__":true,"id":6238},{"__isSmartRef__":true,"id":6314},{"__isSmartRef__":true,"id":6276}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6570},"__LivelyClassName__":"lively.morphic.Box"},"6296":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6297},"renderContextTable":{"__isSmartRef__":true,"id":6302},"eventHandler":{"__isSmartRef__":true,"id":6303},"_ClipMode":"visible","derivationIds":[],"id":"A4EBF08C-4955-4226-B1B7-5EF63FA6726F","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6304},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6295},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6305},"__LivelyClassName__":"lively.morphic.Image"},"6297":{"_Position":{"__isSmartRef__":true,"id":6298},"renderContextTable":{"__isSmartRef__":true,"id":6299},"_Extent":{"__isSmartRef__":true,"id":6300},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":6301},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"6298":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6299":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"6300":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6301":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6302":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6303":{"morph":{"__isSmartRef__":true,"id":6296},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6304":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6305":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"6306":{"_Position":{"__isSmartRef__":true,"id":6307},"renderContextTable":{"__isSmartRef__":true,"id":6308},"_Extent":{"__isSmartRef__":true,"id":6309},"_Padding":{"__isSmartRef__":true,"id":6310},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6307":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6308":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"6309":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6310":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6311":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6312":{"morph":{"__isSmartRef__":true,"id":6295},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6313":{"x":96,"y":432,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6314":{"submorphs":[{"__isSmartRef__":true,"id":6315}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6325},"renderContextTable":{"__isSmartRef__":true,"id":6330},"eventHandler":{"__isSmartRef__":true,"id":6331},"_ClipMode":"visible","derivationIds":[],"id":"132A70AF-7282-4BE1-9543-28723843962E","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6332},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":9,"column":1,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":6315},"grabbingEnabled":false,"__obstacles":[],"charactersStandingHere":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":6181},{"__isSmartRef__":true,"id":6200},{"__isSmartRef__":true,"id":6219},{"__isSmartRef__":true,"id":6333},{"__isSmartRef__":true,"id":6295}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6461},"__LivelyClassName__":"lively.morphic.Box"},"6315":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6316},"renderContextTable":{"__isSmartRef__":true,"id":6321},"eventHandler":{"__isSmartRef__":true,"id":6322},"_ClipMode":"visible","derivationIds":[],"id":"6AFA3893-65B5-4BC1-BFBE-1E0B8B087648","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6323},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6314},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6324},"__LivelyClassName__":"lively.morphic.Image"},"6316":{"_Position":{"__isSmartRef__":true,"id":6317},"renderContextTable":{"__isSmartRef__":true,"id":6318},"_Extent":{"__isSmartRef__":true,"id":6319},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass_some_flowers.png","_Padding":{"__isSmartRef__":true,"id":6320},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"6317":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6318":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"6319":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6320":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6321":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6322":{"morph":{"__isSmartRef__":true,"id":6315},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6323":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6324":{"dropOn":{"__isSmartRef__":true,"id":656},"shallowCopy":{"__isSmartRef__":true,"id":685}},"6325":{"_Position":{"__isSmartRef__":true,"id":6326},"renderContextTable":{"__isSmartRef__":true,"id":6327},"_Extent":{"__isSmartRef__":true,"id":6328},"_Padding":{"__isSmartRef__":true,"id":6329},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6326":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6327":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"6328":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6329":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6330":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6331":{"morph":{"__isSmartRef__":true,"id":6314},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6332":{"x":48,"y":432,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6333":{"submorphs":[{"__isSmartRef__":true,"id":6334}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6344},"renderContextTable":{"__isSmartRef__":true,"id":6349},"eventHandler":{"__isSmartRef__":true,"id":6350},"_ClipMode":"visible","derivationIds":[],"id":"D11D185E-2A23-4E00-9223-C9BE799A0870","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6351},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":9,"column":0,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":6334},"grabbingEnabled":false,"__obstacles":[],"charactersStandingHere":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":6181},{"__isSmartRef__":true,"id":6200},{"__isSmartRef__":true,"id":6314}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6352},"__LivelyClassName__":"lively.morphic.Box"},"6334":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6335},"renderContextTable":{"__isSmartRef__":true,"id":6340},"eventHandler":{"__isSmartRef__":true,"id":6341},"_ClipMode":"visible","derivationIds":[],"id":"0371250D-051A-443B-BC12-41CC175A2B5B","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6342},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6333},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6343},"__LivelyClassName__":"lively.morphic.Image"},"6335":{"_Position":{"__isSmartRef__":true,"id":6336},"renderContextTable":{"__isSmartRef__":true,"id":6337},"_Extent":{"__isSmartRef__":true,"id":6338},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":6339},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"6336":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6337":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"6338":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6339":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6340":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6341":{"morph":{"__isSmartRef__":true,"id":6334},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6342":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6343":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"6344":{"_Position":{"__isSmartRef__":true,"id":6345},"renderContextTable":{"__isSmartRef__":true,"id":6346},"_Extent":{"__isSmartRef__":true,"id":6347},"_Padding":{"__isSmartRef__":true,"id":6348},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6345":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6346":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"6347":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6348":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6349":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6350":{"morph":{"__isSmartRef__":true,"id":6333},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6351":{"x":0,"y":432,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6352":{"setDevStyle":{"__isSmartRef__":true,"id":6353},"setNormalStyle":{"__isSmartRef__":true,"id":6357},"tileSize":{"__isSmartRef__":true,"id":6361},"become":{"__isSmartRef__":true,"id":6365},"onMouseDown":{"__isSmartRef__":true,"id":6369},"setGridPosition":{"__isSmartRef__":true,"id":6377},"toolbox":{"__isSmartRef__":true,"id":6381},"distanceTo":{"__isSmartRef__":true,"id":6385},"tileWasDropped":{"__isSmartRef__":true,"id":6389},"isObstacle":{"__isSmartRef__":true,"id":6393},"neighboursInDirection":{"__isSmartRef__":true,"id":6397},"neighbours":{"__isSmartRef__":true,"id":6401},"zIndex":{"__isSmartRef__":true,"id":6405},"obstacles":{"__isSmartRef__":true,"id":6409},"addObstacle":{"__isSmartRef__":true,"id":6413},"removeObstacle":{"__isSmartRef__":true,"id":6417},"isTile":{"__isSmartRef__":true,"id":6421},"neighbourAt":{"__isSmartRef__":true,"id":6425},"map":{"__isSmartRef__":true,"id":6429},"game":{"__isSmartRef__":true,"id":6433},"reset":{"__isSmartRef__":true,"id":6437},"shallowCopy":{"__isSmartRef__":true,"id":6441},"characters":{"__isSmartRef__":true,"id":6445},"enterTile":{"__isSmartRef__":true,"id":6449},"leaveTile":{"__isSmartRef__":true,"id":6453},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":6457}},"6353":{"varMapping":{"__isSmartRef__":true,"id":6354},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":6355},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6356},"__LivelyClassName__":"lively.Closure"},"6354":{"this":{"__isSmartRef__":true,"id":6333}},"6355":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"6356":{"originalFunc":{"__isSmartRef__":true,"id":892}},"6357":{"varMapping":{"__isSmartRef__":true,"id":6358},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":6359},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6360},"__LivelyClassName__":"lively.Closure"},"6358":{"this":{"__isSmartRef__":true,"id":6333}},"6359":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"6360":{"originalFunc":{"__isSmartRef__":true,"id":911}},"6361":{"varMapping":{"__isSmartRef__":true,"id":6362},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":6363},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6364},"__LivelyClassName__":"lively.Closure"},"6362":{"this":{"__isSmartRef__":true,"id":6333}},"6363":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"6364":{"originalFunc":{"__isSmartRef__":true,"id":915}},"6365":{"varMapping":{"__isSmartRef__":true,"id":6366},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6367},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6368},"__LivelyClassName__":"lively.Closure"},"6366":{"this":{"__isSmartRef__":true,"id":6333}},"6367":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"6368":{"originalFunc":{"__isSmartRef__":true,"id":919}},"6369":{"varMapping":{"__isSmartRef__":true,"id":6370},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6375},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6376},"__LivelyClassName__":"lively.Closure"},"6370":{"this":{"__isSmartRef__":true,"id":6333},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6371}},"6371":{"$super":{"__isSmartRef__":true,"id":6372}},"6372":{"varMapping":{"__isSmartRef__":true,"id":6373},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6374},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6373":{"obj":{"__isSmartRef__":true,"id":6333},"name":"onMouseDown"},"6374":{},"6375":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"6376":{"originalFunc":{"__isSmartRef__":true,"id":923}},"6377":{"varMapping":{"__isSmartRef__":true,"id":6378},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":6379},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6380},"__LivelyClassName__":"lively.Closure"},"6378":{"this":{"__isSmartRef__":true,"id":6333}},"6379":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"6380":{"originalFunc":{"__isSmartRef__":true,"id":931}},"6381":{"varMapping":{"__isSmartRef__":true,"id":6382},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":6383},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6384},"__LivelyClassName__":"lively.Closure"},"6382":{"this":{"__isSmartRef__":true,"id":6333}},"6383":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"6384":{"originalFunc":{"__isSmartRef__":true,"id":935}},"6385":{"varMapping":{"__isSmartRef__":true,"id":6386},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":6387},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6388},"__LivelyClassName__":"lively.Closure"},"6386":{"this":{"__isSmartRef__":true,"id":6333}},"6387":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"6388":{"originalFunc":{"__isSmartRef__":true,"id":939}},"6389":{"varMapping":{"__isSmartRef__":true,"id":6390},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":6391},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6392},"__LivelyClassName__":"lively.Closure"},"6390":{"this":{"__isSmartRef__":true,"id":6333}},"6391":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"6392":{"originalFunc":{"__isSmartRef__":true,"id":943}},"6393":{"varMapping":{"__isSmartRef__":true,"id":6394},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":6395},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6396},"__LivelyClassName__":"lively.Closure"},"6394":{"this":{"__isSmartRef__":true,"id":6333}},"6395":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"6396":{"originalFunc":{"__isSmartRef__":true,"id":947}},"6397":{"varMapping":{"__isSmartRef__":true,"id":6398},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":6399},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6400},"__LivelyClassName__":"lively.Closure"},"6398":{"this":{"__isSmartRef__":true,"id":6333}},"6399":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"6400":{"originalFunc":{"__isSmartRef__":true,"id":951}},"6401":{"varMapping":{"__isSmartRef__":true,"id":6402},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":6403},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6404},"__LivelyClassName__":"lively.Closure"},"6402":{"this":{"__isSmartRef__":true,"id":6333}},"6403":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"6404":{"originalFunc":{"__isSmartRef__":true,"id":955}},"6405":{"varMapping":{"__isSmartRef__":true,"id":6406},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":6407},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6408},"__LivelyClassName__":"lively.Closure"},"6406":{"this":{"__isSmartRef__":true,"id":6333}},"6407":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"6408":{"originalFunc":{"__isSmartRef__":true,"id":959}},"6409":{"varMapping":{"__isSmartRef__":true,"id":6410},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":6411},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6412},"__LivelyClassName__":"lively.Closure"},"6410":{"this":{"__isSmartRef__":true,"id":6333}},"6411":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"6412":{"originalFunc":{"__isSmartRef__":true,"id":963}},"6413":{"varMapping":{"__isSmartRef__":true,"id":6414},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6415},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6416},"__LivelyClassName__":"lively.Closure"},"6414":{"this":{"__isSmartRef__":true,"id":6333}},"6415":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"6416":{"originalFunc":{"__isSmartRef__":true,"id":967}},"6417":{"varMapping":{"__isSmartRef__":true,"id":6418},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6419},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6420},"__LivelyClassName__":"lively.Closure"},"6418":{"this":{"__isSmartRef__":true,"id":6333}},"6419":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"6420":{"originalFunc":{"__isSmartRef__":true,"id":971}},"6421":{"varMapping":{"__isSmartRef__":true,"id":6422},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":6423},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6424},"__LivelyClassName__":"lively.Closure"},"6422":{"this":{"__isSmartRef__":true,"id":6333}},"6423":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"6424":{"originalFunc":{"__isSmartRef__":true,"id":975}},"6425":{"varMapping":{"__isSmartRef__":true,"id":6426},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":6427},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6428},"__LivelyClassName__":"lively.Closure"},"6426":{"this":{"__isSmartRef__":true,"id":6333}},"6427":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"6428":{"originalFunc":{"__isSmartRef__":true,"id":979}},"6429":{"varMapping":{"__isSmartRef__":true,"id":6430},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":6431},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6432},"__LivelyClassName__":"lively.Closure"},"6430":{"this":{"__isSmartRef__":true,"id":6333}},"6431":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"6432":{"originalFunc":{"__isSmartRef__":true,"id":983}},"6433":{"varMapping":{"__isSmartRef__":true,"id":6434},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":6435},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6436},"__LivelyClassName__":"lively.Closure"},"6434":{"this":{"__isSmartRef__":true,"id":6333}},"6435":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"6436":{"originalFunc":{"__isSmartRef__":true,"id":987}},"6437":{"varMapping":{"__isSmartRef__":true,"id":6438},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":6439},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6440},"__LivelyClassName__":"lively.Closure"},"6438":{"this":{"__isSmartRef__":true,"id":6333}},"6439":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"6440":{"originalFunc":{"__isSmartRef__":true,"id":991}},"6441":{"varMapping":{"__isSmartRef__":true,"id":6442},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":6443},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6444},"__LivelyClassName__":"lively.Closure"},"6442":{"this":{"__isSmartRef__":true,"id":6333}},"6443":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"6444":{"originalFunc":{"__isSmartRef__":true,"id":995}},"6445":{"varMapping":{"__isSmartRef__":true,"id":6446},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":6447},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6448},"__LivelyClassName__":"lively.Closure"},"6446":{"this":{"__isSmartRef__":true,"id":6333}},"6447":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"6448":{"originalFunc":{"__isSmartRef__":true,"id":999}},"6449":{"varMapping":{"__isSmartRef__":true,"id":6450},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6451},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6452},"__LivelyClassName__":"lively.Closure"},"6450":{"this":{"__isSmartRef__":true,"id":6333}},"6451":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"6452":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"6453":{"varMapping":{"__isSmartRef__":true,"id":6454},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6455},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6456},"__LivelyClassName__":"lively.Closure"},"6454":{"this":{"__isSmartRef__":true,"id":6333}},"6455":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"6456":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"6457":{"varMapping":{"__isSmartRef__":true,"id":6458},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":6459},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6460},"__LivelyClassName__":"lively.Closure"},"6458":{"this":{"__isSmartRef__":true,"id":6333}},"6459":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"6460":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"6461":{"setDevStyle":{"__isSmartRef__":true,"id":6462},"setNormalStyle":{"__isSmartRef__":true,"id":6466},"tileSize":{"__isSmartRef__":true,"id":6470},"become":{"__isSmartRef__":true,"id":6474},"onMouseDown":{"__isSmartRef__":true,"id":6478},"setGridPosition":{"__isSmartRef__":true,"id":6486},"toolbox":{"__isSmartRef__":true,"id":6490},"distanceTo":{"__isSmartRef__":true,"id":6494},"tileWasDropped":{"__isSmartRef__":true,"id":6498},"isObstacle":{"__isSmartRef__":true,"id":6502},"neighboursInDirection":{"__isSmartRef__":true,"id":6506},"neighbours":{"__isSmartRef__":true,"id":6510},"zIndex":{"__isSmartRef__":true,"id":6514},"obstacles":{"__isSmartRef__":true,"id":6518},"addObstacle":{"__isSmartRef__":true,"id":6522},"removeObstacle":{"__isSmartRef__":true,"id":6526},"isTile":{"__isSmartRef__":true,"id":6530},"neighbourAt":{"__isSmartRef__":true,"id":6534},"map":{"__isSmartRef__":true,"id":6538},"game":{"__isSmartRef__":true,"id":6542},"reset":{"__isSmartRef__":true,"id":6546},"shallowCopy":{"__isSmartRef__":true,"id":6550},"characters":{"__isSmartRef__":true,"id":6554},"enterTile":{"__isSmartRef__":true,"id":6558},"leaveTile":{"__isSmartRef__":true,"id":6562},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":6566}},"6462":{"varMapping":{"__isSmartRef__":true,"id":6463},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":6464},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6465},"__LivelyClassName__":"lively.Closure"},"6463":{"this":{"__isSmartRef__":true,"id":6314}},"6464":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"6465":{"originalFunc":{"__isSmartRef__":true,"id":892}},"6466":{"varMapping":{"__isSmartRef__":true,"id":6467},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":6468},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6469},"__LivelyClassName__":"lively.Closure"},"6467":{"this":{"__isSmartRef__":true,"id":6314}},"6468":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"6469":{"originalFunc":{"__isSmartRef__":true,"id":911}},"6470":{"varMapping":{"__isSmartRef__":true,"id":6471},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":6472},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6473},"__LivelyClassName__":"lively.Closure"},"6471":{"this":{"__isSmartRef__":true,"id":6314}},"6472":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"6473":{"originalFunc":{"__isSmartRef__":true,"id":915}},"6474":{"varMapping":{"__isSmartRef__":true,"id":6475},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6476},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6477},"__LivelyClassName__":"lively.Closure"},"6475":{"this":{"__isSmartRef__":true,"id":6314}},"6476":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"6477":{"originalFunc":{"__isSmartRef__":true,"id":919}},"6478":{"varMapping":{"__isSmartRef__":true,"id":6479},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6484},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6485},"__LivelyClassName__":"lively.Closure"},"6479":{"this":{"__isSmartRef__":true,"id":6314},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6480}},"6480":{"$super":{"__isSmartRef__":true,"id":6481}},"6481":{"varMapping":{"__isSmartRef__":true,"id":6482},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6483},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6482":{"obj":{"__isSmartRef__":true,"id":6314},"name":"onMouseDown"},"6483":{},"6484":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"6485":{"originalFunc":{"__isSmartRef__":true,"id":923}},"6486":{"varMapping":{"__isSmartRef__":true,"id":6487},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":6488},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6489},"__LivelyClassName__":"lively.Closure"},"6487":{"this":{"__isSmartRef__":true,"id":6314}},"6488":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"6489":{"originalFunc":{"__isSmartRef__":true,"id":931}},"6490":{"varMapping":{"__isSmartRef__":true,"id":6491},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":6492},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6493},"__LivelyClassName__":"lively.Closure"},"6491":{"this":{"__isSmartRef__":true,"id":6314}},"6492":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"6493":{"originalFunc":{"__isSmartRef__":true,"id":935}},"6494":{"varMapping":{"__isSmartRef__":true,"id":6495},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":6496},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6497},"__LivelyClassName__":"lively.Closure"},"6495":{"this":{"__isSmartRef__":true,"id":6314}},"6496":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"6497":{"originalFunc":{"__isSmartRef__":true,"id":939}},"6498":{"varMapping":{"__isSmartRef__":true,"id":6499},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":6500},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6501},"__LivelyClassName__":"lively.Closure"},"6499":{"this":{"__isSmartRef__":true,"id":6314}},"6500":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"6501":{"originalFunc":{"__isSmartRef__":true,"id":943}},"6502":{"varMapping":{"__isSmartRef__":true,"id":6503},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":6504},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6505},"__LivelyClassName__":"lively.Closure"},"6503":{"this":{"__isSmartRef__":true,"id":6314}},"6504":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"6505":{"originalFunc":{"__isSmartRef__":true,"id":947}},"6506":{"varMapping":{"__isSmartRef__":true,"id":6507},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":6508},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6509},"__LivelyClassName__":"lively.Closure"},"6507":{"this":{"__isSmartRef__":true,"id":6314}},"6508":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"6509":{"originalFunc":{"__isSmartRef__":true,"id":951}},"6510":{"varMapping":{"__isSmartRef__":true,"id":6511},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":6512},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6513},"__LivelyClassName__":"lively.Closure"},"6511":{"this":{"__isSmartRef__":true,"id":6314}},"6512":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"6513":{"originalFunc":{"__isSmartRef__":true,"id":955}},"6514":{"varMapping":{"__isSmartRef__":true,"id":6515},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":6516},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6517},"__LivelyClassName__":"lively.Closure"},"6515":{"this":{"__isSmartRef__":true,"id":6314}},"6516":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"6517":{"originalFunc":{"__isSmartRef__":true,"id":959}},"6518":{"varMapping":{"__isSmartRef__":true,"id":6519},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":6520},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6521},"__LivelyClassName__":"lively.Closure"},"6519":{"this":{"__isSmartRef__":true,"id":6314}},"6520":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"6521":{"originalFunc":{"__isSmartRef__":true,"id":963}},"6522":{"varMapping":{"__isSmartRef__":true,"id":6523},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6524},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6525},"__LivelyClassName__":"lively.Closure"},"6523":{"this":{"__isSmartRef__":true,"id":6314}},"6524":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"6525":{"originalFunc":{"__isSmartRef__":true,"id":967}},"6526":{"varMapping":{"__isSmartRef__":true,"id":6527},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6528},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6529},"__LivelyClassName__":"lively.Closure"},"6527":{"this":{"__isSmartRef__":true,"id":6314}},"6528":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"6529":{"originalFunc":{"__isSmartRef__":true,"id":971}},"6530":{"varMapping":{"__isSmartRef__":true,"id":6531},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":6532},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6533},"__LivelyClassName__":"lively.Closure"},"6531":{"this":{"__isSmartRef__":true,"id":6314}},"6532":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"6533":{"originalFunc":{"__isSmartRef__":true,"id":975}},"6534":{"varMapping":{"__isSmartRef__":true,"id":6535},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":6536},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6537},"__LivelyClassName__":"lively.Closure"},"6535":{"this":{"__isSmartRef__":true,"id":6314}},"6536":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"6537":{"originalFunc":{"__isSmartRef__":true,"id":979}},"6538":{"varMapping":{"__isSmartRef__":true,"id":6539},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":6540},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6541},"__LivelyClassName__":"lively.Closure"},"6539":{"this":{"__isSmartRef__":true,"id":6314}},"6540":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"6541":{"originalFunc":{"__isSmartRef__":true,"id":983}},"6542":{"varMapping":{"__isSmartRef__":true,"id":6543},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":6544},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6545},"__LivelyClassName__":"lively.Closure"},"6543":{"this":{"__isSmartRef__":true,"id":6314}},"6544":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"6545":{"originalFunc":{"__isSmartRef__":true,"id":987}},"6546":{"varMapping":{"__isSmartRef__":true,"id":6547},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":6548},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6549},"__LivelyClassName__":"lively.Closure"},"6547":{"this":{"__isSmartRef__":true,"id":6314}},"6548":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"6549":{"originalFunc":{"__isSmartRef__":true,"id":991}},"6550":{"varMapping":{"__isSmartRef__":true,"id":6551},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":6552},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6553},"__LivelyClassName__":"lively.Closure"},"6551":{"this":{"__isSmartRef__":true,"id":6314}},"6552":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"6553":{"originalFunc":{"__isSmartRef__":true,"id":995}},"6554":{"varMapping":{"__isSmartRef__":true,"id":6555},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":6556},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6557},"__LivelyClassName__":"lively.Closure"},"6555":{"this":{"__isSmartRef__":true,"id":6314}},"6556":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"6557":{"originalFunc":{"__isSmartRef__":true,"id":999}},"6558":{"varMapping":{"__isSmartRef__":true,"id":6559},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6560},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6561},"__LivelyClassName__":"lively.Closure"},"6559":{"this":{"__isSmartRef__":true,"id":6314}},"6560":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"6561":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"6562":{"varMapping":{"__isSmartRef__":true,"id":6563},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6564},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6565},"__LivelyClassName__":"lively.Closure"},"6563":{"this":{"__isSmartRef__":true,"id":6314}},"6564":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"6565":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"6566":{"varMapping":{"__isSmartRef__":true,"id":6567},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":6568},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6569},"__LivelyClassName__":"lively.Closure"},"6567":{"this":{"__isSmartRef__":true,"id":6314}},"6568":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"6569":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"6570":{"setDevStyle":{"__isSmartRef__":true,"id":6571},"setNormalStyle":{"__isSmartRef__":true,"id":6575},"tileSize":{"__isSmartRef__":true,"id":6579},"become":{"__isSmartRef__":true,"id":6583},"onMouseDown":{"__isSmartRef__":true,"id":6587},"setGridPosition":{"__isSmartRef__":true,"id":6595},"toolbox":{"__isSmartRef__":true,"id":6599},"distanceTo":{"__isSmartRef__":true,"id":6603},"tileWasDropped":{"__isSmartRef__":true,"id":6607},"isObstacle":{"__isSmartRef__":true,"id":6611},"neighboursInDirection":{"__isSmartRef__":true,"id":6615},"neighbours":{"__isSmartRef__":true,"id":6619},"zIndex":{"__isSmartRef__":true,"id":6623},"obstacles":{"__isSmartRef__":true,"id":6627},"addObstacle":{"__isSmartRef__":true,"id":6631},"removeObstacle":{"__isSmartRef__":true,"id":6635},"isTile":{"__isSmartRef__":true,"id":6639},"neighbourAt":{"__isSmartRef__":true,"id":6643},"map":{"__isSmartRef__":true,"id":6647},"game":{"__isSmartRef__":true,"id":6651},"reset":{"__isSmartRef__":true,"id":6655},"shallowCopy":{"__isSmartRef__":true,"id":6659},"characters":{"__isSmartRef__":true,"id":6663},"enterTile":{"__isSmartRef__":true,"id":6667},"leaveTile":{"__isSmartRef__":true,"id":6671},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":6675}},"6571":{"varMapping":{"__isSmartRef__":true,"id":6572},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":6573},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6574},"__LivelyClassName__":"lively.Closure"},"6572":{"this":{"__isSmartRef__":true,"id":6295}},"6573":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"6574":{"originalFunc":{"__isSmartRef__":true,"id":892}},"6575":{"varMapping":{"__isSmartRef__":true,"id":6576},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":6577},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6578},"__LivelyClassName__":"lively.Closure"},"6576":{"this":{"__isSmartRef__":true,"id":6295}},"6577":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"6578":{"originalFunc":{"__isSmartRef__":true,"id":911}},"6579":{"varMapping":{"__isSmartRef__":true,"id":6580},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":6581},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6582},"__LivelyClassName__":"lively.Closure"},"6580":{"this":{"__isSmartRef__":true,"id":6295}},"6581":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"6582":{"originalFunc":{"__isSmartRef__":true,"id":915}},"6583":{"varMapping":{"__isSmartRef__":true,"id":6584},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6585},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6586},"__LivelyClassName__":"lively.Closure"},"6584":{"this":{"__isSmartRef__":true,"id":6295}},"6585":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"6586":{"originalFunc":{"__isSmartRef__":true,"id":919}},"6587":{"varMapping":{"__isSmartRef__":true,"id":6588},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6593},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6594},"__LivelyClassName__":"lively.Closure"},"6588":{"this":{"__isSmartRef__":true,"id":6295},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6589}},"6589":{"$super":{"__isSmartRef__":true,"id":6590}},"6590":{"varMapping":{"__isSmartRef__":true,"id":6591},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6592},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6591":{"obj":{"__isSmartRef__":true,"id":6295},"name":"onMouseDown"},"6592":{},"6593":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"6594":{"originalFunc":{"__isSmartRef__":true,"id":923}},"6595":{"varMapping":{"__isSmartRef__":true,"id":6596},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":6597},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6598},"__LivelyClassName__":"lively.Closure"},"6596":{"this":{"__isSmartRef__":true,"id":6295}},"6597":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"6598":{"originalFunc":{"__isSmartRef__":true,"id":931}},"6599":{"varMapping":{"__isSmartRef__":true,"id":6600},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":6601},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6602},"__LivelyClassName__":"lively.Closure"},"6600":{"this":{"__isSmartRef__":true,"id":6295}},"6601":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"6602":{"originalFunc":{"__isSmartRef__":true,"id":935}},"6603":{"varMapping":{"__isSmartRef__":true,"id":6604},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":6605},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6606},"__LivelyClassName__":"lively.Closure"},"6604":{"this":{"__isSmartRef__":true,"id":6295}},"6605":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"6606":{"originalFunc":{"__isSmartRef__":true,"id":939}},"6607":{"varMapping":{"__isSmartRef__":true,"id":6608},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":6609},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6610},"__LivelyClassName__":"lively.Closure"},"6608":{"this":{"__isSmartRef__":true,"id":6295}},"6609":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"6610":{"originalFunc":{"__isSmartRef__":true,"id":943}},"6611":{"varMapping":{"__isSmartRef__":true,"id":6612},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":6613},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6614},"__LivelyClassName__":"lively.Closure"},"6612":{"this":{"__isSmartRef__":true,"id":6295}},"6613":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"6614":{"originalFunc":{"__isSmartRef__":true,"id":947}},"6615":{"varMapping":{"__isSmartRef__":true,"id":6616},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":6617},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6618},"__LivelyClassName__":"lively.Closure"},"6616":{"this":{"__isSmartRef__":true,"id":6295}},"6617":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"6618":{"originalFunc":{"__isSmartRef__":true,"id":951}},"6619":{"varMapping":{"__isSmartRef__":true,"id":6620},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":6621},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6622},"__LivelyClassName__":"lively.Closure"},"6620":{"this":{"__isSmartRef__":true,"id":6295}},"6621":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"6622":{"originalFunc":{"__isSmartRef__":true,"id":955}},"6623":{"varMapping":{"__isSmartRef__":true,"id":6624},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":6625},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6626},"__LivelyClassName__":"lively.Closure"},"6624":{"this":{"__isSmartRef__":true,"id":6295}},"6625":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"6626":{"originalFunc":{"__isSmartRef__":true,"id":959}},"6627":{"varMapping":{"__isSmartRef__":true,"id":6628},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":6629},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6630},"__LivelyClassName__":"lively.Closure"},"6628":{"this":{"__isSmartRef__":true,"id":6295}},"6629":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"6630":{"originalFunc":{"__isSmartRef__":true,"id":963}},"6631":{"varMapping":{"__isSmartRef__":true,"id":6632},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6633},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6634},"__LivelyClassName__":"lively.Closure"},"6632":{"this":{"__isSmartRef__":true,"id":6295}},"6633":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"6634":{"originalFunc":{"__isSmartRef__":true,"id":967}},"6635":{"varMapping":{"__isSmartRef__":true,"id":6636},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6637},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6638},"__LivelyClassName__":"lively.Closure"},"6636":{"this":{"__isSmartRef__":true,"id":6295}},"6637":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"6638":{"originalFunc":{"__isSmartRef__":true,"id":971}},"6639":{"varMapping":{"__isSmartRef__":true,"id":6640},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":6641},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6642},"__LivelyClassName__":"lively.Closure"},"6640":{"this":{"__isSmartRef__":true,"id":6295}},"6641":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"6642":{"originalFunc":{"__isSmartRef__":true,"id":975}},"6643":{"varMapping":{"__isSmartRef__":true,"id":6644},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":6645},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6646},"__LivelyClassName__":"lively.Closure"},"6644":{"this":{"__isSmartRef__":true,"id":6295}},"6645":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"6646":{"originalFunc":{"__isSmartRef__":true,"id":979}},"6647":{"varMapping":{"__isSmartRef__":true,"id":6648},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":6649},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6650},"__LivelyClassName__":"lively.Closure"},"6648":{"this":{"__isSmartRef__":true,"id":6295}},"6649":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"6650":{"originalFunc":{"__isSmartRef__":true,"id":983}},"6651":{"varMapping":{"__isSmartRef__":true,"id":6652},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":6653},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6654},"__LivelyClassName__":"lively.Closure"},"6652":{"this":{"__isSmartRef__":true,"id":6295}},"6653":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"6654":{"originalFunc":{"__isSmartRef__":true,"id":987}},"6655":{"varMapping":{"__isSmartRef__":true,"id":6656},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":6657},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6658},"__LivelyClassName__":"lively.Closure"},"6656":{"this":{"__isSmartRef__":true,"id":6295}},"6657":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"6658":{"originalFunc":{"__isSmartRef__":true,"id":991}},"6659":{"varMapping":{"__isSmartRef__":true,"id":6660},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":6661},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6662},"__LivelyClassName__":"lively.Closure"},"6660":{"this":{"__isSmartRef__":true,"id":6295}},"6661":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"6662":{"originalFunc":{"__isSmartRef__":true,"id":995}},"6663":{"varMapping":{"__isSmartRef__":true,"id":6664},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":6665},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6666},"__LivelyClassName__":"lively.Closure"},"6664":{"this":{"__isSmartRef__":true,"id":6295}},"6665":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"6666":{"originalFunc":{"__isSmartRef__":true,"id":999}},"6667":{"varMapping":{"__isSmartRef__":true,"id":6668},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6669},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6670},"__LivelyClassName__":"lively.Closure"},"6668":{"this":{"__isSmartRef__":true,"id":6295}},"6669":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"6670":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"6671":{"varMapping":{"__isSmartRef__":true,"id":6672},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6673},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6674},"__LivelyClassName__":"lively.Closure"},"6672":{"this":{"__isSmartRef__":true,"id":6295}},"6673":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"6674":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"6675":{"varMapping":{"__isSmartRef__":true,"id":6676},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":6677},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6678},"__LivelyClassName__":"lively.Closure"},"6676":{"this":{"__isSmartRef__":true,"id":6295}},"6677":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"6678":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"6679":{"submorphs":[{"__isSmartRef__":true,"id":6680}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6690},"renderContextTable":{"__isSmartRef__":true,"id":6695},"eventHandler":{"__isSmartRef__":true,"id":6696},"_ClipMode":"visible","derivationIds":[],"id":"D537B934-3367-498C-A055-15D47F286FF6","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6697},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":9,"column":4,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":6680},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":6238},{"__isSmartRef__":true,"id":6257},{"__isSmartRef__":true,"id":3523},{"__isSmartRef__":true,"id":6276},{"__isSmartRef__":true,"id":6698}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8021},"__LivelyClassName__":"lively.morphic.Box"},"6680":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6681},"renderContextTable":{"__isSmartRef__":true,"id":6686},"eventHandler":{"__isSmartRef__":true,"id":6687},"_ClipMode":"visible","derivationIds":[],"id":"F0A22368-F6E6-4010-AD8C-40DE1FEFF700","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6688},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6679},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6689},"__LivelyClassName__":"lively.morphic.Image"},"6681":{"_Position":{"__isSmartRef__":true,"id":6682},"renderContextTable":{"__isSmartRef__":true,"id":6683},"_Extent":{"__isSmartRef__":true,"id":6684},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":6685},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"6682":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6683":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"6684":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6685":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6686":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6687":{"morph":{"__isSmartRef__":true,"id":6680},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6688":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6689":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"6690":{"_Position":{"__isSmartRef__":true,"id":6691},"renderContextTable":{"__isSmartRef__":true,"id":6692},"_Extent":{"__isSmartRef__":true,"id":6693},"_Padding":{"__isSmartRef__":true,"id":6694},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6691":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6692":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"6693":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6694":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6695":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6696":{"morph":{"__isSmartRef__":true,"id":6679},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6697":{"x":192,"y":432,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6698":{"submorphs":[{"__isSmartRef__":true,"id":6699}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6709},"renderContextTable":{"__isSmartRef__":true,"id":6714},"eventHandler":{"__isSmartRef__":true,"id":6715},"_ClipMode":"visible","derivationIds":[],"id":"DDAA3714-424C-4E71-B783-A3FD4DB98FAD","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6716},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":9,"column":5,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":6699},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":6257},{"__isSmartRef__":true,"id":3523},{"__isSmartRef__":true,"id":6717},{"__isSmartRef__":true,"id":6679},{"__isSmartRef__":true,"id":6736}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7912},"__LivelyClassName__":"lively.morphic.Box"},"6699":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6700},"renderContextTable":{"__isSmartRef__":true,"id":6705},"eventHandler":{"__isSmartRef__":true,"id":6706},"_ClipMode":"visible","derivationIds":[],"id":"B0E20F81-FD94-466A-ACA2-22E82442589D","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6707},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6698},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6708},"__LivelyClassName__":"lively.morphic.Image"},"6700":{"_Position":{"__isSmartRef__":true,"id":6701},"renderContextTable":{"__isSmartRef__":true,"id":6702},"_Extent":{"__isSmartRef__":true,"id":6703},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":6704},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"6701":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6702":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"6703":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6704":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6705":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6706":{"morph":{"__isSmartRef__":true,"id":6699},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6707":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6708":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"6709":{"_Position":{"__isSmartRef__":true,"id":6710},"renderContextTable":{"__isSmartRef__":true,"id":6711},"_Extent":{"__isSmartRef__":true,"id":6712},"_Padding":{"__isSmartRef__":true,"id":6713},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6710":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6711":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"6712":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6713":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6714":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6715":{"morph":{"__isSmartRef__":true,"id":6698},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6716":{"x":240,"y":432,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6717":{"submorphs":[{"__isSmartRef__":true,"id":6718}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6728},"renderContextTable":{"__isSmartRef__":true,"id":6733},"eventHandler":{"__isSmartRef__":true,"id":6734},"_ClipMode":"visible","derivationIds":[],"id":"7EE92120-C4A9-4FC8-8E69-478ADB7CAA07","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6735},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":8,"column":6,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":6718},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":3395},{"__isSmartRef__":true,"id":3120},{"__isSmartRef__":true,"id":2373},{"__isSmartRef__":true,"id":3523},{"__isSmartRef__":true,"id":3101},{"__isSmartRef__":true,"id":6698},{"__isSmartRef__":true,"id":6736},{"__isSmartRef__":true,"id":6755}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7803},"__LivelyClassName__":"lively.morphic.Box"},"6718":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6719},"renderContextTable":{"__isSmartRef__":true,"id":6724},"eventHandler":{"__isSmartRef__":true,"id":6725},"_ClipMode":"visible","derivationIds":[],"id":"74B48FDD-7DCA-40D6-AB67-FC673BFAF0BA","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6726},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6717},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6727},"__LivelyClassName__":"lively.morphic.Image"},"6719":{"_Position":{"__isSmartRef__":true,"id":6720},"renderContextTable":{"__isSmartRef__":true,"id":6721},"_Extent":{"__isSmartRef__":true,"id":6722},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass_some_flowers.png","_Padding":{"__isSmartRef__":true,"id":6723},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"6720":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6721":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"6722":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6723":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6724":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6725":{"morph":{"__isSmartRef__":true,"id":6718},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6726":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6727":{"dropOn":{"__isSmartRef__":true,"id":656},"shallowCopy":{"__isSmartRef__":true,"id":685}},"6728":{"_Position":{"__isSmartRef__":true,"id":6729},"renderContextTable":{"__isSmartRef__":true,"id":6730},"_Extent":{"__isSmartRef__":true,"id":6731},"_Padding":{"__isSmartRef__":true,"id":6732},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6729":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6730":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"6731":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6732":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6733":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6734":{"morph":{"__isSmartRef__":true,"id":6717},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6735":{"x":288,"y":384,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6736":{"submorphs":[{"__isSmartRef__":true,"id":6737}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6747},"renderContextTable":{"__isSmartRef__":true,"id":6752},"eventHandler":{"__isSmartRef__":true,"id":6753},"_ClipMode":"visible","derivationIds":[],"id":"2579ECAF-B7E5-4A8F-B294-19070DEFCFC1","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6754},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":9,"column":6,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":6737},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":3523},{"__isSmartRef__":true,"id":6717},{"__isSmartRef__":true,"id":3101},{"__isSmartRef__":true,"id":6698},{"__isSmartRef__":true,"id":6755}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7694},"__LivelyClassName__":"lively.morphic.Box"},"6737":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6738},"renderContextTable":{"__isSmartRef__":true,"id":6743},"eventHandler":{"__isSmartRef__":true,"id":6744},"_ClipMode":"visible","derivationIds":[],"id":"0D1895E7-DAA5-4642-B2EA-9EB915995ED0","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6745},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6736},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6746},"__LivelyClassName__":"lively.morphic.Image"},"6738":{"_Position":{"__isSmartRef__":true,"id":6739},"renderContextTable":{"__isSmartRef__":true,"id":6740},"_Extent":{"__isSmartRef__":true,"id":6741},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":6742},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"6739":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6740":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"6741":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6742":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6743":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6744":{"morph":{"__isSmartRef__":true,"id":6737},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6745":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6746":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"6747":{"_Position":{"__isSmartRef__":true,"id":6748},"renderContextTable":{"__isSmartRef__":true,"id":6749},"_Extent":{"__isSmartRef__":true,"id":6750},"_Padding":{"__isSmartRef__":true,"id":6751},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6748":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6749":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"6750":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6751":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6752":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6753":{"morph":{"__isSmartRef__":true,"id":6736},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6754":{"x":288,"y":432,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6755":{"submorphs":[{"__isSmartRef__":true,"id":6756}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6766},"renderContextTable":{"__isSmartRef__":true,"id":6771},"eventHandler":{"__isSmartRef__":true,"id":6772},"_ClipMode":"visible","derivationIds":[],"id":"F3D6997B-261C-4EA4-A087-C3CEC1BA9496","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6773},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":9,"column":7,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":6756},"grabbingEnabled":false,"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":6717},{"__isSmartRef__":true,"id":3101},{"__isSmartRef__":true,"id":3082},{"__isSmartRef__":true,"id":6736},{"__isSmartRef__":true,"id":6774}],"charactersStandingHere":[{"__isSmartRef__":true,"id":7158}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7585},"__LivelyClassName__":"lively.morphic.Box"},"6756":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6757},"renderContextTable":{"__isSmartRef__":true,"id":6762},"eventHandler":{"__isSmartRef__":true,"id":6763},"_ClipMode":"visible","derivationIds":[],"id":"A28DC880-7505-497C-9282-91310D9D5782","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6764},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6755},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6765},"__LivelyClassName__":"lively.morphic.Image"},"6757":{"_Position":{"__isSmartRef__":true,"id":6758},"renderContextTable":{"__isSmartRef__":true,"id":6759},"_Extent":{"__isSmartRef__":true,"id":6760},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":6761},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"6758":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6759":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"6760":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6761":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6762":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6763":{"morph":{"__isSmartRef__":true,"id":6756},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6764":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6765":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"6766":{"_Position":{"__isSmartRef__":true,"id":6767},"renderContextTable":{"__isSmartRef__":true,"id":6768},"_Extent":{"__isSmartRef__":true,"id":6769},"_Padding":{"__isSmartRef__":true,"id":6770},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6767":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6768":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"6769":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6770":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6771":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6772":{"morph":{"__isSmartRef__":true,"id":6755},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6773":{"x":336,"y":432,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6774":{"submorphs":[{"__isSmartRef__":true,"id":6775}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6785},"renderContextTable":{"__isSmartRef__":true,"id":6790},"eventHandler":{"__isSmartRef__":true,"id":6791},"_ClipMode":"visible","derivationIds":[],"id":"6E3F279F-5949-48A5-A925-FF80C37AC9EB","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6792},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":9,"column":8,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":6775},"grabbingEnabled":false,"__obstacles":[],"charactersStandingHere":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":3101},{"__isSmartRef__":true,"id":3082},{"__isSmartRef__":true,"id":6793},{"__isSmartRef__":true,"id":6755},{"__isSmartRef__":true,"id":6812}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7049},"__LivelyClassName__":"lively.morphic.Box"},"6775":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6776},"renderContextTable":{"__isSmartRef__":true,"id":6781},"eventHandler":{"__isSmartRef__":true,"id":6782},"_ClipMode":"visible","derivationIds":[],"id":"3A918545-EBFF-473F-A03D-2124680A28A6","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6783},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6774},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6784},"__LivelyClassName__":"lively.morphic.Image"},"6776":{"_Position":{"__isSmartRef__":true,"id":6777},"renderContextTable":{"__isSmartRef__":true,"id":6778},"_Extent":{"__isSmartRef__":true,"id":6779},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":6780},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"6777":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6778":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"6779":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6780":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6781":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6782":{"morph":{"__isSmartRef__":true,"id":6775},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6783":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6784":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"6785":{"_Position":{"__isSmartRef__":true,"id":6786},"renderContextTable":{"__isSmartRef__":true,"id":6787},"_Extent":{"__isSmartRef__":true,"id":6788},"_Padding":{"__isSmartRef__":true,"id":6789},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6786":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6787":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"6788":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6789":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6790":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6791":{"morph":{"__isSmartRef__":true,"id":6774},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6792":{"x":384,"y":432,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6793":{"submorphs":[{"__isSmartRef__":true,"id":6794}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6804},"renderContextTable":{"__isSmartRef__":true,"id":6809},"eventHandler":{"__isSmartRef__":true,"id":6810},"_ClipMode":"visible","derivationIds":[],"id":"F590F064-EE8D-4A90-B355-A748A5A35596","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6811},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":8,"column":9,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":6794},"grabbingEnabled":false,"__obstacles":[],"charactersStandingHere":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":3044},{"__isSmartRef__":true,"id":3063},{"__isSmartRef__":true,"id":3082},{"__isSmartRef__":true,"id":6774},{"__isSmartRef__":true,"id":6812}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6940},"__LivelyClassName__":"lively.morphic.Box"},"6794":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6795},"renderContextTable":{"__isSmartRef__":true,"id":6800},"eventHandler":{"__isSmartRef__":true,"id":6801},"_ClipMode":"visible","derivationIds":[],"id":"43FFDCA5-DAC1-490B-9E53-181D2D75BBE3","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6802},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6793},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6803},"__LivelyClassName__":"lively.morphic.Image"},"6795":{"_Position":{"__isSmartRef__":true,"id":6796},"renderContextTable":{"__isSmartRef__":true,"id":6797},"_Extent":{"__isSmartRef__":true,"id":6798},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":6799},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"6796":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6797":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"6798":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6799":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6800":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6801":{"morph":{"__isSmartRef__":true,"id":6794},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6802":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6803":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"6804":{"_Position":{"__isSmartRef__":true,"id":6805},"renderContextTable":{"__isSmartRef__":true,"id":6806},"_Extent":{"__isSmartRef__":true,"id":6807},"_Padding":{"__isSmartRef__":true,"id":6808},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6805":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6806":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"6807":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6808":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6809":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6810":{"morph":{"__isSmartRef__":true,"id":6793},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6811":{"x":432,"y":384,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6812":{"submorphs":[{"__isSmartRef__":true,"id":6813}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6823},"renderContextTable":{"__isSmartRef__":true,"id":6828},"eventHandler":{"__isSmartRef__":true,"id":6829},"_ClipMode":"visible","derivationIds":[],"id":"8DDE873D-67B2-486A-AD0A-C71312606390","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6830},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":9,"column":9,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":6813},"grabbingEnabled":false,"charactersStandingHere":[],"__obstacles":[],"cachedNeightbours":[{"__isSmartRef__":true,"id":3082},{"__isSmartRef__":true,"id":6793},{"__isSmartRef__":true,"id":6774}],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6831},"__LivelyClassName__":"lively.morphic.Box"},"6813":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6814},"renderContextTable":{"__isSmartRef__":true,"id":6819},"eventHandler":{"__isSmartRef__":true,"id":6820},"_ClipMode":"visible","derivationIds":[],"id":"A509D2F4-9EF2-4BEF-945E-F396697BB453","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6821},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":6812},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6822},"__LivelyClassName__":"lively.morphic.Image"},"6814":{"_Position":{"__isSmartRef__":true,"id":6815},"renderContextTable":{"__isSmartRef__":true,"id":6816},"_Extent":{"__isSmartRef__":true,"id":6817},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":6818},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"6815":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6816":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"6817":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6818":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6819":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6820":{"morph":{"__isSmartRef__":true,"id":6813},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6821":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6822":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"6823":{"_Position":{"__isSmartRef__":true,"id":6824},"renderContextTable":{"__isSmartRef__":true,"id":6825},"_Extent":{"__isSmartRef__":true,"id":6826},"_Padding":{"__isSmartRef__":true,"id":6827},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6824":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6825":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"6826":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6827":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6828":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"6829":{"morph":{"__isSmartRef__":true,"id":6812},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6830":{"x":432,"y":432,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6831":{"setDevStyle":{"__isSmartRef__":true,"id":6832},"setNormalStyle":{"__isSmartRef__":true,"id":6836},"tileSize":{"__isSmartRef__":true,"id":6840},"become":{"__isSmartRef__":true,"id":6844},"onMouseDown":{"__isSmartRef__":true,"id":6848},"setGridPosition":{"__isSmartRef__":true,"id":6856},"toolbox":{"__isSmartRef__":true,"id":6860},"distanceTo":{"__isSmartRef__":true,"id":6864},"tileWasDropped":{"__isSmartRef__":true,"id":6868},"isObstacle":{"__isSmartRef__":true,"id":6872},"neighboursInDirection":{"__isSmartRef__":true,"id":6876},"neighbours":{"__isSmartRef__":true,"id":6880},"zIndex":{"__isSmartRef__":true,"id":6884},"obstacles":{"__isSmartRef__":true,"id":6888},"addObstacle":{"__isSmartRef__":true,"id":6892},"removeObstacle":{"__isSmartRef__":true,"id":6896},"isTile":{"__isSmartRef__":true,"id":6900},"neighbourAt":{"__isSmartRef__":true,"id":6904},"map":{"__isSmartRef__":true,"id":6908},"game":{"__isSmartRef__":true,"id":6912},"reset":{"__isSmartRef__":true,"id":6916},"shallowCopy":{"__isSmartRef__":true,"id":6920},"characters":{"__isSmartRef__":true,"id":6924},"enterTile":{"__isSmartRef__":true,"id":6928},"leaveTile":{"__isSmartRef__":true,"id":6932},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":6936}},"6832":{"varMapping":{"__isSmartRef__":true,"id":6833},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":6834},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6835},"__LivelyClassName__":"lively.Closure"},"6833":{"this":{"__isSmartRef__":true,"id":6812}},"6834":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"6835":{"originalFunc":{"__isSmartRef__":true,"id":892}},"6836":{"varMapping":{"__isSmartRef__":true,"id":6837},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":6838},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6839},"__LivelyClassName__":"lively.Closure"},"6837":{"this":{"__isSmartRef__":true,"id":6812}},"6838":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"6839":{"originalFunc":{"__isSmartRef__":true,"id":911}},"6840":{"varMapping":{"__isSmartRef__":true,"id":6841},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":6842},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6843},"__LivelyClassName__":"lively.Closure"},"6841":{"this":{"__isSmartRef__":true,"id":6812}},"6842":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"6843":{"originalFunc":{"__isSmartRef__":true,"id":915}},"6844":{"varMapping":{"__isSmartRef__":true,"id":6845},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6846},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6847},"__LivelyClassName__":"lively.Closure"},"6845":{"this":{"__isSmartRef__":true,"id":6812}},"6846":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"6847":{"originalFunc":{"__isSmartRef__":true,"id":919}},"6848":{"varMapping":{"__isSmartRef__":true,"id":6849},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6854},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6855},"__LivelyClassName__":"lively.Closure"},"6849":{"this":{"__isSmartRef__":true,"id":6812},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6850}},"6850":{"$super":{"__isSmartRef__":true,"id":6851}},"6851":{"varMapping":{"__isSmartRef__":true,"id":6852},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6853},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6852":{"obj":{"__isSmartRef__":true,"id":6812},"name":"onMouseDown"},"6853":{},"6854":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"6855":{"originalFunc":{"__isSmartRef__":true,"id":923}},"6856":{"varMapping":{"__isSmartRef__":true,"id":6857},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":6858},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6859},"__LivelyClassName__":"lively.Closure"},"6857":{"this":{"__isSmartRef__":true,"id":6812}},"6858":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"6859":{"originalFunc":{"__isSmartRef__":true,"id":931}},"6860":{"varMapping":{"__isSmartRef__":true,"id":6861},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":6862},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6863},"__LivelyClassName__":"lively.Closure"},"6861":{"this":{"__isSmartRef__":true,"id":6812}},"6862":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"6863":{"originalFunc":{"__isSmartRef__":true,"id":935}},"6864":{"varMapping":{"__isSmartRef__":true,"id":6865},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":6866},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6867},"__LivelyClassName__":"lively.Closure"},"6865":{"this":{"__isSmartRef__":true,"id":6812}},"6866":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"6867":{"originalFunc":{"__isSmartRef__":true,"id":939}},"6868":{"varMapping":{"__isSmartRef__":true,"id":6869},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":6870},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6871},"__LivelyClassName__":"lively.Closure"},"6869":{"this":{"__isSmartRef__":true,"id":6812}},"6870":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"6871":{"originalFunc":{"__isSmartRef__":true,"id":943}},"6872":{"varMapping":{"__isSmartRef__":true,"id":6873},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":6874},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6875},"__LivelyClassName__":"lively.Closure"},"6873":{"this":{"__isSmartRef__":true,"id":6812}},"6874":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"6875":{"originalFunc":{"__isSmartRef__":true,"id":947}},"6876":{"varMapping":{"__isSmartRef__":true,"id":6877},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":6878},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6879},"__LivelyClassName__":"lively.Closure"},"6877":{"this":{"__isSmartRef__":true,"id":6812}},"6878":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"6879":{"originalFunc":{"__isSmartRef__":true,"id":951}},"6880":{"varMapping":{"__isSmartRef__":true,"id":6881},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":6882},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6883},"__LivelyClassName__":"lively.Closure"},"6881":{"this":{"__isSmartRef__":true,"id":6812}},"6882":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"6883":{"originalFunc":{"__isSmartRef__":true,"id":955}},"6884":{"varMapping":{"__isSmartRef__":true,"id":6885},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":6886},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6887},"__LivelyClassName__":"lively.Closure"},"6885":{"this":{"__isSmartRef__":true,"id":6812}},"6886":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"6887":{"originalFunc":{"__isSmartRef__":true,"id":959}},"6888":{"varMapping":{"__isSmartRef__":true,"id":6889},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":6890},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6891},"__LivelyClassName__":"lively.Closure"},"6889":{"this":{"__isSmartRef__":true,"id":6812}},"6890":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"6891":{"originalFunc":{"__isSmartRef__":true,"id":963}},"6892":{"varMapping":{"__isSmartRef__":true,"id":6893},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6894},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6895},"__LivelyClassName__":"lively.Closure"},"6893":{"this":{"__isSmartRef__":true,"id":6812}},"6894":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"6895":{"originalFunc":{"__isSmartRef__":true,"id":967}},"6896":{"varMapping":{"__isSmartRef__":true,"id":6897},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6898},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6899},"__LivelyClassName__":"lively.Closure"},"6897":{"this":{"__isSmartRef__":true,"id":6812}},"6898":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"6899":{"originalFunc":{"__isSmartRef__":true,"id":971}},"6900":{"varMapping":{"__isSmartRef__":true,"id":6901},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":6902},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6903},"__LivelyClassName__":"lively.Closure"},"6901":{"this":{"__isSmartRef__":true,"id":6812}},"6902":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"6903":{"originalFunc":{"__isSmartRef__":true,"id":975}},"6904":{"varMapping":{"__isSmartRef__":true,"id":6905},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":6906},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6907},"__LivelyClassName__":"lively.Closure"},"6905":{"this":{"__isSmartRef__":true,"id":6812}},"6906":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"6907":{"originalFunc":{"__isSmartRef__":true,"id":979}},"6908":{"varMapping":{"__isSmartRef__":true,"id":6909},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":6910},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6911},"__LivelyClassName__":"lively.Closure"},"6909":{"this":{"__isSmartRef__":true,"id":6812}},"6910":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"6911":{"originalFunc":{"__isSmartRef__":true,"id":983}},"6912":{"varMapping":{"__isSmartRef__":true,"id":6913},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":6914},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6915},"__LivelyClassName__":"lively.Closure"},"6913":{"this":{"__isSmartRef__":true,"id":6812}},"6914":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"6915":{"originalFunc":{"__isSmartRef__":true,"id":987}},"6916":{"varMapping":{"__isSmartRef__":true,"id":6917},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":6918},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6919},"__LivelyClassName__":"lively.Closure"},"6917":{"this":{"__isSmartRef__":true,"id":6812}},"6918":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"6919":{"originalFunc":{"__isSmartRef__":true,"id":991}},"6920":{"varMapping":{"__isSmartRef__":true,"id":6921},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":6922},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6923},"__LivelyClassName__":"lively.Closure"},"6921":{"this":{"__isSmartRef__":true,"id":6812}},"6922":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"6923":{"originalFunc":{"__isSmartRef__":true,"id":995}},"6924":{"varMapping":{"__isSmartRef__":true,"id":6925},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":6926},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6927},"__LivelyClassName__":"lively.Closure"},"6925":{"this":{"__isSmartRef__":true,"id":6812}},"6926":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"6927":{"originalFunc":{"__isSmartRef__":true,"id":999}},"6928":{"varMapping":{"__isSmartRef__":true,"id":6929},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6930},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6931},"__LivelyClassName__":"lively.Closure"},"6929":{"this":{"__isSmartRef__":true,"id":6812}},"6930":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"6931":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"6932":{"varMapping":{"__isSmartRef__":true,"id":6933},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6934},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6935},"__LivelyClassName__":"lively.Closure"},"6933":{"this":{"__isSmartRef__":true,"id":6812}},"6934":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"6935":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"6936":{"varMapping":{"__isSmartRef__":true,"id":6937},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":6938},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6939},"__LivelyClassName__":"lively.Closure"},"6937":{"this":{"__isSmartRef__":true,"id":6812}},"6938":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"6939":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"6940":{"setDevStyle":{"__isSmartRef__":true,"id":6941},"setNormalStyle":{"__isSmartRef__":true,"id":6945},"tileSize":{"__isSmartRef__":true,"id":6949},"become":{"__isSmartRef__":true,"id":6953},"onMouseDown":{"__isSmartRef__":true,"id":6957},"setGridPosition":{"__isSmartRef__":true,"id":6965},"toolbox":{"__isSmartRef__":true,"id":6969},"distanceTo":{"__isSmartRef__":true,"id":6973},"tileWasDropped":{"__isSmartRef__":true,"id":6977},"isObstacle":{"__isSmartRef__":true,"id":6981},"neighboursInDirection":{"__isSmartRef__":true,"id":6985},"neighbours":{"__isSmartRef__":true,"id":6989},"zIndex":{"__isSmartRef__":true,"id":6993},"obstacles":{"__isSmartRef__":true,"id":6997},"addObstacle":{"__isSmartRef__":true,"id":7001},"removeObstacle":{"__isSmartRef__":true,"id":7005},"isTile":{"__isSmartRef__":true,"id":7009},"neighbourAt":{"__isSmartRef__":true,"id":7013},"map":{"__isSmartRef__":true,"id":7017},"game":{"__isSmartRef__":true,"id":7021},"reset":{"__isSmartRef__":true,"id":7025},"shallowCopy":{"__isSmartRef__":true,"id":7029},"characters":{"__isSmartRef__":true,"id":7033},"enterTile":{"__isSmartRef__":true,"id":7037},"leaveTile":{"__isSmartRef__":true,"id":7041},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":7045}},"6941":{"varMapping":{"__isSmartRef__":true,"id":6942},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":6943},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6944},"__LivelyClassName__":"lively.Closure"},"6942":{"this":{"__isSmartRef__":true,"id":6793}},"6943":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"6944":{"originalFunc":{"__isSmartRef__":true,"id":892}},"6945":{"varMapping":{"__isSmartRef__":true,"id":6946},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":6947},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6948},"__LivelyClassName__":"lively.Closure"},"6946":{"this":{"__isSmartRef__":true,"id":6793}},"6947":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"6948":{"originalFunc":{"__isSmartRef__":true,"id":911}},"6949":{"varMapping":{"__isSmartRef__":true,"id":6950},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":6951},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6952},"__LivelyClassName__":"lively.Closure"},"6950":{"this":{"__isSmartRef__":true,"id":6793}},"6951":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"6952":{"originalFunc":{"__isSmartRef__":true,"id":915}},"6953":{"varMapping":{"__isSmartRef__":true,"id":6954},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6955},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6956},"__LivelyClassName__":"lively.Closure"},"6954":{"this":{"__isSmartRef__":true,"id":6793}},"6955":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"6956":{"originalFunc":{"__isSmartRef__":true,"id":919}},"6957":{"varMapping":{"__isSmartRef__":true,"id":6958},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":6963},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6964},"__LivelyClassName__":"lively.Closure"},"6958":{"this":{"__isSmartRef__":true,"id":6793},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6959}},"6959":{"$super":{"__isSmartRef__":true,"id":6960}},"6960":{"varMapping":{"__isSmartRef__":true,"id":6961},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6962},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6961":{"obj":{"__isSmartRef__":true,"id":6793},"name":"onMouseDown"},"6962":{},"6963":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"6964":{"originalFunc":{"__isSmartRef__":true,"id":923}},"6965":{"varMapping":{"__isSmartRef__":true,"id":6966},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":6967},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6968},"__LivelyClassName__":"lively.Closure"},"6966":{"this":{"__isSmartRef__":true,"id":6793}},"6967":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"6968":{"originalFunc":{"__isSmartRef__":true,"id":931}},"6969":{"varMapping":{"__isSmartRef__":true,"id":6970},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":6971},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6972},"__LivelyClassName__":"lively.Closure"},"6970":{"this":{"__isSmartRef__":true,"id":6793}},"6971":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"6972":{"originalFunc":{"__isSmartRef__":true,"id":935}},"6973":{"varMapping":{"__isSmartRef__":true,"id":6974},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":6975},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6976},"__LivelyClassName__":"lively.Closure"},"6974":{"this":{"__isSmartRef__":true,"id":6793}},"6975":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"6976":{"originalFunc":{"__isSmartRef__":true,"id":939}},"6977":{"varMapping":{"__isSmartRef__":true,"id":6978},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":6979},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6980},"__LivelyClassName__":"lively.Closure"},"6978":{"this":{"__isSmartRef__":true,"id":6793}},"6979":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"6980":{"originalFunc":{"__isSmartRef__":true,"id":943}},"6981":{"varMapping":{"__isSmartRef__":true,"id":6982},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":6983},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6984},"__LivelyClassName__":"lively.Closure"},"6982":{"this":{"__isSmartRef__":true,"id":6793}},"6983":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"6984":{"originalFunc":{"__isSmartRef__":true,"id":947}},"6985":{"varMapping":{"__isSmartRef__":true,"id":6986},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":6987},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6988},"__LivelyClassName__":"lively.Closure"},"6986":{"this":{"__isSmartRef__":true,"id":6793}},"6987":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"6988":{"originalFunc":{"__isSmartRef__":true,"id":951}},"6989":{"varMapping":{"__isSmartRef__":true,"id":6990},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":6991},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6992},"__LivelyClassName__":"lively.Closure"},"6990":{"this":{"__isSmartRef__":true,"id":6793}},"6991":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"6992":{"originalFunc":{"__isSmartRef__":true,"id":955}},"6993":{"varMapping":{"__isSmartRef__":true,"id":6994},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":6995},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6996},"__LivelyClassName__":"lively.Closure"},"6994":{"this":{"__isSmartRef__":true,"id":6793}},"6995":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"6996":{"originalFunc":{"__isSmartRef__":true,"id":959}},"6997":{"varMapping":{"__isSmartRef__":true,"id":6998},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":6999},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7000},"__LivelyClassName__":"lively.Closure"},"6998":{"this":{"__isSmartRef__":true,"id":6793}},"6999":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"7000":{"originalFunc":{"__isSmartRef__":true,"id":963}},"7001":{"varMapping":{"__isSmartRef__":true,"id":7002},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7003},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7004},"__LivelyClassName__":"lively.Closure"},"7002":{"this":{"__isSmartRef__":true,"id":6793}},"7003":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"7004":{"originalFunc":{"__isSmartRef__":true,"id":967}},"7005":{"varMapping":{"__isSmartRef__":true,"id":7006},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7007},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7008},"__LivelyClassName__":"lively.Closure"},"7006":{"this":{"__isSmartRef__":true,"id":6793}},"7007":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"7008":{"originalFunc":{"__isSmartRef__":true,"id":971}},"7009":{"varMapping":{"__isSmartRef__":true,"id":7010},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":7011},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7012},"__LivelyClassName__":"lively.Closure"},"7010":{"this":{"__isSmartRef__":true,"id":6793}},"7011":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"7012":{"originalFunc":{"__isSmartRef__":true,"id":975}},"7013":{"varMapping":{"__isSmartRef__":true,"id":7014},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":7015},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7016},"__LivelyClassName__":"lively.Closure"},"7014":{"this":{"__isSmartRef__":true,"id":6793}},"7015":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"7016":{"originalFunc":{"__isSmartRef__":true,"id":979}},"7017":{"varMapping":{"__isSmartRef__":true,"id":7018},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":7019},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7020},"__LivelyClassName__":"lively.Closure"},"7018":{"this":{"__isSmartRef__":true,"id":6793}},"7019":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"7020":{"originalFunc":{"__isSmartRef__":true,"id":983}},"7021":{"varMapping":{"__isSmartRef__":true,"id":7022},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":7023},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7024},"__LivelyClassName__":"lively.Closure"},"7022":{"this":{"__isSmartRef__":true,"id":6793}},"7023":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"7024":{"originalFunc":{"__isSmartRef__":true,"id":987}},"7025":{"varMapping":{"__isSmartRef__":true,"id":7026},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":7027},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7028},"__LivelyClassName__":"lively.Closure"},"7026":{"this":{"__isSmartRef__":true,"id":6793}},"7027":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"7028":{"originalFunc":{"__isSmartRef__":true,"id":991}},"7029":{"varMapping":{"__isSmartRef__":true,"id":7030},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":7031},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7032},"__LivelyClassName__":"lively.Closure"},"7030":{"this":{"__isSmartRef__":true,"id":6793}},"7031":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"7032":{"originalFunc":{"__isSmartRef__":true,"id":995}},"7033":{"varMapping":{"__isSmartRef__":true,"id":7034},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":7035},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7036},"__LivelyClassName__":"lively.Closure"},"7034":{"this":{"__isSmartRef__":true,"id":6793}},"7035":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"7036":{"originalFunc":{"__isSmartRef__":true,"id":999}},"7037":{"varMapping":{"__isSmartRef__":true,"id":7038},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7039},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7040},"__LivelyClassName__":"lively.Closure"},"7038":{"this":{"__isSmartRef__":true,"id":6793}},"7039":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"7040":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"7041":{"varMapping":{"__isSmartRef__":true,"id":7042},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7043},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7044},"__LivelyClassName__":"lively.Closure"},"7042":{"this":{"__isSmartRef__":true,"id":6793}},"7043":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"7044":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"7045":{"varMapping":{"__isSmartRef__":true,"id":7046},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":7047},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7048},"__LivelyClassName__":"lively.Closure"},"7046":{"this":{"__isSmartRef__":true,"id":6793}},"7047":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"7048":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"7049":{"setDevStyle":{"__isSmartRef__":true,"id":7050},"setNormalStyle":{"__isSmartRef__":true,"id":7054},"tileSize":{"__isSmartRef__":true,"id":7058},"become":{"__isSmartRef__":true,"id":7062},"onMouseDown":{"__isSmartRef__":true,"id":7066},"setGridPosition":{"__isSmartRef__":true,"id":7074},"toolbox":{"__isSmartRef__":true,"id":7078},"distanceTo":{"__isSmartRef__":true,"id":7082},"tileWasDropped":{"__isSmartRef__":true,"id":7086},"isObstacle":{"__isSmartRef__":true,"id":7090},"neighboursInDirection":{"__isSmartRef__":true,"id":7094},"neighbours":{"__isSmartRef__":true,"id":7098},"zIndex":{"__isSmartRef__":true,"id":7102},"obstacles":{"__isSmartRef__":true,"id":7106},"addObstacle":{"__isSmartRef__":true,"id":7110},"removeObstacle":{"__isSmartRef__":true,"id":7114},"isTile":{"__isSmartRef__":true,"id":7118},"neighbourAt":{"__isSmartRef__":true,"id":7122},"map":{"__isSmartRef__":true,"id":7126},"game":{"__isSmartRef__":true,"id":7130},"reset":{"__isSmartRef__":true,"id":7134},"shallowCopy":{"__isSmartRef__":true,"id":7138},"characters":{"__isSmartRef__":true,"id":7142},"enterTile":{"__isSmartRef__":true,"id":7146},"leaveTile":{"__isSmartRef__":true,"id":7150},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":7154}},"7050":{"varMapping":{"__isSmartRef__":true,"id":7051},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":7052},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7053},"__LivelyClassName__":"lively.Closure"},"7051":{"this":{"__isSmartRef__":true,"id":6774}},"7052":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"7053":{"originalFunc":{"__isSmartRef__":true,"id":892}},"7054":{"varMapping":{"__isSmartRef__":true,"id":7055},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":7056},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7057},"__LivelyClassName__":"lively.Closure"},"7055":{"this":{"__isSmartRef__":true,"id":6774}},"7056":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"7057":{"originalFunc":{"__isSmartRef__":true,"id":911}},"7058":{"varMapping":{"__isSmartRef__":true,"id":7059},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":7060},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7061},"__LivelyClassName__":"lively.Closure"},"7059":{"this":{"__isSmartRef__":true,"id":6774}},"7060":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"7061":{"originalFunc":{"__isSmartRef__":true,"id":915}},"7062":{"varMapping":{"__isSmartRef__":true,"id":7063},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7064},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7065},"__LivelyClassName__":"lively.Closure"},"7063":{"this":{"__isSmartRef__":true,"id":6774}},"7064":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"7065":{"originalFunc":{"__isSmartRef__":true,"id":919}},"7066":{"varMapping":{"__isSmartRef__":true,"id":7067},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7072},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7073},"__LivelyClassName__":"lively.Closure"},"7067":{"this":{"__isSmartRef__":true,"id":6774},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7068}},"7068":{"$super":{"__isSmartRef__":true,"id":7069}},"7069":{"varMapping":{"__isSmartRef__":true,"id":7070},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7071},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7070":{"obj":{"__isSmartRef__":true,"id":6774},"name":"onMouseDown"},"7071":{},"7072":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"7073":{"originalFunc":{"__isSmartRef__":true,"id":923}},"7074":{"varMapping":{"__isSmartRef__":true,"id":7075},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":7076},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7077},"__LivelyClassName__":"lively.Closure"},"7075":{"this":{"__isSmartRef__":true,"id":6774}},"7076":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"7077":{"originalFunc":{"__isSmartRef__":true,"id":931}},"7078":{"varMapping":{"__isSmartRef__":true,"id":7079},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":7080},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7081},"__LivelyClassName__":"lively.Closure"},"7079":{"this":{"__isSmartRef__":true,"id":6774}},"7080":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"7081":{"originalFunc":{"__isSmartRef__":true,"id":935}},"7082":{"varMapping":{"__isSmartRef__":true,"id":7083},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":7084},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7085},"__LivelyClassName__":"lively.Closure"},"7083":{"this":{"__isSmartRef__":true,"id":6774}},"7084":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"7085":{"originalFunc":{"__isSmartRef__":true,"id":939}},"7086":{"varMapping":{"__isSmartRef__":true,"id":7087},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":7088},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7089},"__LivelyClassName__":"lively.Closure"},"7087":{"this":{"__isSmartRef__":true,"id":6774}},"7088":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"7089":{"originalFunc":{"__isSmartRef__":true,"id":943}},"7090":{"varMapping":{"__isSmartRef__":true,"id":7091},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":7092},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7093},"__LivelyClassName__":"lively.Closure"},"7091":{"this":{"__isSmartRef__":true,"id":6774}},"7092":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"7093":{"originalFunc":{"__isSmartRef__":true,"id":947}},"7094":{"varMapping":{"__isSmartRef__":true,"id":7095},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":7096},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7097},"__LivelyClassName__":"lively.Closure"},"7095":{"this":{"__isSmartRef__":true,"id":6774}},"7096":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"7097":{"originalFunc":{"__isSmartRef__":true,"id":951}},"7098":{"varMapping":{"__isSmartRef__":true,"id":7099},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":7100},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7101},"__LivelyClassName__":"lively.Closure"},"7099":{"this":{"__isSmartRef__":true,"id":6774}},"7100":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"7101":{"originalFunc":{"__isSmartRef__":true,"id":955}},"7102":{"varMapping":{"__isSmartRef__":true,"id":7103},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":7104},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7105},"__LivelyClassName__":"lively.Closure"},"7103":{"this":{"__isSmartRef__":true,"id":6774}},"7104":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"7105":{"originalFunc":{"__isSmartRef__":true,"id":959}},"7106":{"varMapping":{"__isSmartRef__":true,"id":7107},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":7108},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7109},"__LivelyClassName__":"lively.Closure"},"7107":{"this":{"__isSmartRef__":true,"id":6774}},"7108":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"7109":{"originalFunc":{"__isSmartRef__":true,"id":963}},"7110":{"varMapping":{"__isSmartRef__":true,"id":7111},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7112},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7113},"__LivelyClassName__":"lively.Closure"},"7111":{"this":{"__isSmartRef__":true,"id":6774}},"7112":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"7113":{"originalFunc":{"__isSmartRef__":true,"id":967}},"7114":{"varMapping":{"__isSmartRef__":true,"id":7115},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7116},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7117},"__LivelyClassName__":"lively.Closure"},"7115":{"this":{"__isSmartRef__":true,"id":6774}},"7116":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"7117":{"originalFunc":{"__isSmartRef__":true,"id":971}},"7118":{"varMapping":{"__isSmartRef__":true,"id":7119},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":7120},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7121},"__LivelyClassName__":"lively.Closure"},"7119":{"this":{"__isSmartRef__":true,"id":6774}},"7120":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"7121":{"originalFunc":{"__isSmartRef__":true,"id":975}},"7122":{"varMapping":{"__isSmartRef__":true,"id":7123},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":7124},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7125},"__LivelyClassName__":"lively.Closure"},"7123":{"this":{"__isSmartRef__":true,"id":6774}},"7124":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"7125":{"originalFunc":{"__isSmartRef__":true,"id":979}},"7126":{"varMapping":{"__isSmartRef__":true,"id":7127},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":7128},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7129},"__LivelyClassName__":"lively.Closure"},"7127":{"this":{"__isSmartRef__":true,"id":6774}},"7128":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"7129":{"originalFunc":{"__isSmartRef__":true,"id":983}},"7130":{"varMapping":{"__isSmartRef__":true,"id":7131},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":7132},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7133},"__LivelyClassName__":"lively.Closure"},"7131":{"this":{"__isSmartRef__":true,"id":6774}},"7132":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"7133":{"originalFunc":{"__isSmartRef__":true,"id":987}},"7134":{"varMapping":{"__isSmartRef__":true,"id":7135},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":7136},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7137},"__LivelyClassName__":"lively.Closure"},"7135":{"this":{"__isSmartRef__":true,"id":6774}},"7136":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"7137":{"originalFunc":{"__isSmartRef__":true,"id":991}},"7138":{"varMapping":{"__isSmartRef__":true,"id":7139},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":7140},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7141},"__LivelyClassName__":"lively.Closure"},"7139":{"this":{"__isSmartRef__":true,"id":6774}},"7140":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"7141":{"originalFunc":{"__isSmartRef__":true,"id":995}},"7142":{"varMapping":{"__isSmartRef__":true,"id":7143},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":7144},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7145},"__LivelyClassName__":"lively.Closure"},"7143":{"this":{"__isSmartRef__":true,"id":6774}},"7144":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"7145":{"originalFunc":{"__isSmartRef__":true,"id":999}},"7146":{"varMapping":{"__isSmartRef__":true,"id":7147},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7148},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7149},"__LivelyClassName__":"lively.Closure"},"7147":{"this":{"__isSmartRef__":true,"id":6774}},"7148":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"7149":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"7150":{"varMapping":{"__isSmartRef__":true,"id":7151},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7152},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7153},"__LivelyClassName__":"lively.Closure"},"7151":{"this":{"__isSmartRef__":true,"id":6774}},"7152":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"7153":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"7154":{"varMapping":{"__isSmartRef__":true,"id":7155},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":7156},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7157},"__LivelyClassName__":"lively.Closure"},"7155":{"this":{"__isSmartRef__":true,"id":6774}},"7156":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"7157":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"7158":{"submorphs":[{"__isSmartRef__":true,"id":7159},{"__isSmartRef__":true,"id":7215},{"__isSmartRef__":true,"id":7289},{"__isSmartRef__":true,"id":7312}],"scripts":[{"__isSmartRef__":true,"id":7367},{"__isSmartRef__":true,"id":7369}],"shape":{"__isSmartRef__":true,"id":7370},"renderContextTable":{"__isSmartRef__":true,"id":7376},"eventHandler":{"__isSmartRef__":true,"id":7377},"_ClipMode":"visible","derivationIds":[],"id":"163CD93C-5862-4A3B-B9CB-8A81671B2924","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7378},"partsBinMetaInfo":{"__isSmartRef__":true,"id":3927},"lifeBar":{"__isSmartRef__":true,"id":7159},"deathAnimation":{"__isSmartRef__":true,"id":7215},"owner":{"__isSmartRef__":true,"id":2},"character":{"__isSmartRef__":true,"id":7289},"animateScript":{"__isSmartRef__":true,"id":7367},"lastSpeedTimestamp":1343639978526,"walkScript":{"__isSmartRef__":true,"id":7369},"direction":{"__isSmartRef__":true,"id":7379},"isBusy":false,"textBubble":{"__isSmartRef__":true,"id":7312},"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7380},"__LivelyClassName__":"lively.morphic.Box"},"7159":{"submorphs":[],"scripts":[],"id":"221B4FB4-AE0B-43F6-B72D-1023C70EFC63","shape":{"__isSmartRef__":true,"id":7160},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":7167},"showsHalos":false,"name":"LifeBar2","partsBinMetaInfo":{"__isSmartRef__":true,"id":7168},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":7183},"eventHandler":{"__isSmartRef__":true,"id":7184},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","2DB0D0C7-DC87-4CFA-83D0-A3C69D36DFF5","D5A167D3-1B45-47C6-9589-88D524CBB671","B99E0377-C191-4217-A6A5-9C8B280EBFC7","30BAB7C0-114B-4F37-878B-09C11E3D5549","FB770FA2-2303-4F51-B162-092CD8F21AA0","612FF3E2-A0BA-4252-92A6-28D30F489F85","78D369CF-E59B-4EB9-8D69-151A5EC7EBC2","E425FE9E-F1B0-438A-A245-16A29D9D258B","803FB59F-23F3-4A2F-9E13-DC3FB4D6FBC2","16E73362-4726-4C37-8412-BB7F76E007B7","8F9461A6-FB84-4875-BE34-EDF06F5CF22B","E7D9DE9E-946E-47E7-B684-63DCCE65106B","CEE4682F-B1A8-4163-8208-67DAD6993B52","D3072470-ABA6-4EB9-8D01-4BB11A39B26D","31496EA1-A9DF-4D97-835B-E76BA2171F1A"],"partTests":{"__isSmartRef__":true,"id":7185},"_ClipMode":"visible","isBeingDragged":false,"#startLetters":"","_Rotation":0,"_Scale":1.002003004005006,"character":{"__isSmartRef__":true,"id":7158},"owner":{"__isSmartRef__":true,"id":7158},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7190},"__LivelyClassName__":"lively.morphic.Box"},"7160":{"position":{"__isSmartRef__":true,"id":7161},"_Extent":{"__isSmartRef__":true,"id":7162},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":7163},"_Fill":{"__isSmartRef__":true,"id":7164},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":7165},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7166},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"7161":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7162":{"x":48,"y":8,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7163":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"7164":{"r":0.59375,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7165":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"7166":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"7167":{"x":0,"y":-13,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7168":{"partsSpaceName":"PartsBin/FreedomOfSpeech/","__SourceModuleName__":"Global.lively.PartsBin","comment":"A life bar","migrationLevel":4,"partName":"LifeBar","changes":[{"__isSmartRef__":true,"id":7169},{"__isSmartRef__":true,"id":7171},{"__isSmartRef__":true,"id":7173},{"__isSmartRef__":true,"id":7175},{"__isSmartRef__":true,"id":7177},{"__isSmartRef__":true,"id":7179},{"__isSmartRef__":true,"id":7181}],"revisionOnLoad":159331,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"7169":{"date":{"__isSmartRef__":true,"id":7170},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"7170":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"7171":{"date":{"__isSmartRef__":true,"id":7172},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"7172":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"7173":{"date":{"__isSmartRef__":true,"id":7174},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"7174":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"7175":{"date":{"__isSmartRef__":true,"id":7176},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"7176":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"7177":{"date":{"__isSmartRef__":true,"id":7178},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"7178":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"7179":{"date":{"__isSmartRef__":true,"id":7180},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"7180":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"7181":{"date":{"__isSmartRef__":true,"id":7182},"author":"timfelgentreff","message":"no comment","id":"655F8C6A-8060-4BEC-9535-09682C8F0066"},"7182":{"isSerializedDate":true,"string":"Fri May 04 2012 16:52:35 GMT+0200 (CEST)"},"7183":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"7184":{"morph":{"__isSmartRef__":true,"id":7159},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"7185":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7186}},"7186":{"test01IsMorph":{"__isSmartRef__":true,"id":7187}},"7187":{"varMapping":{"__isSmartRef__":true,"id":7188},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":7189},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7188":{"this":{"__isSmartRef__":true,"id":7185}},"7189":{},"7190":{"setColorForWidth":{"__isSmartRef__":true,"id":7191},"reset":{"__isSmartRef__":true,"id":7195},"hit":{"__isSmartRef__":true,"id":7199},"extent":{"__isSmartRef__":true,"id":7203},"isDead":{"__isSmartRef__":true,"id":7207},"lifeLoss":{"__isSmartRef__":true,"id":7211},"heal":{"__isSmartRef__":true,"id":7195}},"7191":{"varMapping":{"__isSmartRef__":true,"id":7192},"source":"function setColorForWidth() {\n this.setFill(Color.hsb((this.getExtent().x - this.lifeLoss() / 2) / this.extent().x * 100, 1, 1))\n}","funcProperties":{"__isSmartRef__":true,"id":7193},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7192":{"this":{"__isSmartRef__":true,"id":7159}},"7193":{"timestamp":{"__isSmartRef__":true,"id":7194},"user":"timfelgentreff","tags":[]},"7194":{"isSerializedDate":true,"string":"Fri May 04 2012 16:51:59 GMT+0200 (CEST)"},"7195":{"varMapping":{"__isSmartRef__":true,"id":7196},"source":"function reset() {\n this.setExtent(this.extent())\n this.setColorForWidth()\n this.setPosition(pt(0, -13))\n}","funcProperties":{"__isSmartRef__":true,"id":7197},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7196":{"this":{"__isSmartRef__":true,"id":7159}},"7197":{"timestamp":{"__isSmartRef__":true,"id":7198},"user":"timfelgentreff","tags":[]},"7198":{"isSerializedDate":true,"string":"Fri May 04 2012 17:19:31 GMT+0200 (CEST)"},"7199":{"varMapping":{"__isSmartRef__":true,"id":7200},"source":"function hit() {\n this.setExtent(this.getExtent().subPt(pt(this.lifeLoss(), 0)))\n this.setColorForWidth()\n if (this.isDead()) {\n this.character.become(null)\n this.character.deathAnimation.start()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7201},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7200":{"this":{"__isSmartRef__":true,"id":7159}},"7201":{"timestamp":{"__isSmartRef__":true,"id":7202},"user":"timfelgentreff","tags":[]},"7202":{"isSerializedDate":true,"string":"Fri May 04 2012 17:12:01 GMT+0200 (CEST)"},"7203":{"varMapping":{"__isSmartRef__":true,"id":7204},"source":"function extent() {\n return pt(48,8)\n}","funcProperties":{"__isSmartRef__":true,"id":7205},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7204":{"this":{"__isSmartRef__":true,"id":7159}},"7205":{"timestamp":{"__isSmartRef__":true,"id":7206},"user":"timfelgentreff","tags":[]},"7206":{"isSerializedDate":true,"string":"Fri May 04 2012 16:49:30 GMT+0200 (CEST)"},"7207":{"varMapping":{"__isSmartRef__":true,"id":7208},"source":"function isDead() {\n return this.getExtent().x < this.lifeLoss()\n}","funcProperties":{"__isSmartRef__":true,"id":7209},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7208":{"this":{"__isSmartRef__":true,"id":7159}},"7209":{"timestamp":{"__isSmartRef__":true,"id":7210},"user":"timfelgentreff","tags":[]},"7210":{"isSerializedDate":true,"string":"Fri May 04 2012 16:50:02 GMT+0200 (CEST)"},"7211":{"varMapping":{"__isSmartRef__":true,"id":7212},"source":"function lifeLoss() {\n return this.extent().x / 3 - 1\n}","funcProperties":{"__isSmartRef__":true,"id":7213},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7212":{"this":{"__isSmartRef__":true,"id":7159}},"7213":{"timestamp":{"__isSmartRef__":true,"id":7214},"user":"timfelgentreff","tags":[]},"7214":{"isSerializedDate":true,"string":"Fri May 04 2012 16:50:22 GMT+0200 (CEST)"},"7215":{"submorphs":[{"__isSmartRef__":true,"id":7216}],"scripts":[],"id":"C4D84DC4-A0B0-441F-A59D-4C4B0BEA51B0","shape":{"__isSmartRef__":true,"id":7245},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":7252},"showsHalos":false,"name":"DeathAnimation2","partsBinMetaInfo":{"__isSmartRef__":true,"id":7253},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":7266},"eventHandler":{"__isSmartRef__":true,"id":7267},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","BFF48C2B-8378-49C8-A6EC-5205A2A46D92","0322384E-8399-4532-BD09-846510E4CEB2","D94E58BE-3730-4E93-886D-57D5F7FEDE66","8BA6D9A0-76BF-45F9-8257-B44CE32DC0E8","627E352B-D135-4086-86B2-C7271180C415","1E2E609F-0D3C-43B7-A41A-DEF99F217F62","C106586D-69FF-492C-86C0-9105E43A395A","14B978ED-D71B-4400-8BD0-92F5EB55D3FB","1F548A2A-9935-42D6-A43F-57A789A17989","7AB0E0C5-F3F5-44B8-84A4-FE58514B9CBB","0B24C9CE-0E0A-420E-BABB-1EECAF2A75F7","8BCF21E1-00C1-47E1-8C9D-C6CD6F611A30","94B8E0BB-A727-4D1F-9FCD-57500677A0E3","875CC266-7C10-4E98-A6B6-17C7EB3C93A3","8CBF3E25-2EB1-4DE6-AAB2-17CB254C9012"],"partTests":{"__isSmartRef__":true,"id":7268},"_ClipMode":"visible","isBeingDragged":false,"#startLetters":"image","image":{"__isSmartRef__":true,"id":7216},"baseUrl":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_","counter":1,"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","_Rotation":0,"_Scale":1.002003004005006,"character":{"__isSmartRef__":true,"id":7158},"owner":{"__isSmartRef__":true,"id":7158},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7273},"__LivelyClassName__":"lively.morphic.Box"},"7216":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7217},"derivationIds":[null,"238E91DE-656E-43B5-8E3D-904CDA28A277","C00A3C0E-CF81-421A-BF06-DE6D4804AC6B","4382B5D0-4A0C-4EF1-8EA4-8A5F8AE07FED","C63F1CBE-8F12-4DFF-8B87-724D9AFDE572","4C4D5150-2BCE-4514-A48A-3787AC0E3CCF","8D704A99-14C3-4137-9E77-31DEBF2AA651","40D79729-F063-4AC0-8BA8-E1A794FC48A8","F658FB14-4DBB-4056-9F28-DD002EF336C6","19619216-9747-4EA9-A444-FFBBB4310049","40016546-5DEA-40CF-82DD-70C1F06413D4","0D8C6CD9-1951-4437-8DB1-3C658360D9B3","4A305064-C6ED-4B9B-AE1D-D1C8B588E724","438C7CD7-16E4-4D9E-A015-6D204ADE7635","92787D53-FD63-40D2-B832-464328EA031D","2A03C966-9450-4DC5-9084-A4966D9718CA","27A384D8-C394-47A1-BAE3-C121747B4EAF","D48DE2C7-4C3D-48D4-B639-D97975FE3A81","1EF27416-D2A4-4F72-A536-D94226AE04E2","D504024B-30A0-4034-B03E-EE97D7D12A3A","B8A96F87-B36E-4C2A-A697-1911B0D4A10E","CA123CA5-7C77-457D-8505-3D1E2EA12ACC"],"id":"6307A859-F176-47A7-8A5E-2078CD8988F8","renderContextTable":{"__isSmartRef__":true,"id":7222},"eventHandler":{"__isSmartRef__":true,"id":7223},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7224},"name":"DeathAnimationImage","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":7225},"__SourceModuleName__":"Global.lively.morphic.Widgets","moved":true,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_ClipMode":"visible","isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":7215},"#startLetters":"","eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","_Visible":false,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7240},"__LivelyClassName__":"lively.morphic.Image"},"7217":{"_Position":{"__isSmartRef__":true,"id":7218},"renderContextTable":{"__isSmartRef__":true,"id":7219},"_Extent":{"__isSmartRef__":true,"id":7220},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7221},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_1.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"7218":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7219":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"7220":{"x":72,"y":72,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7221":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"7222":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"7223":{"morph":{"__isSmartRef__":true,"id":7216},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"7224":{"x":-12,"y":-12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7225":{"partName":"CoderCharacter","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"An animated character with a Apple Macbook Air, hacking away and looking suspicious. He loves Latté and hacks Rails...he's a real hipster, living in Mission, SF.","changes":[{"__isSmartRef__":true,"id":7226},{"__isSmartRef__":true,"id":7228},{"__isSmartRef__":true,"id":7230},{"__isSmartRef__":true,"id":7232},{"__isSmartRef__":true,"id":7234},{"__isSmartRef__":true,"id":7236},{"__isSmartRef__":true,"id":7238}],"migrationLevel":4,"__SourceModuleName__":"Global.lively.PartsBin","revisionOnLoad":156414,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"7226":{"date":{"__isSmartRef__":true,"id":7227},"author":"lauritz","message":"extended his horizon minimally","id":"50EA136D-373D-4B07-9743-671C5D5FD786"},"7227":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:36:11 GMT+0200 (CEST)"},"7228":{"date":{"__isSmartRef__":true,"id":7229},"author":"tessi","message":"typo","id":"C3C7C127-AA94-4893-ACE9-14FE290D4CE1"},"7229":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:33:53 GMT+0200 (CEST)"},"7230":{"date":{"__isSmartRef__":true,"id":7231},"author":"tessi","message":"","id":"F17F7ABD-5B30-4809-9E08-0A11240FCE2B"},"7231":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:32:18 GMT+0200 (CEST)"},"7232":{"date":{"__isSmartRef__":true,"id":7233},"author":"tessi","message":"","id":"AC6C3961-CFFB-4C4A-8769-970359274337"},"7233":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:01:43 GMT+0200 (CEST)"},"7234":{"date":{"__isSmartRef__":true,"id":7235},"author":"tessi","message":"some soliloquize sentences for the awesome coder!","id":"892B001E-626A-4EE7-A217-E88C4E1F6088"},"7235":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:52:20 GMT+0200 (CEST)"},"7236":{"date":{"__isSmartRef__":true,"id":7237},"author":"lauritz","message":"no comment","id":"56F017FB-5032-49A5-A6C0-A856F2AB5B55"},"7237":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:23:49 GMT+0200 (CEST)"},"7238":{"date":{"__isSmartRef__":true,"id":7239},"author":"lauritz","message":"no comment","id":"52EB067D-BE9C-4E05-9599-5B3D0D663B9E"},"7239":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:30:38 GMT+0200 (CEST)"},"7240":{"soliloquize":{"__isSmartRef__":true,"id":7241}},"7241":{"varMapping":{"__isSmartRef__":true,"id":7242},"source":"function soliloquize() {\n this.soloSentences = this.soloSentences || [\n \"Wonder what the new iPony will be like\",\n \"Can i have some Mate pl0x?\",\n \"*click* *clack* *clack*\",\n \"Shouldn't this run faster?\",\n \"Wonder why people use Windows...\",\n \"Lets start a new programming language!\",\n \"Awesome!\",\n \"git rebase to the rescue!\",\n \"Array(16).join(\\\"wat\\\" - 1) + \\\" Batman!\\\"\",\n \"aww. screwed up the pointers\\n.. again!\",\n \"i need horn-rimmed glasses\",\n \"i'm no hipster.\",\n \"can i have a lattai\",\n \"everything you can do i can do better\",\n \"i can do everything better than you\",\n \"i studied at HPI\",\n \"oop is not for everyone\",\n \"it's spring after the java nuclear winter\",\n \"Is the company based in Mission?\",\n \"Who's that Alan Kay dude?\",\n \"I [github] code\"\n ]\n return this.soloSentences[Math.floor(Math.random() * this.soloSentences.length)]\n}","funcProperties":{"__isSmartRef__":true,"id":7243},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7242":{"this":{"__isSmartRef__":true,"id":7216}},"7243":{"timestamp":{"__isSmartRef__":true,"id":7244},"user":"lauritz","tags":[]},"7244":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:35:45 GMT+0200 (CEST)"},"7245":{"position":{"__isSmartRef__":true,"id":7246},"_Extent":{"__isSmartRef__":true,"id":7247},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":7248},"_Fill":{"__isSmartRef__":true,"id":7249},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":7250},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7251},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"7246":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7247":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7248":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"7249":{"r":0,"g":0,"b":0,"a":0,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7250":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"7251":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"7252":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7253":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph. A really blue one. Its amazing what you can build out of simple boxes.... Who needs stars when you got blue rectangles!","migrationLevel":4,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":7254},{"__isSmartRef__":true,"id":7256},{"__isSmartRef__":true,"id":7258},{"__isSmartRef__":true,"id":7260},{"__isSmartRef__":true,"id":7262},{"__isSmartRef__":true,"id":7264}],"revisionOnLoad":158846,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"7254":{"date":{"__isSmartRef__":true,"id":7255},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"7255":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"7256":{"date":{"__isSmartRef__":true,"id":7257},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"7257":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"7258":{"date":{"__isSmartRef__":true,"id":7259},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"7259":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"7260":{"date":{"__isSmartRef__":true,"id":7261},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"7261":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"7262":{"date":{"__isSmartRef__":true,"id":7263},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"7263":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"7264":{"date":{"__isSmartRef__":true,"id":7265},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"7265":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"7266":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"7267":{"morph":{"__isSmartRef__":true,"id":7215},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"7268":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7269}},"7269":{"test01IsMorph":{"__isSmartRef__":true,"id":7270}},"7270":{"varMapping":{"__isSmartRef__":true,"id":7271},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":7272},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7271":{"this":{"__isSmartRef__":true,"id":7268}},"7272":{},"7273":{"die":{"__isSmartRef__":true,"id":7274},"reset":{"__isSmartRef__":true,"id":7277},"nextImage":{"__isSmartRef__":true,"id":7281},"start":{"__isSmartRef__":true,"id":7285}},"7274":{"varMapping":{"__isSmartRef__":true,"id":7275},"source":"function die() {\n this.nextImage()\n if (this.counter === 1) {\n this.character.animate(false);\n this.character.remove()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7276},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7275":{"this":{"__isSmartRef__":true,"id":7215}},"7276":{},"7277":{"varMapping":{"__isSmartRef__":true,"id":7278},"source":"function reset() {\n this.stopStepping()\n this.baseUrl = \"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_\"\n this.counter = 0\n this.image.setPosition(pt(-12,-12))\n this.image.disableEvents()\n this.nextImage()\n this.setPosition(pt(0,0))\n this.setBorderWidth(0)\n this.image.setVisible(false)\n}","funcProperties":{"__isSmartRef__":true,"id":7279},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7278":{"this":{"__isSmartRef__":true,"id":7215}},"7279":{"timestamp":{"__isSmartRef__":true,"id":7280},"user":"timfelgentreff","tags":[]},"7280":{"isSerializedDate":true,"string":"Fri May 04 2012 17:24:17 GMT+0200 (CEST)"},"7281":{"varMapping":{"__isSmartRef__":true,"id":7282},"source":"function nextImage() {\n this.counter = this.counter % 6 + 1\n this.image.setImageURL(this.baseUrl + this.counter + \".png\")\n}","funcProperties":{"__isSmartRef__":true,"id":7283},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7282":{"this":{"__isSmartRef__":true,"id":7215}},"7283":{"timestamp":{"__isSmartRef__":true,"id":7284},"user":"timfelgentreff","tags":[]},"7284":{"isSerializedDate":true,"string":"Fri May 04 2012 17:09:29 GMT+0200 (CEST)"},"7285":{"varMapping":{"__isSmartRef__":true,"id":7286},"source":"function start() {\n this.image.setVisible(true)\n this.startStepping(150, \"die\")\n}","funcProperties":{"__isSmartRef__":true,"id":7287},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7286":{"this":{"__isSmartRef__":true,"id":7215}},"7287":{"timestamp":{"__isSmartRef__":true,"id":7288},"user":"timfelgentreff","tags":[]},"7288":{"isSerializedDate":true,"string":"Fri May 04 2012 17:25:07 GMT+0200 (CEST)"},"7289":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7290},"derivationIds":[null,"B92FC6A0-9182-4008-A4D3-70E96420A6D7","985C903B-2533-41D1-8CC0-D54E9F519C16","D600725A-EA19-4BC4-9288-17D864E6BC4A","C33BB11D-8706-4E40-9E31-55025A5FB55F"],"id":"1FA37C85-DE40-4AE5-97B6-26EE0F8CC689","renderContextTable":{"__isSmartRef__":true,"id":7295},"eventHandler":{"__isSmartRef__":true,"id":7296},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7297},"name":"VillagerCharacter","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":7298},"__SourceModuleName__":"Global.lively.morphic.Widgets","moved":true,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"owner":{"__isSmartRef__":true,"id":7158},"eventsAreIgnored":true,"soloSentences":["I should find a girl!","Is this octocat-thing male or female?",".. there are so many questions ..","The cake is a lie!","Britney is the best!","Paris Hilton! you know?.. this Hotel in Paris","*pff* girls ..","...","looks like i'm a hunter","not as strong as an ogre, not as smart as the other guys"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7307},"__LivelyClassName__":"lively.morphic.Image"},"7290":{"_Position":{"__isSmartRef__":true,"id":7291},"renderContextTable":{"__isSmartRef__":true,"id":7292},"_Extent":{"__isSmartRef__":true,"id":7293},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7294},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/villager.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"7291":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7292":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"7293":{"x":72,"y":72,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7294":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"7295":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"7296":{"morph":{"__isSmartRef__":true,"id":7289},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"7297":{"x":-12,"y":-12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7298":{"partName":"VillagerCharacter","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"An animated male character. He knows not too much and is always undecided.","changes":[{"__isSmartRef__":true,"id":7299},{"__isSmartRef__":true,"id":7301},{"__isSmartRef__":true,"id":7303},{"__isSmartRef__":true,"id":7305}],"migrationLevel":4,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"7299":{"date":{"__isSmartRef__":true,"id":7300},"author":"tessi","message":"the villager talks!","id":"1706B121-230C-4CC8-91FD-3EEC9CBDFEBA"},"7300":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:27:38 GMT+0200 (CEST)"},"7301":{"date":{"__isSmartRef__":true,"id":7302},"author":"tessi","message":"","id":"5FF65A56-3684-43C4-AFCE-57C257420F5B"},"7302":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:40:03 GMT+0200 (CEST)"},"7303":{"date":{"__isSmartRef__":true,"id":7304},"author":"tessi","message":"","id":"3EFBCB6C-DA48-4D0F-BD8D-1BB8BB59EFD7"},"7304":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:45:13 GMT+0200 (CEST)"},"7305":{"date":{"__isSmartRef__":true,"id":7306},"author":"lauritz","message":"no comment","id":"A4FBB639-0C0D-4125-8C7F-AA2222B725A0"},"7306":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:35:23 GMT+0200 (CEST)"},"7307":{"soliloquize":{"__isSmartRef__":true,"id":7308}},"7308":{"varMapping":{"__isSmartRef__":true,"id":7309},"source":"function soliloquize() {\n this.soloSentences = this.soloSentences || [\n \"I should find a girl!\",\n \"Is this octocat-thing male or female?\",\n \".. there are so many questions ..\",\n \"The cake is a lie!\",\n \"Britney is the best!\",\n \"Paris Hilton! you know?.. this Hotel in Paris\",\n \"*pff* girls ..\",\n \"...\",\n \"looks like i'm a hunter\",\n \"not as strong as an ogre, not as smart as the other guys\"\n ]\n return this.soloSentences[Math.floor(Math.random() * this.soloSentences.length)]\n}","funcProperties":{"__isSmartRef__":true,"id":7310},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7309":{"this":{"__isSmartRef__":true,"id":7289}},"7310":{"timestamp":{"__isSmartRef__":true,"id":7311},"user":"lauritz","tags":[]},"7311":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:35:19 GMT+0200 (CEST)"},"7312":{"submorphs":[{"__isSmartRef__":true,"id":7313}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7335},"id":"8B06C1F4-E45F-4910-AB60-A724A77B0EAE","renderContextTable":{"__isSmartRef__":true,"id":7342},"eventHandler":{"__isSmartRef__":true,"id":7343},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7344},"__SourceModuleName__":"Global.lively.morphic.Core","showsHalos":false,"layout":{"__isSmartRef__":true,"id":7345},"name":"TextBubble","partsBinMetaInfo":{"__isSmartRef__":true,"id":3883},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","DE7B4D82-53D6-47AB-B640-FF3635F70AA7","99C53948-AA15-4796-B491-DB674F1EE087","58EDE5FE-6BAF-448F-B9DB-E94E1A69C992","2325F322-A469-433D-8288-7419BADD05F5"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_ClipMode":"visible","isBeingDragged":false,"text":{"__isSmartRef__":true,"id":7313},"isCopyMorphRef":true,"morphRefId":1,"_Visible":false,"moved":true,"_Rotation":0,"_Scale":1,"owner":{"__isSmartRef__":true,"id":7158},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7346},"__LivelyClassName__":"lively.morphic.Morph"},"7313":{"submorphs":[],"scripts":[],"id":"EA592B7E-2D81-4739-AABF-216B13D63C3D","shape":{"__isSmartRef__":true,"id":7314},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":7320},"_MaxTextWidth":null,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":7317},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Text","partsBinMetaInfo":{"__isSmartRef__":true,"id":7321},"textChunks":[{"__isSmartRef__":true,"id":7328}],"charsReplaced":"s","lastFindLoc":6,"prevScroll":[0,0],"renderContextTable":{"__isSmartRef__":true,"id":7330},"eventHandler":{"__isSmartRef__":true,"id":7331},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Padding":{"__isSmartRef__":true,"id":7332},"_ClipMode":"none","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","ECCF99AE-9763-4D68-9C21-0B5A520DB15D","2EA15529-B8A7-4D60-BAE3-8E14E934A428","3A910B2E-EF96-4264-95AF-E82F57C6DBFD","506A72F2-95FC-4677-B6D2-03CA2EC46DBB"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":null,"_MinTextHeight":null,"previousSelection":[2,2],"owner":{"__isSmartRef__":true,"id":7312},"isBeingDragged":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":7333},"isLabel":true,"_HandStyle":"default","allowInput":false,"eventsAreIgnored":true,"layout":{"__isSmartRef__":true,"id":7334},"_Rotation":0,"_Scale":1.002003004005006,"__LivelyClassName__":"lively.morphic.Text"},"7314":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":7315},"_Extent":{"__isSmartRef__":true,"id":7316},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":7317},"renderContextTable":{"__isSmartRef__":true,"id":7318},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7319},"_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"7315":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7316":{"x":317,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7317":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"7318":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"7319":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"7320":{"x":-28,"y":-42,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7321":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":7322},{"__isSmartRef__":true,"id":7324},{"__isSmartRef__":true,"id":7326}],"revisionOnLoad":154217,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"7322":{"date":{"__isSmartRef__":true,"id":7323},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"7323":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"7324":{"date":{"__isSmartRef__":true,"id":7325},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"7325":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"7326":{"date":{"__isSmartRef__":true,"id":7327},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"7327":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"7328":{"style":{"__isSmartRef__":true,"id":7329},"chunkOwner":{"__isSmartRef__":true,"id":7313},"_id":"_1630","storedString":"Is this octocat-thing male or female?","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7329":{"whiteSpace":"pre","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7330":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"7331":{"morph":{"__isSmartRef__":true,"id":7313},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"7332":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"7333":{"x":66,"y":-19,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7334":{"centeredHorizontal":true,"centeredVertical":true,"adjustForNewBounds":true},"7335":{"_Position":{"__isSmartRef__":true,"id":7336},"renderContextTable":{"__isSmartRef__":true,"id":7337},"_Extent":{"__isSmartRef__":true,"id":7338},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7339},"_BorderWidth":2.444,"_BorderColor":{"__isSmartRef__":true,"id":7340},"_Fill":{"__isSmartRef__":true,"id":7341},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"_Opacity":0.6818000000000001,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Ellipse"},"7336":{"x":-50,"y":-50,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7337":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"7338":{"x":367,"y":47,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7339":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"7340":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"7341":{"r":0.921,"g":0.921,"b":0.921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7342":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"7343":{"morph":{"__isSmartRef__":true,"id":7312},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"7344":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7345":{"resizeWidth":true,"resizeHeight":true},"7346":{"say":{"__isSmartRef__":true,"id":7347},"showBubbleTime":{"__isSmartRef__":true,"id":7351},"disappear":{"__isSmartRef__":true,"id":7355},"reset":{"__isSmartRef__":true,"id":7359},"hide":{"__isSmartRef__":true,"id":7363}},"7347":{"varMapping":{"__isSmartRef__":true,"id":7348},"source":"function say(aString) {\n var textExtent, _this = this\n if (aString !== undefined ) {\n this.text.setTextString(aString)\n } else {\n this.text.setTextString(\"TextBubble\")\n }\n this.text.getTextChunks().first().styleText({whiteSpace: \"pre\"})\n this.text.fit()\n textExtent = this.text.getExtent()\n textExtent.y = this.text.getTextChunks().first().chunkNode.parentElement.scrollHeight\n this.setExtent(pt(textExtent.x + 50, textExtent.y + 25))\n this.setVisible(true)\n if (aString !== undefined ) {\n window.setTimeout(function(){ _this.disappear(aString) }, this.showBubbleTime())\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7349},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7348":{"this":{"__isSmartRef__":true,"id":7312}},"7349":{"timestamp":{"__isSmartRef__":true,"id":7350},"user":"tessi","tags":[]},"7350":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:16:26 GMT+0200 (CEST)"},"7351":{"varMapping":{"__isSmartRef__":true,"id":7352},"source":"function showBubbleTime() {\n return 6000\n}","funcProperties":{"__isSmartRef__":true,"id":7353},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7352":{"this":{"__isSmartRef__":true,"id":7312}},"7353":{"timestamp":{"__isSmartRef__":true,"id":7354},"user":"timfelgentreff","tags":[]},"7354":{"isSerializedDate":true,"string":"Sat May 05 2012 19:26:43 GMT+0200 (CEST)"},"7355":{"varMapping":{"__isSmartRef__":true,"id":7356},"source":"function disappear(oldText) {\n if (this.text.getTextString() == oldText) {\n this.hide()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7357},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7356":{"this":{"__isSmartRef__":true,"id":7312}},"7357":{"timestamp":{"__isSmartRef__":true,"id":7358},"user":"tessi","tags":[]},"7358":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:15:35 GMT+0200 (CEST)"},"7359":{"varMapping":{"__isSmartRef__":true,"id":7360},"source":"function reset() {\n this.say()\n}","funcProperties":{"__isSmartRef__":true,"id":7361},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7360":{"this":{"__isSmartRef__":true,"id":7312}},"7361":{"timestamp":{"__isSmartRef__":true,"id":7362},"user":"tessi","tags":[]},"7362":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:17:22 GMT+0200 (CEST)"},"7363":{"varMapping":{"__isSmartRef__":true,"id":7364},"source":"function hide() {\n this.setVisible(false)\n}","funcProperties":{"__isSmartRef__":true,"id":7365},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7364":{"this":{"__isSmartRef__":true,"id":7312}},"7365":{"timestamp":{"__isSmartRef__":true,"id":7366},"user":"tessi","tags":[]},"7366":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:15:24 GMT+0200 (CEST)"},"7367":{"target":{"__isSmartRef__":true,"id":7158},"selector":"doSomething","args":[{"__isSmartRef__":true,"id":7368}],"stopped":false,"tickTime":3000,"__SourceModuleName__":"Global.lively.morphic.Core","suspended":false,"__LivelyClassName__":"lively.morphic.TargetScript"},"7368":{},"7369":{"target":{"__isSmartRef__":true,"id":7158},"selector":"aStarWalkPath","args":[[{"__isSmartRef__":true,"id":6755}]],"stopped":true,"tickTime":10,"__SourceModuleName__":"Global.lively.morphic.Core","suspended":false,"__LivelyClassName__":"lively.morphic.TargetScript"},"7370":{"_Position":{"__isSmartRef__":true,"id":7371},"renderContextTable":{"__isSmartRef__":true,"id":7372},"_Extent":{"__isSmartRef__":true,"id":7373},"_Padding":{"__isSmartRef__":true,"id":7374},"_NodeClass":["Morph","Box"],"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":7375},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"7371":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7372":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"7373":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7374":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"7375":{"r":0,"g":0,"b":0,"a":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"7376":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"7377":{"morph":{"__isSmartRef__":true,"id":7158},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"7378":{"x":336,"y":432,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7379":{"x":0,"y":1,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7380":{"setDevStyle":{"__isSmartRef__":true,"id":7381},"setNormalStyle":{"__isSmartRef__":true,"id":7385},"tileSize":{"__isSmartRef__":true,"id":7389},"become":{"__isSmartRef__":true,"id":7393},"walkUntilReached":{"__isSmartRef__":true,"id":7397},"onMouseDown":{"__isSmartRef__":true,"id":7401},"walkTo":{"__isSmartRef__":true,"id":7409},"currentTile":{"__isSmartRef__":true,"id":7413},"toolbox":{"__isSmartRef__":true,"id":7417},"setCurrentSpeed":{"__isSmartRef__":true,"id":7421},"getCurrentSpeed":{"__isSmartRef__":true,"id":7425},"isWalking":{"__isSmartRef__":true,"id":7429},"select":{"__isSmartRef__":true,"id":7433},"deselect":{"__isSmartRef__":true,"id":7437},"becomeRandomCharacter":{"__isSmartRef__":true,"id":7441},"reset":{"__isSmartRef__":true,"id":7445},"setDirectionToTile":{"__isSmartRef__":true,"id":7449},"getDirection":{"__isSmartRef__":true,"id":7453},"setDirection":{"__isSmartRef__":true,"id":7457},"setPosition":{"__isSmartRef__":true,"id":7461},"say":{"__isSmartRef__":true,"id":7469},"soliloquize":{"__isSmartRef__":true,"id":7473},"characterType":{"__isSmartRef__":true,"id":7477},"animate":{"__isSmartRef__":true,"id":7481},"doSomething":{"__isSmartRef__":true,"id":7485},"map":{"__isSmartRef__":true,"id":7489},"game":{"__isSmartRef__":true,"id":7493},"setup":{"__isSmartRef__":true,"id":7497},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":7501},"startConversation":{"__isSmartRef__":true,"id":7509},"startConversationWith":{"__isSmartRef__":true,"id":7513},"shallowCopy":{"__isSmartRef__":true,"id":7517},"conversation":{"__isSmartRef__":true,"id":7521},"answer":{"__isSmartRef__":true,"id":7525},"hideTextBubble":{"__isSmartRef__":true,"id":7529},"aStar":{"__isSmartRef__":true,"id":7533},"aStarHeuristicCostEstimate":{"__isSmartRef__":true,"id":7537},"aStarWalkPath":{"__isSmartRef__":true,"id":7541},"chatBot":{"__isSmartRef__":true,"id":7545},"getHit":{"__isSmartRef__":true,"id":7549},"becomePlayer":{"__isSmartRef__":true,"id":7553},"fight":{"__isSmartRef__":true,"id":7557},"fightPhrases":{"__isSmartRef__":true,"id":7561},"randomQuestions":{"__isSmartRef__":true,"id":7565},"randomAnswersFor":{"__isSmartRef__":true,"id":7569},"executeFightTurnAsking":{"__isSmartRef__":true,"id":7573},"heal":{"__isSmartRef__":true,"id":7577},"isDead":{"__isSmartRef__":true,"id":7581}},"7381":{"varMapping":{"__isSmartRef__":true,"id":7382},"source":"function setDevStyle() {\n if (this.map()) {\n this.setExtent(this.tileSize())\n }\n this.setFill(null)\n this.shape.setBorderColor(Color.yellow)\n}","funcProperties":{"__isSmartRef__":true,"id":7383},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7384},"__LivelyClassName__":"lively.Closure"},"7382":{"this":{"__isSmartRef__":true,"id":7158}},"7383":{"timestamp":{"__isSmartRef__":true,"id":4151},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4152},"declaredObject":""},"7384":{"originalFunc":{"__isSmartRef__":true,"id":4152}},"7385":{"varMapping":{"__isSmartRef__":true,"id":7386},"source":"function setNormalStyle() {\n this.setDevStyle()\n this.shape.setBorderColor(new Color.rgba(0,0,0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":7387},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7388},"__LivelyClassName__":"lively.Closure"},"7386":{"this":{"__isSmartRef__":true,"id":7158}},"7387":{"timestamp":{"__isSmartRef__":true,"id":4299},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4296},"declaredObject":""},"7388":{"originalFunc":{"__isSmartRef__":true,"id":4296}},"7389":{"varMapping":{"__isSmartRef__":true,"id":7390},"source":"function tileSize() {\n return this.map().tileSize()\n}","funcProperties":{"__isSmartRef__":true,"id":7391},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7392},"__LivelyClassName__":"lively.Closure"},"7390":{"this":{"__isSmartRef__":true,"id":7158}},"7391":{"timestamp":{"__isSmartRef__":true,"id":4303},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4300},"declaredObject":""},"7392":{"originalFunc":{"__isSmartRef__":true,"id":4300}},"7393":{"varMapping":{"__isSmartRef__":true,"id":7394},"source":"function become(player) {\n if (this.character) {\n this.character.remove()\n this.character = null\n }\n if (!player) { return this }\n \n this.character = this.toolbox(player + \"Character\")\n if (this.character) {\n // image should be 150% of a tile\n this.character.setExtent(this.tileSize().scaleBy(1.5))\n // -25% offset to center character on tile\n this.character.setPositionTopLeft(this.tileSize().scaleBy(-0.25))\n this.addMorph(this.character)\n this.character.ignoreEvents()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7395},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7396},"__LivelyClassName__":"lively.Closure"},"7394":{"this":{"__isSmartRef__":true,"id":7158}},"7395":{"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4304},"declaredObject":""},"7396":{"originalFunc":{"__isSmartRef__":true,"id":4304}},"7397":{"varMapping":{"__isSmartRef__":true,"id":7398},"source":"function walkUntilReached(tile) {\n var minPositive = function (a, b) {\n a = Math.abs(a), b = Math.abs(b)\n return a ? (b ? Math.min(a, b) : a) : b\n }\n\n // this.setPosition(pt(0,0))\n if (this.getPosition().equals(tile.getPosition())) {\n if (this.walkScript) { this.walkScript.stop() }\n this.setDirection(pt(0,0))\n tile.enterTile(this)\n } else {\n if (this.currentTile() !== tile) {\n this.setDirectionToTile(tile)\n var nextNeighbours = this.currentTile().neighboursInDirection(this.getDirection())\n if (nextNeighbours.any(function (each) { return each.isObstacle() })) {\n this.walkTo(this.currentTile())\n } else {\n var directionVector = this.getPosition().subPt(tile.getPosition()),\n maxSpeed = minPositive(directionVector.x, directionVector.y),\n speed = Math.min(maxSpeed, this.getCurrentSpeed())\n this.moveBy(this.getDirection().scaleBy(speed))\n }\n } else {\n var directionVector = this.getPosition().subPt(tile.getPosition()),\n maxSpeed = minPositive(directionVector.x, directionVector.y),\n speed = Math.min(maxSpeed, this.getCurrentSpeed())\n this.moveBy(this.getDirection().scaleBy(speed))\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7399},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7400},"__LivelyClassName__":"lively.Closure"},"7398":{"this":{"__isSmartRef__":true,"id":7158}},"7399":{"timestamp":{"__isSmartRef__":true,"id":4310},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4307},"declaredObject":""},"7400":{"originalFunc":{"__isSmartRef__":true,"id":4307}},"7401":{"varMapping":{"__isSmartRef__":true,"id":7402},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.game()) {\n if (this.game().selectedUnit !== this) {\n if (this.game().selectedUnit !== null) {\n this.game().selectedUnit.deselect()\n }\n this.select()\n } else {\n this.deselect()\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7407},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7408},"__LivelyClassName__":"lively.Closure"},"7402":{"this":{"__isSmartRef__":true,"id":7158},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7403}},"7403":{"$super":{"__isSmartRef__":true,"id":7404}},"7404":{"varMapping":{"__isSmartRef__":true,"id":7405},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7406},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7405":{"obj":{"__isSmartRef__":true,"id":7158},"name":"onMouseDown"},"7406":{},"7407":{"timestamp":{"__isSmartRef__":true,"id":4318},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4311},"declaredObject":""},"7408":{"originalFunc":{"__isSmartRef__":true,"id":4311}},"7409":{"varMapping":{"__isSmartRef__":true,"id":7410},"source":"function walkTo(tile) {\n this.lastSpeedTimestamp = Date.now()\n var path = this.aStar(tile),\n that = this\n if (path.length === 0) {\n alertOK(\"No path found\")\n } else {\n this.walkScript = this.startStepping(10, \"aStarWalkPath\", path)\n }\n // this.walkScript = this.startStepping(10, \"walkUntilReached\", tile)\n this.currentTile().leaveTile(this)\n}","funcProperties":{"__isSmartRef__":true,"id":7411},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7412},"__LivelyClassName__":"lively.Closure"},"7410":{"this":{"__isSmartRef__":true,"id":7158}},"7411":{"timestamp":{"__isSmartRef__":true,"id":4322},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4319},"declaredObject":""},"7412":{"originalFunc":{"__isSmartRef__":true,"id":4319}},"7413":{"varMapping":{"__isSmartRef__":true,"id":7414},"source":"function currentTile() {\n if ( !this.character || !this.map() ) { return null }\n return this.map().getTileForPosition(\n this.getPosition().addPt(this.character.getBounds().center()))\n}","funcProperties":{"__isSmartRef__":true,"id":7415},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7416},"__LivelyClassName__":"lively.Closure"},"7414":{"this":{"__isSmartRef__":true,"id":7158}},"7415":{"timestamp":{"__isSmartRef__":true,"id":4326},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4323},"declaredObject":""},"7416":{"originalFunc":{"__isSmartRef__":true,"id":4323}},"7417":{"varMapping":{"__isSmartRef__":true,"id":7418},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":7419},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7420},"__LivelyClassName__":"lively.Closure"},"7418":{"this":{"__isSmartRef__":true,"id":7158}},"7419":{"timestamp":{"__isSmartRef__":true,"id":4330},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4327},"declaredObject":""},"7420":{"originalFunc":{"__isSmartRef__":true,"id":4327}},"7421":{"varMapping":{"__isSmartRef__":true,"id":7422},"source":"function setCurrentSpeed(arg) {\n this.currentSpeed = arg\n}","funcProperties":{"__isSmartRef__":true,"id":7423},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7424},"__LivelyClassName__":"lively.Closure"},"7422":{"this":{"__isSmartRef__":true,"id":7158}},"7423":{"timestamp":{"__isSmartRef__":true,"id":4334},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4331},"declaredObject":""},"7424":{"originalFunc":{"__isSmartRef__":true,"id":4331}},"7425":{"varMapping":{"__isSmartRef__":true,"id":7426},"source":"function getCurrentSpeed() {\n var multiplier = (Date.now() - this.lastSpeedTimestamp) / 10\n this.lastSpeedTimestamp = Date.now()\n return multiplier\n}","funcProperties":{"__isSmartRef__":true,"id":7427},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7428},"__LivelyClassName__":"lively.Closure"},"7426":{"this":{"__isSmartRef__":true,"id":7158}},"7427":{"timestamp":{"__isSmartRef__":true,"id":4338},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4335},"declaredObject":""},"7428":{"originalFunc":{"__isSmartRef__":true,"id":4335}},"7429":{"varMapping":{"__isSmartRef__":true,"id":7430},"source":"function isWalking() {\n return !this.getDirection().equals(pt(0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":7431},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7432},"__LivelyClassName__":"lively.Closure"},"7430":{"this":{"__isSmartRef__":true,"id":7158}},"7431":{"timestamp":{"__isSmartRef__":true,"id":4342},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4339},"declaredObject":""},"7432":{"originalFunc":{"__isSmartRef__":true,"id":4339}},"7433":{"varMapping":{"__isSmartRef__":true,"id":7434},"source":"function select() {\n this.game().selectedUnit = this\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":7435},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7436},"__LivelyClassName__":"lively.Closure"},"7434":{"this":{"__isSmartRef__":true,"id":7158}},"7435":{"timestamp":{"__isSmartRef__":true,"id":4346},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4343},"declaredObject":""},"7436":{"originalFunc":{"__isSmartRef__":true,"id":4343}},"7437":{"varMapping":{"__isSmartRef__":true,"id":7438},"source":"function deselect() {\n this.game().selectedUnit = null\n this.setNormalStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":7439},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7440},"__LivelyClassName__":"lively.Closure"},"7438":{"this":{"__isSmartRef__":true,"id":7158}},"7439":{"timestamp":{"__isSmartRef__":true,"id":4350},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4347},"declaredObject":""},"7440":{"originalFunc":{"__isSmartRef__":true,"id":4347}},"7441":{"varMapping":{"__isSmartRef__":true,"id":7442},"source":"function becomeRandomCharacter() {\n var characterNames = this.game().partNamesEndingWith(\"Character\")\n this.become(characterNames[Math.round(Math.random() * (characterNames.length - 1))])\n}","funcProperties":{"__isSmartRef__":true,"id":7443},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7444},"__LivelyClassName__":"lively.Closure"},"7442":{"this":{"__isSmartRef__":true,"id":7158}},"7443":{"timestamp":{"__isSmartRef__":true,"id":4354},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4351},"declaredObject":""},"7444":{"originalFunc":{"__isSmartRef__":true,"id":4351}},"7445":{"varMapping":{"__isSmartRef__":true,"id":7446},"source":"function reset() {\n this.become(null)\n this.submorphs.invoke(\"remove\")\n this.stopStepping()\n this.conversationScript = this.walkScript = this.animateScript = undefined\n this.lastAnswer = this.conversationTurn = this.textBubble = this.isBusy = undefined\n this.setDevStyle()\n this.addMorph(this.lifeBar)\n this.lifeBar.reset()\n this.addMorph(this.deathAnimation)\n this.deathAnimation.reset()\n}","funcProperties":{"__isSmartRef__":true,"id":7447},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7448},"__LivelyClassName__":"lively.Closure"},"7446":{"this":{"__isSmartRef__":true,"id":7158}},"7447":{"timestamp":{"__isSmartRef__":true,"id":4358},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4355},"declaredObject":""},"7448":{"originalFunc":{"__isSmartRef__":true,"id":4355}},"7449":{"varMapping":{"__isSmartRef__":true,"id":7450},"source":"function setDirectionToTile(tile) {\n var direction = tile.getPosition().subPt(this.getPosition()),\n xDirection = direction.x / Math.abs(direction.x),\n yDirection = direction.y / Math.abs(direction.y)\n this.setDirection(pt(xDirection, yDirection))\n}","funcProperties":{"__isSmartRef__":true,"id":7451},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7452},"__LivelyClassName__":"lively.Closure"},"7450":{"this":{"__isSmartRef__":true,"id":7158}},"7451":{"timestamp":{"__isSmartRef__":true,"id":4362},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4359},"declaredObject":""},"7452":{"originalFunc":{"__isSmartRef__":true,"id":4359}},"7453":{"varMapping":{"__isSmartRef__":true,"id":7454},"source":"function getDirection() {\n return this.direction ? this.direction : pt(0,0)\n}","funcProperties":{"__isSmartRef__":true,"id":7455},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7456},"__LivelyClassName__":"lively.Closure"},"7454":{"this":{"__isSmartRef__":true,"id":7158}},"7455":{"timestamp":{"__isSmartRef__":true,"id":4366},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4363},"declaredObject":""},"7456":{"originalFunc":{"__isSmartRef__":true,"id":4363}},"7457":{"varMapping":{"__isSmartRef__":true,"id":7458},"source":"function setDirection(arg) {\n this.direction = arg\n if (this.character && this.character.face) {\n if (arg.x === 0) {\n arg.y > 0 ? this.character.face(\"south\") : this.character.face(\"north\")\n } else if (arg.x === -1) {\n this.character.face(\"west\")\n } else {\n this.character.face(\"east\")\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7459},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7460},"__LivelyClassName__":"lively.Closure"},"7458":{"this":{"__isSmartRef__":true,"id":7158}},"7459":{"timestamp":{"__isSmartRef__":true,"id":4370},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4367},"declaredObject":""},"7460":{"originalFunc":{"__isSmartRef__":true,"id":4367}},"7461":{"varMapping":{"__isSmartRef__":true,"id":7462},"source":"function setPosition(point) {\n $super(point)\n if (this.game()) {\n this.renderContext().morphNode.style.zIndex = this.game().zIndexForThings() + point.y\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7467},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7468},"__LivelyClassName__":"lively.Closure"},"7462":{"this":{"__isSmartRef__":true,"id":7158},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7463}},"7463":{"$super":{"__isSmartRef__":true,"id":7464}},"7464":{"varMapping":{"__isSmartRef__":true,"id":7465},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7466},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7465":{"obj":{"__isSmartRef__":true,"id":7158},"name":"setPosition"},"7466":{},"7467":{"timestamp":{"__isSmartRef__":true,"id":4378},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4371},"declaredObject":""},"7468":{"originalFunc":{"__isSmartRef__":true,"id":4371}},"7469":{"varMapping":{"__isSmartRef__":true,"id":7470},"source":"function say(aString) {\n if ( !aString ) { return }\n if (!this.textBubble) {\n this.textBubble = this.toolbox(\"TextBubble\")\n this.addMorph(this.textBubble)\n }\n this.textBubble.say(aString)\n}","funcProperties":{"__isSmartRef__":true,"id":7471},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7472},"__LivelyClassName__":"lively.Closure"},"7470":{"this":{"__isSmartRef__":true,"id":7158}},"7471":{"timestamp":{"__isSmartRef__":true,"id":4382},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4379},"declaredObject":""},"7472":{"originalFunc":{"__isSmartRef__":true,"id":4379}},"7473":{"varMapping":{"__isSmartRef__":true,"id":7474},"source":"function soliloquize() {\n this.isBusy = true\n // talk to self\n var type = this.characterType()\n if ( type && type.soliloquize ) {\n this.say(type.soliloquize())\n } else {\n this.say(\"...\")\n }\n this.isBusy = false\n}","funcProperties":{"__isSmartRef__":true,"id":7475},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7476},"__LivelyClassName__":"lively.Closure"},"7474":{"this":{"__isSmartRef__":true,"id":7158}},"7475":{"timestamp":{"__isSmartRef__":true,"id":4386},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4383},"declaredObject":""},"7476":{"originalFunc":{"__isSmartRef__":true,"id":4383}},"7477":{"varMapping":{"__isSmartRef__":true,"id":7478},"source":"function characterType() {\n return this.character\n}","funcProperties":{"__isSmartRef__":true,"id":7479},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7480},"__LivelyClassName__":"lively.Closure"},"7478":{"this":{"__isSmartRef__":true,"id":7158}},"7479":{"timestamp":{"__isSmartRef__":true,"id":4390},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4387},"declaredObject":""},"7480":{"originalFunc":{"__isSmartRef__":true,"id":4387}},"7481":{"varMapping":{"__isSmartRef__":true,"id":7482},"source":"function animate(bool) {\n if (bool || (bool === undefined)) {\n this.animateScript = this.startStepping(3000, \"doSomething\", {})\n } else if ( this.animateScript ){\n this.animateScript.stop()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7483},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7484},"__LivelyClassName__":"lively.Closure"},"7482":{"this":{"__isSmartRef__":true,"id":7158}},"7483":{"timestamp":{"__isSmartRef__":true,"id":4394},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4391},"declaredObject":""},"7484":{"originalFunc":{"__isSmartRef__":true,"id":4391}},"7485":{"varMapping":{"__isSmartRef__":true,"id":7486},"source":"function doSomething() {\n var r = Math.random()\n if (this.isBusy) { return }\n if (r < 0.1 && r >= 0.03 ) {\n this.startConversation()\n } else if (r < 0.03 ) {\n this.soliloquize()\n } else if (this.character.isPlayer) {\n this.fight()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7487},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7488},"__LivelyClassName__":"lively.Closure"},"7486":{"this":{"__isSmartRef__":true,"id":7158}},"7487":{"timestamp":{"__isSmartRef__":true,"id":4398},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4395},"declaredObject":""},"7488":{"originalFunc":{"__isSmartRef__":true,"id":4395}},"7489":{"varMapping":{"__isSmartRef__":true,"id":7490},"source":"function map() {\n return this.owner && this.owner.isMap ? this.owner : undefined\n}","funcProperties":{"__isSmartRef__":true,"id":7491},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7492},"__LivelyClassName__":"lively.Closure"},"7490":{"this":{"__isSmartRef__":true,"id":7158}},"7491":{"timestamp":{"__isSmartRef__":true,"id":4402},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4399},"declaredObject":""},"7492":{"originalFunc":{"__isSmartRef__":true,"id":4399}},"7493":{"varMapping":{"__isSmartRef__":true,"id":7494},"source":"function game() {\n return this.map() ? this.map().game() : undefined\n}","funcProperties":{"__isSmartRef__":true,"id":7495},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7496},"__LivelyClassName__":"lively.Closure"},"7494":{"this":{"__isSmartRef__":true,"id":7158}},"7495":{"timestamp":{"__isSmartRef__":true,"id":4406},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4403},"declaredObject":""},"7496":{"originalFunc":{"__isSmartRef__":true,"id":4403}},"7497":{"varMapping":{"__isSmartRef__":true,"id":7498},"source":"function setup() {\n this.becomeRandomCharacter()\n this.animate()\n}","funcProperties":{"__isSmartRef__":true,"id":7499},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7500},"__LivelyClassName__":"lively.Closure"},"7498":{"this":{"__isSmartRef__":true,"id":7158}},"7499":{"timestamp":{"__isSmartRef__":true,"id":4410},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4407},"declaredObject":""},"7500":{"originalFunc":{"__isSmartRef__":true,"id":4407}},"7501":{"varMapping":{"__isSmartRef__":true,"id":7502},"source":"function copyToPartsBinWithUserRequest() {\n this.reset()\n $super()\n}","funcProperties":{"__isSmartRef__":true,"id":7507},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7508},"__LivelyClassName__":"lively.Closure"},"7502":{"this":{"__isSmartRef__":true,"id":7158},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7503}},"7503":{"$super":{"__isSmartRef__":true,"id":7504}},"7504":{"varMapping":{"__isSmartRef__":true,"id":7505},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7506},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7505":{"obj":{"__isSmartRef__":true,"id":7158},"name":"copyToPartsBinWithUserRequest"},"7506":{},"7507":{"timestamp":{"__isSmartRef__":true,"id":4418},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4411},"declaredObject":""},"7508":{"originalFunc":{"__isSmartRef__":true,"id":4411}},"7509":{"varMapping":{"__isSmartRef__":true,"id":7510},"source":"function startConversation() {\n this.isBusy = true\n var persons = []\n this.currentTile().neighbours().each(function(tile) {\n persons.pushAll(tile.characters())\n })\n persons = persons.select(function(each) { return !each.isBusy })\n if (persons.length > 0) {\n this.startConversationWith(persons[Math.floor(Math.random()*persons.length)])\n } else {\n this.isBusy = false\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7511},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7512},"__LivelyClassName__":"lively.Closure"},"7510":{"this":{"__isSmartRef__":true,"id":7158}},"7511":{"timestamp":{"__isSmartRef__":true,"id":4422},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4419},"declaredObject":""},"7512":{"originalFunc":{"__isSmartRef__":true,"id":4419}},"7513":{"varMapping":{"__isSmartRef__":true,"id":7514},"source":"function startConversationWith(character) {\n // I serve as the \"conversation host\" while the other character remains passive\n // The other character is controlled by me\n this.conversationScript = this.startStepping(4000, \"conversation\", {other: character})\n}","funcProperties":{"__isSmartRef__":true,"id":7515},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7516},"__LivelyClassName__":"lively.Closure"},"7514":{"this":{"__isSmartRef__":true,"id":7158}},"7515":{"timestamp":{"__isSmartRef__":true,"id":4426},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4423},"declaredObject":""},"7516":{"originalFunc":{"__isSmartRef__":true,"id":4423}},"7517":{"varMapping":{"__isSmartRef__":true,"id":7518},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // full copy for death animation and life bar\n copy.lifeBar = this.lifeBar.copy()\n copy.lifeBar.character = copy\n copy.addMorph(copy.lifeBar)\n copy.deathAnimation = this.deathAnimation.copy()\n copy.deathAnimation.character = copy\n copy.addMorph(copy.deathAnimation)\n\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":7519},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7520},"__LivelyClassName__":"lively.Closure"},"7518":{"this":{"__isSmartRef__":true,"id":7158}},"7519":{"timestamp":{"__isSmartRef__":true,"id":4430},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4427},"declaredObject":""},"7520":{"originalFunc":{"__isSmartRef__":true,"id":4427}},"7521":{"varMapping":{"__isSmartRef__":true,"id":7522},"source":"function conversation(args) {\n var other = args.other, a, b, stopConversation\n if (this.conversationTurn) {\n a = this; b = other\n } else {\n a = other; b = this\n }\n [a,b].invoke(\"hideTextBubble\")\n if (this.lastAnswer == null) {\n this.conversationScript.stop()\n this.lastAnswer = a.answer(undefined, b, true)\n if (this.lastAnswer) { a.say(this.lastAnswer) }\n var that = this\n setTimeout(function() {\n a.hideTextBubble()\n that.lastAnswer = b.answer(that.lastAnswer, a, true)\n if (that.lastAnswer) { b.say(that.lastAnswer) }\n a.isBusy = false\n b.isBusy = false\n }, 4000)\n }\n this.lastAnswer = a.answer(this.lastAnswer, b, false)\n if (this.lastAnswer) { a.say(this.lastAnswer) }\n this.conversationTurn = !this.conversationTurn\n}","funcProperties":{"__isSmartRef__":true,"id":7523},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7524},"__LivelyClassName__":"lively.Closure"},"7522":{"this":{"__isSmartRef__":true,"id":7158}},"7523":{"timestamp":{"__isSmartRef__":true,"id":4434},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4431},"declaredObject":""},"7524":{"originalFunc":{"__isSmartRef__":true,"id":4431}},"7525":{"varMapping":{"__isSmartRef__":true,"id":7526},"source":"function answer(lastSaid, other, sayGoodbye) {\n // either return a string or null to indicate that you want to stop the conversation\n // when sayGoodbye-flag is set, this is the last answer-call for this conversation\n var type = this.characterType()\n if ( type && type.answer ) {\n return type.answer(lastSaid, other, sayGoodbye)\n } else {\n if (sayGoodbye) {\n return \"Goodbye!\"\n } else {\n if ( Math.random() > 0.2 ) {\n return this.chatBot().answerTo(lastSaid);\n }\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":7527},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7528},"__LivelyClassName__":"lively.Closure"},"7526":{"this":{"__isSmartRef__":true,"id":7158}},"7527":{"timestamp":{"__isSmartRef__":true,"id":4438},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4435},"declaredObject":""},"7528":{"originalFunc":{"__isSmartRef__":true,"id":4435}},"7529":{"varMapping":{"__isSmartRef__":true,"id":7530},"source":"function hideTextBubble() {\n if (this.textBubble) {\n this.textBubble.hide()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7531},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7532},"__LivelyClassName__":"lively.Closure"},"7530":{"this":{"__isSmartRef__":true,"id":7158}},"7531":{"timestamp":{"__isSmartRef__":true,"id":4442},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4439},"declaredObject":""},"7532":{"originalFunc":{"__isSmartRef__":true,"id":4439}},"7533":{"varMapping":{"__isSmartRef__":true,"id":7534},"source":"function aStar(goal) {\n var that = this,\n start = this.currentTile(),\n closedset = [],\n openset = [start], // The set of tentative nodes to be evaluated\n came_from = {}, // The map of navigated nodes.\n g_score = {}, // general cost along best known path (as the bird flies)\n h_score = {}, // heuristic cost - used to drive parameters\n f_score = {} // sum of heuristic and general cost\n\n g_score[start] = 0 // Cost from start along best known path.\n h_score[start] = this.aStarHeuristicCostEstimate(start, goal)\n f_score[start] = g_score[start] + h_score[start] // Estimated total cost from start to goal\n\n while (openset.length > 0) { // Search until we have nothing more to search\n // Pick the next best scored candidate\n var current = openset.sortBy(function (e) { return f_score[e] }).first()\n\n if (current === goal) { // we found a path, construct the whole path and return\n var path = [],\n current_node = current\n while (came_from[current_node]) {\n path.push(current_node)\n current_node = came_from[current_node]\n }\n path.push(current_node)\n return path.reverse()\n }\n\n // We haven't found a path, mark the candidate as checked\n openset = openset.without(current)\n closedset.push(current)\n\n // check all neighbours\n current.neighboursReachableFromHere().each(function (neighbour) {\n if (!closedset.member(neighbour)) {\n // this neighbour can be walked upon and we haven't checked it before\n // assign it a score via the current path\n var tentative_g_score = g_score[current] + current.distanceTo(neighbour).r(),\n tentative_is_better = true\n\n if (!openset.member(neighbour)) {\n // we haven't given this a score before, give it a heuristic score\n openset.push(neighbour)\n h_score[neighbour] = that.aStarHeuristicCostEstimate(neighbour, goal)\n } else if (tentative_g_score >= g_score[neighbour]) {\n // we have given a better score before, this one can be dismissed\n tentative_is_better = false\n }\n\n if (tentative_is_better === true) {\n // the new score we found for this neighbour is better than the previous\n // set the new score and the new path\n came_from[neighbour] = current\n g_score[neighbour] = tentative_g_score\n f_score[neighbour] = g_score[neighbour] + h_score[neighbour]\n }\n }\n })\n }\n return []\n}","funcProperties":{"__isSmartRef__":true,"id":7535},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7536},"__LivelyClassName__":"lively.Closure"},"7534":{"this":{"__isSmartRef__":true,"id":7158}},"7535":{"timestamp":{"__isSmartRef__":true,"id":4446},"user":"timfelgentreff","tags":["pathfinding"],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4443},"declaredObject":""},"7536":{"originalFunc":{"__isSmartRef__":true,"id":4443}},"7537":{"varMapping":{"__isSmartRef__":true,"id":7538},"source":"function aStarHeuristicCostEstimate(from, to) {\n // this should be monotonic and consistent\n // see comment to: http://en.wikipedia.org/wiki/A*_search_algorithm#Pseudocode\n return 0\n}","funcProperties":{"__isSmartRef__":true,"id":7539},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7540},"__LivelyClassName__":"lively.Closure"},"7538":{"this":{"__isSmartRef__":true,"id":7158}},"7539":{"timestamp":{"__isSmartRef__":true,"id":4450},"user":"timfelgentreff","tags":["pathfinding"],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4447},"declaredObject":""},"7540":{"originalFunc":{"__isSmartRef__":true,"id":4447}},"7541":{"varMapping":{"__isSmartRef__":true,"id":7542},"source":"function aStarWalkPath(path) {\n var minPositive = function (a, b) {\n a = Math.abs(a), b = Math.abs(b)\n return a ? (b ? Math.min(a, b) : a) : b\n }\n\n var finalTile = path.last(),\n nextTile = path.first()\n\n // this.setPosition(pt(0,0))\n if (this.getPosition().equals(finalTile.getPosition())) {\n if (this.walkScript) { this.walkScript.stop() }\n this.setDirection(pt(0,1))\n this.currentTile().enterTile(this)\n } else {\n this.setDirectionToTile(nextTile)\n var directionVector = this.getPosition().subPt(nextTile.getPosition()),\n maxSpeed = minPositive(directionVector.x, directionVector.y),\n speed = Math.min(maxSpeed, this.getCurrentSpeed())\n this.moveBy(this.getDirection().scaleBy(speed))\n if (path.length > 1) { // remove all but the final tile,\n // we need that one for positioning\n var idx = path.indexOf(this.currentTile())\n if (idx > -1) {\n path.removeAt(idx)\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7543},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7544},"__LivelyClassName__":"lively.Closure"},"7542":{"this":{"__isSmartRef__":true,"id":7158}},"7543":{"timestamp":{"__isSmartRef__":true,"id":4454},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4451},"declaredObject":""},"7544":{"originalFunc":{"__isSmartRef__":true,"id":4451}},"7545":{"varMapping":{"__isSmartRef__":true,"id":7546},"source":"function chatBot() {\n if ( !this._chatbot ) { this._chatbot = new ChatBot() }\n return this._chatbot\n}","funcProperties":{"__isSmartRef__":true,"id":7547},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7548},"__LivelyClassName__":"lively.Closure"},"7546":{"this":{"__isSmartRef__":true,"id":7158}},"7547":{"timestamp":{"__isSmartRef__":true,"id":4458},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4455},"declaredObject":""},"7548":{"originalFunc":{"__isSmartRef__":true,"id":4455}},"7549":{"varMapping":{"__isSmartRef__":true,"id":7550},"source":"function getHit() {\n this.lifeBar.hit()\n}","funcProperties":{"__isSmartRef__":true,"id":7551},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7552},"__LivelyClassName__":"lively.Closure"},"7550":{"this":{"__isSmartRef__":true,"id":7158}},"7551":{"timestamp":{"__isSmartRef__":true,"id":4462},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4459},"declaredObject":""},"7552":{"originalFunc":{"__isSmartRef__":true,"id":4459}},"7553":{"varMapping":{"__isSmartRef__":true,"id":7554},"source":"function becomePlayer() {\n if (this.character) {\n this.character.remove()\n this.character = null\n }\n \n this.character = this.toolbox(\"Player\")\n if (this.character) {\n this.character.setExtent(this.character.getExtent().scaleBy(1.2))\n this.character.setPosition(pt(6, -5))\n this.addMorph(this.character)\n this.character.disableEvents()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7555},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7556},"__LivelyClassName__":"lively.Closure"},"7554":{"this":{"__isSmartRef__":true,"id":7158}},"7555":{"timestamp":{"__isSmartRef__":true,"id":4466},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4463},"declaredObject":""},"7556":{"originalFunc":{"__isSmartRef__":true,"id":4463}},"7557":{"varMapping":{"__isSmartRef__":true,"id":7558},"source":"function fight() {\n this.isBusy = true\n var persons = []\n this.currentTile().neighbours().each(function(tile) {\n persons.pushAll(tile.characters())\n })\n persons = persons.select(function(each) { return !each.isBusy })\n if (persons.length > 0) {\n var personForFight = persons[Math.floor(Math.random()*persons.length)]\n personForFight.isBusy = true\n if (Math.round(Math.random()) === 0) {\n this.executeFightTurnAsking(this, personForFight)\n } else {\n this.executeFightTurnAsking(personForFight, this)\n }\n } else {\n this.isBusy = false\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7559},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7560},"__LivelyClassName__":"lively.Closure"},"7558":{"this":{"__isSmartRef__":true,"id":7158}},"7559":{"timestamp":{"__isSmartRef__":true,"id":4470},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4467},"declaredObject":""},"7560":{"originalFunc":{"__isSmartRef__":true,"id":4467}},"7561":{"varMapping":{"__isSmartRef__":true,"id":7562},"source":"function fightPhrases() {\n return {\"This is the END for you, you gutter-crawling cur!\": \"And I've got a little TIP for you, get the POINT?\",\n\t\"Soon you'll be wearing my sword like a shish kebab!\": \"First you better stop waiving it like a feather-duster.\",\n\t\"My handkerchief will wipe up your blood!\": \"So you got that job as janitor, after all.\",\n\t\"People fall at my feet when they see me coming.\": \"Even BEFORE they smell your breath?\",\n\t\"I once owned a dog that was smarter then you.\": \"He must have taught you everything you know.\",\n\t\"You make me want to puke.\": \"You make me think somebody already did.\",\n\t\"Nobody's ever drawn blood from me and nobody ever will.\": \"You run THAT fast?\",\n\t\"You fight like a dairy farmer.\": \"How appropriate. You fight like a cow.\",\n\t\"I got this scar on my face during a mighty struggle!\": \"I hope now you've learned to stop picking your nose.\",\n\t\"Have you stopped wearing diapers yet?\": \"Why, did you want to borrow one?\",\n\t\"I've heard you were a contemptible sneak.\": \"Too bad no one's ever heard of YOU at all.\",\n\t\"You're no match for my brains, you poor fool.\": \"I'd be in real trouble if you ever used them.\",\n\t\"You have the manners of a beggar.\": \"I wanted to make sure you'd feel comfortable with me.\",\n\t\"I'm not going to take your insolence sitting down!\": \"Your hemorrhoids are flaring up again, eh?\",\n\t\"There are no words for how disgusting you are.\": \"Yes there are. You just never learned them.\",\n\t\"I've spoken with apes more polite then you.\": \"I'm glad to hear you attended your family reunion. \",\n\t\"I've got a long, sharp lesson for you you to learn today.\": \"And I've got a little TIP for you. Get the POINT?\",\n\t\"My tongue is sharper then any sword.\": \"First you better stop waving it like a feather-duster.\",\n\t\"My name is feared in every dirty corner of this island!\": \"So you got that job as janitor, after all.\",\n\t\"My wisest enemies run away at the first sight of me!\": \"Even BEFORE they smell your breath?\",\n\t\"Only once have I met such a coward!\": \"He must have taught you everything you know.\",\n\t\"If your brother's like you, better to marry a pig.\": \"You make me think somebody already did.\",\n\t\"No one will ever catch ME fighting as badly as you do.\": \"You run THAT fast?\",\n\t\"I will milk every drop of blood from your body!\": \"How appropriate. You fight like a cow.\",\n\t\"My last fight ended with my hands covered with blood.\": \"I hope now you've learned to stop picking your nose.\",\n\t\"I hope you have a boat ready for a quick escape.\": \"Why, did you want to borrow one?\",\n\t\"My sword is famous all over the Caribbean!\": \"Too bad no one's ever heard of YOU at all.\",\n\t\"I've got the courage and skill of a master swordsman!\": \"I'd be in real trouble if you ever used them.\",\n\t\"Every word you say to me is stupid.\": \"I wanted to make sure you'd feel comfortable with me.\",\n\t\"You are a pain in the backside, sir!\": \"Your hemorrhoids are flaring up again, eh?\",\n\t\"There are no clever moves that can help you now.\": \"Yes there are. You just never learned them.\",\n\t\"Now I know what filth and stupidity really are.\": \"I'm glad to hear you attended your family reunion.\",\n\t\"I usually see people like you passed-out on tavern floors.\": \"Even BEFORE they smell your breath? \",\n\t\"My attacks have left entire islands depopulated!\": \"With your breath, I'm sure they all suffocated.\",\n\t\"You have the sex appeal of a shar-pei!\": \"I look that much like your fiancée?\",\n\t\"When I'm done, your body will be rotted and putrefied!\": \"Then killing you must be justifiable fungicide.\",\n\t\"Your looks would make pigs nauseated!\": \"If you don't count all the ones you've dated.\",\n\t\"Your lips look like they belong on the catch of the day!\": \"When I'm done with you, you'll be a boneless filet.\",\n\t\"I give you a choice. You can be gutted, or decapitated!\": \"With you around, I'd rather be fumigated.\",\n\t\"Never before have I faced someone so sissified!\": \"Is that your face? I thought it was your backside.\",\n\t\"You're a disgrace to your species, you're so undignified!\": \"At least mine can be identified.\",\n\t\"Nothing can stop me from blowing you away!\": \"I could, if you would use some breath spray.\",\n\t\"I have never lost a melee!\": \"You would have, but you were always running away.\",\n\t\"Your mother wears a toupee!\": \"Oh, that is so cliché.\",\n\t\"My skills with a sword are highly venerated!\": \"Too bad they're all fabricated.\",\n\t\"Your stench would make an outhouse cleaner irritated!\": \"Then perhaps you should switch to decaffeinated.\",\n\t\"I can't tell which of my traits have you the most intimidated!\": \"Your odor alone makes me aggravated, agitated, and infuriated\",\n\t\"Nothing on this earth can save your sorry hide!\": \"The only way you'll be preserved is in formaldehyde\",\n\t\"You'll find I'm dogged and relentless to my prey!\": \"Then be a good dog, Sit! Stay! \",\n\t\"Every enemy I have met, I've annihilated!\": \"With your breath, I'm sure they all suffocated.\",\n\t\"You're as repulsive as a monkey in a negligee!\": \"I look that much like your fiancée?\",\n\t\"Killing you would be justifiable homicide!\": \"Then killing you must be justifiable fungicide.\",\n\t\"You're the ugliest monster ever created!\": \"If you don't count all the ones you've dated.\",\n\t\"I'll skewer you like a sow at a buffet!\": \"When I'm done with you, you'll be a boneless filet.\",\n\t\"Would you like to be buried, or cremated?\": \"With you around, I'd rather be fumigated.\",\n\t\"Coming face to face with me must leave you petrified!\": \"Is that your face? I thought it was your backside.\",\n\t\"When your father first saw you, he must have been mortified!\": \"At least mine can be identified.\",\n\t\"You can't match my witty repartee!\": \"I could, if you would use some breath spray.\",\n\t\"I have never seen such clumsy swordplay!\": \"You would have, but you were always running away.\",\n\t\"En Garde! Touché!\": \"Oh, that is so cliché.\",\n\t\"Throughout the Caribbean, my great deeds are celebrated!\": \"Too bad they're all fabricated.\",\n\t\"I can't rest 'til' you've been exterminated!\": \"Then perhaps you should switch to decaffeinated.\",\n\t\"I'll leave you devastated, mutilated, and perforated!\": \"Your odor alone makes me aggravated, agitated, and infuriated\",\n\t\"Heaven preserve me! You look like something that's died!\": \"The only way you'll be preserved is in formaldehyde\",\n\t\"I'll hound you night and day!\": \"Then be a good dog, Sit! Stay! \",\n\t\"Today, by myself, twelve people I've beaten.\": \"From the size of your gut I'd guess they were eaten.\",\n\t\"I've got muscles in places you've never even heard of.\": \"It's too bad none of them are in your arms.\",\n\t\"Give up now, or I'll crush you like a grape!\": \"I would if it would stop your WINE-ING.\",\n\t\"My ninety-eight year old grandmother has bigger arms than you!\": \"Yeah, but we both got better bladder control than you do.\",\n\t\"I'm going to put your arm in a sling!\": \"Why, ya studying to be a nurse?\",\n\t\"My stupefying strength will shatter your ulna into a million pieces!\": \"I'm surprised you can count that high!\",\n\t\"Hey, look over there!\": \"Yeah, yeah I know: it's a three headed monkey.\",\n\t\"Your knuckles I'll grind to a splintery paste.\": \"I thought that the been dip had a strange taste.\",\n\t\"Your arms are no bigger than fleas that I've met!\": \"So THAT'S why you're scratching. I'd go see a vet.\",\n\t\"People consider my fists lethal weapons!\": \"Sadly, your breath should be equally reckoned.\",\n\t\"Only once have I met such a coward!\": \"He must have taught you everything you know.\",\n\t\"You're the ugliest creature I've ever seen in my life.\": \"I'm shocked that you've never gazed at your wife.\",\n\t\"My forearms have been mistaken for tree trunks!\": \"An over-the-counter defoliant could help with that problem.\",\n\t\"I've out-wrestled octopi with these arms!\": \"I'm sure that spineless creatures everywhere are humbled by your might.\",\n\t\"Do I see quivers of agony dance on your lip?\": \"It's laughter that's caused by your feathery grip.\"}\n}","funcProperties":{"__isSmartRef__":true,"id":7563},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7564},"__LivelyClassName__":"lively.Closure"},"7562":{"this":{"__isSmartRef__":true,"id":7158}},"7563":{"timestamp":{"__isSmartRef__":true,"id":4474},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4471},"declaredObject":""},"7564":{"originalFunc":{"__isSmartRef__":true,"id":4471}},"7565":{"varMapping":{"__isSmartRef__":true,"id":7566},"source":"function randomQuestions(count) {\n if (!count) { count = 8 }\n\n var choices = [],\n questions = Properties.own(this.fightPhrases())\n\n for (var i = 0; i < count; i++) {\n var idx = Math.round(Math.random() * questions.length)\n choices.push(questions[idx])\n questions.removeAt(idx)\n }\n\n return choices\n}","funcProperties":{"__isSmartRef__":true,"id":7567},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7568},"__LivelyClassName__":"lively.Closure"},"7566":{"this":{"__isSmartRef__":true,"id":7158}},"7567":{"timestamp":{"__isSmartRef__":true,"id":4478},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4475},"declaredObject":""},"7568":{"originalFunc":{"__isSmartRef__":true,"id":4475}},"7569":{"varMapping":{"__isSmartRef__":true,"id":7570},"source":"function randomAnswersFor(question, count) {\n if (!count) { count = 8 }\n\n var choices = [],\n phrases = this.fightPhrases(),\n answers = Properties.own(phrases).collect(function (q) {\n return phrases[q]\n })\n\n choices.push(phrases[question])\n answers.removeAt(Properties.own(phrases).indexOf(question))\n\n for (var i = 1; i < count; i++) {\n var idx = Math.round(Math.random() * answers.length)\n choices.push(answers[idx])\n answers.removeAt(idx)\n }\n\n return choices.sortBy(function (ea) { return Math.random() })\n}","funcProperties":{"__isSmartRef__":true,"id":7571},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7572},"__LivelyClassName__":"lively.Closure"},"7570":{"this":{"__isSmartRef__":true,"id":7158}},"7571":{"timestamp":{"__isSmartRef__":true,"id":4482},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4479},"declaredObject":""},"7572":{"originalFunc":{"__isSmartRef__":true,"id":4479}},"7573":{"varMapping":{"__isSmartRef__":true,"id":7574},"source":"function executeFightTurnAsking(asker, responder) {\n var menu = this.toolbox(\"FightMenu\"),\n worldCenter = rect(pt(0, 0), pt(window.innerWidth, window.innerHeight)).center(),\n talkTimeout = 4000,\n nextTurnCallback = function (answer, correctAnswer) {\n if (correctAnswer === answer) {\n // switch turns\n asker.executeFightTurnAsking(responder, asker)\n } else {\n responder.getHit()\n if (!responder.isDead()) {\n asker.executeFightTurnAsking(asker, responder)\n }\n }\n }\n\n // Check if the last looser is dead, first\n if (responder.isDead()) {\n responder.isBusy = false\n asker.isBusy = false\n asker.heal()\n asker.select()\n return\n }\n \n // Fight\n if (asker.character.isPlayer) {\n menu.setHeader(\"Choose your insult\")\n menu.setList(asker.randomQuestions(8), function (str) {\n menu.remove()\n asker.say(str)\n setTimeout(function () {\n // the npc has a 1/3 chance of answering right\n var response = responder.randomAnswersFor(str, 3)[Math.round(Math.random() * 2)],\n correctAnswer = responder.randomAnswersFor(str, 1)[0]\n responder.say(response)\n setTimeout(function () {\n nextTurnCallback(response, correctAnswer)\n }, talkTimeout)\n }, talkTimeout)\n })\n asker.map().addMorph(menu)\n menu.centerAt(worldCenter)\n } else {\n var question = asker.randomQuestions(1)[0],\n answer = asker.randomAnswersFor(question, 1)[0]\n asker.say(question)\n setTimeout(function () {\n menu.setHeader(\"What do you reply to '\" + question + \"'?\")\n menu.setList(responder.randomAnswersFor(question, 7), function (str) {\n menu.remove()\n responder.say(str)\n setTimeout(function () {\n nextTurnCallback(str, answer)\n }, talkTimeout)\n })\n asker.map().addMorph(menu)\n menu.centerAt(worldCenter)\n }, talkTimeout)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7575},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7574":{"this":{"__isSmartRef__":true,"id":7158}},"7575":{"timestamp":{"__isSmartRef__":true,"id":7576},"user":"lauritz","tags":[]},"7576":{"isSerializedDate":true,"string":"Mon Jul 30 2012 12:48:41 GMT+0200 (CEST)"},"7577":{"varMapping":{"__isSmartRef__":true,"id":7578},"source":"function heal() {\n this.lifeBar.heal()\n}","funcProperties":{"__isSmartRef__":true,"id":7579},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7580},"__LivelyClassName__":"lively.Closure"},"7578":{"this":{"__isSmartRef__":true,"id":7158}},"7579":{"timestamp":{"__isSmartRef__":true,"id":4490},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4487},"declaredObject":""},"7580":{"originalFunc":{"__isSmartRef__":true,"id":4487}},"7581":{"varMapping":{"__isSmartRef__":true,"id":7582},"source":"function isDead() {\n return this.lifeBar.isDead()\n}","funcProperties":{"__isSmartRef__":true,"id":7583},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7584},"__LivelyClassName__":"lively.Closure"},"7582":{"this":{"__isSmartRef__":true,"id":7158}},"7583":{"timestamp":{"__isSmartRef__":true,"id":4494},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4491},"declaredObject":""},"7584":{"originalFunc":{"__isSmartRef__":true,"id":4491}},"7585":{"setDevStyle":{"__isSmartRef__":true,"id":7586},"setNormalStyle":{"__isSmartRef__":true,"id":7590},"tileSize":{"__isSmartRef__":true,"id":7594},"become":{"__isSmartRef__":true,"id":7598},"onMouseDown":{"__isSmartRef__":true,"id":7602},"setGridPosition":{"__isSmartRef__":true,"id":7610},"toolbox":{"__isSmartRef__":true,"id":7614},"distanceTo":{"__isSmartRef__":true,"id":7618},"tileWasDropped":{"__isSmartRef__":true,"id":7622},"isObstacle":{"__isSmartRef__":true,"id":7626},"neighboursInDirection":{"__isSmartRef__":true,"id":7630},"neighbours":{"__isSmartRef__":true,"id":7634},"zIndex":{"__isSmartRef__":true,"id":7638},"obstacles":{"__isSmartRef__":true,"id":7642},"addObstacle":{"__isSmartRef__":true,"id":7646},"removeObstacle":{"__isSmartRef__":true,"id":7650},"isTile":{"__isSmartRef__":true,"id":7654},"neighbourAt":{"__isSmartRef__":true,"id":7658},"map":{"__isSmartRef__":true,"id":7662},"game":{"__isSmartRef__":true,"id":7666},"reset":{"__isSmartRef__":true,"id":7670},"shallowCopy":{"__isSmartRef__":true,"id":7674},"characters":{"__isSmartRef__":true,"id":7678},"enterTile":{"__isSmartRef__":true,"id":7682},"leaveTile":{"__isSmartRef__":true,"id":7686},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":7690}},"7586":{"varMapping":{"__isSmartRef__":true,"id":7587},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":7588},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7589},"__LivelyClassName__":"lively.Closure"},"7587":{"this":{"__isSmartRef__":true,"id":6755}},"7588":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"7589":{"originalFunc":{"__isSmartRef__":true,"id":892}},"7590":{"varMapping":{"__isSmartRef__":true,"id":7591},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":7592},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7593},"__LivelyClassName__":"lively.Closure"},"7591":{"this":{"__isSmartRef__":true,"id":6755}},"7592":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"7593":{"originalFunc":{"__isSmartRef__":true,"id":911}},"7594":{"varMapping":{"__isSmartRef__":true,"id":7595},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":7596},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7597},"__LivelyClassName__":"lively.Closure"},"7595":{"this":{"__isSmartRef__":true,"id":6755}},"7596":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"7597":{"originalFunc":{"__isSmartRef__":true,"id":915}},"7598":{"varMapping":{"__isSmartRef__":true,"id":7599},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7600},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7601},"__LivelyClassName__":"lively.Closure"},"7599":{"this":{"__isSmartRef__":true,"id":6755}},"7600":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"7601":{"originalFunc":{"__isSmartRef__":true,"id":919}},"7602":{"varMapping":{"__isSmartRef__":true,"id":7603},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7608},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7609},"__LivelyClassName__":"lively.Closure"},"7603":{"this":{"__isSmartRef__":true,"id":6755},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7604}},"7604":{"$super":{"__isSmartRef__":true,"id":7605}},"7605":{"varMapping":{"__isSmartRef__":true,"id":7606},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7607},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7606":{"obj":{"__isSmartRef__":true,"id":6755},"name":"onMouseDown"},"7607":{},"7608":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"7609":{"originalFunc":{"__isSmartRef__":true,"id":923}},"7610":{"varMapping":{"__isSmartRef__":true,"id":7611},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":7612},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7613},"__LivelyClassName__":"lively.Closure"},"7611":{"this":{"__isSmartRef__":true,"id":6755}},"7612":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"7613":{"originalFunc":{"__isSmartRef__":true,"id":931}},"7614":{"varMapping":{"__isSmartRef__":true,"id":7615},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":7616},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7617},"__LivelyClassName__":"lively.Closure"},"7615":{"this":{"__isSmartRef__":true,"id":6755}},"7616":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"7617":{"originalFunc":{"__isSmartRef__":true,"id":935}},"7618":{"varMapping":{"__isSmartRef__":true,"id":7619},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":7620},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7621},"__LivelyClassName__":"lively.Closure"},"7619":{"this":{"__isSmartRef__":true,"id":6755}},"7620":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"7621":{"originalFunc":{"__isSmartRef__":true,"id":939}},"7622":{"varMapping":{"__isSmartRef__":true,"id":7623},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":7624},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7625},"__LivelyClassName__":"lively.Closure"},"7623":{"this":{"__isSmartRef__":true,"id":6755}},"7624":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"7625":{"originalFunc":{"__isSmartRef__":true,"id":943}},"7626":{"varMapping":{"__isSmartRef__":true,"id":7627},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":7628},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7629},"__LivelyClassName__":"lively.Closure"},"7627":{"this":{"__isSmartRef__":true,"id":6755}},"7628":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"7629":{"originalFunc":{"__isSmartRef__":true,"id":947}},"7630":{"varMapping":{"__isSmartRef__":true,"id":7631},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":7632},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7633},"__LivelyClassName__":"lively.Closure"},"7631":{"this":{"__isSmartRef__":true,"id":6755}},"7632":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"7633":{"originalFunc":{"__isSmartRef__":true,"id":951}},"7634":{"varMapping":{"__isSmartRef__":true,"id":7635},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":7636},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7637},"__LivelyClassName__":"lively.Closure"},"7635":{"this":{"__isSmartRef__":true,"id":6755}},"7636":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"7637":{"originalFunc":{"__isSmartRef__":true,"id":955}},"7638":{"varMapping":{"__isSmartRef__":true,"id":7639},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":7640},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7641},"__LivelyClassName__":"lively.Closure"},"7639":{"this":{"__isSmartRef__":true,"id":6755}},"7640":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"7641":{"originalFunc":{"__isSmartRef__":true,"id":959}},"7642":{"varMapping":{"__isSmartRef__":true,"id":7643},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":7644},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7645},"__LivelyClassName__":"lively.Closure"},"7643":{"this":{"__isSmartRef__":true,"id":6755}},"7644":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"7645":{"originalFunc":{"__isSmartRef__":true,"id":963}},"7646":{"varMapping":{"__isSmartRef__":true,"id":7647},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7648},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7649},"__LivelyClassName__":"lively.Closure"},"7647":{"this":{"__isSmartRef__":true,"id":6755}},"7648":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"7649":{"originalFunc":{"__isSmartRef__":true,"id":967}},"7650":{"varMapping":{"__isSmartRef__":true,"id":7651},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7652},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7653},"__LivelyClassName__":"lively.Closure"},"7651":{"this":{"__isSmartRef__":true,"id":6755}},"7652":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"7653":{"originalFunc":{"__isSmartRef__":true,"id":971}},"7654":{"varMapping":{"__isSmartRef__":true,"id":7655},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":7656},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7657},"__LivelyClassName__":"lively.Closure"},"7655":{"this":{"__isSmartRef__":true,"id":6755}},"7656":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"7657":{"originalFunc":{"__isSmartRef__":true,"id":975}},"7658":{"varMapping":{"__isSmartRef__":true,"id":7659},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":7660},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7661},"__LivelyClassName__":"lively.Closure"},"7659":{"this":{"__isSmartRef__":true,"id":6755}},"7660":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"7661":{"originalFunc":{"__isSmartRef__":true,"id":979}},"7662":{"varMapping":{"__isSmartRef__":true,"id":7663},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":7664},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7665},"__LivelyClassName__":"lively.Closure"},"7663":{"this":{"__isSmartRef__":true,"id":6755}},"7664":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"7665":{"originalFunc":{"__isSmartRef__":true,"id":983}},"7666":{"varMapping":{"__isSmartRef__":true,"id":7667},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":7668},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7669},"__LivelyClassName__":"lively.Closure"},"7667":{"this":{"__isSmartRef__":true,"id":6755}},"7668":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"7669":{"originalFunc":{"__isSmartRef__":true,"id":987}},"7670":{"varMapping":{"__isSmartRef__":true,"id":7671},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":7672},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7673},"__LivelyClassName__":"lively.Closure"},"7671":{"this":{"__isSmartRef__":true,"id":6755}},"7672":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"7673":{"originalFunc":{"__isSmartRef__":true,"id":991}},"7674":{"varMapping":{"__isSmartRef__":true,"id":7675},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":7676},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7677},"__LivelyClassName__":"lively.Closure"},"7675":{"this":{"__isSmartRef__":true,"id":6755}},"7676":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"7677":{"originalFunc":{"__isSmartRef__":true,"id":995}},"7678":{"varMapping":{"__isSmartRef__":true,"id":7679},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":7680},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7681},"__LivelyClassName__":"lively.Closure"},"7679":{"this":{"__isSmartRef__":true,"id":6755}},"7680":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"7681":{"originalFunc":{"__isSmartRef__":true,"id":999}},"7682":{"varMapping":{"__isSmartRef__":true,"id":7683},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7684},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7685},"__LivelyClassName__":"lively.Closure"},"7683":{"this":{"__isSmartRef__":true,"id":6755}},"7684":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"7685":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"7686":{"varMapping":{"__isSmartRef__":true,"id":7687},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7688},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7689},"__LivelyClassName__":"lively.Closure"},"7687":{"this":{"__isSmartRef__":true,"id":6755}},"7688":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"7689":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"7690":{"varMapping":{"__isSmartRef__":true,"id":7691},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":7692},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7693},"__LivelyClassName__":"lively.Closure"},"7691":{"this":{"__isSmartRef__":true,"id":6755}},"7692":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"7693":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"7694":{"setDevStyle":{"__isSmartRef__":true,"id":7695},"setNormalStyle":{"__isSmartRef__":true,"id":7699},"tileSize":{"__isSmartRef__":true,"id":7703},"become":{"__isSmartRef__":true,"id":7707},"onMouseDown":{"__isSmartRef__":true,"id":7711},"setGridPosition":{"__isSmartRef__":true,"id":7719},"toolbox":{"__isSmartRef__":true,"id":7723},"distanceTo":{"__isSmartRef__":true,"id":7727},"tileWasDropped":{"__isSmartRef__":true,"id":7731},"isObstacle":{"__isSmartRef__":true,"id":7735},"neighboursInDirection":{"__isSmartRef__":true,"id":7739},"neighbours":{"__isSmartRef__":true,"id":7743},"zIndex":{"__isSmartRef__":true,"id":7747},"obstacles":{"__isSmartRef__":true,"id":7751},"addObstacle":{"__isSmartRef__":true,"id":7755},"removeObstacle":{"__isSmartRef__":true,"id":7759},"isTile":{"__isSmartRef__":true,"id":7763},"neighbourAt":{"__isSmartRef__":true,"id":7767},"map":{"__isSmartRef__":true,"id":7771},"game":{"__isSmartRef__":true,"id":7775},"reset":{"__isSmartRef__":true,"id":7779},"shallowCopy":{"__isSmartRef__":true,"id":7783},"characters":{"__isSmartRef__":true,"id":7787},"enterTile":{"__isSmartRef__":true,"id":7791},"leaveTile":{"__isSmartRef__":true,"id":7795},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":7799}},"7695":{"varMapping":{"__isSmartRef__":true,"id":7696},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":7697},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7698},"__LivelyClassName__":"lively.Closure"},"7696":{"this":{"__isSmartRef__":true,"id":6736}},"7697":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"7698":{"originalFunc":{"__isSmartRef__":true,"id":892}},"7699":{"varMapping":{"__isSmartRef__":true,"id":7700},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":7701},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7702},"__LivelyClassName__":"lively.Closure"},"7700":{"this":{"__isSmartRef__":true,"id":6736}},"7701":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"7702":{"originalFunc":{"__isSmartRef__":true,"id":911}},"7703":{"varMapping":{"__isSmartRef__":true,"id":7704},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":7705},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7706},"__LivelyClassName__":"lively.Closure"},"7704":{"this":{"__isSmartRef__":true,"id":6736}},"7705":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"7706":{"originalFunc":{"__isSmartRef__":true,"id":915}},"7707":{"varMapping":{"__isSmartRef__":true,"id":7708},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7709},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7710},"__LivelyClassName__":"lively.Closure"},"7708":{"this":{"__isSmartRef__":true,"id":6736}},"7709":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"7710":{"originalFunc":{"__isSmartRef__":true,"id":919}},"7711":{"varMapping":{"__isSmartRef__":true,"id":7712},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7717},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7718},"__LivelyClassName__":"lively.Closure"},"7712":{"this":{"__isSmartRef__":true,"id":6736},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7713}},"7713":{"$super":{"__isSmartRef__":true,"id":7714}},"7714":{"varMapping":{"__isSmartRef__":true,"id":7715},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7716},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7715":{"obj":{"__isSmartRef__":true,"id":6736},"name":"onMouseDown"},"7716":{},"7717":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"7718":{"originalFunc":{"__isSmartRef__":true,"id":923}},"7719":{"varMapping":{"__isSmartRef__":true,"id":7720},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":7721},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7722},"__LivelyClassName__":"lively.Closure"},"7720":{"this":{"__isSmartRef__":true,"id":6736}},"7721":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"7722":{"originalFunc":{"__isSmartRef__":true,"id":931}},"7723":{"varMapping":{"__isSmartRef__":true,"id":7724},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":7725},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7726},"__LivelyClassName__":"lively.Closure"},"7724":{"this":{"__isSmartRef__":true,"id":6736}},"7725":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"7726":{"originalFunc":{"__isSmartRef__":true,"id":935}},"7727":{"varMapping":{"__isSmartRef__":true,"id":7728},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":7729},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7730},"__LivelyClassName__":"lively.Closure"},"7728":{"this":{"__isSmartRef__":true,"id":6736}},"7729":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"7730":{"originalFunc":{"__isSmartRef__":true,"id":939}},"7731":{"varMapping":{"__isSmartRef__":true,"id":7732},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":7733},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7734},"__LivelyClassName__":"lively.Closure"},"7732":{"this":{"__isSmartRef__":true,"id":6736}},"7733":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"7734":{"originalFunc":{"__isSmartRef__":true,"id":943}},"7735":{"varMapping":{"__isSmartRef__":true,"id":7736},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":7737},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7738},"__LivelyClassName__":"lively.Closure"},"7736":{"this":{"__isSmartRef__":true,"id":6736}},"7737":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"7738":{"originalFunc":{"__isSmartRef__":true,"id":947}},"7739":{"varMapping":{"__isSmartRef__":true,"id":7740},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":7741},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7742},"__LivelyClassName__":"lively.Closure"},"7740":{"this":{"__isSmartRef__":true,"id":6736}},"7741":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"7742":{"originalFunc":{"__isSmartRef__":true,"id":951}},"7743":{"varMapping":{"__isSmartRef__":true,"id":7744},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":7745},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7746},"__LivelyClassName__":"lively.Closure"},"7744":{"this":{"__isSmartRef__":true,"id":6736}},"7745":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"7746":{"originalFunc":{"__isSmartRef__":true,"id":955}},"7747":{"varMapping":{"__isSmartRef__":true,"id":7748},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":7749},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7750},"__LivelyClassName__":"lively.Closure"},"7748":{"this":{"__isSmartRef__":true,"id":6736}},"7749":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"7750":{"originalFunc":{"__isSmartRef__":true,"id":959}},"7751":{"varMapping":{"__isSmartRef__":true,"id":7752},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":7753},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7754},"__LivelyClassName__":"lively.Closure"},"7752":{"this":{"__isSmartRef__":true,"id":6736}},"7753":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"7754":{"originalFunc":{"__isSmartRef__":true,"id":963}},"7755":{"varMapping":{"__isSmartRef__":true,"id":7756},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7757},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7758},"__LivelyClassName__":"lively.Closure"},"7756":{"this":{"__isSmartRef__":true,"id":6736}},"7757":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"7758":{"originalFunc":{"__isSmartRef__":true,"id":967}},"7759":{"varMapping":{"__isSmartRef__":true,"id":7760},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7761},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7762},"__LivelyClassName__":"lively.Closure"},"7760":{"this":{"__isSmartRef__":true,"id":6736}},"7761":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"7762":{"originalFunc":{"__isSmartRef__":true,"id":971}},"7763":{"varMapping":{"__isSmartRef__":true,"id":7764},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":7765},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7766},"__LivelyClassName__":"lively.Closure"},"7764":{"this":{"__isSmartRef__":true,"id":6736}},"7765":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"7766":{"originalFunc":{"__isSmartRef__":true,"id":975}},"7767":{"varMapping":{"__isSmartRef__":true,"id":7768},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":7769},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7770},"__LivelyClassName__":"lively.Closure"},"7768":{"this":{"__isSmartRef__":true,"id":6736}},"7769":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"7770":{"originalFunc":{"__isSmartRef__":true,"id":979}},"7771":{"varMapping":{"__isSmartRef__":true,"id":7772},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":7773},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7774},"__LivelyClassName__":"lively.Closure"},"7772":{"this":{"__isSmartRef__":true,"id":6736}},"7773":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"7774":{"originalFunc":{"__isSmartRef__":true,"id":983}},"7775":{"varMapping":{"__isSmartRef__":true,"id":7776},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":7777},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7778},"__LivelyClassName__":"lively.Closure"},"7776":{"this":{"__isSmartRef__":true,"id":6736}},"7777":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"7778":{"originalFunc":{"__isSmartRef__":true,"id":987}},"7779":{"varMapping":{"__isSmartRef__":true,"id":7780},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":7781},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7782},"__LivelyClassName__":"lively.Closure"},"7780":{"this":{"__isSmartRef__":true,"id":6736}},"7781":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"7782":{"originalFunc":{"__isSmartRef__":true,"id":991}},"7783":{"varMapping":{"__isSmartRef__":true,"id":7784},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":7785},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7786},"__LivelyClassName__":"lively.Closure"},"7784":{"this":{"__isSmartRef__":true,"id":6736}},"7785":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"7786":{"originalFunc":{"__isSmartRef__":true,"id":995}},"7787":{"varMapping":{"__isSmartRef__":true,"id":7788},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":7789},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7790},"__LivelyClassName__":"lively.Closure"},"7788":{"this":{"__isSmartRef__":true,"id":6736}},"7789":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"7790":{"originalFunc":{"__isSmartRef__":true,"id":999}},"7791":{"varMapping":{"__isSmartRef__":true,"id":7792},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7793},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7794},"__LivelyClassName__":"lively.Closure"},"7792":{"this":{"__isSmartRef__":true,"id":6736}},"7793":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"7794":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"7795":{"varMapping":{"__isSmartRef__":true,"id":7796},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7797},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7798},"__LivelyClassName__":"lively.Closure"},"7796":{"this":{"__isSmartRef__":true,"id":6736}},"7797":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"7798":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"7799":{"varMapping":{"__isSmartRef__":true,"id":7800},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":7801},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7802},"__LivelyClassName__":"lively.Closure"},"7800":{"this":{"__isSmartRef__":true,"id":6736}},"7801":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"7802":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"7803":{"setDevStyle":{"__isSmartRef__":true,"id":7804},"setNormalStyle":{"__isSmartRef__":true,"id":7808},"tileSize":{"__isSmartRef__":true,"id":7812},"become":{"__isSmartRef__":true,"id":7816},"onMouseDown":{"__isSmartRef__":true,"id":7820},"setGridPosition":{"__isSmartRef__":true,"id":7828},"toolbox":{"__isSmartRef__":true,"id":7832},"distanceTo":{"__isSmartRef__":true,"id":7836},"tileWasDropped":{"__isSmartRef__":true,"id":7840},"isObstacle":{"__isSmartRef__":true,"id":7844},"neighboursInDirection":{"__isSmartRef__":true,"id":7848},"neighbours":{"__isSmartRef__":true,"id":7852},"zIndex":{"__isSmartRef__":true,"id":7856},"obstacles":{"__isSmartRef__":true,"id":7860},"addObstacle":{"__isSmartRef__":true,"id":7864},"removeObstacle":{"__isSmartRef__":true,"id":7868},"isTile":{"__isSmartRef__":true,"id":7872},"neighbourAt":{"__isSmartRef__":true,"id":7876},"map":{"__isSmartRef__":true,"id":7880},"game":{"__isSmartRef__":true,"id":7884},"reset":{"__isSmartRef__":true,"id":7888},"shallowCopy":{"__isSmartRef__":true,"id":7892},"characters":{"__isSmartRef__":true,"id":7896},"enterTile":{"__isSmartRef__":true,"id":7900},"leaveTile":{"__isSmartRef__":true,"id":7904},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":7908}},"7804":{"varMapping":{"__isSmartRef__":true,"id":7805},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":7806},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7807},"__LivelyClassName__":"lively.Closure"},"7805":{"this":{"__isSmartRef__":true,"id":6717}},"7806":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"7807":{"originalFunc":{"__isSmartRef__":true,"id":892}},"7808":{"varMapping":{"__isSmartRef__":true,"id":7809},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":7810},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7811},"__LivelyClassName__":"lively.Closure"},"7809":{"this":{"__isSmartRef__":true,"id":6717}},"7810":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"7811":{"originalFunc":{"__isSmartRef__":true,"id":911}},"7812":{"varMapping":{"__isSmartRef__":true,"id":7813},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":7814},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7815},"__LivelyClassName__":"lively.Closure"},"7813":{"this":{"__isSmartRef__":true,"id":6717}},"7814":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"7815":{"originalFunc":{"__isSmartRef__":true,"id":915}},"7816":{"varMapping":{"__isSmartRef__":true,"id":7817},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7818},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7819},"__LivelyClassName__":"lively.Closure"},"7817":{"this":{"__isSmartRef__":true,"id":6717}},"7818":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"7819":{"originalFunc":{"__isSmartRef__":true,"id":919}},"7820":{"varMapping":{"__isSmartRef__":true,"id":7821},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7826},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7827},"__LivelyClassName__":"lively.Closure"},"7821":{"this":{"__isSmartRef__":true,"id":6717},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7822}},"7822":{"$super":{"__isSmartRef__":true,"id":7823}},"7823":{"varMapping":{"__isSmartRef__":true,"id":7824},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7825},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7824":{"obj":{"__isSmartRef__":true,"id":6717},"name":"onMouseDown"},"7825":{},"7826":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"7827":{"originalFunc":{"__isSmartRef__":true,"id":923}},"7828":{"varMapping":{"__isSmartRef__":true,"id":7829},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":7830},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7831},"__LivelyClassName__":"lively.Closure"},"7829":{"this":{"__isSmartRef__":true,"id":6717}},"7830":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"7831":{"originalFunc":{"__isSmartRef__":true,"id":931}},"7832":{"varMapping":{"__isSmartRef__":true,"id":7833},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":7834},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7835},"__LivelyClassName__":"lively.Closure"},"7833":{"this":{"__isSmartRef__":true,"id":6717}},"7834":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"7835":{"originalFunc":{"__isSmartRef__":true,"id":935}},"7836":{"varMapping":{"__isSmartRef__":true,"id":7837},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":7838},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7839},"__LivelyClassName__":"lively.Closure"},"7837":{"this":{"__isSmartRef__":true,"id":6717}},"7838":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"7839":{"originalFunc":{"__isSmartRef__":true,"id":939}},"7840":{"varMapping":{"__isSmartRef__":true,"id":7841},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":7842},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7843},"__LivelyClassName__":"lively.Closure"},"7841":{"this":{"__isSmartRef__":true,"id":6717}},"7842":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"7843":{"originalFunc":{"__isSmartRef__":true,"id":943}},"7844":{"varMapping":{"__isSmartRef__":true,"id":7845},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":7846},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7847},"__LivelyClassName__":"lively.Closure"},"7845":{"this":{"__isSmartRef__":true,"id":6717}},"7846":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"7847":{"originalFunc":{"__isSmartRef__":true,"id":947}},"7848":{"varMapping":{"__isSmartRef__":true,"id":7849},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":7850},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7851},"__LivelyClassName__":"lively.Closure"},"7849":{"this":{"__isSmartRef__":true,"id":6717}},"7850":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"7851":{"originalFunc":{"__isSmartRef__":true,"id":951}},"7852":{"varMapping":{"__isSmartRef__":true,"id":7853},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":7854},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7855},"__LivelyClassName__":"lively.Closure"},"7853":{"this":{"__isSmartRef__":true,"id":6717}},"7854":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"7855":{"originalFunc":{"__isSmartRef__":true,"id":955}},"7856":{"varMapping":{"__isSmartRef__":true,"id":7857},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":7858},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7859},"__LivelyClassName__":"lively.Closure"},"7857":{"this":{"__isSmartRef__":true,"id":6717}},"7858":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"7859":{"originalFunc":{"__isSmartRef__":true,"id":959}},"7860":{"varMapping":{"__isSmartRef__":true,"id":7861},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":7862},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7863},"__LivelyClassName__":"lively.Closure"},"7861":{"this":{"__isSmartRef__":true,"id":6717}},"7862":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"7863":{"originalFunc":{"__isSmartRef__":true,"id":963}},"7864":{"varMapping":{"__isSmartRef__":true,"id":7865},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7866},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7867},"__LivelyClassName__":"lively.Closure"},"7865":{"this":{"__isSmartRef__":true,"id":6717}},"7866":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"7867":{"originalFunc":{"__isSmartRef__":true,"id":967}},"7868":{"varMapping":{"__isSmartRef__":true,"id":7869},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7870},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7871},"__LivelyClassName__":"lively.Closure"},"7869":{"this":{"__isSmartRef__":true,"id":6717}},"7870":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"7871":{"originalFunc":{"__isSmartRef__":true,"id":971}},"7872":{"varMapping":{"__isSmartRef__":true,"id":7873},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":7874},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7875},"__LivelyClassName__":"lively.Closure"},"7873":{"this":{"__isSmartRef__":true,"id":6717}},"7874":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"7875":{"originalFunc":{"__isSmartRef__":true,"id":975}},"7876":{"varMapping":{"__isSmartRef__":true,"id":7877},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":7878},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7879},"__LivelyClassName__":"lively.Closure"},"7877":{"this":{"__isSmartRef__":true,"id":6717}},"7878":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"7879":{"originalFunc":{"__isSmartRef__":true,"id":979}},"7880":{"varMapping":{"__isSmartRef__":true,"id":7881},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":7882},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7883},"__LivelyClassName__":"lively.Closure"},"7881":{"this":{"__isSmartRef__":true,"id":6717}},"7882":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"7883":{"originalFunc":{"__isSmartRef__":true,"id":983}},"7884":{"varMapping":{"__isSmartRef__":true,"id":7885},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":7886},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7887},"__LivelyClassName__":"lively.Closure"},"7885":{"this":{"__isSmartRef__":true,"id":6717}},"7886":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"7887":{"originalFunc":{"__isSmartRef__":true,"id":987}},"7888":{"varMapping":{"__isSmartRef__":true,"id":7889},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":7890},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7891},"__LivelyClassName__":"lively.Closure"},"7889":{"this":{"__isSmartRef__":true,"id":6717}},"7890":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"7891":{"originalFunc":{"__isSmartRef__":true,"id":991}},"7892":{"varMapping":{"__isSmartRef__":true,"id":7893},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":7894},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7895},"__LivelyClassName__":"lively.Closure"},"7893":{"this":{"__isSmartRef__":true,"id":6717}},"7894":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"7895":{"originalFunc":{"__isSmartRef__":true,"id":995}},"7896":{"varMapping":{"__isSmartRef__":true,"id":7897},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":7898},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7899},"__LivelyClassName__":"lively.Closure"},"7897":{"this":{"__isSmartRef__":true,"id":6717}},"7898":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"7899":{"originalFunc":{"__isSmartRef__":true,"id":999}},"7900":{"varMapping":{"__isSmartRef__":true,"id":7901},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7902},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7903},"__LivelyClassName__":"lively.Closure"},"7901":{"this":{"__isSmartRef__":true,"id":6717}},"7902":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"7903":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"7904":{"varMapping":{"__isSmartRef__":true,"id":7905},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7906},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7907},"__LivelyClassName__":"lively.Closure"},"7905":{"this":{"__isSmartRef__":true,"id":6717}},"7906":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"7907":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"7908":{"varMapping":{"__isSmartRef__":true,"id":7909},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":7910},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7911},"__LivelyClassName__":"lively.Closure"},"7909":{"this":{"__isSmartRef__":true,"id":6717}},"7910":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"7911":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"7912":{"setDevStyle":{"__isSmartRef__":true,"id":7913},"setNormalStyle":{"__isSmartRef__":true,"id":7917},"tileSize":{"__isSmartRef__":true,"id":7921},"become":{"__isSmartRef__":true,"id":7925},"onMouseDown":{"__isSmartRef__":true,"id":7929},"setGridPosition":{"__isSmartRef__":true,"id":7937},"toolbox":{"__isSmartRef__":true,"id":7941},"distanceTo":{"__isSmartRef__":true,"id":7945},"tileWasDropped":{"__isSmartRef__":true,"id":7949},"isObstacle":{"__isSmartRef__":true,"id":7953},"neighboursInDirection":{"__isSmartRef__":true,"id":7957},"neighbours":{"__isSmartRef__":true,"id":7961},"zIndex":{"__isSmartRef__":true,"id":7965},"obstacles":{"__isSmartRef__":true,"id":7969},"addObstacle":{"__isSmartRef__":true,"id":7973},"removeObstacle":{"__isSmartRef__":true,"id":7977},"isTile":{"__isSmartRef__":true,"id":7981},"neighbourAt":{"__isSmartRef__":true,"id":7985},"map":{"__isSmartRef__":true,"id":7989},"game":{"__isSmartRef__":true,"id":7993},"reset":{"__isSmartRef__":true,"id":7997},"shallowCopy":{"__isSmartRef__":true,"id":8001},"characters":{"__isSmartRef__":true,"id":8005},"enterTile":{"__isSmartRef__":true,"id":8009},"leaveTile":{"__isSmartRef__":true,"id":8013},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":8017}},"7913":{"varMapping":{"__isSmartRef__":true,"id":7914},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":7915},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7916},"__LivelyClassName__":"lively.Closure"},"7914":{"this":{"__isSmartRef__":true,"id":6698}},"7915":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"7916":{"originalFunc":{"__isSmartRef__":true,"id":892}},"7917":{"varMapping":{"__isSmartRef__":true,"id":7918},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":7919},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7920},"__LivelyClassName__":"lively.Closure"},"7918":{"this":{"__isSmartRef__":true,"id":6698}},"7919":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"7920":{"originalFunc":{"__isSmartRef__":true,"id":911}},"7921":{"varMapping":{"__isSmartRef__":true,"id":7922},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":7923},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7924},"__LivelyClassName__":"lively.Closure"},"7922":{"this":{"__isSmartRef__":true,"id":6698}},"7923":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"7924":{"originalFunc":{"__isSmartRef__":true,"id":915}},"7925":{"varMapping":{"__isSmartRef__":true,"id":7926},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7927},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7928},"__LivelyClassName__":"lively.Closure"},"7926":{"this":{"__isSmartRef__":true,"id":6698}},"7927":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"7928":{"originalFunc":{"__isSmartRef__":true,"id":919}},"7929":{"varMapping":{"__isSmartRef__":true,"id":7930},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7935},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7936},"__LivelyClassName__":"lively.Closure"},"7930":{"this":{"__isSmartRef__":true,"id":6698},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7931}},"7931":{"$super":{"__isSmartRef__":true,"id":7932}},"7932":{"varMapping":{"__isSmartRef__":true,"id":7933},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7934},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7933":{"obj":{"__isSmartRef__":true,"id":6698},"name":"onMouseDown"},"7934":{},"7935":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"7936":{"originalFunc":{"__isSmartRef__":true,"id":923}},"7937":{"varMapping":{"__isSmartRef__":true,"id":7938},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":7939},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7940},"__LivelyClassName__":"lively.Closure"},"7938":{"this":{"__isSmartRef__":true,"id":6698}},"7939":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"7940":{"originalFunc":{"__isSmartRef__":true,"id":931}},"7941":{"varMapping":{"__isSmartRef__":true,"id":7942},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":7943},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7944},"__LivelyClassName__":"lively.Closure"},"7942":{"this":{"__isSmartRef__":true,"id":6698}},"7943":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"7944":{"originalFunc":{"__isSmartRef__":true,"id":935}},"7945":{"varMapping":{"__isSmartRef__":true,"id":7946},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":7947},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7948},"__LivelyClassName__":"lively.Closure"},"7946":{"this":{"__isSmartRef__":true,"id":6698}},"7947":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"7948":{"originalFunc":{"__isSmartRef__":true,"id":939}},"7949":{"varMapping":{"__isSmartRef__":true,"id":7950},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":7951},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7952},"__LivelyClassName__":"lively.Closure"},"7950":{"this":{"__isSmartRef__":true,"id":6698}},"7951":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"7952":{"originalFunc":{"__isSmartRef__":true,"id":943}},"7953":{"varMapping":{"__isSmartRef__":true,"id":7954},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":7955},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7956},"__LivelyClassName__":"lively.Closure"},"7954":{"this":{"__isSmartRef__":true,"id":6698}},"7955":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"7956":{"originalFunc":{"__isSmartRef__":true,"id":947}},"7957":{"varMapping":{"__isSmartRef__":true,"id":7958},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":7959},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7960},"__LivelyClassName__":"lively.Closure"},"7958":{"this":{"__isSmartRef__":true,"id":6698}},"7959":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"7960":{"originalFunc":{"__isSmartRef__":true,"id":951}},"7961":{"varMapping":{"__isSmartRef__":true,"id":7962},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":7963},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7964},"__LivelyClassName__":"lively.Closure"},"7962":{"this":{"__isSmartRef__":true,"id":6698}},"7963":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"7964":{"originalFunc":{"__isSmartRef__":true,"id":955}},"7965":{"varMapping":{"__isSmartRef__":true,"id":7966},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":7967},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7968},"__LivelyClassName__":"lively.Closure"},"7966":{"this":{"__isSmartRef__":true,"id":6698}},"7967":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"7968":{"originalFunc":{"__isSmartRef__":true,"id":959}},"7969":{"varMapping":{"__isSmartRef__":true,"id":7970},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":7971},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7972},"__LivelyClassName__":"lively.Closure"},"7970":{"this":{"__isSmartRef__":true,"id":6698}},"7971":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"7972":{"originalFunc":{"__isSmartRef__":true,"id":963}},"7973":{"varMapping":{"__isSmartRef__":true,"id":7974},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7975},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7976},"__LivelyClassName__":"lively.Closure"},"7974":{"this":{"__isSmartRef__":true,"id":6698}},"7975":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"7976":{"originalFunc":{"__isSmartRef__":true,"id":967}},"7977":{"varMapping":{"__isSmartRef__":true,"id":7978},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7979},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7980},"__LivelyClassName__":"lively.Closure"},"7978":{"this":{"__isSmartRef__":true,"id":6698}},"7979":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"7980":{"originalFunc":{"__isSmartRef__":true,"id":971}},"7981":{"varMapping":{"__isSmartRef__":true,"id":7982},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":7983},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7984},"__LivelyClassName__":"lively.Closure"},"7982":{"this":{"__isSmartRef__":true,"id":6698}},"7983":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"7984":{"originalFunc":{"__isSmartRef__":true,"id":975}},"7985":{"varMapping":{"__isSmartRef__":true,"id":7986},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":7987},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7988},"__LivelyClassName__":"lively.Closure"},"7986":{"this":{"__isSmartRef__":true,"id":6698}},"7987":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"7988":{"originalFunc":{"__isSmartRef__":true,"id":979}},"7989":{"varMapping":{"__isSmartRef__":true,"id":7990},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":7991},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7992},"__LivelyClassName__":"lively.Closure"},"7990":{"this":{"__isSmartRef__":true,"id":6698}},"7991":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"7992":{"originalFunc":{"__isSmartRef__":true,"id":983}},"7993":{"varMapping":{"__isSmartRef__":true,"id":7994},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":7995},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7996},"__LivelyClassName__":"lively.Closure"},"7994":{"this":{"__isSmartRef__":true,"id":6698}},"7995":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"7996":{"originalFunc":{"__isSmartRef__":true,"id":987}},"7997":{"varMapping":{"__isSmartRef__":true,"id":7998},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":7999},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8000},"__LivelyClassName__":"lively.Closure"},"7998":{"this":{"__isSmartRef__":true,"id":6698}},"7999":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"8000":{"originalFunc":{"__isSmartRef__":true,"id":991}},"8001":{"varMapping":{"__isSmartRef__":true,"id":8002},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":8003},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8004},"__LivelyClassName__":"lively.Closure"},"8002":{"this":{"__isSmartRef__":true,"id":6698}},"8003":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"8004":{"originalFunc":{"__isSmartRef__":true,"id":995}},"8005":{"varMapping":{"__isSmartRef__":true,"id":8006},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":8007},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8008},"__LivelyClassName__":"lively.Closure"},"8006":{"this":{"__isSmartRef__":true,"id":6698}},"8007":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"8008":{"originalFunc":{"__isSmartRef__":true,"id":999}},"8009":{"varMapping":{"__isSmartRef__":true,"id":8010},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8011},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8012},"__LivelyClassName__":"lively.Closure"},"8010":{"this":{"__isSmartRef__":true,"id":6698}},"8011":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"8012":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"8013":{"varMapping":{"__isSmartRef__":true,"id":8014},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8015},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8016},"__LivelyClassName__":"lively.Closure"},"8014":{"this":{"__isSmartRef__":true,"id":6698}},"8015":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"8016":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"8017":{"varMapping":{"__isSmartRef__":true,"id":8018},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":8019},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8020},"__LivelyClassName__":"lively.Closure"},"8018":{"this":{"__isSmartRef__":true,"id":6698}},"8019":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"8020":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"8021":{"setDevStyle":{"__isSmartRef__":true,"id":8022},"setNormalStyle":{"__isSmartRef__":true,"id":8026},"tileSize":{"__isSmartRef__":true,"id":8030},"become":{"__isSmartRef__":true,"id":8034},"onMouseDown":{"__isSmartRef__":true,"id":8038},"setGridPosition":{"__isSmartRef__":true,"id":8046},"toolbox":{"__isSmartRef__":true,"id":8050},"distanceTo":{"__isSmartRef__":true,"id":8054},"tileWasDropped":{"__isSmartRef__":true,"id":8058},"isObstacle":{"__isSmartRef__":true,"id":8062},"neighboursInDirection":{"__isSmartRef__":true,"id":8066},"neighbours":{"__isSmartRef__":true,"id":8070},"zIndex":{"__isSmartRef__":true,"id":8074},"obstacles":{"__isSmartRef__":true,"id":8078},"addObstacle":{"__isSmartRef__":true,"id":8082},"removeObstacle":{"__isSmartRef__":true,"id":8086},"isTile":{"__isSmartRef__":true,"id":8090},"neighbourAt":{"__isSmartRef__":true,"id":8094},"map":{"__isSmartRef__":true,"id":8098},"game":{"__isSmartRef__":true,"id":8102},"reset":{"__isSmartRef__":true,"id":8106},"shallowCopy":{"__isSmartRef__":true,"id":8110},"characters":{"__isSmartRef__":true,"id":8114},"enterTile":{"__isSmartRef__":true,"id":8118},"leaveTile":{"__isSmartRef__":true,"id":8122},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":8126}},"8022":{"varMapping":{"__isSmartRef__":true,"id":8023},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":8024},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8025},"__LivelyClassName__":"lively.Closure"},"8023":{"this":{"__isSmartRef__":true,"id":6679}},"8024":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"8025":{"originalFunc":{"__isSmartRef__":true,"id":892}},"8026":{"varMapping":{"__isSmartRef__":true,"id":8027},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":8028},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8029},"__LivelyClassName__":"lively.Closure"},"8027":{"this":{"__isSmartRef__":true,"id":6679}},"8028":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"8029":{"originalFunc":{"__isSmartRef__":true,"id":911}},"8030":{"varMapping":{"__isSmartRef__":true,"id":8031},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":8032},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8033},"__LivelyClassName__":"lively.Closure"},"8031":{"this":{"__isSmartRef__":true,"id":6679}},"8032":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"8033":{"originalFunc":{"__isSmartRef__":true,"id":915}},"8034":{"varMapping":{"__isSmartRef__":true,"id":8035},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8036},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8037},"__LivelyClassName__":"lively.Closure"},"8035":{"this":{"__isSmartRef__":true,"id":6679}},"8036":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"8037":{"originalFunc":{"__isSmartRef__":true,"id":919}},"8038":{"varMapping":{"__isSmartRef__":true,"id":8039},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8044},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8045},"__LivelyClassName__":"lively.Closure"},"8039":{"this":{"__isSmartRef__":true,"id":6679},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8040}},"8040":{"$super":{"__isSmartRef__":true,"id":8041}},"8041":{"varMapping":{"__isSmartRef__":true,"id":8042},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8043},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8042":{"obj":{"__isSmartRef__":true,"id":6679},"name":"onMouseDown"},"8043":{},"8044":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"8045":{"originalFunc":{"__isSmartRef__":true,"id":923}},"8046":{"varMapping":{"__isSmartRef__":true,"id":8047},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":8048},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8049},"__LivelyClassName__":"lively.Closure"},"8047":{"this":{"__isSmartRef__":true,"id":6679}},"8048":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"8049":{"originalFunc":{"__isSmartRef__":true,"id":931}},"8050":{"varMapping":{"__isSmartRef__":true,"id":8051},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":8052},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8053},"__LivelyClassName__":"lively.Closure"},"8051":{"this":{"__isSmartRef__":true,"id":6679}},"8052":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"8053":{"originalFunc":{"__isSmartRef__":true,"id":935}},"8054":{"varMapping":{"__isSmartRef__":true,"id":8055},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":8056},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8057},"__LivelyClassName__":"lively.Closure"},"8055":{"this":{"__isSmartRef__":true,"id":6679}},"8056":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"8057":{"originalFunc":{"__isSmartRef__":true,"id":939}},"8058":{"varMapping":{"__isSmartRef__":true,"id":8059},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":8060},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8061},"__LivelyClassName__":"lively.Closure"},"8059":{"this":{"__isSmartRef__":true,"id":6679}},"8060":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"8061":{"originalFunc":{"__isSmartRef__":true,"id":943}},"8062":{"varMapping":{"__isSmartRef__":true,"id":8063},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":8064},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8065},"__LivelyClassName__":"lively.Closure"},"8063":{"this":{"__isSmartRef__":true,"id":6679}},"8064":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"8065":{"originalFunc":{"__isSmartRef__":true,"id":947}},"8066":{"varMapping":{"__isSmartRef__":true,"id":8067},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":8068},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8069},"__LivelyClassName__":"lively.Closure"},"8067":{"this":{"__isSmartRef__":true,"id":6679}},"8068":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"8069":{"originalFunc":{"__isSmartRef__":true,"id":951}},"8070":{"varMapping":{"__isSmartRef__":true,"id":8071},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":8072},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8073},"__LivelyClassName__":"lively.Closure"},"8071":{"this":{"__isSmartRef__":true,"id":6679}},"8072":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"8073":{"originalFunc":{"__isSmartRef__":true,"id":955}},"8074":{"varMapping":{"__isSmartRef__":true,"id":8075},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":8076},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8077},"__LivelyClassName__":"lively.Closure"},"8075":{"this":{"__isSmartRef__":true,"id":6679}},"8076":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"8077":{"originalFunc":{"__isSmartRef__":true,"id":959}},"8078":{"varMapping":{"__isSmartRef__":true,"id":8079},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":8080},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8081},"__LivelyClassName__":"lively.Closure"},"8079":{"this":{"__isSmartRef__":true,"id":6679}},"8080":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"8081":{"originalFunc":{"__isSmartRef__":true,"id":963}},"8082":{"varMapping":{"__isSmartRef__":true,"id":8083},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8084},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8085},"__LivelyClassName__":"lively.Closure"},"8083":{"this":{"__isSmartRef__":true,"id":6679}},"8084":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"8085":{"originalFunc":{"__isSmartRef__":true,"id":967}},"8086":{"varMapping":{"__isSmartRef__":true,"id":8087},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8088},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8089},"__LivelyClassName__":"lively.Closure"},"8087":{"this":{"__isSmartRef__":true,"id":6679}},"8088":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"8089":{"originalFunc":{"__isSmartRef__":true,"id":971}},"8090":{"varMapping":{"__isSmartRef__":true,"id":8091},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":8092},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8093},"__LivelyClassName__":"lively.Closure"},"8091":{"this":{"__isSmartRef__":true,"id":6679}},"8092":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"8093":{"originalFunc":{"__isSmartRef__":true,"id":975}},"8094":{"varMapping":{"__isSmartRef__":true,"id":8095},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":8096},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8097},"__LivelyClassName__":"lively.Closure"},"8095":{"this":{"__isSmartRef__":true,"id":6679}},"8096":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"8097":{"originalFunc":{"__isSmartRef__":true,"id":979}},"8098":{"varMapping":{"__isSmartRef__":true,"id":8099},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":8100},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8101},"__LivelyClassName__":"lively.Closure"},"8099":{"this":{"__isSmartRef__":true,"id":6679}},"8100":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"8101":{"originalFunc":{"__isSmartRef__":true,"id":983}},"8102":{"varMapping":{"__isSmartRef__":true,"id":8103},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":8104},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8105},"__LivelyClassName__":"lively.Closure"},"8103":{"this":{"__isSmartRef__":true,"id":6679}},"8104":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"8105":{"originalFunc":{"__isSmartRef__":true,"id":987}},"8106":{"varMapping":{"__isSmartRef__":true,"id":8107},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":8108},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8109},"__LivelyClassName__":"lively.Closure"},"8107":{"this":{"__isSmartRef__":true,"id":6679}},"8108":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"8109":{"originalFunc":{"__isSmartRef__":true,"id":991}},"8110":{"varMapping":{"__isSmartRef__":true,"id":8111},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":8112},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8113},"__LivelyClassName__":"lively.Closure"},"8111":{"this":{"__isSmartRef__":true,"id":6679}},"8112":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"8113":{"originalFunc":{"__isSmartRef__":true,"id":995}},"8114":{"varMapping":{"__isSmartRef__":true,"id":8115},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":8116},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8117},"__LivelyClassName__":"lively.Closure"},"8115":{"this":{"__isSmartRef__":true,"id":6679}},"8116":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"8117":{"originalFunc":{"__isSmartRef__":true,"id":999}},"8118":{"varMapping":{"__isSmartRef__":true,"id":8119},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8120},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8121},"__LivelyClassName__":"lively.Closure"},"8119":{"this":{"__isSmartRef__":true,"id":6679}},"8120":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"8121":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"8122":{"varMapping":{"__isSmartRef__":true,"id":8123},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8124},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8125},"__LivelyClassName__":"lively.Closure"},"8123":{"this":{"__isSmartRef__":true,"id":6679}},"8124":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"8125":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"8126":{"varMapping":{"__isSmartRef__":true,"id":8127},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":8128},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8129},"__LivelyClassName__":"lively.Closure"},"8127":{"this":{"__isSmartRef__":true,"id":6679}},"8128":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"8129":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"8130":{"setDevStyle":{"__isSmartRef__":true,"id":8131},"setNormalStyle":{"__isSmartRef__":true,"id":8135},"tileSize":{"__isSmartRef__":true,"id":8139},"become":{"__isSmartRef__":true,"id":8143},"onMouseDown":{"__isSmartRef__":true,"id":8147},"setGridPosition":{"__isSmartRef__":true,"id":8155},"toolbox":{"__isSmartRef__":true,"id":8159},"distanceTo":{"__isSmartRef__":true,"id":8163},"tileWasDropped":{"__isSmartRef__":true,"id":8167},"isObstacle":{"__isSmartRef__":true,"id":8171},"neighboursInDirection":{"__isSmartRef__":true,"id":8175},"neighbours":{"__isSmartRef__":true,"id":8179},"zIndex":{"__isSmartRef__":true,"id":8183},"obstacles":{"__isSmartRef__":true,"id":8187},"addObstacle":{"__isSmartRef__":true,"id":8191},"removeObstacle":{"__isSmartRef__":true,"id":8195},"isTile":{"__isSmartRef__":true,"id":8199},"neighbourAt":{"__isSmartRef__":true,"id":8203},"map":{"__isSmartRef__":true,"id":8207},"game":{"__isSmartRef__":true,"id":8211},"reset":{"__isSmartRef__":true,"id":8215},"shallowCopy":{"__isSmartRef__":true,"id":8219},"characters":{"__isSmartRef__":true,"id":8223},"enterTile":{"__isSmartRef__":true,"id":8227},"leaveTile":{"__isSmartRef__":true,"id":8231},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":8235}},"8131":{"varMapping":{"__isSmartRef__":true,"id":8132},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":8133},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8134},"__LivelyClassName__":"lively.Closure"},"8132":{"this":{"__isSmartRef__":true,"id":6276}},"8133":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"8134":{"originalFunc":{"__isSmartRef__":true,"id":892}},"8135":{"varMapping":{"__isSmartRef__":true,"id":8136},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":8137},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8138},"__LivelyClassName__":"lively.Closure"},"8136":{"this":{"__isSmartRef__":true,"id":6276}},"8137":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"8138":{"originalFunc":{"__isSmartRef__":true,"id":911}},"8139":{"varMapping":{"__isSmartRef__":true,"id":8140},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":8141},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8142},"__LivelyClassName__":"lively.Closure"},"8140":{"this":{"__isSmartRef__":true,"id":6276}},"8141":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"8142":{"originalFunc":{"__isSmartRef__":true,"id":915}},"8143":{"varMapping":{"__isSmartRef__":true,"id":8144},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8145},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8146},"__LivelyClassName__":"lively.Closure"},"8144":{"this":{"__isSmartRef__":true,"id":6276}},"8145":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"8146":{"originalFunc":{"__isSmartRef__":true,"id":919}},"8147":{"varMapping":{"__isSmartRef__":true,"id":8148},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8153},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8154},"__LivelyClassName__":"lively.Closure"},"8148":{"this":{"__isSmartRef__":true,"id":6276},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8149}},"8149":{"$super":{"__isSmartRef__":true,"id":8150}},"8150":{"varMapping":{"__isSmartRef__":true,"id":8151},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8152},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8151":{"obj":{"__isSmartRef__":true,"id":6276},"name":"onMouseDown"},"8152":{},"8153":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"8154":{"originalFunc":{"__isSmartRef__":true,"id":923}},"8155":{"varMapping":{"__isSmartRef__":true,"id":8156},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":8157},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8158},"__LivelyClassName__":"lively.Closure"},"8156":{"this":{"__isSmartRef__":true,"id":6276}},"8157":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"8158":{"originalFunc":{"__isSmartRef__":true,"id":931}},"8159":{"varMapping":{"__isSmartRef__":true,"id":8160},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":8161},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8162},"__LivelyClassName__":"lively.Closure"},"8160":{"this":{"__isSmartRef__":true,"id":6276}},"8161":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"8162":{"originalFunc":{"__isSmartRef__":true,"id":935}},"8163":{"varMapping":{"__isSmartRef__":true,"id":8164},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":8165},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8166},"__LivelyClassName__":"lively.Closure"},"8164":{"this":{"__isSmartRef__":true,"id":6276}},"8165":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"8166":{"originalFunc":{"__isSmartRef__":true,"id":939}},"8167":{"varMapping":{"__isSmartRef__":true,"id":8168},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":8169},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8170},"__LivelyClassName__":"lively.Closure"},"8168":{"this":{"__isSmartRef__":true,"id":6276}},"8169":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"8170":{"originalFunc":{"__isSmartRef__":true,"id":943}},"8171":{"varMapping":{"__isSmartRef__":true,"id":8172},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":8173},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8174},"__LivelyClassName__":"lively.Closure"},"8172":{"this":{"__isSmartRef__":true,"id":6276}},"8173":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"8174":{"originalFunc":{"__isSmartRef__":true,"id":947}},"8175":{"varMapping":{"__isSmartRef__":true,"id":8176},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":8177},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8178},"__LivelyClassName__":"lively.Closure"},"8176":{"this":{"__isSmartRef__":true,"id":6276}},"8177":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"8178":{"originalFunc":{"__isSmartRef__":true,"id":951}},"8179":{"varMapping":{"__isSmartRef__":true,"id":8180},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":8181},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8182},"__LivelyClassName__":"lively.Closure"},"8180":{"this":{"__isSmartRef__":true,"id":6276}},"8181":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"8182":{"originalFunc":{"__isSmartRef__":true,"id":955}},"8183":{"varMapping":{"__isSmartRef__":true,"id":8184},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":8185},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8186},"__LivelyClassName__":"lively.Closure"},"8184":{"this":{"__isSmartRef__":true,"id":6276}},"8185":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"8186":{"originalFunc":{"__isSmartRef__":true,"id":959}},"8187":{"varMapping":{"__isSmartRef__":true,"id":8188},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":8189},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8190},"__LivelyClassName__":"lively.Closure"},"8188":{"this":{"__isSmartRef__":true,"id":6276}},"8189":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"8190":{"originalFunc":{"__isSmartRef__":true,"id":963}},"8191":{"varMapping":{"__isSmartRef__":true,"id":8192},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8193},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8194},"__LivelyClassName__":"lively.Closure"},"8192":{"this":{"__isSmartRef__":true,"id":6276}},"8193":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"8194":{"originalFunc":{"__isSmartRef__":true,"id":967}},"8195":{"varMapping":{"__isSmartRef__":true,"id":8196},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8197},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8198},"__LivelyClassName__":"lively.Closure"},"8196":{"this":{"__isSmartRef__":true,"id":6276}},"8197":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"8198":{"originalFunc":{"__isSmartRef__":true,"id":971}},"8199":{"varMapping":{"__isSmartRef__":true,"id":8200},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":8201},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8202},"__LivelyClassName__":"lively.Closure"},"8200":{"this":{"__isSmartRef__":true,"id":6276}},"8201":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"8202":{"originalFunc":{"__isSmartRef__":true,"id":975}},"8203":{"varMapping":{"__isSmartRef__":true,"id":8204},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":8205},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8206},"__LivelyClassName__":"lively.Closure"},"8204":{"this":{"__isSmartRef__":true,"id":6276}},"8205":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"8206":{"originalFunc":{"__isSmartRef__":true,"id":979}},"8207":{"varMapping":{"__isSmartRef__":true,"id":8208},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":8209},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8210},"__LivelyClassName__":"lively.Closure"},"8208":{"this":{"__isSmartRef__":true,"id":6276}},"8209":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"8210":{"originalFunc":{"__isSmartRef__":true,"id":983}},"8211":{"varMapping":{"__isSmartRef__":true,"id":8212},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":8213},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8214},"__LivelyClassName__":"lively.Closure"},"8212":{"this":{"__isSmartRef__":true,"id":6276}},"8213":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"8214":{"originalFunc":{"__isSmartRef__":true,"id":987}},"8215":{"varMapping":{"__isSmartRef__":true,"id":8216},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":8217},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8218},"__LivelyClassName__":"lively.Closure"},"8216":{"this":{"__isSmartRef__":true,"id":6276}},"8217":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"8218":{"originalFunc":{"__isSmartRef__":true,"id":991}},"8219":{"varMapping":{"__isSmartRef__":true,"id":8220},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":8221},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8222},"__LivelyClassName__":"lively.Closure"},"8220":{"this":{"__isSmartRef__":true,"id":6276}},"8221":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"8222":{"originalFunc":{"__isSmartRef__":true,"id":995}},"8223":{"varMapping":{"__isSmartRef__":true,"id":8224},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":8225},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8226},"__LivelyClassName__":"lively.Closure"},"8224":{"this":{"__isSmartRef__":true,"id":6276}},"8225":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"8226":{"originalFunc":{"__isSmartRef__":true,"id":999}},"8227":{"varMapping":{"__isSmartRef__":true,"id":8228},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8229},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8230},"__LivelyClassName__":"lively.Closure"},"8228":{"this":{"__isSmartRef__":true,"id":6276}},"8229":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"8230":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"8231":{"varMapping":{"__isSmartRef__":true,"id":8232},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8233},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8234},"__LivelyClassName__":"lively.Closure"},"8232":{"this":{"__isSmartRef__":true,"id":6276}},"8233":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"8234":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"8235":{"varMapping":{"__isSmartRef__":true,"id":8236},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":8237},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8238},"__LivelyClassName__":"lively.Closure"},"8236":{"this":{"__isSmartRef__":true,"id":6276}},"8237":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"8238":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"8239":{"setDevStyle":{"__isSmartRef__":true,"id":8240},"setNormalStyle":{"__isSmartRef__":true,"id":8244},"tileSize":{"__isSmartRef__":true,"id":8248},"become":{"__isSmartRef__":true,"id":8252},"onMouseDown":{"__isSmartRef__":true,"id":8256},"setGridPosition":{"__isSmartRef__":true,"id":8264},"toolbox":{"__isSmartRef__":true,"id":8268},"distanceTo":{"__isSmartRef__":true,"id":8272},"tileWasDropped":{"__isSmartRef__":true,"id":8276},"isObstacle":{"__isSmartRef__":true,"id":8280},"neighboursInDirection":{"__isSmartRef__":true,"id":8284},"neighbours":{"__isSmartRef__":true,"id":8288},"zIndex":{"__isSmartRef__":true,"id":8292},"obstacles":{"__isSmartRef__":true,"id":8296},"addObstacle":{"__isSmartRef__":true,"id":8300},"removeObstacle":{"__isSmartRef__":true,"id":8304},"isTile":{"__isSmartRef__":true,"id":8308},"neighbourAt":{"__isSmartRef__":true,"id":8312},"map":{"__isSmartRef__":true,"id":8316},"game":{"__isSmartRef__":true,"id":8320},"reset":{"__isSmartRef__":true,"id":8324},"shallowCopy":{"__isSmartRef__":true,"id":8328},"characters":{"__isSmartRef__":true,"id":8332},"enterTile":{"__isSmartRef__":true,"id":8336},"leaveTile":{"__isSmartRef__":true,"id":8340},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":8344}},"8240":{"varMapping":{"__isSmartRef__":true,"id":8241},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":8242},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8243},"__LivelyClassName__":"lively.Closure"},"8241":{"this":{"__isSmartRef__":true,"id":6257}},"8242":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"8243":{"originalFunc":{"__isSmartRef__":true,"id":892}},"8244":{"varMapping":{"__isSmartRef__":true,"id":8245},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":8246},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8247},"__LivelyClassName__":"lively.Closure"},"8245":{"this":{"__isSmartRef__":true,"id":6257}},"8246":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"8247":{"originalFunc":{"__isSmartRef__":true,"id":911}},"8248":{"varMapping":{"__isSmartRef__":true,"id":8249},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":8250},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8251},"__LivelyClassName__":"lively.Closure"},"8249":{"this":{"__isSmartRef__":true,"id":6257}},"8250":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"8251":{"originalFunc":{"__isSmartRef__":true,"id":915}},"8252":{"varMapping":{"__isSmartRef__":true,"id":8253},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8254},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8255},"__LivelyClassName__":"lively.Closure"},"8253":{"this":{"__isSmartRef__":true,"id":6257}},"8254":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"8255":{"originalFunc":{"__isSmartRef__":true,"id":919}},"8256":{"varMapping":{"__isSmartRef__":true,"id":8257},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8262},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8263},"__LivelyClassName__":"lively.Closure"},"8257":{"this":{"__isSmartRef__":true,"id":6257},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8258}},"8258":{"$super":{"__isSmartRef__":true,"id":8259}},"8259":{"varMapping":{"__isSmartRef__":true,"id":8260},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8261},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8260":{"obj":{"__isSmartRef__":true,"id":6257},"name":"onMouseDown"},"8261":{},"8262":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"8263":{"originalFunc":{"__isSmartRef__":true,"id":923}},"8264":{"varMapping":{"__isSmartRef__":true,"id":8265},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":8266},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8267},"__LivelyClassName__":"lively.Closure"},"8265":{"this":{"__isSmartRef__":true,"id":6257}},"8266":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"8267":{"originalFunc":{"__isSmartRef__":true,"id":931}},"8268":{"varMapping":{"__isSmartRef__":true,"id":8269},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":8270},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8271},"__LivelyClassName__":"lively.Closure"},"8269":{"this":{"__isSmartRef__":true,"id":6257}},"8270":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"8271":{"originalFunc":{"__isSmartRef__":true,"id":935}},"8272":{"varMapping":{"__isSmartRef__":true,"id":8273},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":8274},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8275},"__LivelyClassName__":"lively.Closure"},"8273":{"this":{"__isSmartRef__":true,"id":6257}},"8274":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"8275":{"originalFunc":{"__isSmartRef__":true,"id":939}},"8276":{"varMapping":{"__isSmartRef__":true,"id":8277},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":8278},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8279},"__LivelyClassName__":"lively.Closure"},"8277":{"this":{"__isSmartRef__":true,"id":6257}},"8278":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"8279":{"originalFunc":{"__isSmartRef__":true,"id":943}},"8280":{"varMapping":{"__isSmartRef__":true,"id":8281},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":8282},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8283},"__LivelyClassName__":"lively.Closure"},"8281":{"this":{"__isSmartRef__":true,"id":6257}},"8282":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"8283":{"originalFunc":{"__isSmartRef__":true,"id":947}},"8284":{"varMapping":{"__isSmartRef__":true,"id":8285},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":8286},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8287},"__LivelyClassName__":"lively.Closure"},"8285":{"this":{"__isSmartRef__":true,"id":6257}},"8286":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"8287":{"originalFunc":{"__isSmartRef__":true,"id":951}},"8288":{"varMapping":{"__isSmartRef__":true,"id":8289},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":8290},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8291},"__LivelyClassName__":"lively.Closure"},"8289":{"this":{"__isSmartRef__":true,"id":6257}},"8290":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"8291":{"originalFunc":{"__isSmartRef__":true,"id":955}},"8292":{"varMapping":{"__isSmartRef__":true,"id":8293},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":8294},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8295},"__LivelyClassName__":"lively.Closure"},"8293":{"this":{"__isSmartRef__":true,"id":6257}},"8294":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"8295":{"originalFunc":{"__isSmartRef__":true,"id":959}},"8296":{"varMapping":{"__isSmartRef__":true,"id":8297},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":8298},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8299},"__LivelyClassName__":"lively.Closure"},"8297":{"this":{"__isSmartRef__":true,"id":6257}},"8298":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"8299":{"originalFunc":{"__isSmartRef__":true,"id":963}},"8300":{"varMapping":{"__isSmartRef__":true,"id":8301},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8302},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8303},"__LivelyClassName__":"lively.Closure"},"8301":{"this":{"__isSmartRef__":true,"id":6257}},"8302":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"8303":{"originalFunc":{"__isSmartRef__":true,"id":967}},"8304":{"varMapping":{"__isSmartRef__":true,"id":8305},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8306},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8307},"__LivelyClassName__":"lively.Closure"},"8305":{"this":{"__isSmartRef__":true,"id":6257}},"8306":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"8307":{"originalFunc":{"__isSmartRef__":true,"id":971}},"8308":{"varMapping":{"__isSmartRef__":true,"id":8309},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":8310},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8311},"__LivelyClassName__":"lively.Closure"},"8309":{"this":{"__isSmartRef__":true,"id":6257}},"8310":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"8311":{"originalFunc":{"__isSmartRef__":true,"id":975}},"8312":{"varMapping":{"__isSmartRef__":true,"id":8313},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":8314},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8315},"__LivelyClassName__":"lively.Closure"},"8313":{"this":{"__isSmartRef__":true,"id":6257}},"8314":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"8315":{"originalFunc":{"__isSmartRef__":true,"id":979}},"8316":{"varMapping":{"__isSmartRef__":true,"id":8317},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":8318},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8319},"__LivelyClassName__":"lively.Closure"},"8317":{"this":{"__isSmartRef__":true,"id":6257}},"8318":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"8319":{"originalFunc":{"__isSmartRef__":true,"id":983}},"8320":{"varMapping":{"__isSmartRef__":true,"id":8321},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":8322},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8323},"__LivelyClassName__":"lively.Closure"},"8321":{"this":{"__isSmartRef__":true,"id":6257}},"8322":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"8323":{"originalFunc":{"__isSmartRef__":true,"id":987}},"8324":{"varMapping":{"__isSmartRef__":true,"id":8325},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":8326},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8327},"__LivelyClassName__":"lively.Closure"},"8325":{"this":{"__isSmartRef__":true,"id":6257}},"8326":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"8327":{"originalFunc":{"__isSmartRef__":true,"id":991}},"8328":{"varMapping":{"__isSmartRef__":true,"id":8329},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":8330},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8331},"__LivelyClassName__":"lively.Closure"},"8329":{"this":{"__isSmartRef__":true,"id":6257}},"8330":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"8331":{"originalFunc":{"__isSmartRef__":true,"id":995}},"8332":{"varMapping":{"__isSmartRef__":true,"id":8333},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":8334},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8335},"__LivelyClassName__":"lively.Closure"},"8333":{"this":{"__isSmartRef__":true,"id":6257}},"8334":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"8335":{"originalFunc":{"__isSmartRef__":true,"id":999}},"8336":{"varMapping":{"__isSmartRef__":true,"id":8337},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8338},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8339},"__LivelyClassName__":"lively.Closure"},"8337":{"this":{"__isSmartRef__":true,"id":6257}},"8338":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"8339":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"8340":{"varMapping":{"__isSmartRef__":true,"id":8341},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8342},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8343},"__LivelyClassName__":"lively.Closure"},"8341":{"this":{"__isSmartRef__":true,"id":6257}},"8342":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"8343":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"8344":{"varMapping":{"__isSmartRef__":true,"id":8345},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":8346},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8347},"__LivelyClassName__":"lively.Closure"},"8345":{"this":{"__isSmartRef__":true,"id":6257}},"8346":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"8347":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"8348":{"setDevStyle":{"__isSmartRef__":true,"id":8349},"setNormalStyle":{"__isSmartRef__":true,"id":8353},"tileSize":{"__isSmartRef__":true,"id":8357},"become":{"__isSmartRef__":true,"id":8361},"onMouseDown":{"__isSmartRef__":true,"id":8365},"setGridPosition":{"__isSmartRef__":true,"id":8373},"toolbox":{"__isSmartRef__":true,"id":8377},"distanceTo":{"__isSmartRef__":true,"id":8381},"tileWasDropped":{"__isSmartRef__":true,"id":8385},"isObstacle":{"__isSmartRef__":true,"id":8389},"neighboursInDirection":{"__isSmartRef__":true,"id":8393},"neighbours":{"__isSmartRef__":true,"id":8397},"zIndex":{"__isSmartRef__":true,"id":8401},"obstacles":{"__isSmartRef__":true,"id":8405},"addObstacle":{"__isSmartRef__":true,"id":8409},"removeObstacle":{"__isSmartRef__":true,"id":8413},"isTile":{"__isSmartRef__":true,"id":8417},"neighbourAt":{"__isSmartRef__":true,"id":8421},"map":{"__isSmartRef__":true,"id":8425},"game":{"__isSmartRef__":true,"id":8429},"reset":{"__isSmartRef__":true,"id":8433},"shallowCopy":{"__isSmartRef__":true,"id":8437},"characters":{"__isSmartRef__":true,"id":8441},"enterTile":{"__isSmartRef__":true,"id":8445},"leaveTile":{"__isSmartRef__":true,"id":8449},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":8453}},"8349":{"varMapping":{"__isSmartRef__":true,"id":8350},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":8351},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8352},"__LivelyClassName__":"lively.Closure"},"8350":{"this":{"__isSmartRef__":true,"id":6238}},"8351":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"8352":{"originalFunc":{"__isSmartRef__":true,"id":892}},"8353":{"varMapping":{"__isSmartRef__":true,"id":8354},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":8355},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8356},"__LivelyClassName__":"lively.Closure"},"8354":{"this":{"__isSmartRef__":true,"id":6238}},"8355":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"8356":{"originalFunc":{"__isSmartRef__":true,"id":911}},"8357":{"varMapping":{"__isSmartRef__":true,"id":8358},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":8359},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8360},"__LivelyClassName__":"lively.Closure"},"8358":{"this":{"__isSmartRef__":true,"id":6238}},"8359":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"8360":{"originalFunc":{"__isSmartRef__":true,"id":915}},"8361":{"varMapping":{"__isSmartRef__":true,"id":8362},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8363},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8364},"__LivelyClassName__":"lively.Closure"},"8362":{"this":{"__isSmartRef__":true,"id":6238}},"8363":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"8364":{"originalFunc":{"__isSmartRef__":true,"id":919}},"8365":{"varMapping":{"__isSmartRef__":true,"id":8366},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8371},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8372},"__LivelyClassName__":"lively.Closure"},"8366":{"this":{"__isSmartRef__":true,"id":6238},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8367}},"8367":{"$super":{"__isSmartRef__":true,"id":8368}},"8368":{"varMapping":{"__isSmartRef__":true,"id":8369},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8370},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8369":{"obj":{"__isSmartRef__":true,"id":6238},"name":"onMouseDown"},"8370":{},"8371":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"8372":{"originalFunc":{"__isSmartRef__":true,"id":923}},"8373":{"varMapping":{"__isSmartRef__":true,"id":8374},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":8375},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8376},"__LivelyClassName__":"lively.Closure"},"8374":{"this":{"__isSmartRef__":true,"id":6238}},"8375":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"8376":{"originalFunc":{"__isSmartRef__":true,"id":931}},"8377":{"varMapping":{"__isSmartRef__":true,"id":8378},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":8379},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8380},"__LivelyClassName__":"lively.Closure"},"8378":{"this":{"__isSmartRef__":true,"id":6238}},"8379":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"8380":{"originalFunc":{"__isSmartRef__":true,"id":935}},"8381":{"varMapping":{"__isSmartRef__":true,"id":8382},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":8383},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8384},"__LivelyClassName__":"lively.Closure"},"8382":{"this":{"__isSmartRef__":true,"id":6238}},"8383":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"8384":{"originalFunc":{"__isSmartRef__":true,"id":939}},"8385":{"varMapping":{"__isSmartRef__":true,"id":8386},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":8387},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8388},"__LivelyClassName__":"lively.Closure"},"8386":{"this":{"__isSmartRef__":true,"id":6238}},"8387":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"8388":{"originalFunc":{"__isSmartRef__":true,"id":943}},"8389":{"varMapping":{"__isSmartRef__":true,"id":8390},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":8391},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8392},"__LivelyClassName__":"lively.Closure"},"8390":{"this":{"__isSmartRef__":true,"id":6238}},"8391":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"8392":{"originalFunc":{"__isSmartRef__":true,"id":947}},"8393":{"varMapping":{"__isSmartRef__":true,"id":8394},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":8395},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8396},"__LivelyClassName__":"lively.Closure"},"8394":{"this":{"__isSmartRef__":true,"id":6238}},"8395":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"8396":{"originalFunc":{"__isSmartRef__":true,"id":951}},"8397":{"varMapping":{"__isSmartRef__":true,"id":8398},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":8399},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8400},"__LivelyClassName__":"lively.Closure"},"8398":{"this":{"__isSmartRef__":true,"id":6238}},"8399":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"8400":{"originalFunc":{"__isSmartRef__":true,"id":955}},"8401":{"varMapping":{"__isSmartRef__":true,"id":8402},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":8403},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8404},"__LivelyClassName__":"lively.Closure"},"8402":{"this":{"__isSmartRef__":true,"id":6238}},"8403":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"8404":{"originalFunc":{"__isSmartRef__":true,"id":959}},"8405":{"varMapping":{"__isSmartRef__":true,"id":8406},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":8407},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8408},"__LivelyClassName__":"lively.Closure"},"8406":{"this":{"__isSmartRef__":true,"id":6238}},"8407":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"8408":{"originalFunc":{"__isSmartRef__":true,"id":963}},"8409":{"varMapping":{"__isSmartRef__":true,"id":8410},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8411},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8412},"__LivelyClassName__":"lively.Closure"},"8410":{"this":{"__isSmartRef__":true,"id":6238}},"8411":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"8412":{"originalFunc":{"__isSmartRef__":true,"id":967}},"8413":{"varMapping":{"__isSmartRef__":true,"id":8414},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8415},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8416},"__LivelyClassName__":"lively.Closure"},"8414":{"this":{"__isSmartRef__":true,"id":6238}},"8415":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"8416":{"originalFunc":{"__isSmartRef__":true,"id":971}},"8417":{"varMapping":{"__isSmartRef__":true,"id":8418},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":8419},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8420},"__LivelyClassName__":"lively.Closure"},"8418":{"this":{"__isSmartRef__":true,"id":6238}},"8419":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"8420":{"originalFunc":{"__isSmartRef__":true,"id":975}},"8421":{"varMapping":{"__isSmartRef__":true,"id":8422},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":8423},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8424},"__LivelyClassName__":"lively.Closure"},"8422":{"this":{"__isSmartRef__":true,"id":6238}},"8423":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"8424":{"originalFunc":{"__isSmartRef__":true,"id":979}},"8425":{"varMapping":{"__isSmartRef__":true,"id":8426},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":8427},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8428},"__LivelyClassName__":"lively.Closure"},"8426":{"this":{"__isSmartRef__":true,"id":6238}},"8427":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"8428":{"originalFunc":{"__isSmartRef__":true,"id":983}},"8429":{"varMapping":{"__isSmartRef__":true,"id":8430},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":8431},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8432},"__LivelyClassName__":"lively.Closure"},"8430":{"this":{"__isSmartRef__":true,"id":6238}},"8431":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"8432":{"originalFunc":{"__isSmartRef__":true,"id":987}},"8433":{"varMapping":{"__isSmartRef__":true,"id":8434},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":8435},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8436},"__LivelyClassName__":"lively.Closure"},"8434":{"this":{"__isSmartRef__":true,"id":6238}},"8435":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"8436":{"originalFunc":{"__isSmartRef__":true,"id":991}},"8437":{"varMapping":{"__isSmartRef__":true,"id":8438},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":8439},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8440},"__LivelyClassName__":"lively.Closure"},"8438":{"this":{"__isSmartRef__":true,"id":6238}},"8439":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"8440":{"originalFunc":{"__isSmartRef__":true,"id":995}},"8441":{"varMapping":{"__isSmartRef__":true,"id":8442},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":8443},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8444},"__LivelyClassName__":"lively.Closure"},"8442":{"this":{"__isSmartRef__":true,"id":6238}},"8443":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"8444":{"originalFunc":{"__isSmartRef__":true,"id":999}},"8445":{"varMapping":{"__isSmartRef__":true,"id":8446},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8447},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8448},"__LivelyClassName__":"lively.Closure"},"8446":{"this":{"__isSmartRef__":true,"id":6238}},"8447":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"8448":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"8449":{"varMapping":{"__isSmartRef__":true,"id":8450},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8451},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8452},"__LivelyClassName__":"lively.Closure"},"8450":{"this":{"__isSmartRef__":true,"id":6238}},"8451":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"8452":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"8453":{"varMapping":{"__isSmartRef__":true,"id":8454},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":8455},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8456},"__LivelyClassName__":"lively.Closure"},"8454":{"this":{"__isSmartRef__":true,"id":6238}},"8455":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"8456":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"8457":{"setDevStyle":{"__isSmartRef__":true,"id":8458},"setNormalStyle":{"__isSmartRef__":true,"id":8462},"tileSize":{"__isSmartRef__":true,"id":8466},"become":{"__isSmartRef__":true,"id":8470},"onMouseDown":{"__isSmartRef__":true,"id":8474},"setGridPosition":{"__isSmartRef__":true,"id":8482},"toolbox":{"__isSmartRef__":true,"id":8486},"distanceTo":{"__isSmartRef__":true,"id":8490},"tileWasDropped":{"__isSmartRef__":true,"id":8494},"isObstacle":{"__isSmartRef__":true,"id":8498},"neighboursInDirection":{"__isSmartRef__":true,"id":8502},"neighbours":{"__isSmartRef__":true,"id":8506},"zIndex":{"__isSmartRef__":true,"id":8510},"obstacles":{"__isSmartRef__":true,"id":8514},"addObstacle":{"__isSmartRef__":true,"id":8518},"removeObstacle":{"__isSmartRef__":true,"id":8522},"isTile":{"__isSmartRef__":true,"id":8526},"neighbourAt":{"__isSmartRef__":true,"id":8530},"map":{"__isSmartRef__":true,"id":8534},"game":{"__isSmartRef__":true,"id":8538},"reset":{"__isSmartRef__":true,"id":8542},"shallowCopy":{"__isSmartRef__":true,"id":8546},"characters":{"__isSmartRef__":true,"id":8550},"enterTile":{"__isSmartRef__":true,"id":8554},"leaveTile":{"__isSmartRef__":true,"id":8558},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":8562}},"8458":{"varMapping":{"__isSmartRef__":true,"id":8459},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":8460},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8461},"__LivelyClassName__":"lively.Closure"},"8459":{"this":{"__isSmartRef__":true,"id":6219}},"8460":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"8461":{"originalFunc":{"__isSmartRef__":true,"id":892}},"8462":{"varMapping":{"__isSmartRef__":true,"id":8463},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":8464},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8465},"__LivelyClassName__":"lively.Closure"},"8463":{"this":{"__isSmartRef__":true,"id":6219}},"8464":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"8465":{"originalFunc":{"__isSmartRef__":true,"id":911}},"8466":{"varMapping":{"__isSmartRef__":true,"id":8467},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":8468},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8469},"__LivelyClassName__":"lively.Closure"},"8467":{"this":{"__isSmartRef__":true,"id":6219}},"8468":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"8469":{"originalFunc":{"__isSmartRef__":true,"id":915}},"8470":{"varMapping":{"__isSmartRef__":true,"id":8471},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8472},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8473},"__LivelyClassName__":"lively.Closure"},"8471":{"this":{"__isSmartRef__":true,"id":6219}},"8472":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"8473":{"originalFunc":{"__isSmartRef__":true,"id":919}},"8474":{"varMapping":{"__isSmartRef__":true,"id":8475},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8480},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8481},"__LivelyClassName__":"lively.Closure"},"8475":{"this":{"__isSmartRef__":true,"id":6219},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8476}},"8476":{"$super":{"__isSmartRef__":true,"id":8477}},"8477":{"varMapping":{"__isSmartRef__":true,"id":8478},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8479},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8478":{"obj":{"__isSmartRef__":true,"id":6219},"name":"onMouseDown"},"8479":{},"8480":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"8481":{"originalFunc":{"__isSmartRef__":true,"id":923}},"8482":{"varMapping":{"__isSmartRef__":true,"id":8483},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":8484},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8485},"__LivelyClassName__":"lively.Closure"},"8483":{"this":{"__isSmartRef__":true,"id":6219}},"8484":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"8485":{"originalFunc":{"__isSmartRef__":true,"id":931}},"8486":{"varMapping":{"__isSmartRef__":true,"id":8487},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":8488},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8489},"__LivelyClassName__":"lively.Closure"},"8487":{"this":{"__isSmartRef__":true,"id":6219}},"8488":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"8489":{"originalFunc":{"__isSmartRef__":true,"id":935}},"8490":{"varMapping":{"__isSmartRef__":true,"id":8491},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":8492},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8493},"__LivelyClassName__":"lively.Closure"},"8491":{"this":{"__isSmartRef__":true,"id":6219}},"8492":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"8493":{"originalFunc":{"__isSmartRef__":true,"id":939}},"8494":{"varMapping":{"__isSmartRef__":true,"id":8495},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":8496},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8497},"__LivelyClassName__":"lively.Closure"},"8495":{"this":{"__isSmartRef__":true,"id":6219}},"8496":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"8497":{"originalFunc":{"__isSmartRef__":true,"id":943}},"8498":{"varMapping":{"__isSmartRef__":true,"id":8499},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":8500},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8501},"__LivelyClassName__":"lively.Closure"},"8499":{"this":{"__isSmartRef__":true,"id":6219}},"8500":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"8501":{"originalFunc":{"__isSmartRef__":true,"id":947}},"8502":{"varMapping":{"__isSmartRef__":true,"id":8503},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":8504},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8505},"__LivelyClassName__":"lively.Closure"},"8503":{"this":{"__isSmartRef__":true,"id":6219}},"8504":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"8505":{"originalFunc":{"__isSmartRef__":true,"id":951}},"8506":{"varMapping":{"__isSmartRef__":true,"id":8507},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":8508},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8509},"__LivelyClassName__":"lively.Closure"},"8507":{"this":{"__isSmartRef__":true,"id":6219}},"8508":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"8509":{"originalFunc":{"__isSmartRef__":true,"id":955}},"8510":{"varMapping":{"__isSmartRef__":true,"id":8511},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":8512},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8513},"__LivelyClassName__":"lively.Closure"},"8511":{"this":{"__isSmartRef__":true,"id":6219}},"8512":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"8513":{"originalFunc":{"__isSmartRef__":true,"id":959}},"8514":{"varMapping":{"__isSmartRef__":true,"id":8515},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":8516},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8517},"__LivelyClassName__":"lively.Closure"},"8515":{"this":{"__isSmartRef__":true,"id":6219}},"8516":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"8517":{"originalFunc":{"__isSmartRef__":true,"id":963}},"8518":{"varMapping":{"__isSmartRef__":true,"id":8519},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8520},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8521},"__LivelyClassName__":"lively.Closure"},"8519":{"this":{"__isSmartRef__":true,"id":6219}},"8520":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"8521":{"originalFunc":{"__isSmartRef__":true,"id":967}},"8522":{"varMapping":{"__isSmartRef__":true,"id":8523},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8524},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8525},"__LivelyClassName__":"lively.Closure"},"8523":{"this":{"__isSmartRef__":true,"id":6219}},"8524":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"8525":{"originalFunc":{"__isSmartRef__":true,"id":971}},"8526":{"varMapping":{"__isSmartRef__":true,"id":8527},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":8528},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8529},"__LivelyClassName__":"lively.Closure"},"8527":{"this":{"__isSmartRef__":true,"id":6219}},"8528":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"8529":{"originalFunc":{"__isSmartRef__":true,"id":975}},"8530":{"varMapping":{"__isSmartRef__":true,"id":8531},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":8532},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8533},"__LivelyClassName__":"lively.Closure"},"8531":{"this":{"__isSmartRef__":true,"id":6219}},"8532":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"8533":{"originalFunc":{"__isSmartRef__":true,"id":979}},"8534":{"varMapping":{"__isSmartRef__":true,"id":8535},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":8536},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8537},"__LivelyClassName__":"lively.Closure"},"8535":{"this":{"__isSmartRef__":true,"id":6219}},"8536":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"8537":{"originalFunc":{"__isSmartRef__":true,"id":983}},"8538":{"varMapping":{"__isSmartRef__":true,"id":8539},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":8540},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8541},"__LivelyClassName__":"lively.Closure"},"8539":{"this":{"__isSmartRef__":true,"id":6219}},"8540":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"8541":{"originalFunc":{"__isSmartRef__":true,"id":987}},"8542":{"varMapping":{"__isSmartRef__":true,"id":8543},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":8544},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8545},"__LivelyClassName__":"lively.Closure"},"8543":{"this":{"__isSmartRef__":true,"id":6219}},"8544":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"8545":{"originalFunc":{"__isSmartRef__":true,"id":991}},"8546":{"varMapping":{"__isSmartRef__":true,"id":8547},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":8548},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8549},"__LivelyClassName__":"lively.Closure"},"8547":{"this":{"__isSmartRef__":true,"id":6219}},"8548":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"8549":{"originalFunc":{"__isSmartRef__":true,"id":995}},"8550":{"varMapping":{"__isSmartRef__":true,"id":8551},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":8552},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8553},"__LivelyClassName__":"lively.Closure"},"8551":{"this":{"__isSmartRef__":true,"id":6219}},"8552":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"8553":{"originalFunc":{"__isSmartRef__":true,"id":999}},"8554":{"varMapping":{"__isSmartRef__":true,"id":8555},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8556},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8557},"__LivelyClassName__":"lively.Closure"},"8555":{"this":{"__isSmartRef__":true,"id":6219}},"8556":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"8557":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"8558":{"varMapping":{"__isSmartRef__":true,"id":8559},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8560},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8561},"__LivelyClassName__":"lively.Closure"},"8559":{"this":{"__isSmartRef__":true,"id":6219}},"8560":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"8561":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"8562":{"varMapping":{"__isSmartRef__":true,"id":8563},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":8564},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8565},"__LivelyClassName__":"lively.Closure"},"8563":{"this":{"__isSmartRef__":true,"id":6219}},"8564":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"8565":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"8566":{"submorphs":[{"__isSmartRef__":true,"id":8567},{"__isSmartRef__":true,"id":8623},{"__isSmartRef__":true,"id":8697},{"__isSmartRef__":true,"id":8720}],"scripts":[{"__isSmartRef__":true,"id":8786},{"__isSmartRef__":true,"id":8788}],"shape":{"__isSmartRef__":true,"id":8789},"renderContextTable":{"__isSmartRef__":true,"id":8795},"eventHandler":{"__isSmartRef__":true,"id":8796},"_ClipMode":"visible","derivationIds":[],"id":"BBB985B7-A91B-4656-9525-FAE46A2EED61","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8797},"partsBinMetaInfo":{"__isSmartRef__":true,"id":3927},"lifeBar":{"__isSmartRef__":true,"id":8567},"deathAnimation":{"__isSmartRef__":true,"id":8623},"owner":{"__isSmartRef__":true,"id":2},"character":{"__isSmartRef__":true,"id":8697},"animateScript":{"__isSmartRef__":true,"id":8786},"isBusy":false,"lastSpeedTimestamp":1343639961716,"walkScript":{"__isSmartRef__":true,"id":8788},"direction":{"__isSmartRef__":true,"id":8798},"__SourceModuleName__":"Global.lively.morphic.Core","textBubble":{"__isSmartRef__":true,"id":8720},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8799},"__LivelyClassName__":"lively.morphic.Box"},"8567":{"submorphs":[],"scripts":[],"id":"129A6119-57BC-4DC5-835E-D5C54D19D195","shape":{"__isSmartRef__":true,"id":8568},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":8575},"showsHalos":false,"name":"LifeBar3","partsBinMetaInfo":{"__isSmartRef__":true,"id":8576},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":8591},"eventHandler":{"__isSmartRef__":true,"id":8592},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","2DB0D0C7-DC87-4CFA-83D0-A3C69D36DFF5","D5A167D3-1B45-47C6-9589-88D524CBB671","B99E0377-C191-4217-A6A5-9C8B280EBFC7","30BAB7C0-114B-4F37-878B-09C11E3D5549","FB770FA2-2303-4F51-B162-092CD8F21AA0","612FF3E2-A0BA-4252-92A6-28D30F489F85","78D369CF-E59B-4EB9-8D69-151A5EC7EBC2","E425FE9E-F1B0-438A-A245-16A29D9D258B","803FB59F-23F3-4A2F-9E13-DC3FB4D6FBC2","16E73362-4726-4C37-8412-BB7F76E007B7","8F9461A6-FB84-4875-BE34-EDF06F5CF22B","E7D9DE9E-946E-47E7-B684-63DCCE65106B","CEE4682F-B1A8-4163-8208-67DAD6993B52","D3072470-ABA6-4EB9-8D01-4BB11A39B26D","31496EA1-A9DF-4D97-835B-E76BA2171F1A"],"partTests":{"__isSmartRef__":true,"id":8593},"_ClipMode":"visible","isBeingDragged":false,"#startLetters":"","_Rotation":0,"_Scale":1.002003004005006,"character":{"__isSmartRef__":true,"id":8566},"owner":{"__isSmartRef__":true,"id":8566},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8598},"__LivelyClassName__":"lively.morphic.Box"},"8568":{"position":{"__isSmartRef__":true,"id":8569},"_Extent":{"__isSmartRef__":true,"id":8570},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":8571},"_Fill":{"__isSmartRef__":true,"id":8572},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":8573},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8574},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"8569":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8570":{"x":48,"y":8,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8571":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8572":{"r":0.59375,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8573":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"8574":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8575":{"x":0,"y":-13,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8576":{"partsSpaceName":"PartsBin/FreedomOfSpeech/","__SourceModuleName__":"Global.lively.PartsBin","comment":"A life bar","migrationLevel":4,"partName":"LifeBar","changes":[{"__isSmartRef__":true,"id":8577},{"__isSmartRef__":true,"id":8579},{"__isSmartRef__":true,"id":8581},{"__isSmartRef__":true,"id":8583},{"__isSmartRef__":true,"id":8585},{"__isSmartRef__":true,"id":8587},{"__isSmartRef__":true,"id":8589}],"revisionOnLoad":159331,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"8577":{"date":{"__isSmartRef__":true,"id":8578},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"8578":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"8579":{"date":{"__isSmartRef__":true,"id":8580},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"8580":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"8581":{"date":{"__isSmartRef__":true,"id":8582},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"8582":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"8583":{"date":{"__isSmartRef__":true,"id":8584},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"8584":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"8585":{"date":{"__isSmartRef__":true,"id":8586},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"8586":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"8587":{"date":{"__isSmartRef__":true,"id":8588},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"8588":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"8589":{"date":{"__isSmartRef__":true,"id":8590},"author":"timfelgentreff","message":"no comment","id":"655F8C6A-8060-4BEC-9535-09682C8F0066"},"8590":{"isSerializedDate":true,"string":"Fri May 04 2012 16:52:35 GMT+0200 (CEST)"},"8591":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"8592":{"morph":{"__isSmartRef__":true,"id":8567},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"8593":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8594}},"8594":{"test01IsMorph":{"__isSmartRef__":true,"id":8595}},"8595":{"varMapping":{"__isSmartRef__":true,"id":8596},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":8597},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8596":{"this":{"__isSmartRef__":true,"id":8593}},"8597":{},"8598":{"setColorForWidth":{"__isSmartRef__":true,"id":8599},"reset":{"__isSmartRef__":true,"id":8603},"hit":{"__isSmartRef__":true,"id":8607},"extent":{"__isSmartRef__":true,"id":8611},"isDead":{"__isSmartRef__":true,"id":8615},"lifeLoss":{"__isSmartRef__":true,"id":8619},"heal":{"__isSmartRef__":true,"id":8603}},"8599":{"varMapping":{"__isSmartRef__":true,"id":8600},"source":"function setColorForWidth() {\n this.setFill(Color.hsb((this.getExtent().x - this.lifeLoss() / 2) / this.extent().x * 100, 1, 1))\n}","funcProperties":{"__isSmartRef__":true,"id":8601},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8600":{"this":{"__isSmartRef__":true,"id":8567}},"8601":{"timestamp":{"__isSmartRef__":true,"id":8602},"user":"timfelgentreff","tags":[]},"8602":{"isSerializedDate":true,"string":"Fri May 04 2012 16:51:59 GMT+0200 (CEST)"},"8603":{"varMapping":{"__isSmartRef__":true,"id":8604},"source":"function reset() {\n this.setExtent(this.extent())\n this.setColorForWidth()\n this.setPosition(pt(0, -13))\n}","funcProperties":{"__isSmartRef__":true,"id":8605},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8604":{"this":{"__isSmartRef__":true,"id":8567}},"8605":{"timestamp":{"__isSmartRef__":true,"id":8606},"user":"timfelgentreff","tags":[]},"8606":{"isSerializedDate":true,"string":"Fri May 04 2012 17:19:31 GMT+0200 (CEST)"},"8607":{"varMapping":{"__isSmartRef__":true,"id":8608},"source":"function hit() {\n this.setExtent(this.getExtent().subPt(pt(this.lifeLoss(), 0)))\n this.setColorForWidth()\n if (this.isDead()) {\n this.character.become(null)\n this.character.deathAnimation.start()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8609},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8608":{"this":{"__isSmartRef__":true,"id":8567}},"8609":{"timestamp":{"__isSmartRef__":true,"id":8610},"user":"timfelgentreff","tags":[]},"8610":{"isSerializedDate":true,"string":"Fri May 04 2012 17:12:01 GMT+0200 (CEST)"},"8611":{"varMapping":{"__isSmartRef__":true,"id":8612},"source":"function extent() {\n return pt(48,8)\n}","funcProperties":{"__isSmartRef__":true,"id":8613},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8612":{"this":{"__isSmartRef__":true,"id":8567}},"8613":{"timestamp":{"__isSmartRef__":true,"id":8614},"user":"timfelgentreff","tags":[]},"8614":{"isSerializedDate":true,"string":"Fri May 04 2012 16:49:30 GMT+0200 (CEST)"},"8615":{"varMapping":{"__isSmartRef__":true,"id":8616},"source":"function isDead() {\n return this.getExtent().x < this.lifeLoss()\n}","funcProperties":{"__isSmartRef__":true,"id":8617},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8616":{"this":{"__isSmartRef__":true,"id":8567}},"8617":{"timestamp":{"__isSmartRef__":true,"id":8618},"user":"timfelgentreff","tags":[]},"8618":{"isSerializedDate":true,"string":"Fri May 04 2012 16:50:02 GMT+0200 (CEST)"},"8619":{"varMapping":{"__isSmartRef__":true,"id":8620},"source":"function lifeLoss() {\n return this.extent().x / 3 - 1\n}","funcProperties":{"__isSmartRef__":true,"id":8621},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8620":{"this":{"__isSmartRef__":true,"id":8567}},"8621":{"timestamp":{"__isSmartRef__":true,"id":8622},"user":"timfelgentreff","tags":[]},"8622":{"isSerializedDate":true,"string":"Fri May 04 2012 16:50:22 GMT+0200 (CEST)"},"8623":{"submorphs":[{"__isSmartRef__":true,"id":8624}],"scripts":[],"id":"DE5E914F-A42C-4296-A192-C6D18CD22B23","shape":{"__isSmartRef__":true,"id":8653},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":8660},"showsHalos":false,"name":"DeathAnimation3","partsBinMetaInfo":{"__isSmartRef__":true,"id":8661},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":8674},"eventHandler":{"__isSmartRef__":true,"id":8675},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","BFF48C2B-8378-49C8-A6EC-5205A2A46D92","0322384E-8399-4532-BD09-846510E4CEB2","D94E58BE-3730-4E93-886D-57D5F7FEDE66","8BA6D9A0-76BF-45F9-8257-B44CE32DC0E8","627E352B-D135-4086-86B2-C7271180C415","1E2E609F-0D3C-43B7-A41A-DEF99F217F62","C106586D-69FF-492C-86C0-9105E43A395A","14B978ED-D71B-4400-8BD0-92F5EB55D3FB","1F548A2A-9935-42D6-A43F-57A789A17989","7AB0E0C5-F3F5-44B8-84A4-FE58514B9CBB","0B24C9CE-0E0A-420E-BABB-1EECAF2A75F7","8BCF21E1-00C1-47E1-8C9D-C6CD6F611A30","94B8E0BB-A727-4D1F-9FCD-57500677A0E3","875CC266-7C10-4E98-A6B6-17C7EB3C93A3","8CBF3E25-2EB1-4DE6-AAB2-17CB254C9012"],"partTests":{"__isSmartRef__":true,"id":8676},"_ClipMode":"visible","isBeingDragged":false,"#startLetters":"image","image":{"__isSmartRef__":true,"id":8624},"baseUrl":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_","counter":1,"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","_Rotation":0,"_Scale":1.002003004005006,"character":{"__isSmartRef__":true,"id":8566},"owner":{"__isSmartRef__":true,"id":8566},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8681},"__LivelyClassName__":"lively.morphic.Box"},"8624":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8625},"derivationIds":[null,"238E91DE-656E-43B5-8E3D-904CDA28A277","C00A3C0E-CF81-421A-BF06-DE6D4804AC6B","4382B5D0-4A0C-4EF1-8EA4-8A5F8AE07FED","C63F1CBE-8F12-4DFF-8B87-724D9AFDE572","4C4D5150-2BCE-4514-A48A-3787AC0E3CCF","8D704A99-14C3-4137-9E77-31DEBF2AA651","40D79729-F063-4AC0-8BA8-E1A794FC48A8","F658FB14-4DBB-4056-9F28-DD002EF336C6","19619216-9747-4EA9-A444-FFBBB4310049","40016546-5DEA-40CF-82DD-70C1F06413D4","0D8C6CD9-1951-4437-8DB1-3C658360D9B3","4A305064-C6ED-4B9B-AE1D-D1C8B588E724","438C7CD7-16E4-4D9E-A015-6D204ADE7635","92787D53-FD63-40D2-B832-464328EA031D","2A03C966-9450-4DC5-9084-A4966D9718CA","27A384D8-C394-47A1-BAE3-C121747B4EAF","D48DE2C7-4C3D-48D4-B639-D97975FE3A81","1EF27416-D2A4-4F72-A536-D94226AE04E2","D504024B-30A0-4034-B03E-EE97D7D12A3A","B8A96F87-B36E-4C2A-A697-1911B0D4A10E","CA123CA5-7C77-457D-8505-3D1E2EA12ACC"],"id":"FA84629D-5C64-42FB-B518-2BBEC6619783","renderContextTable":{"__isSmartRef__":true,"id":8630},"eventHandler":{"__isSmartRef__":true,"id":8631},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8632},"name":"DeathAnimationImage","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":8633},"__SourceModuleName__":"Global.lively.morphic.Widgets","moved":true,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_ClipMode":"visible","isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":8623},"#startLetters":"","eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","_Visible":false,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8648},"__LivelyClassName__":"lively.morphic.Image"},"8625":{"_Position":{"__isSmartRef__":true,"id":8626},"renderContextTable":{"__isSmartRef__":true,"id":8627},"_Extent":{"__isSmartRef__":true,"id":8628},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8629},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_1.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"8626":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8627":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"8628":{"x":72,"y":72,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8629":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8630":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"8631":{"morph":{"__isSmartRef__":true,"id":8624},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"8632":{"x":-12,"y":-12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8633":{"partName":"CoderCharacter","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"An animated character with a Apple Macbook Air, hacking away and looking suspicious. He loves Latté and hacks Rails...he's a real hipster, living in Mission, SF.","changes":[{"__isSmartRef__":true,"id":8634},{"__isSmartRef__":true,"id":8636},{"__isSmartRef__":true,"id":8638},{"__isSmartRef__":true,"id":8640},{"__isSmartRef__":true,"id":8642},{"__isSmartRef__":true,"id":8644},{"__isSmartRef__":true,"id":8646}],"migrationLevel":4,"__SourceModuleName__":"Global.lively.PartsBin","revisionOnLoad":156414,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"8634":{"date":{"__isSmartRef__":true,"id":8635},"author":"lauritz","message":"extended his horizon minimally","id":"50EA136D-373D-4B07-9743-671C5D5FD786"},"8635":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:36:11 GMT+0200 (CEST)"},"8636":{"date":{"__isSmartRef__":true,"id":8637},"author":"tessi","message":"typo","id":"C3C7C127-AA94-4893-ACE9-14FE290D4CE1"},"8637":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:33:53 GMT+0200 (CEST)"},"8638":{"date":{"__isSmartRef__":true,"id":8639},"author":"tessi","message":"","id":"F17F7ABD-5B30-4809-9E08-0A11240FCE2B"},"8639":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:32:18 GMT+0200 (CEST)"},"8640":{"date":{"__isSmartRef__":true,"id":8641},"author":"tessi","message":"","id":"AC6C3961-CFFB-4C4A-8769-970359274337"},"8641":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:01:43 GMT+0200 (CEST)"},"8642":{"date":{"__isSmartRef__":true,"id":8643},"author":"tessi","message":"some soliloquize sentences for the awesome coder!","id":"892B001E-626A-4EE7-A217-E88C4E1F6088"},"8643":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:52:20 GMT+0200 (CEST)"},"8644":{"date":{"__isSmartRef__":true,"id":8645},"author":"lauritz","message":"no comment","id":"56F017FB-5032-49A5-A6C0-A856F2AB5B55"},"8645":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:23:49 GMT+0200 (CEST)"},"8646":{"date":{"__isSmartRef__":true,"id":8647},"author":"lauritz","message":"no comment","id":"52EB067D-BE9C-4E05-9599-5B3D0D663B9E"},"8647":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:30:38 GMT+0200 (CEST)"},"8648":{"soliloquize":{"__isSmartRef__":true,"id":8649}},"8649":{"varMapping":{"__isSmartRef__":true,"id":8650},"source":"function soliloquize() {\n this.soloSentences = this.soloSentences || [\n \"Wonder what the new iPony will be like\",\n \"Can i have some Mate pl0x?\",\n \"*click* *clack* *clack*\",\n \"Shouldn't this run faster?\",\n \"Wonder why people use Windows...\",\n \"Lets start a new programming language!\",\n \"Awesome!\",\n \"git rebase to the rescue!\",\n \"Array(16).join(\\\"wat\\\" - 1) + \\\" Batman!\\\"\",\n \"aww. screwed up the pointers\\n.. again!\",\n \"i need horn-rimmed glasses\",\n \"i'm no hipster.\",\n \"can i have a lattai\",\n \"everything you can do i can do better\",\n \"i can do everything better than you\",\n \"i studied at HPI\",\n \"oop is not for everyone\",\n \"it's spring after the java nuclear winter\",\n \"Is the company based in Mission?\",\n \"Who's that Alan Kay dude?\",\n \"I [github] code\"\n ]\n return this.soloSentences[Math.floor(Math.random() * this.soloSentences.length)]\n}","funcProperties":{"__isSmartRef__":true,"id":8651},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8650":{"this":{"__isSmartRef__":true,"id":8624}},"8651":{"timestamp":{"__isSmartRef__":true,"id":8652},"user":"lauritz","tags":[]},"8652":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:35:45 GMT+0200 (CEST)"},"8653":{"position":{"__isSmartRef__":true,"id":8654},"_Extent":{"__isSmartRef__":true,"id":8655},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":8656},"_Fill":{"__isSmartRef__":true,"id":8657},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":8658},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8659},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"8654":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8655":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8656":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8657":{"r":0,"g":0,"b":0,"a":0,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8658":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"8659":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8660":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8661":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph. A really blue one. Its amazing what you can build out of simple boxes.... Who needs stars when you got blue rectangles!","migrationLevel":4,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":8662},{"__isSmartRef__":true,"id":8664},{"__isSmartRef__":true,"id":8666},{"__isSmartRef__":true,"id":8668},{"__isSmartRef__":true,"id":8670},{"__isSmartRef__":true,"id":8672}],"revisionOnLoad":158846,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"8662":{"date":{"__isSmartRef__":true,"id":8663},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"8663":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"8664":{"date":{"__isSmartRef__":true,"id":8665},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"8665":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"8666":{"date":{"__isSmartRef__":true,"id":8667},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"8667":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"8668":{"date":{"__isSmartRef__":true,"id":8669},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"8669":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"8670":{"date":{"__isSmartRef__":true,"id":8671},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"8671":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"8672":{"date":{"__isSmartRef__":true,"id":8673},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"8673":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"8674":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"8675":{"morph":{"__isSmartRef__":true,"id":8623},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"8676":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8677}},"8677":{"test01IsMorph":{"__isSmartRef__":true,"id":8678}},"8678":{"varMapping":{"__isSmartRef__":true,"id":8679},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":8680},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8679":{"this":{"__isSmartRef__":true,"id":8676}},"8680":{},"8681":{"die":{"__isSmartRef__":true,"id":8682},"reset":{"__isSmartRef__":true,"id":8685},"nextImage":{"__isSmartRef__":true,"id":8689},"start":{"__isSmartRef__":true,"id":8693}},"8682":{"varMapping":{"__isSmartRef__":true,"id":8683},"source":"function die() {\n this.nextImage()\n if (this.counter === 1) {\n this.character.animate(false);\n this.character.remove()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8684},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8683":{"this":{"__isSmartRef__":true,"id":8623}},"8684":{},"8685":{"varMapping":{"__isSmartRef__":true,"id":8686},"source":"function reset() {\n this.stopStepping()\n this.baseUrl = \"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_\"\n this.counter = 0\n this.image.setPosition(pt(-12,-12))\n this.image.disableEvents()\n this.nextImage()\n this.setPosition(pt(0,0))\n this.setBorderWidth(0)\n this.image.setVisible(false)\n}","funcProperties":{"__isSmartRef__":true,"id":8687},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8686":{"this":{"__isSmartRef__":true,"id":8623}},"8687":{"timestamp":{"__isSmartRef__":true,"id":8688},"user":"timfelgentreff","tags":[]},"8688":{"isSerializedDate":true,"string":"Fri May 04 2012 17:24:17 GMT+0200 (CEST)"},"8689":{"varMapping":{"__isSmartRef__":true,"id":8690},"source":"function nextImage() {\n this.counter = this.counter % 6 + 1\n this.image.setImageURL(this.baseUrl + this.counter + \".png\")\n}","funcProperties":{"__isSmartRef__":true,"id":8691},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8690":{"this":{"__isSmartRef__":true,"id":8623}},"8691":{"timestamp":{"__isSmartRef__":true,"id":8692},"user":"timfelgentreff","tags":[]},"8692":{"isSerializedDate":true,"string":"Fri May 04 2012 17:09:29 GMT+0200 (CEST)"},"8693":{"varMapping":{"__isSmartRef__":true,"id":8694},"source":"function start() {\n this.image.setVisible(true)\n this.startStepping(150, \"die\")\n}","funcProperties":{"__isSmartRef__":true,"id":8695},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8694":{"this":{"__isSmartRef__":true,"id":8623}},"8695":{"timestamp":{"__isSmartRef__":true,"id":8696},"user":"timfelgentreff","tags":[]},"8696":{"isSerializedDate":true,"string":"Fri May 04 2012 17:25:07 GMT+0200 (CEST)"},"8697":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8698},"derivationIds":[null,"17C4EE97-826C-415A-8C15-DF1797CB94E9","1CBEA615-0810-4FA0-8E3E-7F3EA1A4D49C","5A113B50-083E-46E1-B093-F54D8AE1FFCC","4C563B33-6C0F-4CD3-85B2-2CDD62EDB4A8"],"id":"30868718-2125-4C58-AEF6-7C293775FCE3","renderContextTable":{"__isSmartRef__":true,"id":8703},"eventHandler":{"__isSmartRef__":true,"id":8704},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8705},"name":"VillagegirlCharacter","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":8706},"__SourceModuleName__":"Global.lively.morphic.Widgets","moved":true,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"owner":{"__isSmartRef__":true,"id":8566},"eventsAreIgnored":true,"soloSentences":["*blush*","I'm afraid of ogres!","Can someone help me please?","Lovely flowers!","Hope someone will marry me","Mother said I'm beautiful","Oh! A butterfly!","Am I a lively object?","I wanna become America's Next Topmodel!","Math is sooo difficult!","Isn't the villager a real character?","Pink is the new red!"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8715},"__LivelyClassName__":"lively.morphic.Image"},"8698":{"_Position":{"__isSmartRef__":true,"id":8699},"renderContextTable":{"__isSmartRef__":true,"id":8700},"_Extent":{"__isSmartRef__":true,"id":8701},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8702},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/villagegirl.gif","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"8699":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8700":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"8701":{"x":72,"y":72,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8702":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8703":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"8704":{"morph":{"__isSmartRef__":true,"id":8697},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"8705":{"x":-12,"y":-12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8706":{"partName":"VillagegirlCharacter","requiredModules":[],"comment":"An animated FreedomOfSpeech Character. I fancy the stupid villager,... he's such a character!","changes":[{"__isSmartRef__":true,"id":8707},{"__isSmartRef__":true,"id":8709},{"__isSmartRef__":true,"id":8711},{"__isSmartRef__":true,"id":8713}],"migrationLevel":4,"partsSpaceName":"PartsBin/FreedomOfSpeech","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"8707":{"date":{"__isSmartRef__":true,"id":8708},"author":"tessi","message":"The villagegirl talks","id":"6E077572-F568-45ED-9BEB-8119C2937546"},"8708":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:36:16 GMT+0200 (CEST)"},"8709":{"date":{"__isSmartRef__":true,"id":8710},"author":"tessi","message":"","id":"40AE07CC-8956-4025-B814-281AF77CE49A"},"8710":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:36:46 GMT+0200 (CEST)"},"8711":{"date":{"__isSmartRef__":true,"id":8712},"author":"tessi","message":"","id":"580730F8-4523-440B-BC81-8DCF393E801E"},"8712":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:44:22 GMT+0200 (CEST)"},"8713":{"date":{"__isSmartRef__":true,"id":8714},"author":"lauritz","message":"no comment","id":"26E4F80D-E6CB-4378-A1E2-9356985982BD"},"8714":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:51 GMT+0200 (CEST)"},"8715":{"soliloquize":{"__isSmartRef__":true,"id":8716}},"8716":{"varMapping":{"__isSmartRef__":true,"id":8717},"source":"function soliloquize() {\n this.soloSentences = this.soloSentences || [\n \"*blush*\",\n \"I'm afraid of ogres!\",\n \"Can someone help me please?\",\n \"Lovely flowers!\",\n \"Hope someone will marry me\",\n \"Mother said I'm beautiful\",\n \"Oh! A butterfly!\",\n \"Am I a lively object?\",\n \"I wanna become America's Next Topmodel!\",\n \"Math is sooo difficult!\",\n \"Isn't the villager a real character?\",\n \"Pink is the new red!\"\n ]\n return this.soloSentences[Math.floor(Math.random() * this.soloSentences.length)]\n}","funcProperties":{"__isSmartRef__":true,"id":8718},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8717":{"this":{"__isSmartRef__":true,"id":8697}},"8718":{"timestamp":{"__isSmartRef__":true,"id":8719},"user":"lauritz","tags":[]},"8719":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:33:47 GMT+0200 (CEST)"},"8720":{"submorphs":[{"__isSmartRef__":true,"id":8721}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8743},"id":"F55DD38C-7337-41F9-A0B9-86BACC16AF49","renderContextTable":{"__isSmartRef__":true,"id":8750},"eventHandler":{"__isSmartRef__":true,"id":8751},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8752},"__SourceModuleName__":"Global.lively.morphic.Core","showsHalos":false,"layout":{"__isSmartRef__":true,"id":8753},"name":"TextBubble3","partsBinMetaInfo":{"__isSmartRef__":true,"id":8754},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","DE7B4D82-53D6-47AB-B640-FF3635F70AA7","99C53948-AA15-4796-B491-DB674F1EE087","58EDE5FE-6BAF-448F-B9DB-E94E1A69C992","2325F322-A469-433D-8288-7419BADD05F5"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_ClipMode":"visible","isBeingDragged":false,"text":{"__isSmartRef__":true,"id":8721},"isCopyMorphRef":true,"morphRefId":1,"_Visible":true,"moved":true,"_Rotation":0,"_Scale":1,"owner":{"__isSmartRef__":true,"id":8566},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8765},"__LivelyClassName__":"lively.morphic.Morph"},"8721":{"submorphs":[],"scripts":[],"id":"9B3C2E40-0C33-45FD-8BDB-D309D100B66C","shape":{"__isSmartRef__":true,"id":8722},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":8728},"_MaxTextWidth":null,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":8725},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Text","partsBinMetaInfo":{"__isSmartRef__":true,"id":8729},"textChunks":[{"__isSmartRef__":true,"id":8736}],"charsReplaced":"s","lastFindLoc":6,"prevScroll":[0,0],"renderContextTable":{"__isSmartRef__":true,"id":8738},"eventHandler":{"__isSmartRef__":true,"id":8739},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Padding":{"__isSmartRef__":true,"id":8740},"_ClipMode":"none","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","ECCF99AE-9763-4D68-9C21-0B5A520DB15D","2EA15529-B8A7-4D60-BAE3-8E14E934A428","3A910B2E-EF96-4264-95AF-E82F57C6DBFD","506A72F2-95FC-4677-B6D2-03CA2EC46DBB"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":null,"_MinTextHeight":null,"previousSelection":[2,2],"owner":{"__isSmartRef__":true,"id":8720},"isBeingDragged":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":8741},"isLabel":true,"_HandStyle":"default","allowInput":false,"eventsAreIgnored":true,"layout":{"__isSmartRef__":true,"id":8742},"_Rotation":0,"_Scale":1.002003004005006,"__LivelyClassName__":"lively.morphic.Text"},"8722":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":8723},"_Extent":{"__isSmartRef__":true,"id":8724},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":8725},"renderContextTable":{"__isSmartRef__":true,"id":8726},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8727},"_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"8723":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8724":{"x":179,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8725":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8726":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"8727":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8728":{"x":-28,"y":-42,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8729":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":8730},{"__isSmartRef__":true,"id":8732},{"__isSmartRef__":true,"id":8734}],"revisionOnLoad":154217,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"8730":{"date":{"__isSmartRef__":true,"id":8731},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"8731":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"8732":{"date":{"__isSmartRef__":true,"id":8733},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"8733":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"8734":{"date":{"__isSmartRef__":true,"id":8735},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"8735":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"8736":{"style":{"__isSmartRef__":true,"id":8737},"chunkOwner":{"__isSmartRef__":true,"id":8721},"_id":"_1631","storedString":"Am I a lively object?","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8737":{"whiteSpace":"pre","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8738":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"8739":{"morph":{"__isSmartRef__":true,"id":8721},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"8740":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8741":{"x":66,"y":-19,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8742":{"centeredHorizontal":true,"centeredVertical":true,"adjustForNewBounds":true},"8743":{"_Position":{"__isSmartRef__":true,"id":8744},"renderContextTable":{"__isSmartRef__":true,"id":8745},"_Extent":{"__isSmartRef__":true,"id":8746},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8747},"_BorderWidth":2.444,"_BorderColor":{"__isSmartRef__":true,"id":8748},"_Fill":{"__isSmartRef__":true,"id":8749},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"_Opacity":0.6818000000000001,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Ellipse"},"8744":{"x":-50,"y":-50,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8745":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"8746":{"x":229,"y":47,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8747":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8748":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8749":{"r":0.921,"g":0.921,"b":0.921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8750":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"8751":{"morph":{"__isSmartRef__":true,"id":8720},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"8752":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8753":{"resizeWidth":true,"resizeHeight":true},"8754":{"partName":"TextBubble","requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/FreedomOfSpeech","__SourceModuleName__":"Global.lively.PartsBin","revisionOnLoad":159635,"comment":"A little text bubble with a say(\"string\") method","changes":[{"__isSmartRef__":true,"id":8755},{"__isSmartRef__":true,"id":8757},{"__isSmartRef__":true,"id":8759},{"__isSmartRef__":true,"id":8761},{"__isSmartRef__":true,"id":8763}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"8755":{"date":{"__isSmartRef__":true,"id":8756},"author":"tessi","message":"Fix multiline text and text wrapping bugs; added reset() function","id":"F30F2C0C-BE12-4128-A871-336DBCFEA0E4"},"8756":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:18:14 GMT+0200 (CEST)"},"8757":{"date":{"__isSmartRef__":true,"id":8758},"author":"undefined","message":"reverted changes - was there any description of this morph?","id":"C3C03411-9523-4F35-89EC-B20E24B3C287"},"8758":{"isSerializedDate":true,"string":"Tue Apr 03 2012 09:08:08 GMT+0200 (CEST)"},"8759":{"date":{"__isSmartRef__":true,"id":8760},"author":"tessi","message":"no comment","id":"F0B6C1B2-B5D8-4250-9126-12195350AC31"},"8760":{"isSerializedDate":true,"string":"Fri Apr 20 2012 23:58:32 GMT+0200 (CEST)"},"8761":{"date":{"__isSmartRef__":true,"id":8762},"author":"tessi","message":"let TextBubble disappear when nothing was said some tim","id":"10474226-7FE2-4BFB-AEA5-365C537C3666"},"8762":{"isSerializedDate":true,"string":"Sat Apr 21 2012 11:49:01 GMT+0200 (CEST)"},"8763":{"date":{"__isSmartRef__":true,"id":8764},"author":"tessi","message":"added hide() method","id":"D8F1C9C7-279C-441E-85C1-1F6BBC58E311"},"8764":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:15:55 GMT+0200 (CEST)"},"8765":{"say":{"__isSmartRef__":true,"id":8766},"showBubbleTime":{"__isSmartRef__":true,"id":8770},"disappear":{"__isSmartRef__":true,"id":8774},"reset":{"__isSmartRef__":true,"id":8778},"hide":{"__isSmartRef__":true,"id":8782}},"8766":{"varMapping":{"__isSmartRef__":true,"id":8767},"source":"function say(aString) {\n var textExtent, _this = this\n if (aString !== undefined ) {\n this.text.setTextString(aString)\n } else {\n this.text.setTextString(\"TextBubble\")\n }\n this.text.getTextChunks().first().styleText({whiteSpace: \"pre\"})\n this.text.fit()\n textExtent = this.text.getExtent()\n textExtent.y = this.text.getTextChunks().first().chunkNode.parentElement.scrollHeight\n this.setExtent(pt(textExtent.x + 50, textExtent.y + 25))\n this.setVisible(true)\n if (aString !== undefined ) {\n window.setTimeout(function(){ _this.disappear(aString) }, this.showBubbleTime())\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8768},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8767":{"this":{"__isSmartRef__":true,"id":8720}},"8768":{"timestamp":{"__isSmartRef__":true,"id":8769},"user":"tessi","tags":[]},"8769":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:16:26 GMT+0200 (CEST)"},"8770":{"varMapping":{"__isSmartRef__":true,"id":8771},"source":"function showBubbleTime() {\n return 6000\n}","funcProperties":{"__isSmartRef__":true,"id":8772},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8771":{"this":{"__isSmartRef__":true,"id":8720}},"8772":{"timestamp":{"__isSmartRef__":true,"id":8773},"user":"timfelgentreff","tags":[]},"8773":{"isSerializedDate":true,"string":"Sat May 05 2012 19:26:43 GMT+0200 (CEST)"},"8774":{"varMapping":{"__isSmartRef__":true,"id":8775},"source":"function disappear(oldText) {\n if (this.text.getTextString() == oldText) {\n this.hide()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8776},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8775":{"this":{"__isSmartRef__":true,"id":8720}},"8776":{"timestamp":{"__isSmartRef__":true,"id":8777},"user":"tessi","tags":[]},"8777":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:15:35 GMT+0200 (CEST)"},"8778":{"varMapping":{"__isSmartRef__":true,"id":8779},"source":"function reset() {\n this.say()\n}","funcProperties":{"__isSmartRef__":true,"id":8780},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8779":{"this":{"__isSmartRef__":true,"id":8720}},"8780":{"timestamp":{"__isSmartRef__":true,"id":8781},"user":"tessi","tags":[]},"8781":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:17:22 GMT+0200 (CEST)"},"8782":{"varMapping":{"__isSmartRef__":true,"id":8783},"source":"function hide() {\n this.setVisible(false)\n}","funcProperties":{"__isSmartRef__":true,"id":8784},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8783":{"this":{"__isSmartRef__":true,"id":8720}},"8784":{"timestamp":{"__isSmartRef__":true,"id":8785},"user":"tessi","tags":[]},"8785":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:15:24 GMT+0200 (CEST)"},"8786":{"target":{"__isSmartRef__":true,"id":8566},"selector":"doSomething","args":[{"__isSmartRef__":true,"id":8787}],"stopped":false,"tickTime":3000,"__SourceModuleName__":"Global.lively.morphic.Core","suspended":false,"__LivelyClassName__":"lively.morphic.TargetScript"},"8787":{},"8788":{"target":{"__isSmartRef__":true,"id":8566},"selector":"aStarWalkPath","args":[[{"__isSmartRef__":true,"id":6200}]],"stopped":true,"tickTime":10,"__SourceModuleName__":"Global.lively.morphic.Core","suspended":false,"__LivelyClassName__":"lively.morphic.TargetScript"},"8789":{"_Position":{"__isSmartRef__":true,"id":8790},"renderContextTable":{"__isSmartRef__":true,"id":8791},"_Extent":{"__isSmartRef__":true,"id":8792},"_Padding":{"__isSmartRef__":true,"id":8793},"_NodeClass":["Morph","Box"],"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":8794},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"8790":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8791":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"8792":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8793":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8794":{"r":0,"g":0,"b":0,"a":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8795":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"8796":{"morph":{"__isSmartRef__":true,"id":8566},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"8797":{"x":48,"y":384,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8798":{"x":0,"y":1,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8799":{"setDevStyle":{"__isSmartRef__":true,"id":8800},"setNormalStyle":{"__isSmartRef__":true,"id":8804},"tileSize":{"__isSmartRef__":true,"id":8808},"become":{"__isSmartRef__":true,"id":8812},"walkUntilReached":{"__isSmartRef__":true,"id":8816},"onMouseDown":{"__isSmartRef__":true,"id":8820},"walkTo":{"__isSmartRef__":true,"id":8828},"currentTile":{"__isSmartRef__":true,"id":8832},"toolbox":{"__isSmartRef__":true,"id":8836},"setCurrentSpeed":{"__isSmartRef__":true,"id":8840},"getCurrentSpeed":{"__isSmartRef__":true,"id":8844},"isWalking":{"__isSmartRef__":true,"id":8848},"select":{"__isSmartRef__":true,"id":8852},"deselect":{"__isSmartRef__":true,"id":8856},"becomeRandomCharacter":{"__isSmartRef__":true,"id":8860},"reset":{"__isSmartRef__":true,"id":8864},"setDirectionToTile":{"__isSmartRef__":true,"id":8868},"getDirection":{"__isSmartRef__":true,"id":8872},"setDirection":{"__isSmartRef__":true,"id":8876},"setPosition":{"__isSmartRef__":true,"id":8880},"say":{"__isSmartRef__":true,"id":8888},"soliloquize":{"__isSmartRef__":true,"id":8892},"characterType":{"__isSmartRef__":true,"id":8896},"animate":{"__isSmartRef__":true,"id":8900},"doSomething":{"__isSmartRef__":true,"id":8904},"map":{"__isSmartRef__":true,"id":8908},"game":{"__isSmartRef__":true,"id":8912},"setup":{"__isSmartRef__":true,"id":8916},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":8920},"startConversation":{"__isSmartRef__":true,"id":8928},"startConversationWith":{"__isSmartRef__":true,"id":8932},"shallowCopy":{"__isSmartRef__":true,"id":8936},"conversation":{"__isSmartRef__":true,"id":8940},"answer":{"__isSmartRef__":true,"id":8944},"hideTextBubble":{"__isSmartRef__":true,"id":8948},"aStar":{"__isSmartRef__":true,"id":8952},"aStarHeuristicCostEstimate":{"__isSmartRef__":true,"id":8956},"aStarWalkPath":{"__isSmartRef__":true,"id":8960},"chatBot":{"__isSmartRef__":true,"id":8964},"getHit":{"__isSmartRef__":true,"id":8968},"becomePlayer":{"__isSmartRef__":true,"id":8972},"fight":{"__isSmartRef__":true,"id":8976},"fightPhrases":{"__isSmartRef__":true,"id":8980},"randomQuestions":{"__isSmartRef__":true,"id":8984},"randomAnswersFor":{"__isSmartRef__":true,"id":8988},"executeFightTurnAsking":{"__isSmartRef__":true,"id":8992},"heal":{"__isSmartRef__":true,"id":8996},"isDead":{"__isSmartRef__":true,"id":9000}},"8800":{"varMapping":{"__isSmartRef__":true,"id":8801},"source":"function setDevStyle() {\n if (this.map()) {\n this.setExtent(this.tileSize())\n }\n this.setFill(null)\n this.shape.setBorderColor(Color.yellow)\n}","funcProperties":{"__isSmartRef__":true,"id":8802},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8803},"__LivelyClassName__":"lively.Closure"},"8801":{"this":{"__isSmartRef__":true,"id":8566}},"8802":{"timestamp":{"__isSmartRef__":true,"id":4151},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4152},"declaredObject":""},"8803":{"originalFunc":{"__isSmartRef__":true,"id":4152}},"8804":{"varMapping":{"__isSmartRef__":true,"id":8805},"source":"function setNormalStyle() {\n this.setDevStyle()\n this.shape.setBorderColor(new Color.rgba(0,0,0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":8806},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8807},"__LivelyClassName__":"lively.Closure"},"8805":{"this":{"__isSmartRef__":true,"id":8566}},"8806":{"timestamp":{"__isSmartRef__":true,"id":4299},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4296},"declaredObject":""},"8807":{"originalFunc":{"__isSmartRef__":true,"id":4296}},"8808":{"varMapping":{"__isSmartRef__":true,"id":8809},"source":"function tileSize() {\n return this.map().tileSize()\n}","funcProperties":{"__isSmartRef__":true,"id":8810},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8811},"__LivelyClassName__":"lively.Closure"},"8809":{"this":{"__isSmartRef__":true,"id":8566}},"8810":{"timestamp":{"__isSmartRef__":true,"id":4303},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4300},"declaredObject":""},"8811":{"originalFunc":{"__isSmartRef__":true,"id":4300}},"8812":{"varMapping":{"__isSmartRef__":true,"id":8813},"source":"function become(player) {\n if (this.character) {\n this.character.remove()\n this.character = null\n }\n if (!player) { return this }\n \n this.character = this.toolbox(player + \"Character\")\n if (this.character) {\n // image should be 150% of a tile\n this.character.setExtent(this.tileSize().scaleBy(1.5))\n // -25% offset to center character on tile\n this.character.setPositionTopLeft(this.tileSize().scaleBy(-0.25))\n this.addMorph(this.character)\n this.character.ignoreEvents()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8814},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8815},"__LivelyClassName__":"lively.Closure"},"8813":{"this":{"__isSmartRef__":true,"id":8566}},"8814":{"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4304},"declaredObject":""},"8815":{"originalFunc":{"__isSmartRef__":true,"id":4304}},"8816":{"varMapping":{"__isSmartRef__":true,"id":8817},"source":"function walkUntilReached(tile) {\n var minPositive = function (a, b) {\n a = Math.abs(a), b = Math.abs(b)\n return a ? (b ? Math.min(a, b) : a) : b\n }\n\n // this.setPosition(pt(0,0))\n if (this.getPosition().equals(tile.getPosition())) {\n if (this.walkScript) { this.walkScript.stop() }\n this.setDirection(pt(0,0))\n tile.enterTile(this)\n } else {\n if (this.currentTile() !== tile) {\n this.setDirectionToTile(tile)\n var nextNeighbours = this.currentTile().neighboursInDirection(this.getDirection())\n if (nextNeighbours.any(function (each) { return each.isObstacle() })) {\n this.walkTo(this.currentTile())\n } else {\n var directionVector = this.getPosition().subPt(tile.getPosition()),\n maxSpeed = minPositive(directionVector.x, directionVector.y),\n speed = Math.min(maxSpeed, this.getCurrentSpeed())\n this.moveBy(this.getDirection().scaleBy(speed))\n }\n } else {\n var directionVector = this.getPosition().subPt(tile.getPosition()),\n maxSpeed = minPositive(directionVector.x, directionVector.y),\n speed = Math.min(maxSpeed, this.getCurrentSpeed())\n this.moveBy(this.getDirection().scaleBy(speed))\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8818},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8819},"__LivelyClassName__":"lively.Closure"},"8817":{"this":{"__isSmartRef__":true,"id":8566}},"8818":{"timestamp":{"__isSmartRef__":true,"id":4310},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4307},"declaredObject":""},"8819":{"originalFunc":{"__isSmartRef__":true,"id":4307}},"8820":{"varMapping":{"__isSmartRef__":true,"id":8821},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.game()) {\n if (this.game().selectedUnit !== this) {\n if (this.game().selectedUnit !== null) {\n this.game().selectedUnit.deselect()\n }\n this.select()\n } else {\n this.deselect()\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8826},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8827},"__LivelyClassName__":"lively.Closure"},"8821":{"this":{"__isSmartRef__":true,"id":8566},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8822}},"8822":{"$super":{"__isSmartRef__":true,"id":8823}},"8823":{"varMapping":{"__isSmartRef__":true,"id":8824},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8825},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8824":{"obj":{"__isSmartRef__":true,"id":8566},"name":"onMouseDown"},"8825":{},"8826":{"timestamp":{"__isSmartRef__":true,"id":4318},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4311},"declaredObject":""},"8827":{"originalFunc":{"__isSmartRef__":true,"id":4311}},"8828":{"varMapping":{"__isSmartRef__":true,"id":8829},"source":"function walkTo(tile) {\n this.lastSpeedTimestamp = Date.now()\n var path = this.aStar(tile),\n that = this\n if (path.length === 0) {\n alertOK(\"No path found\")\n } else {\n this.walkScript = this.startStepping(10, \"aStarWalkPath\", path)\n }\n // this.walkScript = this.startStepping(10, \"walkUntilReached\", tile)\n this.currentTile().leaveTile(this)\n}","funcProperties":{"__isSmartRef__":true,"id":8830},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8831},"__LivelyClassName__":"lively.Closure"},"8829":{"this":{"__isSmartRef__":true,"id":8566}},"8830":{"timestamp":{"__isSmartRef__":true,"id":4322},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4319},"declaredObject":""},"8831":{"originalFunc":{"__isSmartRef__":true,"id":4319}},"8832":{"varMapping":{"__isSmartRef__":true,"id":8833},"source":"function currentTile() {\n if ( !this.character || !this.map() ) { return null }\n return this.map().getTileForPosition(\n this.getPosition().addPt(this.character.getBounds().center()))\n}","funcProperties":{"__isSmartRef__":true,"id":8834},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8835},"__LivelyClassName__":"lively.Closure"},"8833":{"this":{"__isSmartRef__":true,"id":8566}},"8834":{"timestamp":{"__isSmartRef__":true,"id":4326},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4323},"declaredObject":""},"8835":{"originalFunc":{"__isSmartRef__":true,"id":4323}},"8836":{"varMapping":{"__isSmartRef__":true,"id":8837},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":8838},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8839},"__LivelyClassName__":"lively.Closure"},"8837":{"this":{"__isSmartRef__":true,"id":8566}},"8838":{"timestamp":{"__isSmartRef__":true,"id":4330},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4327},"declaredObject":""},"8839":{"originalFunc":{"__isSmartRef__":true,"id":4327}},"8840":{"varMapping":{"__isSmartRef__":true,"id":8841},"source":"function setCurrentSpeed(arg) {\n this.currentSpeed = arg\n}","funcProperties":{"__isSmartRef__":true,"id":8842},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8843},"__LivelyClassName__":"lively.Closure"},"8841":{"this":{"__isSmartRef__":true,"id":8566}},"8842":{"timestamp":{"__isSmartRef__":true,"id":4334},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4331},"declaredObject":""},"8843":{"originalFunc":{"__isSmartRef__":true,"id":4331}},"8844":{"varMapping":{"__isSmartRef__":true,"id":8845},"source":"function getCurrentSpeed() {\n var multiplier = (Date.now() - this.lastSpeedTimestamp) / 10\n this.lastSpeedTimestamp = Date.now()\n return multiplier\n}","funcProperties":{"__isSmartRef__":true,"id":8846},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8847},"__LivelyClassName__":"lively.Closure"},"8845":{"this":{"__isSmartRef__":true,"id":8566}},"8846":{"timestamp":{"__isSmartRef__":true,"id":4338},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4335},"declaredObject":""},"8847":{"originalFunc":{"__isSmartRef__":true,"id":4335}},"8848":{"varMapping":{"__isSmartRef__":true,"id":8849},"source":"function isWalking() {\n return !this.getDirection().equals(pt(0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":8850},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8851},"__LivelyClassName__":"lively.Closure"},"8849":{"this":{"__isSmartRef__":true,"id":8566}},"8850":{"timestamp":{"__isSmartRef__":true,"id":4342},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4339},"declaredObject":""},"8851":{"originalFunc":{"__isSmartRef__":true,"id":4339}},"8852":{"varMapping":{"__isSmartRef__":true,"id":8853},"source":"function select() {\n this.game().selectedUnit = this\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":8854},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8855},"__LivelyClassName__":"lively.Closure"},"8853":{"this":{"__isSmartRef__":true,"id":8566}},"8854":{"timestamp":{"__isSmartRef__":true,"id":4346},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4343},"declaredObject":""},"8855":{"originalFunc":{"__isSmartRef__":true,"id":4343}},"8856":{"varMapping":{"__isSmartRef__":true,"id":8857},"source":"function deselect() {\n this.game().selectedUnit = null\n this.setNormalStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":8858},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8859},"__LivelyClassName__":"lively.Closure"},"8857":{"this":{"__isSmartRef__":true,"id":8566}},"8858":{"timestamp":{"__isSmartRef__":true,"id":4350},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4347},"declaredObject":""},"8859":{"originalFunc":{"__isSmartRef__":true,"id":4347}},"8860":{"varMapping":{"__isSmartRef__":true,"id":8861},"source":"function becomeRandomCharacter() {\n var characterNames = this.game().partNamesEndingWith(\"Character\")\n this.become(characterNames[Math.round(Math.random() * (characterNames.length - 1))])\n}","funcProperties":{"__isSmartRef__":true,"id":8862},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8863},"__LivelyClassName__":"lively.Closure"},"8861":{"this":{"__isSmartRef__":true,"id":8566}},"8862":{"timestamp":{"__isSmartRef__":true,"id":4354},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4351},"declaredObject":""},"8863":{"originalFunc":{"__isSmartRef__":true,"id":4351}},"8864":{"varMapping":{"__isSmartRef__":true,"id":8865},"source":"function reset() {\n this.become(null)\n this.submorphs.invoke(\"remove\")\n this.stopStepping()\n this.conversationScript = this.walkScript = this.animateScript = undefined\n this.lastAnswer = this.conversationTurn = this.textBubble = this.isBusy = undefined\n this.setDevStyle()\n this.addMorph(this.lifeBar)\n this.lifeBar.reset()\n this.addMorph(this.deathAnimation)\n this.deathAnimation.reset()\n}","funcProperties":{"__isSmartRef__":true,"id":8866},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8867},"__LivelyClassName__":"lively.Closure"},"8865":{"this":{"__isSmartRef__":true,"id":8566}},"8866":{"timestamp":{"__isSmartRef__":true,"id":4358},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4355},"declaredObject":""},"8867":{"originalFunc":{"__isSmartRef__":true,"id":4355}},"8868":{"varMapping":{"__isSmartRef__":true,"id":8869},"source":"function setDirectionToTile(tile) {\n var direction = tile.getPosition().subPt(this.getPosition()),\n xDirection = direction.x / Math.abs(direction.x),\n yDirection = direction.y / Math.abs(direction.y)\n this.setDirection(pt(xDirection, yDirection))\n}","funcProperties":{"__isSmartRef__":true,"id":8870},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8871},"__LivelyClassName__":"lively.Closure"},"8869":{"this":{"__isSmartRef__":true,"id":8566}},"8870":{"timestamp":{"__isSmartRef__":true,"id":4362},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4359},"declaredObject":""},"8871":{"originalFunc":{"__isSmartRef__":true,"id":4359}},"8872":{"varMapping":{"__isSmartRef__":true,"id":8873},"source":"function getDirection() {\n return this.direction ? this.direction : pt(0,0)\n}","funcProperties":{"__isSmartRef__":true,"id":8874},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8875},"__LivelyClassName__":"lively.Closure"},"8873":{"this":{"__isSmartRef__":true,"id":8566}},"8874":{"timestamp":{"__isSmartRef__":true,"id":4366},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4363},"declaredObject":""},"8875":{"originalFunc":{"__isSmartRef__":true,"id":4363}},"8876":{"varMapping":{"__isSmartRef__":true,"id":8877},"source":"function setDirection(arg) {\n this.direction = arg\n if (this.character && this.character.face) {\n if (arg.x === 0) {\n arg.y > 0 ? this.character.face(\"south\") : this.character.face(\"north\")\n } else if (arg.x === -1) {\n this.character.face(\"west\")\n } else {\n this.character.face(\"east\")\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8878},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8879},"__LivelyClassName__":"lively.Closure"},"8877":{"this":{"__isSmartRef__":true,"id":8566}},"8878":{"timestamp":{"__isSmartRef__":true,"id":4370},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4367},"declaredObject":""},"8879":{"originalFunc":{"__isSmartRef__":true,"id":4367}},"8880":{"varMapping":{"__isSmartRef__":true,"id":8881},"source":"function setPosition(point) {\n $super(point)\n if (this.game()) {\n this.renderContext().morphNode.style.zIndex = this.game().zIndexForThings() + point.y\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8886},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8887},"__LivelyClassName__":"lively.Closure"},"8881":{"this":{"__isSmartRef__":true,"id":8566},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8882}},"8882":{"$super":{"__isSmartRef__":true,"id":8883}},"8883":{"varMapping":{"__isSmartRef__":true,"id":8884},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8885},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8884":{"obj":{"__isSmartRef__":true,"id":8566},"name":"setPosition"},"8885":{},"8886":{"timestamp":{"__isSmartRef__":true,"id":4378},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4371},"declaredObject":""},"8887":{"originalFunc":{"__isSmartRef__":true,"id":4371}},"8888":{"varMapping":{"__isSmartRef__":true,"id":8889},"source":"function say(aString) {\n if ( !aString ) { return }\n if (!this.textBubble) {\n this.textBubble = this.toolbox(\"TextBubble\")\n this.addMorph(this.textBubble)\n }\n this.textBubble.say(aString)\n}","funcProperties":{"__isSmartRef__":true,"id":8890},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8891},"__LivelyClassName__":"lively.Closure"},"8889":{"this":{"__isSmartRef__":true,"id":8566}},"8890":{"timestamp":{"__isSmartRef__":true,"id":4382},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4379},"declaredObject":""},"8891":{"originalFunc":{"__isSmartRef__":true,"id":4379}},"8892":{"varMapping":{"__isSmartRef__":true,"id":8893},"source":"function soliloquize() {\n this.isBusy = true\n // talk to self\n var type = this.characterType()\n if ( type && type.soliloquize ) {\n this.say(type.soliloquize())\n } else {\n this.say(\"...\")\n }\n this.isBusy = false\n}","funcProperties":{"__isSmartRef__":true,"id":8894},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8895},"__LivelyClassName__":"lively.Closure"},"8893":{"this":{"__isSmartRef__":true,"id":8566}},"8894":{"timestamp":{"__isSmartRef__":true,"id":4386},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4383},"declaredObject":""},"8895":{"originalFunc":{"__isSmartRef__":true,"id":4383}},"8896":{"varMapping":{"__isSmartRef__":true,"id":8897},"source":"function characterType() {\n return this.character\n}","funcProperties":{"__isSmartRef__":true,"id":8898},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8899},"__LivelyClassName__":"lively.Closure"},"8897":{"this":{"__isSmartRef__":true,"id":8566}},"8898":{"timestamp":{"__isSmartRef__":true,"id":4390},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4387},"declaredObject":""},"8899":{"originalFunc":{"__isSmartRef__":true,"id":4387}},"8900":{"varMapping":{"__isSmartRef__":true,"id":8901},"source":"function animate(bool) {\n if (bool || (bool === undefined)) {\n this.animateScript = this.startStepping(3000, \"doSomething\", {})\n } else if ( this.animateScript ){\n this.animateScript.stop()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8902},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8903},"__LivelyClassName__":"lively.Closure"},"8901":{"this":{"__isSmartRef__":true,"id":8566}},"8902":{"timestamp":{"__isSmartRef__":true,"id":4394},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4391},"declaredObject":""},"8903":{"originalFunc":{"__isSmartRef__":true,"id":4391}},"8904":{"varMapping":{"__isSmartRef__":true,"id":8905},"source":"function doSomething() {\n var r = Math.random()\n if (this.isBusy) { return }\n if (r < 0.1 && r >= 0.03 ) {\n this.startConversation()\n } else if (r < 0.03 ) {\n this.soliloquize()\n } else if (this.character.isPlayer) {\n this.fight()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8906},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8907},"__LivelyClassName__":"lively.Closure"},"8905":{"this":{"__isSmartRef__":true,"id":8566}},"8906":{"timestamp":{"__isSmartRef__":true,"id":4398},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4395},"declaredObject":""},"8907":{"originalFunc":{"__isSmartRef__":true,"id":4395}},"8908":{"varMapping":{"__isSmartRef__":true,"id":8909},"source":"function map() {\n return this.owner && this.owner.isMap ? this.owner : undefined\n}","funcProperties":{"__isSmartRef__":true,"id":8910},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8911},"__LivelyClassName__":"lively.Closure"},"8909":{"this":{"__isSmartRef__":true,"id":8566}},"8910":{"timestamp":{"__isSmartRef__":true,"id":4402},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4399},"declaredObject":""},"8911":{"originalFunc":{"__isSmartRef__":true,"id":4399}},"8912":{"varMapping":{"__isSmartRef__":true,"id":8913},"source":"function game() {\n return this.map() ? this.map().game() : undefined\n}","funcProperties":{"__isSmartRef__":true,"id":8914},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8915},"__LivelyClassName__":"lively.Closure"},"8913":{"this":{"__isSmartRef__":true,"id":8566}},"8914":{"timestamp":{"__isSmartRef__":true,"id":4406},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4403},"declaredObject":""},"8915":{"originalFunc":{"__isSmartRef__":true,"id":4403}},"8916":{"varMapping":{"__isSmartRef__":true,"id":8917},"source":"function setup() {\n this.becomeRandomCharacter()\n this.animate()\n}","funcProperties":{"__isSmartRef__":true,"id":8918},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8919},"__LivelyClassName__":"lively.Closure"},"8917":{"this":{"__isSmartRef__":true,"id":8566}},"8918":{"timestamp":{"__isSmartRef__":true,"id":4410},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4407},"declaredObject":""},"8919":{"originalFunc":{"__isSmartRef__":true,"id":4407}},"8920":{"varMapping":{"__isSmartRef__":true,"id":8921},"source":"function copyToPartsBinWithUserRequest() {\n this.reset()\n $super()\n}","funcProperties":{"__isSmartRef__":true,"id":8926},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8927},"__LivelyClassName__":"lively.Closure"},"8921":{"this":{"__isSmartRef__":true,"id":8566},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8922}},"8922":{"$super":{"__isSmartRef__":true,"id":8923}},"8923":{"varMapping":{"__isSmartRef__":true,"id":8924},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8925},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8924":{"obj":{"__isSmartRef__":true,"id":8566},"name":"copyToPartsBinWithUserRequest"},"8925":{},"8926":{"timestamp":{"__isSmartRef__":true,"id":4418},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4411},"declaredObject":""},"8927":{"originalFunc":{"__isSmartRef__":true,"id":4411}},"8928":{"varMapping":{"__isSmartRef__":true,"id":8929},"source":"function startConversation() {\n this.isBusy = true\n var persons = []\n this.currentTile().neighbours().each(function(tile) {\n persons.pushAll(tile.characters())\n })\n persons = persons.select(function(each) { return !each.isBusy })\n if (persons.length > 0) {\n this.startConversationWith(persons[Math.floor(Math.random()*persons.length)])\n } else {\n this.isBusy = false\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8930},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8931},"__LivelyClassName__":"lively.Closure"},"8929":{"this":{"__isSmartRef__":true,"id":8566}},"8930":{"timestamp":{"__isSmartRef__":true,"id":4422},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4419},"declaredObject":""},"8931":{"originalFunc":{"__isSmartRef__":true,"id":4419}},"8932":{"varMapping":{"__isSmartRef__":true,"id":8933},"source":"function startConversationWith(character) {\n // I serve as the \"conversation host\" while the other character remains passive\n // The other character is controlled by me\n this.conversationScript = this.startStepping(4000, \"conversation\", {other: character})\n}","funcProperties":{"__isSmartRef__":true,"id":8934},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8935},"__LivelyClassName__":"lively.Closure"},"8933":{"this":{"__isSmartRef__":true,"id":8566}},"8934":{"timestamp":{"__isSmartRef__":true,"id":4426},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4423},"declaredObject":""},"8935":{"originalFunc":{"__isSmartRef__":true,"id":4423}},"8936":{"varMapping":{"__isSmartRef__":true,"id":8937},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // full copy for death animation and life bar\n copy.lifeBar = this.lifeBar.copy()\n copy.lifeBar.character = copy\n copy.addMorph(copy.lifeBar)\n copy.deathAnimation = this.deathAnimation.copy()\n copy.deathAnimation.character = copy\n copy.addMorph(copy.deathAnimation)\n\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":8938},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8939},"__LivelyClassName__":"lively.Closure"},"8937":{"this":{"__isSmartRef__":true,"id":8566}},"8938":{"timestamp":{"__isSmartRef__":true,"id":4430},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4427},"declaredObject":""},"8939":{"originalFunc":{"__isSmartRef__":true,"id":4427}},"8940":{"varMapping":{"__isSmartRef__":true,"id":8941},"source":"function conversation(args) {\n var other = args.other, a, b, stopConversation\n if (this.conversationTurn) {\n a = this; b = other\n } else {\n a = other; b = this\n }\n [a,b].invoke(\"hideTextBubble\")\n if (this.lastAnswer == null) {\n this.conversationScript.stop()\n this.lastAnswer = a.answer(undefined, b, true)\n if (this.lastAnswer) { a.say(this.lastAnswer) }\n var that = this\n setTimeout(function() {\n a.hideTextBubble()\n that.lastAnswer = b.answer(that.lastAnswer, a, true)\n if (that.lastAnswer) { b.say(that.lastAnswer) }\n a.isBusy = false\n b.isBusy = false\n }, 4000)\n }\n this.lastAnswer = a.answer(this.lastAnswer, b, false)\n if (this.lastAnswer) { a.say(this.lastAnswer) }\n this.conversationTurn = !this.conversationTurn\n}","funcProperties":{"__isSmartRef__":true,"id":8942},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8943},"__LivelyClassName__":"lively.Closure"},"8941":{"this":{"__isSmartRef__":true,"id":8566}},"8942":{"timestamp":{"__isSmartRef__":true,"id":4434},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4431},"declaredObject":""},"8943":{"originalFunc":{"__isSmartRef__":true,"id":4431}},"8944":{"varMapping":{"__isSmartRef__":true,"id":8945},"source":"function answer(lastSaid, other, sayGoodbye) {\n // either return a string or null to indicate that you want to stop the conversation\n // when sayGoodbye-flag is set, this is the last answer-call for this conversation\n var type = this.characterType()\n if ( type && type.answer ) {\n return type.answer(lastSaid, other, sayGoodbye)\n } else {\n if (sayGoodbye) {\n return \"Goodbye!\"\n } else {\n if ( Math.random() > 0.2 ) {\n return this.chatBot().answerTo(lastSaid);\n }\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":8946},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8947},"__LivelyClassName__":"lively.Closure"},"8945":{"this":{"__isSmartRef__":true,"id":8566}},"8946":{"timestamp":{"__isSmartRef__":true,"id":4438},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4435},"declaredObject":""},"8947":{"originalFunc":{"__isSmartRef__":true,"id":4435}},"8948":{"varMapping":{"__isSmartRef__":true,"id":8949},"source":"function hideTextBubble() {\n if (this.textBubble) {\n this.textBubble.hide()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8950},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8951},"__LivelyClassName__":"lively.Closure"},"8949":{"this":{"__isSmartRef__":true,"id":8566}},"8950":{"timestamp":{"__isSmartRef__":true,"id":4442},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4439},"declaredObject":""},"8951":{"originalFunc":{"__isSmartRef__":true,"id":4439}},"8952":{"varMapping":{"__isSmartRef__":true,"id":8953},"source":"function aStar(goal) {\n var that = this,\n start = this.currentTile(),\n closedset = [],\n openset = [start], // The set of tentative nodes to be evaluated\n came_from = {}, // The map of navigated nodes.\n g_score = {}, // general cost along best known path (as the bird flies)\n h_score = {}, // heuristic cost - used to drive parameters\n f_score = {} // sum of heuristic and general cost\n\n g_score[start] = 0 // Cost from start along best known path.\n h_score[start] = this.aStarHeuristicCostEstimate(start, goal)\n f_score[start] = g_score[start] + h_score[start] // Estimated total cost from start to goal\n\n while (openset.length > 0) { // Search until we have nothing more to search\n // Pick the next best scored candidate\n var current = openset.sortBy(function (e) { return f_score[e] }).first()\n\n if (current === goal) { // we found a path, construct the whole path and return\n var path = [],\n current_node = current\n while (came_from[current_node]) {\n path.push(current_node)\n current_node = came_from[current_node]\n }\n path.push(current_node)\n return path.reverse()\n }\n\n // We haven't found a path, mark the candidate as checked\n openset = openset.without(current)\n closedset.push(current)\n\n // check all neighbours\n current.neighboursReachableFromHere().each(function (neighbour) {\n if (!closedset.member(neighbour)) {\n // this neighbour can be walked upon and we haven't checked it before\n // assign it a score via the current path\n var tentative_g_score = g_score[current] + current.distanceTo(neighbour).r(),\n tentative_is_better = true\n\n if (!openset.member(neighbour)) {\n // we haven't given this a score before, give it a heuristic score\n openset.push(neighbour)\n h_score[neighbour] = that.aStarHeuristicCostEstimate(neighbour, goal)\n } else if (tentative_g_score >= g_score[neighbour]) {\n // we have given a better score before, this one can be dismissed\n tentative_is_better = false\n }\n\n if (tentative_is_better === true) {\n // the new score we found for this neighbour is better than the previous\n // set the new score and the new path\n came_from[neighbour] = current\n g_score[neighbour] = tentative_g_score\n f_score[neighbour] = g_score[neighbour] + h_score[neighbour]\n }\n }\n })\n }\n return []\n}","funcProperties":{"__isSmartRef__":true,"id":8954},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8955},"__LivelyClassName__":"lively.Closure"},"8953":{"this":{"__isSmartRef__":true,"id":8566}},"8954":{"timestamp":{"__isSmartRef__":true,"id":4446},"user":"timfelgentreff","tags":["pathfinding"],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4443},"declaredObject":""},"8955":{"originalFunc":{"__isSmartRef__":true,"id":4443}},"8956":{"varMapping":{"__isSmartRef__":true,"id":8957},"source":"function aStarHeuristicCostEstimate(from, to) {\n // this should be monotonic and consistent\n // see comment to: http://en.wikipedia.org/wiki/A*_search_algorithm#Pseudocode\n return 0\n}","funcProperties":{"__isSmartRef__":true,"id":8958},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8959},"__LivelyClassName__":"lively.Closure"},"8957":{"this":{"__isSmartRef__":true,"id":8566}},"8958":{"timestamp":{"__isSmartRef__":true,"id":4450},"user":"timfelgentreff","tags":["pathfinding"],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4447},"declaredObject":""},"8959":{"originalFunc":{"__isSmartRef__":true,"id":4447}},"8960":{"varMapping":{"__isSmartRef__":true,"id":8961},"source":"function aStarWalkPath(path) {\n var minPositive = function (a, b) {\n a = Math.abs(a), b = Math.abs(b)\n return a ? (b ? Math.min(a, b) : a) : b\n }\n\n var finalTile = path.last(),\n nextTile = path.first()\n\n // this.setPosition(pt(0,0))\n if (this.getPosition().equals(finalTile.getPosition())) {\n if (this.walkScript) { this.walkScript.stop() }\n this.setDirection(pt(0,1))\n this.currentTile().enterTile(this)\n } else {\n this.setDirectionToTile(nextTile)\n var directionVector = this.getPosition().subPt(nextTile.getPosition()),\n maxSpeed = minPositive(directionVector.x, directionVector.y),\n speed = Math.min(maxSpeed, this.getCurrentSpeed())\n this.moveBy(this.getDirection().scaleBy(speed))\n if (path.length > 1) { // remove all but the final tile,\n // we need that one for positioning\n var idx = path.indexOf(this.currentTile())\n if (idx > -1) {\n path.removeAt(idx)\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8962},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8963},"__LivelyClassName__":"lively.Closure"},"8961":{"this":{"__isSmartRef__":true,"id":8566}},"8962":{"timestamp":{"__isSmartRef__":true,"id":4454},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4451},"declaredObject":""},"8963":{"originalFunc":{"__isSmartRef__":true,"id":4451}},"8964":{"varMapping":{"__isSmartRef__":true,"id":8965},"source":"function chatBot() {\n if ( !this._chatbot ) { this._chatbot = new ChatBot() }\n return this._chatbot\n}","funcProperties":{"__isSmartRef__":true,"id":8966},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8967},"__LivelyClassName__":"lively.Closure"},"8965":{"this":{"__isSmartRef__":true,"id":8566}},"8966":{"timestamp":{"__isSmartRef__":true,"id":4458},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4455},"declaredObject":""},"8967":{"originalFunc":{"__isSmartRef__":true,"id":4455}},"8968":{"varMapping":{"__isSmartRef__":true,"id":8969},"source":"function getHit() {\n this.lifeBar.hit()\n}","funcProperties":{"__isSmartRef__":true,"id":8970},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8971},"__LivelyClassName__":"lively.Closure"},"8969":{"this":{"__isSmartRef__":true,"id":8566}},"8970":{"timestamp":{"__isSmartRef__":true,"id":4462},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4459},"declaredObject":""},"8971":{"originalFunc":{"__isSmartRef__":true,"id":4459}},"8972":{"varMapping":{"__isSmartRef__":true,"id":8973},"source":"function becomePlayer() {\n if (this.character) {\n this.character.remove()\n this.character = null\n }\n \n this.character = this.toolbox(\"Player\")\n if (this.character) {\n this.character.setExtent(this.character.getExtent().scaleBy(1.2))\n this.character.setPosition(pt(6, -5))\n this.addMorph(this.character)\n this.character.disableEvents()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8974},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8975},"__LivelyClassName__":"lively.Closure"},"8973":{"this":{"__isSmartRef__":true,"id":8566}},"8974":{"timestamp":{"__isSmartRef__":true,"id":4466},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4463},"declaredObject":""},"8975":{"originalFunc":{"__isSmartRef__":true,"id":4463}},"8976":{"varMapping":{"__isSmartRef__":true,"id":8977},"source":"function fight() {\n this.isBusy = true\n var persons = []\n this.currentTile().neighbours().each(function(tile) {\n persons.pushAll(tile.characters())\n })\n persons = persons.select(function(each) { return !each.isBusy })\n if (persons.length > 0) {\n var personForFight = persons[Math.floor(Math.random()*persons.length)]\n personForFight.isBusy = true\n if (Math.round(Math.random()) === 0) {\n this.executeFightTurnAsking(this, personForFight)\n } else {\n this.executeFightTurnAsking(personForFight, this)\n }\n } else {\n this.isBusy = false\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8978},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8979},"__LivelyClassName__":"lively.Closure"},"8977":{"this":{"__isSmartRef__":true,"id":8566}},"8978":{"timestamp":{"__isSmartRef__":true,"id":4470},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4467},"declaredObject":""},"8979":{"originalFunc":{"__isSmartRef__":true,"id":4467}},"8980":{"varMapping":{"__isSmartRef__":true,"id":8981},"source":"function fightPhrases() {\n return {\"This is the END for you, you gutter-crawling cur!\": \"And I've got a little TIP for you, get the POINT?\",\n\t\"Soon you'll be wearing my sword like a shish kebab!\": \"First you better stop waiving it like a feather-duster.\",\n\t\"My handkerchief will wipe up your blood!\": \"So you got that job as janitor, after all.\",\n\t\"People fall at my feet when they see me coming.\": \"Even BEFORE they smell your breath?\",\n\t\"I once owned a dog that was smarter then you.\": \"He must have taught you everything you know.\",\n\t\"You make me want to puke.\": \"You make me think somebody already did.\",\n\t\"Nobody's ever drawn blood from me and nobody ever will.\": \"You run THAT fast?\",\n\t\"You fight like a dairy farmer.\": \"How appropriate. You fight like a cow.\",\n\t\"I got this scar on my face during a mighty struggle!\": \"I hope now you've learned to stop picking your nose.\",\n\t\"Have you stopped wearing diapers yet?\": \"Why, did you want to borrow one?\",\n\t\"I've heard you were a contemptible sneak.\": \"Too bad no one's ever heard of YOU at all.\",\n\t\"You're no match for my brains, you poor fool.\": \"I'd be in real trouble if you ever used them.\",\n\t\"You have the manners of a beggar.\": \"I wanted to make sure you'd feel comfortable with me.\",\n\t\"I'm not going to take your insolence sitting down!\": \"Your hemorrhoids are flaring up again, eh?\",\n\t\"There are no words for how disgusting you are.\": \"Yes there are. You just never learned them.\",\n\t\"I've spoken with apes more polite then you.\": \"I'm glad to hear you attended your family reunion. \",\n\t\"I've got a long, sharp lesson for you you to learn today.\": \"And I've got a little TIP for you. Get the POINT?\",\n\t\"My tongue is sharper then any sword.\": \"First you better stop waving it like a feather-duster.\",\n\t\"My name is feared in every dirty corner of this island!\": \"So you got that job as janitor, after all.\",\n\t\"My wisest enemies run away at the first sight of me!\": \"Even BEFORE they smell your breath?\",\n\t\"Only once have I met such a coward!\": \"He must have taught you everything you know.\",\n\t\"If your brother's like you, better to marry a pig.\": \"You make me think somebody already did.\",\n\t\"No one will ever catch ME fighting as badly as you do.\": \"You run THAT fast?\",\n\t\"I will milk every drop of blood from your body!\": \"How appropriate. You fight like a cow.\",\n\t\"My last fight ended with my hands covered with blood.\": \"I hope now you've learned to stop picking your nose.\",\n\t\"I hope you have a boat ready for a quick escape.\": \"Why, did you want to borrow one?\",\n\t\"My sword is famous all over the Caribbean!\": \"Too bad no one's ever heard of YOU at all.\",\n\t\"I've got the courage and skill of a master swordsman!\": \"I'd be in real trouble if you ever used them.\",\n\t\"Every word you say to me is stupid.\": \"I wanted to make sure you'd feel comfortable with me.\",\n\t\"You are a pain in the backside, sir!\": \"Your hemorrhoids are flaring up again, eh?\",\n\t\"There are no clever moves that can help you now.\": \"Yes there are. You just never learned them.\",\n\t\"Now I know what filth and stupidity really are.\": \"I'm glad to hear you attended your family reunion.\",\n\t\"I usually see people like you passed-out on tavern floors.\": \"Even BEFORE they smell your breath? \",\n\t\"My attacks have left entire islands depopulated!\": \"With your breath, I'm sure they all suffocated.\",\n\t\"You have the sex appeal of a shar-pei!\": \"I look that much like your fiancée?\",\n\t\"When I'm done, your body will be rotted and putrefied!\": \"Then killing you must be justifiable fungicide.\",\n\t\"Your looks would make pigs nauseated!\": \"If you don't count all the ones you've dated.\",\n\t\"Your lips look like they belong on the catch of the day!\": \"When I'm done with you, you'll be a boneless filet.\",\n\t\"I give you a choice. You can be gutted, or decapitated!\": \"With you around, I'd rather be fumigated.\",\n\t\"Never before have I faced someone so sissified!\": \"Is that your face? I thought it was your backside.\",\n\t\"You're a disgrace to your species, you're so undignified!\": \"At least mine can be identified.\",\n\t\"Nothing can stop me from blowing you away!\": \"I could, if you would use some breath spray.\",\n\t\"I have never lost a melee!\": \"You would have, but you were always running away.\",\n\t\"Your mother wears a toupee!\": \"Oh, that is so cliché.\",\n\t\"My skills with a sword are highly venerated!\": \"Too bad they're all fabricated.\",\n\t\"Your stench would make an outhouse cleaner irritated!\": \"Then perhaps you should switch to decaffeinated.\",\n\t\"I can't tell which of my traits have you the most intimidated!\": \"Your odor alone makes me aggravated, agitated, and infuriated\",\n\t\"Nothing on this earth can save your sorry hide!\": \"The only way you'll be preserved is in formaldehyde\",\n\t\"You'll find I'm dogged and relentless to my prey!\": \"Then be a good dog, Sit! Stay! \",\n\t\"Every enemy I have met, I've annihilated!\": \"With your breath, I'm sure they all suffocated.\",\n\t\"You're as repulsive as a monkey in a negligee!\": \"I look that much like your fiancée?\",\n\t\"Killing you would be justifiable homicide!\": \"Then killing you must be justifiable fungicide.\",\n\t\"You're the ugliest monster ever created!\": \"If you don't count all the ones you've dated.\",\n\t\"I'll skewer you like a sow at a buffet!\": \"When I'm done with you, you'll be a boneless filet.\",\n\t\"Would you like to be buried, or cremated?\": \"With you around, I'd rather be fumigated.\",\n\t\"Coming face to face with me must leave you petrified!\": \"Is that your face? I thought it was your backside.\",\n\t\"When your father first saw you, he must have been mortified!\": \"At least mine can be identified.\",\n\t\"You can't match my witty repartee!\": \"I could, if you would use some breath spray.\",\n\t\"I have never seen such clumsy swordplay!\": \"You would have, but you were always running away.\",\n\t\"En Garde! Touché!\": \"Oh, that is so cliché.\",\n\t\"Throughout the Caribbean, my great deeds are celebrated!\": \"Too bad they're all fabricated.\",\n\t\"I can't rest 'til' you've been exterminated!\": \"Then perhaps you should switch to decaffeinated.\",\n\t\"I'll leave you devastated, mutilated, and perforated!\": \"Your odor alone makes me aggravated, agitated, and infuriated\",\n\t\"Heaven preserve me! You look like something that's died!\": \"The only way you'll be preserved is in formaldehyde\",\n\t\"I'll hound you night and day!\": \"Then be a good dog, Sit! Stay! \",\n\t\"Today, by myself, twelve people I've beaten.\": \"From the size of your gut I'd guess they were eaten.\",\n\t\"I've got muscles in places you've never even heard of.\": \"It's too bad none of them are in your arms.\",\n\t\"Give up now, or I'll crush you like a grape!\": \"I would if it would stop your WINE-ING.\",\n\t\"My ninety-eight year old grandmother has bigger arms than you!\": \"Yeah, but we both got better bladder control than you do.\",\n\t\"I'm going to put your arm in a sling!\": \"Why, ya studying to be a nurse?\",\n\t\"My stupefying strength will shatter your ulna into a million pieces!\": \"I'm surprised you can count that high!\",\n\t\"Hey, look over there!\": \"Yeah, yeah I know: it's a three headed monkey.\",\n\t\"Your knuckles I'll grind to a splintery paste.\": \"I thought that the been dip had a strange taste.\",\n\t\"Your arms are no bigger than fleas that I've met!\": \"So THAT'S why you're scratching. I'd go see a vet.\",\n\t\"People consider my fists lethal weapons!\": \"Sadly, your breath should be equally reckoned.\",\n\t\"Only once have I met such a coward!\": \"He must have taught you everything you know.\",\n\t\"You're the ugliest creature I've ever seen in my life.\": \"I'm shocked that you've never gazed at your wife.\",\n\t\"My forearms have been mistaken for tree trunks!\": \"An over-the-counter defoliant could help with that problem.\",\n\t\"I've out-wrestled octopi with these arms!\": \"I'm sure that spineless creatures everywhere are humbled by your might.\",\n\t\"Do I see quivers of agony dance on your lip?\": \"It's laughter that's caused by your feathery grip.\"}\n}","funcProperties":{"__isSmartRef__":true,"id":8982},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8983},"__LivelyClassName__":"lively.Closure"},"8981":{"this":{"__isSmartRef__":true,"id":8566}},"8982":{"timestamp":{"__isSmartRef__":true,"id":4474},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4471},"declaredObject":""},"8983":{"originalFunc":{"__isSmartRef__":true,"id":4471}},"8984":{"varMapping":{"__isSmartRef__":true,"id":8985},"source":"function randomQuestions(count) {\n if (!count) { count = 8 }\n\n var choices = [],\n questions = Properties.own(this.fightPhrases())\n\n for (var i = 0; i < count; i++) {\n var idx = Math.round(Math.random() * questions.length)\n choices.push(questions[idx])\n questions.removeAt(idx)\n }\n\n return choices\n}","funcProperties":{"__isSmartRef__":true,"id":8986},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8987},"__LivelyClassName__":"lively.Closure"},"8985":{"this":{"__isSmartRef__":true,"id":8566}},"8986":{"timestamp":{"__isSmartRef__":true,"id":4478},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4475},"declaredObject":""},"8987":{"originalFunc":{"__isSmartRef__":true,"id":4475}},"8988":{"varMapping":{"__isSmartRef__":true,"id":8989},"source":"function randomAnswersFor(question, count) {\n if (!count) { count = 8 }\n\n var choices = [],\n phrases = this.fightPhrases(),\n answers = Properties.own(phrases).collect(function (q) {\n return phrases[q]\n })\n\n choices.push(phrases[question])\n answers.removeAt(Properties.own(phrases).indexOf(question))\n\n for (var i = 1; i < count; i++) {\n var idx = Math.round(Math.random() * answers.length)\n choices.push(answers[idx])\n answers.removeAt(idx)\n }\n\n return choices.sortBy(function (ea) { return Math.random() })\n}","funcProperties":{"__isSmartRef__":true,"id":8990},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8991},"__LivelyClassName__":"lively.Closure"},"8989":{"this":{"__isSmartRef__":true,"id":8566}},"8990":{"timestamp":{"__isSmartRef__":true,"id":4482},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4479},"declaredObject":""},"8991":{"originalFunc":{"__isSmartRef__":true,"id":4479}},"8992":{"varMapping":{"__isSmartRef__":true,"id":8993},"source":"function executeFightTurnAsking(asker, responder) {\n var menu = this.toolbox(\"FightMenu\"),\n worldCenter = rect(pt(0, 0), pt(window.innerWidth, window.innerHeight)).center(),\n talkTimeout = 4000,\n nextTurnCallback = function (answer, correctAnswer) {\n if (correctAnswer === answer) {\n // switch turns\n asker.executeFightTurnAsking(responder, asker)\n } else {\n responder.getHit()\n if (!responder.isDead()) {\n asker.executeFightTurnAsking(asker, responder)\n }\n }\n }\n\n // Check if the last looser is dead, first\n if (responder.isDead()) {\n responder.isBusy = false\n asker.isBusy = false\n asker.heal()\n asker.select()\n return\n }\n \n // Fight\n if (asker.character.isPlayer) {\n menu.setHeader(\"Choose your insult\")\n menu.setList(asker.randomQuestions(8), function (str) {\n menu.remove()\n asker.say(str)\n setTimeout(function () {\n // the npc has a 1/3 chance of answering right\n var response = responder.randomAnswersFor(str, 3)[Math.round(Math.random() * 2)],\n correctAnswer = responder.randomAnswersFor(str, 1)[0]\n responder.say(response)\n setTimeout(function () {\n nextTurnCallback(response, correctAnswer)\n }, talkTimeout)\n }, talkTimeout)\n })\n asker.map().addMorph(menu)\n menu.centerAt(worldCenter)\n } else {\n var question = asker.randomQuestions(1)[0],\n answer = asker.randomAnswersFor(question, 1)[0]\n asker.say(question)\n setTimeout(function () {\n menu.setHeader(\"What do you reply to '\" + question + \"'?\")\n menu.setList(responder.randomAnswersFor(question, 7), function (str) {\n menu.remove()\n responder.say(str)\n setTimeout(function () {\n nextTurnCallback(str, answer)\n }, talkTimeout)\n })\n asker.map().addMorph(menu)\n menu.centerAt(worldCenter)\n }, talkTimeout)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8993":{"this":{"__isSmartRef__":true,"id":8566}},"8994":{"timestamp":{"__isSmartRef__":true,"id":8995},"user":"lauritz","tags":[]},"8995":{"isSerializedDate":true,"string":"Mon Jul 30 2012 12:48:42 GMT+0200 (CEST)"},"8996":{"varMapping":{"__isSmartRef__":true,"id":8997},"source":"function heal() {\n this.lifeBar.heal()\n}","funcProperties":{"__isSmartRef__":true,"id":8998},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8999},"__LivelyClassName__":"lively.Closure"},"8997":{"this":{"__isSmartRef__":true,"id":8566}},"8998":{"timestamp":{"__isSmartRef__":true,"id":4490},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4487},"declaredObject":""},"8999":{"originalFunc":{"__isSmartRef__":true,"id":4487}},"9000":{"varMapping":{"__isSmartRef__":true,"id":9001},"source":"function isDead() {\n return this.lifeBar.isDead()\n}","funcProperties":{"__isSmartRef__":true,"id":9002},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9003},"__LivelyClassName__":"lively.Closure"},"9001":{"this":{"__isSmartRef__":true,"id":8566}},"9002":{"timestamp":{"__isSmartRef__":true,"id":4494},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4491},"declaredObject":""},"9003":{"originalFunc":{"__isSmartRef__":true,"id":4491}},"9004":{"setDevStyle":{"__isSmartRef__":true,"id":9005},"setNormalStyle":{"__isSmartRef__":true,"id":9009},"tileSize":{"__isSmartRef__":true,"id":9013},"become":{"__isSmartRef__":true,"id":9017},"onMouseDown":{"__isSmartRef__":true,"id":9021},"setGridPosition":{"__isSmartRef__":true,"id":9029},"toolbox":{"__isSmartRef__":true,"id":9033},"distanceTo":{"__isSmartRef__":true,"id":9037},"tileWasDropped":{"__isSmartRef__":true,"id":9041},"isObstacle":{"__isSmartRef__":true,"id":9045},"neighboursInDirection":{"__isSmartRef__":true,"id":9049},"neighbours":{"__isSmartRef__":true,"id":9053},"zIndex":{"__isSmartRef__":true,"id":9057},"obstacles":{"__isSmartRef__":true,"id":9061},"addObstacle":{"__isSmartRef__":true,"id":9065},"removeObstacle":{"__isSmartRef__":true,"id":9069},"isTile":{"__isSmartRef__":true,"id":9073},"neighbourAt":{"__isSmartRef__":true,"id":9077},"map":{"__isSmartRef__":true,"id":9081},"game":{"__isSmartRef__":true,"id":9085},"reset":{"__isSmartRef__":true,"id":9089},"shallowCopy":{"__isSmartRef__":true,"id":9093},"characters":{"__isSmartRef__":true,"id":9097},"enterTile":{"__isSmartRef__":true,"id":9101},"leaveTile":{"__isSmartRef__":true,"id":9105},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":9109}},"9005":{"varMapping":{"__isSmartRef__":true,"id":9006},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9007},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9008},"__LivelyClassName__":"lively.Closure"},"9006":{"this":{"__isSmartRef__":true,"id":6200}},"9007":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"9008":{"originalFunc":{"__isSmartRef__":true,"id":892}},"9009":{"varMapping":{"__isSmartRef__":true,"id":9010},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9011},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9012},"__LivelyClassName__":"lively.Closure"},"9010":{"this":{"__isSmartRef__":true,"id":6200}},"9011":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"9012":{"originalFunc":{"__isSmartRef__":true,"id":911}},"9013":{"varMapping":{"__isSmartRef__":true,"id":9014},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":9015},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9016},"__LivelyClassName__":"lively.Closure"},"9014":{"this":{"__isSmartRef__":true,"id":6200}},"9015":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"9016":{"originalFunc":{"__isSmartRef__":true,"id":915}},"9017":{"varMapping":{"__isSmartRef__":true,"id":9018},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9019},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9020},"__LivelyClassName__":"lively.Closure"},"9018":{"this":{"__isSmartRef__":true,"id":6200}},"9019":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"9020":{"originalFunc":{"__isSmartRef__":true,"id":919}},"9021":{"varMapping":{"__isSmartRef__":true,"id":9022},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9027},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9028},"__LivelyClassName__":"lively.Closure"},"9022":{"this":{"__isSmartRef__":true,"id":6200},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9023}},"9023":{"$super":{"__isSmartRef__":true,"id":9024}},"9024":{"varMapping":{"__isSmartRef__":true,"id":9025},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9026},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9025":{"obj":{"__isSmartRef__":true,"id":6200},"name":"onMouseDown"},"9026":{},"9027":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"9028":{"originalFunc":{"__isSmartRef__":true,"id":923}},"9029":{"varMapping":{"__isSmartRef__":true,"id":9030},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":9031},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9032},"__LivelyClassName__":"lively.Closure"},"9030":{"this":{"__isSmartRef__":true,"id":6200}},"9031":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"9032":{"originalFunc":{"__isSmartRef__":true,"id":931}},"9033":{"varMapping":{"__isSmartRef__":true,"id":9034},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":9035},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9036},"__LivelyClassName__":"lively.Closure"},"9034":{"this":{"__isSmartRef__":true,"id":6200}},"9035":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"9036":{"originalFunc":{"__isSmartRef__":true,"id":935}},"9037":{"varMapping":{"__isSmartRef__":true,"id":9038},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":9039},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9040},"__LivelyClassName__":"lively.Closure"},"9038":{"this":{"__isSmartRef__":true,"id":6200}},"9039":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"9040":{"originalFunc":{"__isSmartRef__":true,"id":939}},"9041":{"varMapping":{"__isSmartRef__":true,"id":9042},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":9043},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9044},"__LivelyClassName__":"lively.Closure"},"9042":{"this":{"__isSmartRef__":true,"id":6200}},"9043":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"9044":{"originalFunc":{"__isSmartRef__":true,"id":943}},"9045":{"varMapping":{"__isSmartRef__":true,"id":9046},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":9047},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9048},"__LivelyClassName__":"lively.Closure"},"9046":{"this":{"__isSmartRef__":true,"id":6200}},"9047":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"9048":{"originalFunc":{"__isSmartRef__":true,"id":947}},"9049":{"varMapping":{"__isSmartRef__":true,"id":9050},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":9051},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9052},"__LivelyClassName__":"lively.Closure"},"9050":{"this":{"__isSmartRef__":true,"id":6200}},"9051":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"9052":{"originalFunc":{"__isSmartRef__":true,"id":951}},"9053":{"varMapping":{"__isSmartRef__":true,"id":9054},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":9055},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9056},"__LivelyClassName__":"lively.Closure"},"9054":{"this":{"__isSmartRef__":true,"id":6200}},"9055":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"9056":{"originalFunc":{"__isSmartRef__":true,"id":955}},"9057":{"varMapping":{"__isSmartRef__":true,"id":9058},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":9059},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9060},"__LivelyClassName__":"lively.Closure"},"9058":{"this":{"__isSmartRef__":true,"id":6200}},"9059":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"9060":{"originalFunc":{"__isSmartRef__":true,"id":959}},"9061":{"varMapping":{"__isSmartRef__":true,"id":9062},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":9063},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9064},"__LivelyClassName__":"lively.Closure"},"9062":{"this":{"__isSmartRef__":true,"id":6200}},"9063":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"9064":{"originalFunc":{"__isSmartRef__":true,"id":963}},"9065":{"varMapping":{"__isSmartRef__":true,"id":9066},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9067},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9068},"__LivelyClassName__":"lively.Closure"},"9066":{"this":{"__isSmartRef__":true,"id":6200}},"9067":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"9068":{"originalFunc":{"__isSmartRef__":true,"id":967}},"9069":{"varMapping":{"__isSmartRef__":true,"id":9070},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9071},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9072},"__LivelyClassName__":"lively.Closure"},"9070":{"this":{"__isSmartRef__":true,"id":6200}},"9071":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"9072":{"originalFunc":{"__isSmartRef__":true,"id":971}},"9073":{"varMapping":{"__isSmartRef__":true,"id":9074},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":9075},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9076},"__LivelyClassName__":"lively.Closure"},"9074":{"this":{"__isSmartRef__":true,"id":6200}},"9075":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"9076":{"originalFunc":{"__isSmartRef__":true,"id":975}},"9077":{"varMapping":{"__isSmartRef__":true,"id":9078},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":9079},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9080},"__LivelyClassName__":"lively.Closure"},"9078":{"this":{"__isSmartRef__":true,"id":6200}},"9079":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"9080":{"originalFunc":{"__isSmartRef__":true,"id":979}},"9081":{"varMapping":{"__isSmartRef__":true,"id":9082},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":9083},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9084},"__LivelyClassName__":"lively.Closure"},"9082":{"this":{"__isSmartRef__":true,"id":6200}},"9083":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"9084":{"originalFunc":{"__isSmartRef__":true,"id":983}},"9085":{"varMapping":{"__isSmartRef__":true,"id":9086},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":9087},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9088},"__LivelyClassName__":"lively.Closure"},"9086":{"this":{"__isSmartRef__":true,"id":6200}},"9087":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"9088":{"originalFunc":{"__isSmartRef__":true,"id":987}},"9089":{"varMapping":{"__isSmartRef__":true,"id":9090},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":9091},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9092},"__LivelyClassName__":"lively.Closure"},"9090":{"this":{"__isSmartRef__":true,"id":6200}},"9091":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"9092":{"originalFunc":{"__isSmartRef__":true,"id":991}},"9093":{"varMapping":{"__isSmartRef__":true,"id":9094},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":9095},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9096},"__LivelyClassName__":"lively.Closure"},"9094":{"this":{"__isSmartRef__":true,"id":6200}},"9095":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"9096":{"originalFunc":{"__isSmartRef__":true,"id":995}},"9097":{"varMapping":{"__isSmartRef__":true,"id":9098},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":9099},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9100},"__LivelyClassName__":"lively.Closure"},"9098":{"this":{"__isSmartRef__":true,"id":6200}},"9099":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"9100":{"originalFunc":{"__isSmartRef__":true,"id":999}},"9101":{"varMapping":{"__isSmartRef__":true,"id":9102},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9103},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9104},"__LivelyClassName__":"lively.Closure"},"9102":{"this":{"__isSmartRef__":true,"id":6200}},"9103":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"9104":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"9105":{"varMapping":{"__isSmartRef__":true,"id":9106},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9107},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9108},"__LivelyClassName__":"lively.Closure"},"9106":{"this":{"__isSmartRef__":true,"id":6200}},"9107":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"9108":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"9109":{"varMapping":{"__isSmartRef__":true,"id":9110},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9111},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9112},"__LivelyClassName__":"lively.Closure"},"9110":{"this":{"__isSmartRef__":true,"id":6200}},"9111":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"9112":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"9113":{"setDevStyle":{"__isSmartRef__":true,"id":9114},"setNormalStyle":{"__isSmartRef__":true,"id":9118},"tileSize":{"__isSmartRef__":true,"id":9122},"become":{"__isSmartRef__":true,"id":9126},"onMouseDown":{"__isSmartRef__":true,"id":9130},"setGridPosition":{"__isSmartRef__":true,"id":9138},"toolbox":{"__isSmartRef__":true,"id":9142},"distanceTo":{"__isSmartRef__":true,"id":9146},"tileWasDropped":{"__isSmartRef__":true,"id":9150},"isObstacle":{"__isSmartRef__":true,"id":9154},"neighboursInDirection":{"__isSmartRef__":true,"id":9158},"neighbours":{"__isSmartRef__":true,"id":9162},"zIndex":{"__isSmartRef__":true,"id":9166},"obstacles":{"__isSmartRef__":true,"id":9170},"addObstacle":{"__isSmartRef__":true,"id":9174},"removeObstacle":{"__isSmartRef__":true,"id":9178},"isTile":{"__isSmartRef__":true,"id":9182},"neighbourAt":{"__isSmartRef__":true,"id":9186},"map":{"__isSmartRef__":true,"id":9190},"game":{"__isSmartRef__":true,"id":9194},"reset":{"__isSmartRef__":true,"id":9198},"shallowCopy":{"__isSmartRef__":true,"id":9202},"characters":{"__isSmartRef__":true,"id":9206},"enterTile":{"__isSmartRef__":true,"id":9210},"leaveTile":{"__isSmartRef__":true,"id":9214},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":9218}},"9114":{"varMapping":{"__isSmartRef__":true,"id":9115},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9116},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9117},"__LivelyClassName__":"lively.Closure"},"9115":{"this":{"__isSmartRef__":true,"id":6181}},"9116":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"9117":{"originalFunc":{"__isSmartRef__":true,"id":892}},"9118":{"varMapping":{"__isSmartRef__":true,"id":9119},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9120},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9121},"__LivelyClassName__":"lively.Closure"},"9119":{"this":{"__isSmartRef__":true,"id":6181}},"9120":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"9121":{"originalFunc":{"__isSmartRef__":true,"id":911}},"9122":{"varMapping":{"__isSmartRef__":true,"id":9123},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":9124},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9125},"__LivelyClassName__":"lively.Closure"},"9123":{"this":{"__isSmartRef__":true,"id":6181}},"9124":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"9125":{"originalFunc":{"__isSmartRef__":true,"id":915}},"9126":{"varMapping":{"__isSmartRef__":true,"id":9127},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9128},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9129},"__LivelyClassName__":"lively.Closure"},"9127":{"this":{"__isSmartRef__":true,"id":6181}},"9128":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"9129":{"originalFunc":{"__isSmartRef__":true,"id":919}},"9130":{"varMapping":{"__isSmartRef__":true,"id":9131},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9136},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9137},"__LivelyClassName__":"lively.Closure"},"9131":{"this":{"__isSmartRef__":true,"id":6181},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9132}},"9132":{"$super":{"__isSmartRef__":true,"id":9133}},"9133":{"varMapping":{"__isSmartRef__":true,"id":9134},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9135},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9134":{"obj":{"__isSmartRef__":true,"id":6181},"name":"onMouseDown"},"9135":{},"9136":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"9137":{"originalFunc":{"__isSmartRef__":true,"id":923}},"9138":{"varMapping":{"__isSmartRef__":true,"id":9139},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":9140},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9141},"__LivelyClassName__":"lively.Closure"},"9139":{"this":{"__isSmartRef__":true,"id":6181}},"9140":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"9141":{"originalFunc":{"__isSmartRef__":true,"id":931}},"9142":{"varMapping":{"__isSmartRef__":true,"id":9143},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":9144},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9145},"__LivelyClassName__":"lively.Closure"},"9143":{"this":{"__isSmartRef__":true,"id":6181}},"9144":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"9145":{"originalFunc":{"__isSmartRef__":true,"id":935}},"9146":{"varMapping":{"__isSmartRef__":true,"id":9147},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":9148},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9149},"__LivelyClassName__":"lively.Closure"},"9147":{"this":{"__isSmartRef__":true,"id":6181}},"9148":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"9149":{"originalFunc":{"__isSmartRef__":true,"id":939}},"9150":{"varMapping":{"__isSmartRef__":true,"id":9151},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":9152},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9153},"__LivelyClassName__":"lively.Closure"},"9151":{"this":{"__isSmartRef__":true,"id":6181}},"9152":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"9153":{"originalFunc":{"__isSmartRef__":true,"id":943}},"9154":{"varMapping":{"__isSmartRef__":true,"id":9155},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":9156},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9157},"__LivelyClassName__":"lively.Closure"},"9155":{"this":{"__isSmartRef__":true,"id":6181}},"9156":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"9157":{"originalFunc":{"__isSmartRef__":true,"id":947}},"9158":{"varMapping":{"__isSmartRef__":true,"id":9159},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":9160},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9161},"__LivelyClassName__":"lively.Closure"},"9159":{"this":{"__isSmartRef__":true,"id":6181}},"9160":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"9161":{"originalFunc":{"__isSmartRef__":true,"id":951}},"9162":{"varMapping":{"__isSmartRef__":true,"id":9163},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":9164},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9165},"__LivelyClassName__":"lively.Closure"},"9163":{"this":{"__isSmartRef__":true,"id":6181}},"9164":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"9165":{"originalFunc":{"__isSmartRef__":true,"id":955}},"9166":{"varMapping":{"__isSmartRef__":true,"id":9167},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":9168},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9169},"__LivelyClassName__":"lively.Closure"},"9167":{"this":{"__isSmartRef__":true,"id":6181}},"9168":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"9169":{"originalFunc":{"__isSmartRef__":true,"id":959}},"9170":{"varMapping":{"__isSmartRef__":true,"id":9171},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":9172},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9173},"__LivelyClassName__":"lively.Closure"},"9171":{"this":{"__isSmartRef__":true,"id":6181}},"9172":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"9173":{"originalFunc":{"__isSmartRef__":true,"id":963}},"9174":{"varMapping":{"__isSmartRef__":true,"id":9175},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9176},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9177},"__LivelyClassName__":"lively.Closure"},"9175":{"this":{"__isSmartRef__":true,"id":6181}},"9176":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"9177":{"originalFunc":{"__isSmartRef__":true,"id":967}},"9178":{"varMapping":{"__isSmartRef__":true,"id":9179},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9180},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9181},"__LivelyClassName__":"lively.Closure"},"9179":{"this":{"__isSmartRef__":true,"id":6181}},"9180":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"9181":{"originalFunc":{"__isSmartRef__":true,"id":971}},"9182":{"varMapping":{"__isSmartRef__":true,"id":9183},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":9184},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9185},"__LivelyClassName__":"lively.Closure"},"9183":{"this":{"__isSmartRef__":true,"id":6181}},"9184":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"9185":{"originalFunc":{"__isSmartRef__":true,"id":975}},"9186":{"varMapping":{"__isSmartRef__":true,"id":9187},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":9188},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9189},"__LivelyClassName__":"lively.Closure"},"9187":{"this":{"__isSmartRef__":true,"id":6181}},"9188":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"9189":{"originalFunc":{"__isSmartRef__":true,"id":979}},"9190":{"varMapping":{"__isSmartRef__":true,"id":9191},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":9192},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9193},"__LivelyClassName__":"lively.Closure"},"9191":{"this":{"__isSmartRef__":true,"id":6181}},"9192":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"9193":{"originalFunc":{"__isSmartRef__":true,"id":983}},"9194":{"varMapping":{"__isSmartRef__":true,"id":9195},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":9196},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9197},"__LivelyClassName__":"lively.Closure"},"9195":{"this":{"__isSmartRef__":true,"id":6181}},"9196":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"9197":{"originalFunc":{"__isSmartRef__":true,"id":987}},"9198":{"varMapping":{"__isSmartRef__":true,"id":9199},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":9200},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9201},"__LivelyClassName__":"lively.Closure"},"9199":{"this":{"__isSmartRef__":true,"id":6181}},"9200":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"9201":{"originalFunc":{"__isSmartRef__":true,"id":991}},"9202":{"varMapping":{"__isSmartRef__":true,"id":9203},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":9204},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9205},"__LivelyClassName__":"lively.Closure"},"9203":{"this":{"__isSmartRef__":true,"id":6181}},"9204":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"9205":{"originalFunc":{"__isSmartRef__":true,"id":995}},"9206":{"varMapping":{"__isSmartRef__":true,"id":9207},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":9208},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9209},"__LivelyClassName__":"lively.Closure"},"9207":{"this":{"__isSmartRef__":true,"id":6181}},"9208":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"9209":{"originalFunc":{"__isSmartRef__":true,"id":999}},"9210":{"varMapping":{"__isSmartRef__":true,"id":9211},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9212},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9213},"__LivelyClassName__":"lively.Closure"},"9211":{"this":{"__isSmartRef__":true,"id":6181}},"9212":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"9213":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"9214":{"varMapping":{"__isSmartRef__":true,"id":9215},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9216},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9217},"__LivelyClassName__":"lively.Closure"},"9215":{"this":{"__isSmartRef__":true,"id":6181}},"9216":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"9217":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"9218":{"varMapping":{"__isSmartRef__":true,"id":9219},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9220},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9221},"__LivelyClassName__":"lively.Closure"},"9219":{"this":{"__isSmartRef__":true,"id":6181}},"9220":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"9221":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"9222":{"setDevStyle":{"__isSmartRef__":true,"id":9223},"setNormalStyle":{"__isSmartRef__":true,"id":9227},"tileSize":{"__isSmartRef__":true,"id":9231},"become":{"__isSmartRef__":true,"id":9235},"onMouseDown":{"__isSmartRef__":true,"id":9239},"setGridPosition":{"__isSmartRef__":true,"id":9247},"toolbox":{"__isSmartRef__":true,"id":9251},"distanceTo":{"__isSmartRef__":true,"id":9255},"tileWasDropped":{"__isSmartRef__":true,"id":9259},"isObstacle":{"__isSmartRef__":true,"id":9263},"neighboursInDirection":{"__isSmartRef__":true,"id":9267},"neighbours":{"__isSmartRef__":true,"id":9271},"zIndex":{"__isSmartRef__":true,"id":9275},"obstacles":{"__isSmartRef__":true,"id":9279},"addObstacle":{"__isSmartRef__":true,"id":9283},"removeObstacle":{"__isSmartRef__":true,"id":9287},"isTile":{"__isSmartRef__":true,"id":9291},"neighbourAt":{"__isSmartRef__":true,"id":9295},"map":{"__isSmartRef__":true,"id":9299},"game":{"__isSmartRef__":true,"id":9303},"reset":{"__isSmartRef__":true,"id":9307},"shallowCopy":{"__isSmartRef__":true,"id":9311},"characters":{"__isSmartRef__":true,"id":9315},"enterTile":{"__isSmartRef__":true,"id":9319},"leaveTile":{"__isSmartRef__":true,"id":9323},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":9327}},"9223":{"varMapping":{"__isSmartRef__":true,"id":9224},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9225},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9226},"__LivelyClassName__":"lively.Closure"},"9224":{"this":{"__isSmartRef__":true,"id":6162}},"9225":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"9226":{"originalFunc":{"__isSmartRef__":true,"id":892}},"9227":{"varMapping":{"__isSmartRef__":true,"id":9228},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9229},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9230},"__LivelyClassName__":"lively.Closure"},"9228":{"this":{"__isSmartRef__":true,"id":6162}},"9229":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"9230":{"originalFunc":{"__isSmartRef__":true,"id":911}},"9231":{"varMapping":{"__isSmartRef__":true,"id":9232},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":9233},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9234},"__LivelyClassName__":"lively.Closure"},"9232":{"this":{"__isSmartRef__":true,"id":6162}},"9233":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"9234":{"originalFunc":{"__isSmartRef__":true,"id":915}},"9235":{"varMapping":{"__isSmartRef__":true,"id":9236},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9237},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9238},"__LivelyClassName__":"lively.Closure"},"9236":{"this":{"__isSmartRef__":true,"id":6162}},"9237":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"9238":{"originalFunc":{"__isSmartRef__":true,"id":919}},"9239":{"varMapping":{"__isSmartRef__":true,"id":9240},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9245},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9246},"__LivelyClassName__":"lively.Closure"},"9240":{"this":{"__isSmartRef__":true,"id":6162},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9241}},"9241":{"$super":{"__isSmartRef__":true,"id":9242}},"9242":{"varMapping":{"__isSmartRef__":true,"id":9243},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9244},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9243":{"obj":{"__isSmartRef__":true,"id":6162},"name":"onMouseDown"},"9244":{},"9245":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"9246":{"originalFunc":{"__isSmartRef__":true,"id":923}},"9247":{"varMapping":{"__isSmartRef__":true,"id":9248},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":9249},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9250},"__LivelyClassName__":"lively.Closure"},"9248":{"this":{"__isSmartRef__":true,"id":6162}},"9249":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"9250":{"originalFunc":{"__isSmartRef__":true,"id":931}},"9251":{"varMapping":{"__isSmartRef__":true,"id":9252},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":9253},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9254},"__LivelyClassName__":"lively.Closure"},"9252":{"this":{"__isSmartRef__":true,"id":6162}},"9253":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"9254":{"originalFunc":{"__isSmartRef__":true,"id":935}},"9255":{"varMapping":{"__isSmartRef__":true,"id":9256},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":9257},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9258},"__LivelyClassName__":"lively.Closure"},"9256":{"this":{"__isSmartRef__":true,"id":6162}},"9257":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"9258":{"originalFunc":{"__isSmartRef__":true,"id":939}},"9259":{"varMapping":{"__isSmartRef__":true,"id":9260},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":9261},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9262},"__LivelyClassName__":"lively.Closure"},"9260":{"this":{"__isSmartRef__":true,"id":6162}},"9261":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"9262":{"originalFunc":{"__isSmartRef__":true,"id":943}},"9263":{"varMapping":{"__isSmartRef__":true,"id":9264},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":9265},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9266},"__LivelyClassName__":"lively.Closure"},"9264":{"this":{"__isSmartRef__":true,"id":6162}},"9265":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"9266":{"originalFunc":{"__isSmartRef__":true,"id":947}},"9267":{"varMapping":{"__isSmartRef__":true,"id":9268},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":9269},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9270},"__LivelyClassName__":"lively.Closure"},"9268":{"this":{"__isSmartRef__":true,"id":6162}},"9269":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"9270":{"originalFunc":{"__isSmartRef__":true,"id":951}},"9271":{"varMapping":{"__isSmartRef__":true,"id":9272},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":9273},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9274},"__LivelyClassName__":"lively.Closure"},"9272":{"this":{"__isSmartRef__":true,"id":6162}},"9273":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"9274":{"originalFunc":{"__isSmartRef__":true,"id":955}},"9275":{"varMapping":{"__isSmartRef__":true,"id":9276},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":9277},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9278},"__LivelyClassName__":"lively.Closure"},"9276":{"this":{"__isSmartRef__":true,"id":6162}},"9277":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"9278":{"originalFunc":{"__isSmartRef__":true,"id":959}},"9279":{"varMapping":{"__isSmartRef__":true,"id":9280},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":9281},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9282},"__LivelyClassName__":"lively.Closure"},"9280":{"this":{"__isSmartRef__":true,"id":6162}},"9281":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"9282":{"originalFunc":{"__isSmartRef__":true,"id":963}},"9283":{"varMapping":{"__isSmartRef__":true,"id":9284},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9285},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9286},"__LivelyClassName__":"lively.Closure"},"9284":{"this":{"__isSmartRef__":true,"id":6162}},"9285":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"9286":{"originalFunc":{"__isSmartRef__":true,"id":967}},"9287":{"varMapping":{"__isSmartRef__":true,"id":9288},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9289},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9290},"__LivelyClassName__":"lively.Closure"},"9288":{"this":{"__isSmartRef__":true,"id":6162}},"9289":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"9290":{"originalFunc":{"__isSmartRef__":true,"id":971}},"9291":{"varMapping":{"__isSmartRef__":true,"id":9292},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":9293},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9294},"__LivelyClassName__":"lively.Closure"},"9292":{"this":{"__isSmartRef__":true,"id":6162}},"9293":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"9294":{"originalFunc":{"__isSmartRef__":true,"id":975}},"9295":{"varMapping":{"__isSmartRef__":true,"id":9296},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":9297},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9298},"__LivelyClassName__":"lively.Closure"},"9296":{"this":{"__isSmartRef__":true,"id":6162}},"9297":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"9298":{"originalFunc":{"__isSmartRef__":true,"id":979}},"9299":{"varMapping":{"__isSmartRef__":true,"id":9300},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":9301},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9302},"__LivelyClassName__":"lively.Closure"},"9300":{"this":{"__isSmartRef__":true,"id":6162}},"9301":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"9302":{"originalFunc":{"__isSmartRef__":true,"id":983}},"9303":{"varMapping":{"__isSmartRef__":true,"id":9304},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":9305},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9306},"__LivelyClassName__":"lively.Closure"},"9304":{"this":{"__isSmartRef__":true,"id":6162}},"9305":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"9306":{"originalFunc":{"__isSmartRef__":true,"id":987}},"9307":{"varMapping":{"__isSmartRef__":true,"id":9308},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":9309},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9310},"__LivelyClassName__":"lively.Closure"},"9308":{"this":{"__isSmartRef__":true,"id":6162}},"9309":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"9310":{"originalFunc":{"__isSmartRef__":true,"id":991}},"9311":{"varMapping":{"__isSmartRef__":true,"id":9312},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":9313},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9314},"__LivelyClassName__":"lively.Closure"},"9312":{"this":{"__isSmartRef__":true,"id":6162}},"9313":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"9314":{"originalFunc":{"__isSmartRef__":true,"id":995}},"9315":{"varMapping":{"__isSmartRef__":true,"id":9316},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":9317},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9318},"__LivelyClassName__":"lively.Closure"},"9316":{"this":{"__isSmartRef__":true,"id":6162}},"9317":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"9318":{"originalFunc":{"__isSmartRef__":true,"id":999}},"9319":{"varMapping":{"__isSmartRef__":true,"id":9320},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9321},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9322},"__LivelyClassName__":"lively.Closure"},"9320":{"this":{"__isSmartRef__":true,"id":6162}},"9321":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"9322":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"9323":{"varMapping":{"__isSmartRef__":true,"id":9324},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9325},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9326},"__LivelyClassName__":"lively.Closure"},"9324":{"this":{"__isSmartRef__":true,"id":6162}},"9325":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"9326":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"9327":{"varMapping":{"__isSmartRef__":true,"id":9328},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9329},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9330},"__LivelyClassName__":"lively.Closure"},"9328":{"this":{"__isSmartRef__":true,"id":6162}},"9329":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"9330":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"9331":{"setDevStyle":{"__isSmartRef__":true,"id":9332},"setNormalStyle":{"__isSmartRef__":true,"id":9336},"tileSize":{"__isSmartRef__":true,"id":9340},"become":{"__isSmartRef__":true,"id":9344},"onMouseDown":{"__isSmartRef__":true,"id":9348},"setGridPosition":{"__isSmartRef__":true,"id":9356},"toolbox":{"__isSmartRef__":true,"id":9360},"distanceTo":{"__isSmartRef__":true,"id":9364},"tileWasDropped":{"__isSmartRef__":true,"id":9368},"isObstacle":{"__isSmartRef__":true,"id":9372},"neighboursInDirection":{"__isSmartRef__":true,"id":9376},"neighbours":{"__isSmartRef__":true,"id":9380},"zIndex":{"__isSmartRef__":true,"id":9384},"obstacles":{"__isSmartRef__":true,"id":9388},"addObstacle":{"__isSmartRef__":true,"id":9392},"removeObstacle":{"__isSmartRef__":true,"id":9396},"isTile":{"__isSmartRef__":true,"id":9400},"neighbourAt":{"__isSmartRef__":true,"id":9404},"map":{"__isSmartRef__":true,"id":9408},"game":{"__isSmartRef__":true,"id":9412},"reset":{"__isSmartRef__":true,"id":9416},"shallowCopy":{"__isSmartRef__":true,"id":9420},"characters":{"__isSmartRef__":true,"id":9424},"enterTile":{"__isSmartRef__":true,"id":9428},"leaveTile":{"__isSmartRef__":true,"id":9432},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":9436}},"9332":{"varMapping":{"__isSmartRef__":true,"id":9333},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9334},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9335},"__LivelyClassName__":"lively.Closure"},"9333":{"this":{"__isSmartRef__":true,"id":5266}},"9334":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"9335":{"originalFunc":{"__isSmartRef__":true,"id":892}},"9336":{"varMapping":{"__isSmartRef__":true,"id":9337},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9338},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9339},"__LivelyClassName__":"lively.Closure"},"9337":{"this":{"__isSmartRef__":true,"id":5266}},"9338":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"9339":{"originalFunc":{"__isSmartRef__":true,"id":911}},"9340":{"varMapping":{"__isSmartRef__":true,"id":9341},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":9342},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9343},"__LivelyClassName__":"lively.Closure"},"9341":{"this":{"__isSmartRef__":true,"id":5266}},"9342":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"9343":{"originalFunc":{"__isSmartRef__":true,"id":915}},"9344":{"varMapping":{"__isSmartRef__":true,"id":9345},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9346},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9347},"__LivelyClassName__":"lively.Closure"},"9345":{"this":{"__isSmartRef__":true,"id":5266}},"9346":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"9347":{"originalFunc":{"__isSmartRef__":true,"id":919}},"9348":{"varMapping":{"__isSmartRef__":true,"id":9349},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9354},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9355},"__LivelyClassName__":"lively.Closure"},"9349":{"this":{"__isSmartRef__":true,"id":5266},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9350}},"9350":{"$super":{"__isSmartRef__":true,"id":9351}},"9351":{"varMapping":{"__isSmartRef__":true,"id":9352},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9353},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9352":{"obj":{"__isSmartRef__":true,"id":5266},"name":"onMouseDown"},"9353":{},"9354":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"9355":{"originalFunc":{"__isSmartRef__":true,"id":923}},"9356":{"varMapping":{"__isSmartRef__":true,"id":9357},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":9358},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9359},"__LivelyClassName__":"lively.Closure"},"9357":{"this":{"__isSmartRef__":true,"id":5266}},"9358":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"9359":{"originalFunc":{"__isSmartRef__":true,"id":931}},"9360":{"varMapping":{"__isSmartRef__":true,"id":9361},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":9362},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9363},"__LivelyClassName__":"lively.Closure"},"9361":{"this":{"__isSmartRef__":true,"id":5266}},"9362":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"9363":{"originalFunc":{"__isSmartRef__":true,"id":935}},"9364":{"varMapping":{"__isSmartRef__":true,"id":9365},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":9366},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9367},"__LivelyClassName__":"lively.Closure"},"9365":{"this":{"__isSmartRef__":true,"id":5266}},"9366":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"9367":{"originalFunc":{"__isSmartRef__":true,"id":939}},"9368":{"varMapping":{"__isSmartRef__":true,"id":9369},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":9370},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9371},"__LivelyClassName__":"lively.Closure"},"9369":{"this":{"__isSmartRef__":true,"id":5266}},"9370":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"9371":{"originalFunc":{"__isSmartRef__":true,"id":943}},"9372":{"varMapping":{"__isSmartRef__":true,"id":9373},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":9374},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9375},"__LivelyClassName__":"lively.Closure"},"9373":{"this":{"__isSmartRef__":true,"id":5266}},"9374":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"9375":{"originalFunc":{"__isSmartRef__":true,"id":947}},"9376":{"varMapping":{"__isSmartRef__":true,"id":9377},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":9378},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9379},"__LivelyClassName__":"lively.Closure"},"9377":{"this":{"__isSmartRef__":true,"id":5266}},"9378":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"9379":{"originalFunc":{"__isSmartRef__":true,"id":951}},"9380":{"varMapping":{"__isSmartRef__":true,"id":9381},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":9382},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9383},"__LivelyClassName__":"lively.Closure"},"9381":{"this":{"__isSmartRef__":true,"id":5266}},"9382":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"9383":{"originalFunc":{"__isSmartRef__":true,"id":955}},"9384":{"varMapping":{"__isSmartRef__":true,"id":9385},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":9386},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9387},"__LivelyClassName__":"lively.Closure"},"9385":{"this":{"__isSmartRef__":true,"id":5266}},"9386":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"9387":{"originalFunc":{"__isSmartRef__":true,"id":959}},"9388":{"varMapping":{"__isSmartRef__":true,"id":9389},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":9390},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9391},"__LivelyClassName__":"lively.Closure"},"9389":{"this":{"__isSmartRef__":true,"id":5266}},"9390":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"9391":{"originalFunc":{"__isSmartRef__":true,"id":963}},"9392":{"varMapping":{"__isSmartRef__":true,"id":9393},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9394},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9395},"__LivelyClassName__":"lively.Closure"},"9393":{"this":{"__isSmartRef__":true,"id":5266}},"9394":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"9395":{"originalFunc":{"__isSmartRef__":true,"id":967}},"9396":{"varMapping":{"__isSmartRef__":true,"id":9397},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9398},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9399},"__LivelyClassName__":"lively.Closure"},"9397":{"this":{"__isSmartRef__":true,"id":5266}},"9398":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"9399":{"originalFunc":{"__isSmartRef__":true,"id":971}},"9400":{"varMapping":{"__isSmartRef__":true,"id":9401},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":9402},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9403},"__LivelyClassName__":"lively.Closure"},"9401":{"this":{"__isSmartRef__":true,"id":5266}},"9402":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"9403":{"originalFunc":{"__isSmartRef__":true,"id":975}},"9404":{"varMapping":{"__isSmartRef__":true,"id":9405},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":9406},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9407},"__LivelyClassName__":"lively.Closure"},"9405":{"this":{"__isSmartRef__":true,"id":5266}},"9406":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"9407":{"originalFunc":{"__isSmartRef__":true,"id":979}},"9408":{"varMapping":{"__isSmartRef__":true,"id":9409},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":9410},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9411},"__LivelyClassName__":"lively.Closure"},"9409":{"this":{"__isSmartRef__":true,"id":5266}},"9410":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"9411":{"originalFunc":{"__isSmartRef__":true,"id":983}},"9412":{"varMapping":{"__isSmartRef__":true,"id":9413},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":9414},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9415},"__LivelyClassName__":"lively.Closure"},"9413":{"this":{"__isSmartRef__":true,"id":5266}},"9414":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"9415":{"originalFunc":{"__isSmartRef__":true,"id":987}},"9416":{"varMapping":{"__isSmartRef__":true,"id":9417},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":9418},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9419},"__LivelyClassName__":"lively.Closure"},"9417":{"this":{"__isSmartRef__":true,"id":5266}},"9418":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"9419":{"originalFunc":{"__isSmartRef__":true,"id":991}},"9420":{"varMapping":{"__isSmartRef__":true,"id":9421},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":9422},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9423},"__LivelyClassName__":"lively.Closure"},"9421":{"this":{"__isSmartRef__":true,"id":5266}},"9422":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"9423":{"originalFunc":{"__isSmartRef__":true,"id":995}},"9424":{"varMapping":{"__isSmartRef__":true,"id":9425},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":9426},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9427},"__LivelyClassName__":"lively.Closure"},"9425":{"this":{"__isSmartRef__":true,"id":5266}},"9426":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"9427":{"originalFunc":{"__isSmartRef__":true,"id":999}},"9428":{"varMapping":{"__isSmartRef__":true,"id":9429},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9430},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9431},"__LivelyClassName__":"lively.Closure"},"9429":{"this":{"__isSmartRef__":true,"id":5266}},"9430":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"9431":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"9432":{"varMapping":{"__isSmartRef__":true,"id":9433},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9434},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9435},"__LivelyClassName__":"lively.Closure"},"9433":{"this":{"__isSmartRef__":true,"id":5266}},"9434":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"9435":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"9436":{"varMapping":{"__isSmartRef__":true,"id":9437},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9438},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9439},"__LivelyClassName__":"lively.Closure"},"9437":{"this":{"__isSmartRef__":true,"id":5266}},"9438":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"9439":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"9440":{"setDevStyle":{"__isSmartRef__":true,"id":9441},"setNormalStyle":{"__isSmartRef__":true,"id":9445},"tileSize":{"__isSmartRef__":true,"id":9449},"become":{"__isSmartRef__":true,"id":9453},"onMouseDown":{"__isSmartRef__":true,"id":9457},"setGridPosition":{"__isSmartRef__":true,"id":9465},"toolbox":{"__isSmartRef__":true,"id":9469},"distanceTo":{"__isSmartRef__":true,"id":9473},"tileWasDropped":{"__isSmartRef__":true,"id":9477},"isObstacle":{"__isSmartRef__":true,"id":9481},"neighboursInDirection":{"__isSmartRef__":true,"id":9485},"neighbours":{"__isSmartRef__":true,"id":9489},"zIndex":{"__isSmartRef__":true,"id":9493},"obstacles":{"__isSmartRef__":true,"id":9497},"addObstacle":{"__isSmartRef__":true,"id":9501},"removeObstacle":{"__isSmartRef__":true,"id":9505},"isTile":{"__isSmartRef__":true,"id":9509},"neighbourAt":{"__isSmartRef__":true,"id":9513},"map":{"__isSmartRef__":true,"id":9517},"game":{"__isSmartRef__":true,"id":9521},"reset":{"__isSmartRef__":true,"id":9525},"shallowCopy":{"__isSmartRef__":true,"id":9529},"characters":{"__isSmartRef__":true,"id":9533},"enterTile":{"__isSmartRef__":true,"id":9537},"leaveTile":{"__isSmartRef__":true,"id":9541},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":9545}},"9441":{"varMapping":{"__isSmartRef__":true,"id":9442},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9443},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9444},"__LivelyClassName__":"lively.Closure"},"9442":{"this":{"__isSmartRef__":true,"id":5247}},"9443":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"9444":{"originalFunc":{"__isSmartRef__":true,"id":892}},"9445":{"varMapping":{"__isSmartRef__":true,"id":9446},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9447},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9448},"__LivelyClassName__":"lively.Closure"},"9446":{"this":{"__isSmartRef__":true,"id":5247}},"9447":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"9448":{"originalFunc":{"__isSmartRef__":true,"id":911}},"9449":{"varMapping":{"__isSmartRef__":true,"id":9450},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":9451},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9452},"__LivelyClassName__":"lively.Closure"},"9450":{"this":{"__isSmartRef__":true,"id":5247}},"9451":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"9452":{"originalFunc":{"__isSmartRef__":true,"id":915}},"9453":{"varMapping":{"__isSmartRef__":true,"id":9454},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9455},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9456},"__LivelyClassName__":"lively.Closure"},"9454":{"this":{"__isSmartRef__":true,"id":5247}},"9455":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"9456":{"originalFunc":{"__isSmartRef__":true,"id":919}},"9457":{"varMapping":{"__isSmartRef__":true,"id":9458},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9463},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9464},"__LivelyClassName__":"lively.Closure"},"9458":{"this":{"__isSmartRef__":true,"id":5247},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9459}},"9459":{"$super":{"__isSmartRef__":true,"id":9460}},"9460":{"varMapping":{"__isSmartRef__":true,"id":9461},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9462},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9461":{"obj":{"__isSmartRef__":true,"id":5247},"name":"onMouseDown"},"9462":{},"9463":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"9464":{"originalFunc":{"__isSmartRef__":true,"id":923}},"9465":{"varMapping":{"__isSmartRef__":true,"id":9466},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":9467},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9468},"__LivelyClassName__":"lively.Closure"},"9466":{"this":{"__isSmartRef__":true,"id":5247}},"9467":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"9468":{"originalFunc":{"__isSmartRef__":true,"id":931}},"9469":{"varMapping":{"__isSmartRef__":true,"id":9470},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":9471},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9472},"__LivelyClassName__":"lively.Closure"},"9470":{"this":{"__isSmartRef__":true,"id":5247}},"9471":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"9472":{"originalFunc":{"__isSmartRef__":true,"id":935}},"9473":{"varMapping":{"__isSmartRef__":true,"id":9474},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":9475},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9476},"__LivelyClassName__":"lively.Closure"},"9474":{"this":{"__isSmartRef__":true,"id":5247}},"9475":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"9476":{"originalFunc":{"__isSmartRef__":true,"id":939}},"9477":{"varMapping":{"__isSmartRef__":true,"id":9478},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":9479},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9480},"__LivelyClassName__":"lively.Closure"},"9478":{"this":{"__isSmartRef__":true,"id":5247}},"9479":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"9480":{"originalFunc":{"__isSmartRef__":true,"id":943}},"9481":{"varMapping":{"__isSmartRef__":true,"id":9482},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":9483},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9484},"__LivelyClassName__":"lively.Closure"},"9482":{"this":{"__isSmartRef__":true,"id":5247}},"9483":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"9484":{"originalFunc":{"__isSmartRef__":true,"id":947}},"9485":{"varMapping":{"__isSmartRef__":true,"id":9486},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":9487},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9488},"__LivelyClassName__":"lively.Closure"},"9486":{"this":{"__isSmartRef__":true,"id":5247}},"9487":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"9488":{"originalFunc":{"__isSmartRef__":true,"id":951}},"9489":{"varMapping":{"__isSmartRef__":true,"id":9490},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":9491},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9492},"__LivelyClassName__":"lively.Closure"},"9490":{"this":{"__isSmartRef__":true,"id":5247}},"9491":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"9492":{"originalFunc":{"__isSmartRef__":true,"id":955}},"9493":{"varMapping":{"__isSmartRef__":true,"id":9494},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":9495},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9496},"__LivelyClassName__":"lively.Closure"},"9494":{"this":{"__isSmartRef__":true,"id":5247}},"9495":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"9496":{"originalFunc":{"__isSmartRef__":true,"id":959}},"9497":{"varMapping":{"__isSmartRef__":true,"id":9498},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":9499},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9500},"__LivelyClassName__":"lively.Closure"},"9498":{"this":{"__isSmartRef__":true,"id":5247}},"9499":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"9500":{"originalFunc":{"__isSmartRef__":true,"id":963}},"9501":{"varMapping":{"__isSmartRef__":true,"id":9502},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9503},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9504},"__LivelyClassName__":"lively.Closure"},"9502":{"this":{"__isSmartRef__":true,"id":5247}},"9503":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"9504":{"originalFunc":{"__isSmartRef__":true,"id":967}},"9505":{"varMapping":{"__isSmartRef__":true,"id":9506},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9507},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9508},"__LivelyClassName__":"lively.Closure"},"9506":{"this":{"__isSmartRef__":true,"id":5247}},"9507":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"9508":{"originalFunc":{"__isSmartRef__":true,"id":971}},"9509":{"varMapping":{"__isSmartRef__":true,"id":9510},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":9511},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9512},"__LivelyClassName__":"lively.Closure"},"9510":{"this":{"__isSmartRef__":true,"id":5247}},"9511":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"9512":{"originalFunc":{"__isSmartRef__":true,"id":975}},"9513":{"varMapping":{"__isSmartRef__":true,"id":9514},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":9515},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9516},"__LivelyClassName__":"lively.Closure"},"9514":{"this":{"__isSmartRef__":true,"id":5247}},"9515":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"9516":{"originalFunc":{"__isSmartRef__":true,"id":979}},"9517":{"varMapping":{"__isSmartRef__":true,"id":9518},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":9519},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9520},"__LivelyClassName__":"lively.Closure"},"9518":{"this":{"__isSmartRef__":true,"id":5247}},"9519":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"9520":{"originalFunc":{"__isSmartRef__":true,"id":983}},"9521":{"varMapping":{"__isSmartRef__":true,"id":9522},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":9523},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9524},"__LivelyClassName__":"lively.Closure"},"9522":{"this":{"__isSmartRef__":true,"id":5247}},"9523":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"9524":{"originalFunc":{"__isSmartRef__":true,"id":987}},"9525":{"varMapping":{"__isSmartRef__":true,"id":9526},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":9527},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9528},"__LivelyClassName__":"lively.Closure"},"9526":{"this":{"__isSmartRef__":true,"id":5247}},"9527":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"9528":{"originalFunc":{"__isSmartRef__":true,"id":991}},"9529":{"varMapping":{"__isSmartRef__":true,"id":9530},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":9531},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9532},"__LivelyClassName__":"lively.Closure"},"9530":{"this":{"__isSmartRef__":true,"id":5247}},"9531":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"9532":{"originalFunc":{"__isSmartRef__":true,"id":995}},"9533":{"varMapping":{"__isSmartRef__":true,"id":9534},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":9535},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9536},"__LivelyClassName__":"lively.Closure"},"9534":{"this":{"__isSmartRef__":true,"id":5247}},"9535":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"9536":{"originalFunc":{"__isSmartRef__":true,"id":999}},"9537":{"varMapping":{"__isSmartRef__":true,"id":9538},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9539},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9540},"__LivelyClassName__":"lively.Closure"},"9538":{"this":{"__isSmartRef__":true,"id":5247}},"9539":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"9540":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"9541":{"varMapping":{"__isSmartRef__":true,"id":9542},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9543},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9544},"__LivelyClassName__":"lively.Closure"},"9542":{"this":{"__isSmartRef__":true,"id":5247}},"9543":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"9544":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"9545":{"varMapping":{"__isSmartRef__":true,"id":9546},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9547},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9548},"__LivelyClassName__":"lively.Closure"},"9546":{"this":{"__isSmartRef__":true,"id":5247}},"9547":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"9548":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"9549":{"setDevStyle":{"__isSmartRef__":true,"id":9550},"setNormalStyle":{"__isSmartRef__":true,"id":9554},"tileSize":{"__isSmartRef__":true,"id":9558},"become":{"__isSmartRef__":true,"id":9562},"onMouseDown":{"__isSmartRef__":true,"id":9566},"setGridPosition":{"__isSmartRef__":true,"id":9574},"toolbox":{"__isSmartRef__":true,"id":9578},"distanceTo":{"__isSmartRef__":true,"id":9582},"tileWasDropped":{"__isSmartRef__":true,"id":9586},"isObstacle":{"__isSmartRef__":true,"id":9590},"neighboursInDirection":{"__isSmartRef__":true,"id":9594},"neighbours":{"__isSmartRef__":true,"id":9598},"zIndex":{"__isSmartRef__":true,"id":9602},"obstacles":{"__isSmartRef__":true,"id":9606},"addObstacle":{"__isSmartRef__":true,"id":9610},"removeObstacle":{"__isSmartRef__":true,"id":9614},"isTile":{"__isSmartRef__":true,"id":9618},"neighbourAt":{"__isSmartRef__":true,"id":9622},"map":{"__isSmartRef__":true,"id":9626},"game":{"__isSmartRef__":true,"id":9630},"reset":{"__isSmartRef__":true,"id":9634},"shallowCopy":{"__isSmartRef__":true,"id":9638},"characters":{"__isSmartRef__":true,"id":9642},"enterTile":{"__isSmartRef__":true,"id":9646},"leaveTile":{"__isSmartRef__":true,"id":9650},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":9654}},"9550":{"varMapping":{"__isSmartRef__":true,"id":9551},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9552},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9553},"__LivelyClassName__":"lively.Closure"},"9551":{"this":{"__isSmartRef__":true,"id":5100}},"9552":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"9553":{"originalFunc":{"__isSmartRef__":true,"id":892}},"9554":{"varMapping":{"__isSmartRef__":true,"id":9555},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9556},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9557},"__LivelyClassName__":"lively.Closure"},"9555":{"this":{"__isSmartRef__":true,"id":5100}},"9556":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"9557":{"originalFunc":{"__isSmartRef__":true,"id":911}},"9558":{"varMapping":{"__isSmartRef__":true,"id":9559},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":9560},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9561},"__LivelyClassName__":"lively.Closure"},"9559":{"this":{"__isSmartRef__":true,"id":5100}},"9560":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"9561":{"originalFunc":{"__isSmartRef__":true,"id":915}},"9562":{"varMapping":{"__isSmartRef__":true,"id":9563},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9564},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9565},"__LivelyClassName__":"lively.Closure"},"9563":{"this":{"__isSmartRef__":true,"id":5100}},"9564":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"9565":{"originalFunc":{"__isSmartRef__":true,"id":919}},"9566":{"varMapping":{"__isSmartRef__":true,"id":9567},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9572},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9573},"__LivelyClassName__":"lively.Closure"},"9567":{"this":{"__isSmartRef__":true,"id":5100},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9568}},"9568":{"$super":{"__isSmartRef__":true,"id":9569}},"9569":{"varMapping":{"__isSmartRef__":true,"id":9570},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9571},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9570":{"obj":{"__isSmartRef__":true,"id":5100},"name":"onMouseDown"},"9571":{},"9572":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"9573":{"originalFunc":{"__isSmartRef__":true,"id":923}},"9574":{"varMapping":{"__isSmartRef__":true,"id":9575},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":9576},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9577},"__LivelyClassName__":"lively.Closure"},"9575":{"this":{"__isSmartRef__":true,"id":5100}},"9576":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"9577":{"originalFunc":{"__isSmartRef__":true,"id":931}},"9578":{"varMapping":{"__isSmartRef__":true,"id":9579},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":9580},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9581},"__LivelyClassName__":"lively.Closure"},"9579":{"this":{"__isSmartRef__":true,"id":5100}},"9580":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"9581":{"originalFunc":{"__isSmartRef__":true,"id":935}},"9582":{"varMapping":{"__isSmartRef__":true,"id":9583},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":9584},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9585},"__LivelyClassName__":"lively.Closure"},"9583":{"this":{"__isSmartRef__":true,"id":5100}},"9584":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"9585":{"originalFunc":{"__isSmartRef__":true,"id":939}},"9586":{"varMapping":{"__isSmartRef__":true,"id":9587},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":9588},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9589},"__LivelyClassName__":"lively.Closure"},"9587":{"this":{"__isSmartRef__":true,"id":5100}},"9588":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"9589":{"originalFunc":{"__isSmartRef__":true,"id":943}},"9590":{"varMapping":{"__isSmartRef__":true,"id":9591},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":9592},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9593},"__LivelyClassName__":"lively.Closure"},"9591":{"this":{"__isSmartRef__":true,"id":5100}},"9592":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"9593":{"originalFunc":{"__isSmartRef__":true,"id":947}},"9594":{"varMapping":{"__isSmartRef__":true,"id":9595},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":9596},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9597},"__LivelyClassName__":"lively.Closure"},"9595":{"this":{"__isSmartRef__":true,"id":5100}},"9596":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"9597":{"originalFunc":{"__isSmartRef__":true,"id":951}},"9598":{"varMapping":{"__isSmartRef__":true,"id":9599},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":9600},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9601},"__LivelyClassName__":"lively.Closure"},"9599":{"this":{"__isSmartRef__":true,"id":5100}},"9600":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"9601":{"originalFunc":{"__isSmartRef__":true,"id":955}},"9602":{"varMapping":{"__isSmartRef__":true,"id":9603},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":9604},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9605},"__LivelyClassName__":"lively.Closure"},"9603":{"this":{"__isSmartRef__":true,"id":5100}},"9604":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"9605":{"originalFunc":{"__isSmartRef__":true,"id":959}},"9606":{"varMapping":{"__isSmartRef__":true,"id":9607},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":9608},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9609},"__LivelyClassName__":"lively.Closure"},"9607":{"this":{"__isSmartRef__":true,"id":5100}},"9608":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"9609":{"originalFunc":{"__isSmartRef__":true,"id":963}},"9610":{"varMapping":{"__isSmartRef__":true,"id":9611},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9612},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9613},"__LivelyClassName__":"lively.Closure"},"9611":{"this":{"__isSmartRef__":true,"id":5100}},"9612":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"9613":{"originalFunc":{"__isSmartRef__":true,"id":967}},"9614":{"varMapping":{"__isSmartRef__":true,"id":9615},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9616},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9617},"__LivelyClassName__":"lively.Closure"},"9615":{"this":{"__isSmartRef__":true,"id":5100}},"9616":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"9617":{"originalFunc":{"__isSmartRef__":true,"id":971}},"9618":{"varMapping":{"__isSmartRef__":true,"id":9619},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":9620},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9621},"__LivelyClassName__":"lively.Closure"},"9619":{"this":{"__isSmartRef__":true,"id":5100}},"9620":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"9621":{"originalFunc":{"__isSmartRef__":true,"id":975}},"9622":{"varMapping":{"__isSmartRef__":true,"id":9623},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":9624},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9625},"__LivelyClassName__":"lively.Closure"},"9623":{"this":{"__isSmartRef__":true,"id":5100}},"9624":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"9625":{"originalFunc":{"__isSmartRef__":true,"id":979}},"9626":{"varMapping":{"__isSmartRef__":true,"id":9627},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":9628},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9629},"__LivelyClassName__":"lively.Closure"},"9627":{"this":{"__isSmartRef__":true,"id":5100}},"9628":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"9629":{"originalFunc":{"__isSmartRef__":true,"id":983}},"9630":{"varMapping":{"__isSmartRef__":true,"id":9631},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":9632},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9633},"__LivelyClassName__":"lively.Closure"},"9631":{"this":{"__isSmartRef__":true,"id":5100}},"9632":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"9633":{"originalFunc":{"__isSmartRef__":true,"id":987}},"9634":{"varMapping":{"__isSmartRef__":true,"id":9635},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":9636},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9637},"__LivelyClassName__":"lively.Closure"},"9635":{"this":{"__isSmartRef__":true,"id":5100}},"9636":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"9637":{"originalFunc":{"__isSmartRef__":true,"id":991}},"9638":{"varMapping":{"__isSmartRef__":true,"id":9639},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":9640},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9641},"__LivelyClassName__":"lively.Closure"},"9639":{"this":{"__isSmartRef__":true,"id":5100}},"9640":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"9641":{"originalFunc":{"__isSmartRef__":true,"id":995}},"9642":{"varMapping":{"__isSmartRef__":true,"id":9643},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":9644},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9645},"__LivelyClassName__":"lively.Closure"},"9643":{"this":{"__isSmartRef__":true,"id":5100}},"9644":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"9645":{"originalFunc":{"__isSmartRef__":true,"id":999}},"9646":{"varMapping":{"__isSmartRef__":true,"id":9647},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9648},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9649},"__LivelyClassName__":"lively.Closure"},"9647":{"this":{"__isSmartRef__":true,"id":5100}},"9648":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"9649":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"9650":{"varMapping":{"__isSmartRef__":true,"id":9651},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9652},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9653},"__LivelyClassName__":"lively.Closure"},"9651":{"this":{"__isSmartRef__":true,"id":5100}},"9652":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"9653":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"9654":{"varMapping":{"__isSmartRef__":true,"id":9655},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9656},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9657},"__LivelyClassName__":"lively.Closure"},"9655":{"this":{"__isSmartRef__":true,"id":5100}},"9656":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"9657":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"9658":{"setDevStyle":{"__isSmartRef__":true,"id":9659},"setNormalStyle":{"__isSmartRef__":true,"id":9663},"tileSize":{"__isSmartRef__":true,"id":9667},"become":{"__isSmartRef__":true,"id":9671},"onMouseDown":{"__isSmartRef__":true,"id":9675},"setGridPosition":{"__isSmartRef__":true,"id":9683},"toolbox":{"__isSmartRef__":true,"id":9687},"distanceTo":{"__isSmartRef__":true,"id":9691},"tileWasDropped":{"__isSmartRef__":true,"id":9695},"isObstacle":{"__isSmartRef__":true,"id":9699},"neighboursInDirection":{"__isSmartRef__":true,"id":9703},"neighbours":{"__isSmartRef__":true,"id":9707},"zIndex":{"__isSmartRef__":true,"id":9711},"obstacles":{"__isSmartRef__":true,"id":9715},"addObstacle":{"__isSmartRef__":true,"id":9719},"removeObstacle":{"__isSmartRef__":true,"id":9723},"isTile":{"__isSmartRef__":true,"id":9727},"neighbourAt":{"__isSmartRef__":true,"id":9731},"map":{"__isSmartRef__":true,"id":9735},"game":{"__isSmartRef__":true,"id":9739},"reset":{"__isSmartRef__":true,"id":9743},"shallowCopy":{"__isSmartRef__":true,"id":9747},"characters":{"__isSmartRef__":true,"id":9751},"enterTile":{"__isSmartRef__":true,"id":9755},"leaveTile":{"__isSmartRef__":true,"id":9759},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":9763}},"9659":{"varMapping":{"__isSmartRef__":true,"id":9660},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9661},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9662},"__LivelyClassName__":"lively.Closure"},"9660":{"this":{"__isSmartRef__":true,"id":4953}},"9661":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"9662":{"originalFunc":{"__isSmartRef__":true,"id":892}},"9663":{"varMapping":{"__isSmartRef__":true,"id":9664},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9665},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9666},"__LivelyClassName__":"lively.Closure"},"9664":{"this":{"__isSmartRef__":true,"id":4953}},"9665":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"9666":{"originalFunc":{"__isSmartRef__":true,"id":911}},"9667":{"varMapping":{"__isSmartRef__":true,"id":9668},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":9669},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9670},"__LivelyClassName__":"lively.Closure"},"9668":{"this":{"__isSmartRef__":true,"id":4953}},"9669":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"9670":{"originalFunc":{"__isSmartRef__":true,"id":915}},"9671":{"varMapping":{"__isSmartRef__":true,"id":9672},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9673},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9674},"__LivelyClassName__":"lively.Closure"},"9672":{"this":{"__isSmartRef__":true,"id":4953}},"9673":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"9674":{"originalFunc":{"__isSmartRef__":true,"id":919}},"9675":{"varMapping":{"__isSmartRef__":true,"id":9676},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9681},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9682},"__LivelyClassName__":"lively.Closure"},"9676":{"this":{"__isSmartRef__":true,"id":4953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9677}},"9677":{"$super":{"__isSmartRef__":true,"id":9678}},"9678":{"varMapping":{"__isSmartRef__":true,"id":9679},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9680},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9679":{"obj":{"__isSmartRef__":true,"id":4953},"name":"onMouseDown"},"9680":{},"9681":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"9682":{"originalFunc":{"__isSmartRef__":true,"id":923}},"9683":{"varMapping":{"__isSmartRef__":true,"id":9684},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":9685},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9686},"__LivelyClassName__":"lively.Closure"},"9684":{"this":{"__isSmartRef__":true,"id":4953}},"9685":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"9686":{"originalFunc":{"__isSmartRef__":true,"id":931}},"9687":{"varMapping":{"__isSmartRef__":true,"id":9688},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":9689},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9690},"__LivelyClassName__":"lively.Closure"},"9688":{"this":{"__isSmartRef__":true,"id":4953}},"9689":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"9690":{"originalFunc":{"__isSmartRef__":true,"id":935}},"9691":{"varMapping":{"__isSmartRef__":true,"id":9692},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":9693},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9694},"__LivelyClassName__":"lively.Closure"},"9692":{"this":{"__isSmartRef__":true,"id":4953}},"9693":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"9694":{"originalFunc":{"__isSmartRef__":true,"id":939}},"9695":{"varMapping":{"__isSmartRef__":true,"id":9696},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":9697},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9698},"__LivelyClassName__":"lively.Closure"},"9696":{"this":{"__isSmartRef__":true,"id":4953}},"9697":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"9698":{"originalFunc":{"__isSmartRef__":true,"id":943}},"9699":{"varMapping":{"__isSmartRef__":true,"id":9700},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":9701},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9702},"__LivelyClassName__":"lively.Closure"},"9700":{"this":{"__isSmartRef__":true,"id":4953}},"9701":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"9702":{"originalFunc":{"__isSmartRef__":true,"id":947}},"9703":{"varMapping":{"__isSmartRef__":true,"id":9704},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":9705},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9706},"__LivelyClassName__":"lively.Closure"},"9704":{"this":{"__isSmartRef__":true,"id":4953}},"9705":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"9706":{"originalFunc":{"__isSmartRef__":true,"id":951}},"9707":{"varMapping":{"__isSmartRef__":true,"id":9708},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":9709},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9710},"__LivelyClassName__":"lively.Closure"},"9708":{"this":{"__isSmartRef__":true,"id":4953}},"9709":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"9710":{"originalFunc":{"__isSmartRef__":true,"id":955}},"9711":{"varMapping":{"__isSmartRef__":true,"id":9712},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":9713},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9714},"__LivelyClassName__":"lively.Closure"},"9712":{"this":{"__isSmartRef__":true,"id":4953}},"9713":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"9714":{"originalFunc":{"__isSmartRef__":true,"id":959}},"9715":{"varMapping":{"__isSmartRef__":true,"id":9716},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":9717},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9718},"__LivelyClassName__":"lively.Closure"},"9716":{"this":{"__isSmartRef__":true,"id":4953}},"9717":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"9718":{"originalFunc":{"__isSmartRef__":true,"id":963}},"9719":{"varMapping":{"__isSmartRef__":true,"id":9720},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9721},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9722},"__LivelyClassName__":"lively.Closure"},"9720":{"this":{"__isSmartRef__":true,"id":4953}},"9721":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"9722":{"originalFunc":{"__isSmartRef__":true,"id":967}},"9723":{"varMapping":{"__isSmartRef__":true,"id":9724},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9725},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9726},"__LivelyClassName__":"lively.Closure"},"9724":{"this":{"__isSmartRef__":true,"id":4953}},"9725":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"9726":{"originalFunc":{"__isSmartRef__":true,"id":971}},"9727":{"varMapping":{"__isSmartRef__":true,"id":9728},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":9729},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9730},"__LivelyClassName__":"lively.Closure"},"9728":{"this":{"__isSmartRef__":true,"id":4953}},"9729":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"9730":{"originalFunc":{"__isSmartRef__":true,"id":975}},"9731":{"varMapping":{"__isSmartRef__":true,"id":9732},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":9733},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9734},"__LivelyClassName__":"lively.Closure"},"9732":{"this":{"__isSmartRef__":true,"id":4953}},"9733":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"9734":{"originalFunc":{"__isSmartRef__":true,"id":979}},"9735":{"varMapping":{"__isSmartRef__":true,"id":9736},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":9737},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9738},"__LivelyClassName__":"lively.Closure"},"9736":{"this":{"__isSmartRef__":true,"id":4953}},"9737":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"9738":{"originalFunc":{"__isSmartRef__":true,"id":983}},"9739":{"varMapping":{"__isSmartRef__":true,"id":9740},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":9741},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9742},"__LivelyClassName__":"lively.Closure"},"9740":{"this":{"__isSmartRef__":true,"id":4953}},"9741":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"9742":{"originalFunc":{"__isSmartRef__":true,"id":987}},"9743":{"varMapping":{"__isSmartRef__":true,"id":9744},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":9745},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9746},"__LivelyClassName__":"lively.Closure"},"9744":{"this":{"__isSmartRef__":true,"id":4953}},"9745":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"9746":{"originalFunc":{"__isSmartRef__":true,"id":991}},"9747":{"varMapping":{"__isSmartRef__":true,"id":9748},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":9749},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9750},"__LivelyClassName__":"lively.Closure"},"9748":{"this":{"__isSmartRef__":true,"id":4953}},"9749":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"9750":{"originalFunc":{"__isSmartRef__":true,"id":995}},"9751":{"varMapping":{"__isSmartRef__":true,"id":9752},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":9753},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9754},"__LivelyClassName__":"lively.Closure"},"9752":{"this":{"__isSmartRef__":true,"id":4953}},"9753":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"9754":{"originalFunc":{"__isSmartRef__":true,"id":999}},"9755":{"varMapping":{"__isSmartRef__":true,"id":9756},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9757},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9758},"__LivelyClassName__":"lively.Closure"},"9756":{"this":{"__isSmartRef__":true,"id":4953}},"9757":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"9758":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"9759":{"varMapping":{"__isSmartRef__":true,"id":9760},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9761},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9762},"__LivelyClassName__":"lively.Closure"},"9760":{"this":{"__isSmartRef__":true,"id":4953}},"9761":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"9762":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"9763":{"varMapping":{"__isSmartRef__":true,"id":9764},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9765},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9766},"__LivelyClassName__":"lively.Closure"},"9764":{"this":{"__isSmartRef__":true,"id":4953}},"9765":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"9766":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"9767":{"setDevStyle":{"__isSmartRef__":true,"id":9768},"setNormalStyle":{"__isSmartRef__":true,"id":9772},"tileSize":{"__isSmartRef__":true,"id":9776},"become":{"__isSmartRef__":true,"id":9780},"onMouseDown":{"__isSmartRef__":true,"id":9784},"setGridPosition":{"__isSmartRef__":true,"id":9792},"toolbox":{"__isSmartRef__":true,"id":9796},"distanceTo":{"__isSmartRef__":true,"id":9800},"tileWasDropped":{"__isSmartRef__":true,"id":9804},"isObstacle":{"__isSmartRef__":true,"id":9808},"neighboursInDirection":{"__isSmartRef__":true,"id":9812},"neighbours":{"__isSmartRef__":true,"id":9816},"zIndex":{"__isSmartRef__":true,"id":9820},"obstacles":{"__isSmartRef__":true,"id":9824},"addObstacle":{"__isSmartRef__":true,"id":9828},"removeObstacle":{"__isSmartRef__":true,"id":9832},"isTile":{"__isSmartRef__":true,"id":9836},"neighbourAt":{"__isSmartRef__":true,"id":9840},"map":{"__isSmartRef__":true,"id":9844},"game":{"__isSmartRef__":true,"id":9848},"reset":{"__isSmartRef__":true,"id":9852},"shallowCopy":{"__isSmartRef__":true,"id":9856},"characters":{"__isSmartRef__":true,"id":9860},"enterTile":{"__isSmartRef__":true,"id":9864},"leaveTile":{"__isSmartRef__":true,"id":9868},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":9872}},"9768":{"varMapping":{"__isSmartRef__":true,"id":9769},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9770},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9771},"__LivelyClassName__":"lively.Closure"},"9769":{"this":{"__isSmartRef__":true,"id":3672}},"9770":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"9771":{"originalFunc":{"__isSmartRef__":true,"id":892}},"9772":{"varMapping":{"__isSmartRef__":true,"id":9773},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9774},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9775},"__LivelyClassName__":"lively.Closure"},"9773":{"this":{"__isSmartRef__":true,"id":3672}},"9774":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"9775":{"originalFunc":{"__isSmartRef__":true,"id":911}},"9776":{"varMapping":{"__isSmartRef__":true,"id":9777},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":9778},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9779},"__LivelyClassName__":"lively.Closure"},"9777":{"this":{"__isSmartRef__":true,"id":3672}},"9778":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"9779":{"originalFunc":{"__isSmartRef__":true,"id":915}},"9780":{"varMapping":{"__isSmartRef__":true,"id":9781},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9782},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9783},"__LivelyClassName__":"lively.Closure"},"9781":{"this":{"__isSmartRef__":true,"id":3672}},"9782":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"9783":{"originalFunc":{"__isSmartRef__":true,"id":919}},"9784":{"varMapping":{"__isSmartRef__":true,"id":9785},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9790},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9791},"__LivelyClassName__":"lively.Closure"},"9785":{"this":{"__isSmartRef__":true,"id":3672},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9786}},"9786":{"$super":{"__isSmartRef__":true,"id":9787}},"9787":{"varMapping":{"__isSmartRef__":true,"id":9788},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9789},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9788":{"obj":{"__isSmartRef__":true,"id":3672},"name":"onMouseDown"},"9789":{},"9790":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"9791":{"originalFunc":{"__isSmartRef__":true,"id":923}},"9792":{"varMapping":{"__isSmartRef__":true,"id":9793},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":9794},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9795},"__LivelyClassName__":"lively.Closure"},"9793":{"this":{"__isSmartRef__":true,"id":3672}},"9794":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"9795":{"originalFunc":{"__isSmartRef__":true,"id":931}},"9796":{"varMapping":{"__isSmartRef__":true,"id":9797},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":9798},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9799},"__LivelyClassName__":"lively.Closure"},"9797":{"this":{"__isSmartRef__":true,"id":3672}},"9798":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"9799":{"originalFunc":{"__isSmartRef__":true,"id":935}},"9800":{"varMapping":{"__isSmartRef__":true,"id":9801},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":9802},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9803},"__LivelyClassName__":"lively.Closure"},"9801":{"this":{"__isSmartRef__":true,"id":3672}},"9802":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"9803":{"originalFunc":{"__isSmartRef__":true,"id":939}},"9804":{"varMapping":{"__isSmartRef__":true,"id":9805},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":9806},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9807},"__LivelyClassName__":"lively.Closure"},"9805":{"this":{"__isSmartRef__":true,"id":3672}},"9806":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"9807":{"originalFunc":{"__isSmartRef__":true,"id":943}},"9808":{"varMapping":{"__isSmartRef__":true,"id":9809},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":9810},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9811},"__LivelyClassName__":"lively.Closure"},"9809":{"this":{"__isSmartRef__":true,"id":3672}},"9810":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"9811":{"originalFunc":{"__isSmartRef__":true,"id":947}},"9812":{"varMapping":{"__isSmartRef__":true,"id":9813},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":9814},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9815},"__LivelyClassName__":"lively.Closure"},"9813":{"this":{"__isSmartRef__":true,"id":3672}},"9814":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"9815":{"originalFunc":{"__isSmartRef__":true,"id":951}},"9816":{"varMapping":{"__isSmartRef__":true,"id":9817},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":9818},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9819},"__LivelyClassName__":"lively.Closure"},"9817":{"this":{"__isSmartRef__":true,"id":3672}},"9818":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"9819":{"originalFunc":{"__isSmartRef__":true,"id":955}},"9820":{"varMapping":{"__isSmartRef__":true,"id":9821},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":9822},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9823},"__LivelyClassName__":"lively.Closure"},"9821":{"this":{"__isSmartRef__":true,"id":3672}},"9822":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"9823":{"originalFunc":{"__isSmartRef__":true,"id":959}},"9824":{"varMapping":{"__isSmartRef__":true,"id":9825},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":9826},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9827},"__LivelyClassName__":"lively.Closure"},"9825":{"this":{"__isSmartRef__":true,"id":3672}},"9826":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"9827":{"originalFunc":{"__isSmartRef__":true,"id":963}},"9828":{"varMapping":{"__isSmartRef__":true,"id":9829},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9830},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9831},"__LivelyClassName__":"lively.Closure"},"9829":{"this":{"__isSmartRef__":true,"id":3672}},"9830":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"9831":{"originalFunc":{"__isSmartRef__":true,"id":967}},"9832":{"varMapping":{"__isSmartRef__":true,"id":9833},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9834},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9835},"__LivelyClassName__":"lively.Closure"},"9833":{"this":{"__isSmartRef__":true,"id":3672}},"9834":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"9835":{"originalFunc":{"__isSmartRef__":true,"id":971}},"9836":{"varMapping":{"__isSmartRef__":true,"id":9837},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":9838},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9839},"__LivelyClassName__":"lively.Closure"},"9837":{"this":{"__isSmartRef__":true,"id":3672}},"9838":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"9839":{"originalFunc":{"__isSmartRef__":true,"id":975}},"9840":{"varMapping":{"__isSmartRef__":true,"id":9841},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":9842},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9843},"__LivelyClassName__":"lively.Closure"},"9841":{"this":{"__isSmartRef__":true,"id":3672}},"9842":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"9843":{"originalFunc":{"__isSmartRef__":true,"id":979}},"9844":{"varMapping":{"__isSmartRef__":true,"id":9845},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":9846},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9847},"__LivelyClassName__":"lively.Closure"},"9845":{"this":{"__isSmartRef__":true,"id":3672}},"9846":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"9847":{"originalFunc":{"__isSmartRef__":true,"id":983}},"9848":{"varMapping":{"__isSmartRef__":true,"id":9849},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":9850},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9851},"__LivelyClassName__":"lively.Closure"},"9849":{"this":{"__isSmartRef__":true,"id":3672}},"9850":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"9851":{"originalFunc":{"__isSmartRef__":true,"id":987}},"9852":{"varMapping":{"__isSmartRef__":true,"id":9853},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":9854},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9855},"__LivelyClassName__":"lively.Closure"},"9853":{"this":{"__isSmartRef__":true,"id":3672}},"9854":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"9855":{"originalFunc":{"__isSmartRef__":true,"id":991}},"9856":{"varMapping":{"__isSmartRef__":true,"id":9857},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":9858},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9859},"__LivelyClassName__":"lively.Closure"},"9857":{"this":{"__isSmartRef__":true,"id":3672}},"9858":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"9859":{"originalFunc":{"__isSmartRef__":true,"id":995}},"9860":{"varMapping":{"__isSmartRef__":true,"id":9861},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":9862},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9863},"__LivelyClassName__":"lively.Closure"},"9861":{"this":{"__isSmartRef__":true,"id":3672}},"9862":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"9863":{"originalFunc":{"__isSmartRef__":true,"id":999}},"9864":{"varMapping":{"__isSmartRef__":true,"id":9865},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9866},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9867},"__LivelyClassName__":"lively.Closure"},"9865":{"this":{"__isSmartRef__":true,"id":3672}},"9866":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"9867":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"9868":{"varMapping":{"__isSmartRef__":true,"id":9869},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9870},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9871},"__LivelyClassName__":"lively.Closure"},"9869":{"this":{"__isSmartRef__":true,"id":3672}},"9870":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"9871":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"9872":{"varMapping":{"__isSmartRef__":true,"id":9873},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9874},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9875},"__LivelyClassName__":"lively.Closure"},"9873":{"this":{"__isSmartRef__":true,"id":3672}},"9874":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"9875":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"9876":{"setDevStyle":{"__isSmartRef__":true,"id":9877},"setNormalStyle":{"__isSmartRef__":true,"id":9881},"tileSize":{"__isSmartRef__":true,"id":9885},"become":{"__isSmartRef__":true,"id":9889},"onMouseDown":{"__isSmartRef__":true,"id":9893},"setGridPosition":{"__isSmartRef__":true,"id":9901},"toolbox":{"__isSmartRef__":true,"id":9905},"distanceTo":{"__isSmartRef__":true,"id":9909},"tileWasDropped":{"__isSmartRef__":true,"id":9913},"isObstacle":{"__isSmartRef__":true,"id":9917},"neighboursInDirection":{"__isSmartRef__":true,"id":9921},"neighbours":{"__isSmartRef__":true,"id":9925},"zIndex":{"__isSmartRef__":true,"id":9929},"obstacles":{"__isSmartRef__":true,"id":9933},"addObstacle":{"__isSmartRef__":true,"id":9937},"removeObstacle":{"__isSmartRef__":true,"id":9941},"isTile":{"__isSmartRef__":true,"id":9945},"neighbourAt":{"__isSmartRef__":true,"id":9949},"map":{"__isSmartRef__":true,"id":9953},"game":{"__isSmartRef__":true,"id":9957},"reset":{"__isSmartRef__":true,"id":9961},"shallowCopy":{"__isSmartRef__":true,"id":9965},"characters":{"__isSmartRef__":true,"id":9969},"enterTile":{"__isSmartRef__":true,"id":9973},"leaveTile":{"__isSmartRef__":true,"id":9977},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":9981}},"9877":{"varMapping":{"__isSmartRef__":true,"id":9878},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9879},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9880},"__LivelyClassName__":"lively.Closure"},"9878":{"this":{"__isSmartRef__":true,"id":3653}},"9879":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"9880":{"originalFunc":{"__isSmartRef__":true,"id":892}},"9881":{"varMapping":{"__isSmartRef__":true,"id":9882},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9883},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9884},"__LivelyClassName__":"lively.Closure"},"9882":{"this":{"__isSmartRef__":true,"id":3653}},"9883":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"9884":{"originalFunc":{"__isSmartRef__":true,"id":911}},"9885":{"varMapping":{"__isSmartRef__":true,"id":9886},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":9887},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9888},"__LivelyClassName__":"lively.Closure"},"9886":{"this":{"__isSmartRef__":true,"id":3653}},"9887":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"9888":{"originalFunc":{"__isSmartRef__":true,"id":915}},"9889":{"varMapping":{"__isSmartRef__":true,"id":9890},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9891},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9892},"__LivelyClassName__":"lively.Closure"},"9890":{"this":{"__isSmartRef__":true,"id":3653}},"9891":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"9892":{"originalFunc":{"__isSmartRef__":true,"id":919}},"9893":{"varMapping":{"__isSmartRef__":true,"id":9894},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9899},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9900},"__LivelyClassName__":"lively.Closure"},"9894":{"this":{"__isSmartRef__":true,"id":3653},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9895}},"9895":{"$super":{"__isSmartRef__":true,"id":9896}},"9896":{"varMapping":{"__isSmartRef__":true,"id":9897},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9898},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9897":{"obj":{"__isSmartRef__":true,"id":3653},"name":"onMouseDown"},"9898":{},"9899":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"9900":{"originalFunc":{"__isSmartRef__":true,"id":923}},"9901":{"varMapping":{"__isSmartRef__":true,"id":9902},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":9903},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9904},"__LivelyClassName__":"lively.Closure"},"9902":{"this":{"__isSmartRef__":true,"id":3653}},"9903":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"9904":{"originalFunc":{"__isSmartRef__":true,"id":931}},"9905":{"varMapping":{"__isSmartRef__":true,"id":9906},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":9907},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9908},"__LivelyClassName__":"lively.Closure"},"9906":{"this":{"__isSmartRef__":true,"id":3653}},"9907":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"9908":{"originalFunc":{"__isSmartRef__":true,"id":935}},"9909":{"varMapping":{"__isSmartRef__":true,"id":9910},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":9911},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9912},"__LivelyClassName__":"lively.Closure"},"9910":{"this":{"__isSmartRef__":true,"id":3653}},"9911":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"9912":{"originalFunc":{"__isSmartRef__":true,"id":939}},"9913":{"varMapping":{"__isSmartRef__":true,"id":9914},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":9915},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9916},"__LivelyClassName__":"lively.Closure"},"9914":{"this":{"__isSmartRef__":true,"id":3653}},"9915":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"9916":{"originalFunc":{"__isSmartRef__":true,"id":943}},"9917":{"varMapping":{"__isSmartRef__":true,"id":9918},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":9919},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9920},"__LivelyClassName__":"lively.Closure"},"9918":{"this":{"__isSmartRef__":true,"id":3653}},"9919":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"9920":{"originalFunc":{"__isSmartRef__":true,"id":947}},"9921":{"varMapping":{"__isSmartRef__":true,"id":9922},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":9923},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9924},"__LivelyClassName__":"lively.Closure"},"9922":{"this":{"__isSmartRef__":true,"id":3653}},"9923":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"9924":{"originalFunc":{"__isSmartRef__":true,"id":951}},"9925":{"varMapping":{"__isSmartRef__":true,"id":9926},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":9927},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9928},"__LivelyClassName__":"lively.Closure"},"9926":{"this":{"__isSmartRef__":true,"id":3653}},"9927":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"9928":{"originalFunc":{"__isSmartRef__":true,"id":955}},"9929":{"varMapping":{"__isSmartRef__":true,"id":9930},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":9931},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9932},"__LivelyClassName__":"lively.Closure"},"9930":{"this":{"__isSmartRef__":true,"id":3653}},"9931":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"9932":{"originalFunc":{"__isSmartRef__":true,"id":959}},"9933":{"varMapping":{"__isSmartRef__":true,"id":9934},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":9935},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9936},"__LivelyClassName__":"lively.Closure"},"9934":{"this":{"__isSmartRef__":true,"id":3653}},"9935":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"9936":{"originalFunc":{"__isSmartRef__":true,"id":963}},"9937":{"varMapping":{"__isSmartRef__":true,"id":9938},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9939},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9940},"__LivelyClassName__":"lively.Closure"},"9938":{"this":{"__isSmartRef__":true,"id":3653}},"9939":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"9940":{"originalFunc":{"__isSmartRef__":true,"id":967}},"9941":{"varMapping":{"__isSmartRef__":true,"id":9942},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9943},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9944},"__LivelyClassName__":"lively.Closure"},"9942":{"this":{"__isSmartRef__":true,"id":3653}},"9943":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"9944":{"originalFunc":{"__isSmartRef__":true,"id":971}},"9945":{"varMapping":{"__isSmartRef__":true,"id":9946},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":9947},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9948},"__LivelyClassName__":"lively.Closure"},"9946":{"this":{"__isSmartRef__":true,"id":3653}},"9947":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"9948":{"originalFunc":{"__isSmartRef__":true,"id":975}},"9949":{"varMapping":{"__isSmartRef__":true,"id":9950},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":9951},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9952},"__LivelyClassName__":"lively.Closure"},"9950":{"this":{"__isSmartRef__":true,"id":3653}},"9951":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"9952":{"originalFunc":{"__isSmartRef__":true,"id":979}},"9953":{"varMapping":{"__isSmartRef__":true,"id":9954},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":9955},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9956},"__LivelyClassName__":"lively.Closure"},"9954":{"this":{"__isSmartRef__":true,"id":3653}},"9955":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"9956":{"originalFunc":{"__isSmartRef__":true,"id":983}},"9957":{"varMapping":{"__isSmartRef__":true,"id":9958},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":9959},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9960},"__LivelyClassName__":"lively.Closure"},"9958":{"this":{"__isSmartRef__":true,"id":3653}},"9959":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"9960":{"originalFunc":{"__isSmartRef__":true,"id":987}},"9961":{"varMapping":{"__isSmartRef__":true,"id":9962},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":9963},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9964},"__LivelyClassName__":"lively.Closure"},"9962":{"this":{"__isSmartRef__":true,"id":3653}},"9963":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"9964":{"originalFunc":{"__isSmartRef__":true,"id":991}},"9965":{"varMapping":{"__isSmartRef__":true,"id":9966},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":9967},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9968},"__LivelyClassName__":"lively.Closure"},"9966":{"this":{"__isSmartRef__":true,"id":3653}},"9967":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"9968":{"originalFunc":{"__isSmartRef__":true,"id":995}},"9969":{"varMapping":{"__isSmartRef__":true,"id":9970},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":9971},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9972},"__LivelyClassName__":"lively.Closure"},"9970":{"this":{"__isSmartRef__":true,"id":3653}},"9971":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"9972":{"originalFunc":{"__isSmartRef__":true,"id":999}},"9973":{"varMapping":{"__isSmartRef__":true,"id":9974},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9975},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9976},"__LivelyClassName__":"lively.Closure"},"9974":{"this":{"__isSmartRef__":true,"id":3653}},"9975":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"9976":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"9977":{"varMapping":{"__isSmartRef__":true,"id":9978},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9979},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9980},"__LivelyClassName__":"lively.Closure"},"9978":{"this":{"__isSmartRef__":true,"id":3653}},"9979":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"9980":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"9981":{"varMapping":{"__isSmartRef__":true,"id":9982},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9983},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9984},"__LivelyClassName__":"lively.Closure"},"9982":{"this":{"__isSmartRef__":true,"id":3653}},"9983":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"9984":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"9985":{"setDevStyle":{"__isSmartRef__":true,"id":9986},"setNormalStyle":{"__isSmartRef__":true,"id":9990},"tileSize":{"__isSmartRef__":true,"id":9994},"become":{"__isSmartRef__":true,"id":9998},"onMouseDown":{"__isSmartRef__":true,"id":10002},"setGridPosition":{"__isSmartRef__":true,"id":10010},"toolbox":{"__isSmartRef__":true,"id":10014},"distanceTo":{"__isSmartRef__":true,"id":10018},"tileWasDropped":{"__isSmartRef__":true,"id":10022},"isObstacle":{"__isSmartRef__":true,"id":10026},"neighboursInDirection":{"__isSmartRef__":true,"id":10030},"neighbours":{"__isSmartRef__":true,"id":10034},"zIndex":{"__isSmartRef__":true,"id":10038},"obstacles":{"__isSmartRef__":true,"id":10042},"addObstacle":{"__isSmartRef__":true,"id":10046},"removeObstacle":{"__isSmartRef__":true,"id":10050},"isTile":{"__isSmartRef__":true,"id":10054},"neighbourAt":{"__isSmartRef__":true,"id":10058},"map":{"__isSmartRef__":true,"id":10062},"game":{"__isSmartRef__":true,"id":10066},"reset":{"__isSmartRef__":true,"id":10070},"shallowCopy":{"__isSmartRef__":true,"id":10074},"characters":{"__isSmartRef__":true,"id":10078},"enterTile":{"__isSmartRef__":true,"id":10082},"leaveTile":{"__isSmartRef__":true,"id":10086},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":10090}},"9986":{"varMapping":{"__isSmartRef__":true,"id":9987},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9988},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9989},"__LivelyClassName__":"lively.Closure"},"9987":{"this":{"__isSmartRef__":true,"id":3523}},"9988":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"9989":{"originalFunc":{"__isSmartRef__":true,"id":892}},"9990":{"varMapping":{"__isSmartRef__":true,"id":9991},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":9992},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9993},"__LivelyClassName__":"lively.Closure"},"9991":{"this":{"__isSmartRef__":true,"id":3523}},"9992":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"9993":{"originalFunc":{"__isSmartRef__":true,"id":911}},"9994":{"varMapping":{"__isSmartRef__":true,"id":9995},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":9996},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9997},"__LivelyClassName__":"lively.Closure"},"9995":{"this":{"__isSmartRef__":true,"id":3523}},"9996":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"9997":{"originalFunc":{"__isSmartRef__":true,"id":915}},"9998":{"varMapping":{"__isSmartRef__":true,"id":9999},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10000},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10001},"__LivelyClassName__":"lively.Closure"},"9999":{"this":{"__isSmartRef__":true,"id":3523}},"10000":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"10001":{"originalFunc":{"__isSmartRef__":true,"id":919}},"10002":{"varMapping":{"__isSmartRef__":true,"id":10003},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10008},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10009},"__LivelyClassName__":"lively.Closure"},"10003":{"this":{"__isSmartRef__":true,"id":3523},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10004}},"10004":{"$super":{"__isSmartRef__":true,"id":10005}},"10005":{"varMapping":{"__isSmartRef__":true,"id":10006},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10007},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10006":{"obj":{"__isSmartRef__":true,"id":3523},"name":"onMouseDown"},"10007":{},"10008":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"10009":{"originalFunc":{"__isSmartRef__":true,"id":923}},"10010":{"varMapping":{"__isSmartRef__":true,"id":10011},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":10012},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10013},"__LivelyClassName__":"lively.Closure"},"10011":{"this":{"__isSmartRef__":true,"id":3523}},"10012":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"10013":{"originalFunc":{"__isSmartRef__":true,"id":931}},"10014":{"varMapping":{"__isSmartRef__":true,"id":10015},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":10016},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10017},"__LivelyClassName__":"lively.Closure"},"10015":{"this":{"__isSmartRef__":true,"id":3523}},"10016":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"10017":{"originalFunc":{"__isSmartRef__":true,"id":935}},"10018":{"varMapping":{"__isSmartRef__":true,"id":10019},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":10020},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10021},"__LivelyClassName__":"lively.Closure"},"10019":{"this":{"__isSmartRef__":true,"id":3523}},"10020":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"10021":{"originalFunc":{"__isSmartRef__":true,"id":939}},"10022":{"varMapping":{"__isSmartRef__":true,"id":10023},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":10024},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10025},"__LivelyClassName__":"lively.Closure"},"10023":{"this":{"__isSmartRef__":true,"id":3523}},"10024":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"10025":{"originalFunc":{"__isSmartRef__":true,"id":943}},"10026":{"varMapping":{"__isSmartRef__":true,"id":10027},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":10028},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10029},"__LivelyClassName__":"lively.Closure"},"10027":{"this":{"__isSmartRef__":true,"id":3523}},"10028":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"10029":{"originalFunc":{"__isSmartRef__":true,"id":947}},"10030":{"varMapping":{"__isSmartRef__":true,"id":10031},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":10032},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10033},"__LivelyClassName__":"lively.Closure"},"10031":{"this":{"__isSmartRef__":true,"id":3523}},"10032":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"10033":{"originalFunc":{"__isSmartRef__":true,"id":951}},"10034":{"varMapping":{"__isSmartRef__":true,"id":10035},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":10036},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10037},"__LivelyClassName__":"lively.Closure"},"10035":{"this":{"__isSmartRef__":true,"id":3523}},"10036":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"10037":{"originalFunc":{"__isSmartRef__":true,"id":955}},"10038":{"varMapping":{"__isSmartRef__":true,"id":10039},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":10040},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10041},"__LivelyClassName__":"lively.Closure"},"10039":{"this":{"__isSmartRef__":true,"id":3523}},"10040":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"10041":{"originalFunc":{"__isSmartRef__":true,"id":959}},"10042":{"varMapping":{"__isSmartRef__":true,"id":10043},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":10044},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10045},"__LivelyClassName__":"lively.Closure"},"10043":{"this":{"__isSmartRef__":true,"id":3523}},"10044":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"10045":{"originalFunc":{"__isSmartRef__":true,"id":963}},"10046":{"varMapping":{"__isSmartRef__":true,"id":10047},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10048},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10049},"__LivelyClassName__":"lively.Closure"},"10047":{"this":{"__isSmartRef__":true,"id":3523}},"10048":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"10049":{"originalFunc":{"__isSmartRef__":true,"id":967}},"10050":{"varMapping":{"__isSmartRef__":true,"id":10051},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10052},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10053},"__LivelyClassName__":"lively.Closure"},"10051":{"this":{"__isSmartRef__":true,"id":3523}},"10052":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"10053":{"originalFunc":{"__isSmartRef__":true,"id":971}},"10054":{"varMapping":{"__isSmartRef__":true,"id":10055},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":10056},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10057},"__LivelyClassName__":"lively.Closure"},"10055":{"this":{"__isSmartRef__":true,"id":3523}},"10056":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"10057":{"originalFunc":{"__isSmartRef__":true,"id":975}},"10058":{"varMapping":{"__isSmartRef__":true,"id":10059},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":10060},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10061},"__LivelyClassName__":"lively.Closure"},"10059":{"this":{"__isSmartRef__":true,"id":3523}},"10060":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"10061":{"originalFunc":{"__isSmartRef__":true,"id":979}},"10062":{"varMapping":{"__isSmartRef__":true,"id":10063},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":10064},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10065},"__LivelyClassName__":"lively.Closure"},"10063":{"this":{"__isSmartRef__":true,"id":3523}},"10064":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"10065":{"originalFunc":{"__isSmartRef__":true,"id":983}},"10066":{"varMapping":{"__isSmartRef__":true,"id":10067},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":10068},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10069},"__LivelyClassName__":"lively.Closure"},"10067":{"this":{"__isSmartRef__":true,"id":3523}},"10068":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"10069":{"originalFunc":{"__isSmartRef__":true,"id":987}},"10070":{"varMapping":{"__isSmartRef__":true,"id":10071},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":10072},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10073},"__LivelyClassName__":"lively.Closure"},"10071":{"this":{"__isSmartRef__":true,"id":3523}},"10072":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"10073":{"originalFunc":{"__isSmartRef__":true,"id":991}},"10074":{"varMapping":{"__isSmartRef__":true,"id":10075},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":10076},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10077},"__LivelyClassName__":"lively.Closure"},"10075":{"this":{"__isSmartRef__":true,"id":3523}},"10076":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"10077":{"originalFunc":{"__isSmartRef__":true,"id":995}},"10078":{"varMapping":{"__isSmartRef__":true,"id":10079},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":10080},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10081},"__LivelyClassName__":"lively.Closure"},"10079":{"this":{"__isSmartRef__":true,"id":3523}},"10080":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"10081":{"originalFunc":{"__isSmartRef__":true,"id":999}},"10082":{"varMapping":{"__isSmartRef__":true,"id":10083},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10084},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10085},"__LivelyClassName__":"lively.Closure"},"10083":{"this":{"__isSmartRef__":true,"id":3523}},"10084":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"10085":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"10086":{"varMapping":{"__isSmartRef__":true,"id":10087},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10088},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10089},"__LivelyClassName__":"lively.Closure"},"10087":{"this":{"__isSmartRef__":true,"id":3523}},"10088":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"10089":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"10090":{"varMapping":{"__isSmartRef__":true,"id":10091},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":10092},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10093},"__LivelyClassName__":"lively.Closure"},"10091":{"this":{"__isSmartRef__":true,"id":3523}},"10092":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"10093":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"10094":{"setDevStyle":{"__isSmartRef__":true,"id":10095},"setNormalStyle":{"__isSmartRef__":true,"id":10099},"tileSize":{"__isSmartRef__":true,"id":10103},"become":{"__isSmartRef__":true,"id":10107},"onMouseDown":{"__isSmartRef__":true,"id":10111},"setGridPosition":{"__isSmartRef__":true,"id":10119},"toolbox":{"__isSmartRef__":true,"id":10123},"distanceTo":{"__isSmartRef__":true,"id":10127},"tileWasDropped":{"__isSmartRef__":true,"id":10131},"isObstacle":{"__isSmartRef__":true,"id":10135},"neighboursInDirection":{"__isSmartRef__":true,"id":10139},"neighbours":{"__isSmartRef__":true,"id":10143},"zIndex":{"__isSmartRef__":true,"id":10147},"obstacles":{"__isSmartRef__":true,"id":10151},"addObstacle":{"__isSmartRef__":true,"id":10155},"removeObstacle":{"__isSmartRef__":true,"id":10159},"isTile":{"__isSmartRef__":true,"id":10163},"neighbourAt":{"__isSmartRef__":true,"id":10167},"map":{"__isSmartRef__":true,"id":10171},"game":{"__isSmartRef__":true,"id":10175},"reset":{"__isSmartRef__":true,"id":10179},"shallowCopy":{"__isSmartRef__":true,"id":10183},"characters":{"__isSmartRef__":true,"id":10187},"enterTile":{"__isSmartRef__":true,"id":10191},"leaveTile":{"__isSmartRef__":true,"id":10195},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":10199}},"10095":{"varMapping":{"__isSmartRef__":true,"id":10096},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":10097},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10098},"__LivelyClassName__":"lively.Closure"},"10096":{"this":{"__isSmartRef__":true,"id":3120}},"10097":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"10098":{"originalFunc":{"__isSmartRef__":true,"id":892}},"10099":{"varMapping":{"__isSmartRef__":true,"id":10100},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":10101},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10102},"__LivelyClassName__":"lively.Closure"},"10100":{"this":{"__isSmartRef__":true,"id":3120}},"10101":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"10102":{"originalFunc":{"__isSmartRef__":true,"id":911}},"10103":{"varMapping":{"__isSmartRef__":true,"id":10104},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":10105},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10106},"__LivelyClassName__":"lively.Closure"},"10104":{"this":{"__isSmartRef__":true,"id":3120}},"10105":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"10106":{"originalFunc":{"__isSmartRef__":true,"id":915}},"10107":{"varMapping":{"__isSmartRef__":true,"id":10108},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10109},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10110},"__LivelyClassName__":"lively.Closure"},"10108":{"this":{"__isSmartRef__":true,"id":3120}},"10109":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"10110":{"originalFunc":{"__isSmartRef__":true,"id":919}},"10111":{"varMapping":{"__isSmartRef__":true,"id":10112},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10117},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10118},"__LivelyClassName__":"lively.Closure"},"10112":{"this":{"__isSmartRef__":true,"id":3120},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10113}},"10113":{"$super":{"__isSmartRef__":true,"id":10114}},"10114":{"varMapping":{"__isSmartRef__":true,"id":10115},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10116},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10115":{"obj":{"__isSmartRef__":true,"id":3120},"name":"onMouseDown"},"10116":{},"10117":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"10118":{"originalFunc":{"__isSmartRef__":true,"id":923}},"10119":{"varMapping":{"__isSmartRef__":true,"id":10120},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":10121},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10122},"__LivelyClassName__":"lively.Closure"},"10120":{"this":{"__isSmartRef__":true,"id":3120}},"10121":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"10122":{"originalFunc":{"__isSmartRef__":true,"id":931}},"10123":{"varMapping":{"__isSmartRef__":true,"id":10124},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":10125},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10126},"__LivelyClassName__":"lively.Closure"},"10124":{"this":{"__isSmartRef__":true,"id":3120}},"10125":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"10126":{"originalFunc":{"__isSmartRef__":true,"id":935}},"10127":{"varMapping":{"__isSmartRef__":true,"id":10128},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":10129},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10130},"__LivelyClassName__":"lively.Closure"},"10128":{"this":{"__isSmartRef__":true,"id":3120}},"10129":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"10130":{"originalFunc":{"__isSmartRef__":true,"id":939}},"10131":{"varMapping":{"__isSmartRef__":true,"id":10132},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":10133},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10134},"__LivelyClassName__":"lively.Closure"},"10132":{"this":{"__isSmartRef__":true,"id":3120}},"10133":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"10134":{"originalFunc":{"__isSmartRef__":true,"id":943}},"10135":{"varMapping":{"__isSmartRef__":true,"id":10136},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":10137},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10138},"__LivelyClassName__":"lively.Closure"},"10136":{"this":{"__isSmartRef__":true,"id":3120}},"10137":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"10138":{"originalFunc":{"__isSmartRef__":true,"id":947}},"10139":{"varMapping":{"__isSmartRef__":true,"id":10140},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":10141},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10142},"__LivelyClassName__":"lively.Closure"},"10140":{"this":{"__isSmartRef__":true,"id":3120}},"10141":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"10142":{"originalFunc":{"__isSmartRef__":true,"id":951}},"10143":{"varMapping":{"__isSmartRef__":true,"id":10144},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":10145},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10146},"__LivelyClassName__":"lively.Closure"},"10144":{"this":{"__isSmartRef__":true,"id":3120}},"10145":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"10146":{"originalFunc":{"__isSmartRef__":true,"id":955}},"10147":{"varMapping":{"__isSmartRef__":true,"id":10148},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":10149},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10150},"__LivelyClassName__":"lively.Closure"},"10148":{"this":{"__isSmartRef__":true,"id":3120}},"10149":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"10150":{"originalFunc":{"__isSmartRef__":true,"id":959}},"10151":{"varMapping":{"__isSmartRef__":true,"id":10152},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":10153},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10154},"__LivelyClassName__":"lively.Closure"},"10152":{"this":{"__isSmartRef__":true,"id":3120}},"10153":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"10154":{"originalFunc":{"__isSmartRef__":true,"id":963}},"10155":{"varMapping":{"__isSmartRef__":true,"id":10156},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10157},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10158},"__LivelyClassName__":"lively.Closure"},"10156":{"this":{"__isSmartRef__":true,"id":3120}},"10157":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"10158":{"originalFunc":{"__isSmartRef__":true,"id":967}},"10159":{"varMapping":{"__isSmartRef__":true,"id":10160},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10161},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10162},"__LivelyClassName__":"lively.Closure"},"10160":{"this":{"__isSmartRef__":true,"id":3120}},"10161":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"10162":{"originalFunc":{"__isSmartRef__":true,"id":971}},"10163":{"varMapping":{"__isSmartRef__":true,"id":10164},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":10165},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10166},"__LivelyClassName__":"lively.Closure"},"10164":{"this":{"__isSmartRef__":true,"id":3120}},"10165":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"10166":{"originalFunc":{"__isSmartRef__":true,"id":975}},"10167":{"varMapping":{"__isSmartRef__":true,"id":10168},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":10169},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10170},"__LivelyClassName__":"lively.Closure"},"10168":{"this":{"__isSmartRef__":true,"id":3120}},"10169":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"10170":{"originalFunc":{"__isSmartRef__":true,"id":979}},"10171":{"varMapping":{"__isSmartRef__":true,"id":10172},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":10173},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10174},"__LivelyClassName__":"lively.Closure"},"10172":{"this":{"__isSmartRef__":true,"id":3120}},"10173":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"10174":{"originalFunc":{"__isSmartRef__":true,"id":983}},"10175":{"varMapping":{"__isSmartRef__":true,"id":10176},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":10177},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10178},"__LivelyClassName__":"lively.Closure"},"10176":{"this":{"__isSmartRef__":true,"id":3120}},"10177":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"10178":{"originalFunc":{"__isSmartRef__":true,"id":987}},"10179":{"varMapping":{"__isSmartRef__":true,"id":10180},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":10181},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10182},"__LivelyClassName__":"lively.Closure"},"10180":{"this":{"__isSmartRef__":true,"id":3120}},"10181":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"10182":{"originalFunc":{"__isSmartRef__":true,"id":991}},"10183":{"varMapping":{"__isSmartRef__":true,"id":10184},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":10185},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10186},"__LivelyClassName__":"lively.Closure"},"10184":{"this":{"__isSmartRef__":true,"id":3120}},"10185":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"10186":{"originalFunc":{"__isSmartRef__":true,"id":995}},"10187":{"varMapping":{"__isSmartRef__":true,"id":10188},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":10189},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10190},"__LivelyClassName__":"lively.Closure"},"10188":{"this":{"__isSmartRef__":true,"id":3120}},"10189":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"10190":{"originalFunc":{"__isSmartRef__":true,"id":999}},"10191":{"varMapping":{"__isSmartRef__":true,"id":10192},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10193},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10194},"__LivelyClassName__":"lively.Closure"},"10192":{"this":{"__isSmartRef__":true,"id":3120}},"10193":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"10194":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"10195":{"varMapping":{"__isSmartRef__":true,"id":10196},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10197},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10198},"__LivelyClassName__":"lively.Closure"},"10196":{"this":{"__isSmartRef__":true,"id":3120}},"10197":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"10198":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"10199":{"varMapping":{"__isSmartRef__":true,"id":10200},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":10201},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10202},"__LivelyClassName__":"lively.Closure"},"10200":{"this":{"__isSmartRef__":true,"id":3120}},"10201":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"10202":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"10203":{"setDevStyle":{"__isSmartRef__":true,"id":10204},"setNormalStyle":{"__isSmartRef__":true,"id":10208},"tileSize":{"__isSmartRef__":true,"id":10212},"become":{"__isSmartRef__":true,"id":10216},"onMouseDown":{"__isSmartRef__":true,"id":10220},"setGridPosition":{"__isSmartRef__":true,"id":10228},"toolbox":{"__isSmartRef__":true,"id":10232},"distanceTo":{"__isSmartRef__":true,"id":10236},"tileWasDropped":{"__isSmartRef__":true,"id":10240},"isObstacle":{"__isSmartRef__":true,"id":10244},"neighboursInDirection":{"__isSmartRef__":true,"id":10248},"neighbours":{"__isSmartRef__":true,"id":10252},"zIndex":{"__isSmartRef__":true,"id":10256},"obstacles":{"__isSmartRef__":true,"id":10260},"addObstacle":{"__isSmartRef__":true,"id":10264},"removeObstacle":{"__isSmartRef__":true,"id":10268},"isTile":{"__isSmartRef__":true,"id":10272},"neighbourAt":{"__isSmartRef__":true,"id":10276},"map":{"__isSmartRef__":true,"id":10280},"game":{"__isSmartRef__":true,"id":10284},"reset":{"__isSmartRef__":true,"id":10288},"shallowCopy":{"__isSmartRef__":true,"id":10292},"characters":{"__isSmartRef__":true,"id":10296},"enterTile":{"__isSmartRef__":true,"id":10300},"leaveTile":{"__isSmartRef__":true,"id":10304},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":10308}},"10204":{"varMapping":{"__isSmartRef__":true,"id":10205},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":10206},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10207},"__LivelyClassName__":"lively.Closure"},"10205":{"this":{"__isSmartRef__":true,"id":3101}},"10206":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"10207":{"originalFunc":{"__isSmartRef__":true,"id":892}},"10208":{"varMapping":{"__isSmartRef__":true,"id":10209},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":10210},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10211},"__LivelyClassName__":"lively.Closure"},"10209":{"this":{"__isSmartRef__":true,"id":3101}},"10210":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"10211":{"originalFunc":{"__isSmartRef__":true,"id":911}},"10212":{"varMapping":{"__isSmartRef__":true,"id":10213},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":10214},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10215},"__LivelyClassName__":"lively.Closure"},"10213":{"this":{"__isSmartRef__":true,"id":3101}},"10214":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"10215":{"originalFunc":{"__isSmartRef__":true,"id":915}},"10216":{"varMapping":{"__isSmartRef__":true,"id":10217},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10218},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10219},"__LivelyClassName__":"lively.Closure"},"10217":{"this":{"__isSmartRef__":true,"id":3101}},"10218":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"10219":{"originalFunc":{"__isSmartRef__":true,"id":919}},"10220":{"varMapping":{"__isSmartRef__":true,"id":10221},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10226},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10227},"__LivelyClassName__":"lively.Closure"},"10221":{"this":{"__isSmartRef__":true,"id":3101},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10222}},"10222":{"$super":{"__isSmartRef__":true,"id":10223}},"10223":{"varMapping":{"__isSmartRef__":true,"id":10224},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10225},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10224":{"obj":{"__isSmartRef__":true,"id":3101},"name":"onMouseDown"},"10225":{},"10226":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"10227":{"originalFunc":{"__isSmartRef__":true,"id":923}},"10228":{"varMapping":{"__isSmartRef__":true,"id":10229},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":10230},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10231},"__LivelyClassName__":"lively.Closure"},"10229":{"this":{"__isSmartRef__":true,"id":3101}},"10230":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"10231":{"originalFunc":{"__isSmartRef__":true,"id":931}},"10232":{"varMapping":{"__isSmartRef__":true,"id":10233},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":10234},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10235},"__LivelyClassName__":"lively.Closure"},"10233":{"this":{"__isSmartRef__":true,"id":3101}},"10234":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"10235":{"originalFunc":{"__isSmartRef__":true,"id":935}},"10236":{"varMapping":{"__isSmartRef__":true,"id":10237},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":10238},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10239},"__LivelyClassName__":"lively.Closure"},"10237":{"this":{"__isSmartRef__":true,"id":3101}},"10238":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"10239":{"originalFunc":{"__isSmartRef__":true,"id":939}},"10240":{"varMapping":{"__isSmartRef__":true,"id":10241},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":10242},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10243},"__LivelyClassName__":"lively.Closure"},"10241":{"this":{"__isSmartRef__":true,"id":3101}},"10242":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"10243":{"originalFunc":{"__isSmartRef__":true,"id":943}},"10244":{"varMapping":{"__isSmartRef__":true,"id":10245},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":10246},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10247},"__LivelyClassName__":"lively.Closure"},"10245":{"this":{"__isSmartRef__":true,"id":3101}},"10246":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"10247":{"originalFunc":{"__isSmartRef__":true,"id":947}},"10248":{"varMapping":{"__isSmartRef__":true,"id":10249},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":10250},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10251},"__LivelyClassName__":"lively.Closure"},"10249":{"this":{"__isSmartRef__":true,"id":3101}},"10250":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"10251":{"originalFunc":{"__isSmartRef__":true,"id":951}},"10252":{"varMapping":{"__isSmartRef__":true,"id":10253},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":10254},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10255},"__LivelyClassName__":"lively.Closure"},"10253":{"this":{"__isSmartRef__":true,"id":3101}},"10254":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"10255":{"originalFunc":{"__isSmartRef__":true,"id":955}},"10256":{"varMapping":{"__isSmartRef__":true,"id":10257},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":10258},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10259},"__LivelyClassName__":"lively.Closure"},"10257":{"this":{"__isSmartRef__":true,"id":3101}},"10258":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"10259":{"originalFunc":{"__isSmartRef__":true,"id":959}},"10260":{"varMapping":{"__isSmartRef__":true,"id":10261},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":10262},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10263},"__LivelyClassName__":"lively.Closure"},"10261":{"this":{"__isSmartRef__":true,"id":3101}},"10262":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"10263":{"originalFunc":{"__isSmartRef__":true,"id":963}},"10264":{"varMapping":{"__isSmartRef__":true,"id":10265},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10266},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10267},"__LivelyClassName__":"lively.Closure"},"10265":{"this":{"__isSmartRef__":true,"id":3101}},"10266":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"10267":{"originalFunc":{"__isSmartRef__":true,"id":967}},"10268":{"varMapping":{"__isSmartRef__":true,"id":10269},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10270},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10271},"__LivelyClassName__":"lively.Closure"},"10269":{"this":{"__isSmartRef__":true,"id":3101}},"10270":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"10271":{"originalFunc":{"__isSmartRef__":true,"id":971}},"10272":{"varMapping":{"__isSmartRef__":true,"id":10273},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":10274},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10275},"__LivelyClassName__":"lively.Closure"},"10273":{"this":{"__isSmartRef__":true,"id":3101}},"10274":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"10275":{"originalFunc":{"__isSmartRef__":true,"id":975}},"10276":{"varMapping":{"__isSmartRef__":true,"id":10277},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":10278},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10279},"__LivelyClassName__":"lively.Closure"},"10277":{"this":{"__isSmartRef__":true,"id":3101}},"10278":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"10279":{"originalFunc":{"__isSmartRef__":true,"id":979}},"10280":{"varMapping":{"__isSmartRef__":true,"id":10281},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":10282},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10283},"__LivelyClassName__":"lively.Closure"},"10281":{"this":{"__isSmartRef__":true,"id":3101}},"10282":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"10283":{"originalFunc":{"__isSmartRef__":true,"id":983}},"10284":{"varMapping":{"__isSmartRef__":true,"id":10285},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":10286},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10287},"__LivelyClassName__":"lively.Closure"},"10285":{"this":{"__isSmartRef__":true,"id":3101}},"10286":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"10287":{"originalFunc":{"__isSmartRef__":true,"id":987}},"10288":{"varMapping":{"__isSmartRef__":true,"id":10289},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":10290},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10291},"__LivelyClassName__":"lively.Closure"},"10289":{"this":{"__isSmartRef__":true,"id":3101}},"10290":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"10291":{"originalFunc":{"__isSmartRef__":true,"id":991}},"10292":{"varMapping":{"__isSmartRef__":true,"id":10293},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":10294},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10295},"__LivelyClassName__":"lively.Closure"},"10293":{"this":{"__isSmartRef__":true,"id":3101}},"10294":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"10295":{"originalFunc":{"__isSmartRef__":true,"id":995}},"10296":{"varMapping":{"__isSmartRef__":true,"id":10297},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":10298},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10299},"__LivelyClassName__":"lively.Closure"},"10297":{"this":{"__isSmartRef__":true,"id":3101}},"10298":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"10299":{"originalFunc":{"__isSmartRef__":true,"id":999}},"10300":{"varMapping":{"__isSmartRef__":true,"id":10301},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10302},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10303},"__LivelyClassName__":"lively.Closure"},"10301":{"this":{"__isSmartRef__":true,"id":3101}},"10302":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"10303":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"10304":{"varMapping":{"__isSmartRef__":true,"id":10305},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10306},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10307},"__LivelyClassName__":"lively.Closure"},"10305":{"this":{"__isSmartRef__":true,"id":3101}},"10306":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"10307":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"10308":{"varMapping":{"__isSmartRef__":true,"id":10309},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":10310},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10311},"__LivelyClassName__":"lively.Closure"},"10309":{"this":{"__isSmartRef__":true,"id":3101}},"10310":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"10311":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"10312":{"setDevStyle":{"__isSmartRef__":true,"id":10313},"setNormalStyle":{"__isSmartRef__":true,"id":10317},"tileSize":{"__isSmartRef__":true,"id":10321},"become":{"__isSmartRef__":true,"id":10325},"onMouseDown":{"__isSmartRef__":true,"id":10329},"setGridPosition":{"__isSmartRef__":true,"id":10337},"toolbox":{"__isSmartRef__":true,"id":10341},"distanceTo":{"__isSmartRef__":true,"id":10345},"tileWasDropped":{"__isSmartRef__":true,"id":10349},"isObstacle":{"__isSmartRef__":true,"id":10353},"neighboursInDirection":{"__isSmartRef__":true,"id":10357},"neighbours":{"__isSmartRef__":true,"id":10361},"zIndex":{"__isSmartRef__":true,"id":10365},"obstacles":{"__isSmartRef__":true,"id":10369},"addObstacle":{"__isSmartRef__":true,"id":10373},"removeObstacle":{"__isSmartRef__":true,"id":10377},"isTile":{"__isSmartRef__":true,"id":10381},"neighbourAt":{"__isSmartRef__":true,"id":10385},"map":{"__isSmartRef__":true,"id":10389},"game":{"__isSmartRef__":true,"id":10393},"reset":{"__isSmartRef__":true,"id":10397},"shallowCopy":{"__isSmartRef__":true,"id":10401},"characters":{"__isSmartRef__":true,"id":10405},"enterTile":{"__isSmartRef__":true,"id":10409},"leaveTile":{"__isSmartRef__":true,"id":10413},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":10417}},"10313":{"varMapping":{"__isSmartRef__":true,"id":10314},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":10315},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10316},"__LivelyClassName__":"lively.Closure"},"10314":{"this":{"__isSmartRef__":true,"id":3082}},"10315":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"10316":{"originalFunc":{"__isSmartRef__":true,"id":892}},"10317":{"varMapping":{"__isSmartRef__":true,"id":10318},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":10319},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10320},"__LivelyClassName__":"lively.Closure"},"10318":{"this":{"__isSmartRef__":true,"id":3082}},"10319":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"10320":{"originalFunc":{"__isSmartRef__":true,"id":911}},"10321":{"varMapping":{"__isSmartRef__":true,"id":10322},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":10323},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10324},"__LivelyClassName__":"lively.Closure"},"10322":{"this":{"__isSmartRef__":true,"id":3082}},"10323":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"10324":{"originalFunc":{"__isSmartRef__":true,"id":915}},"10325":{"varMapping":{"__isSmartRef__":true,"id":10326},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10327},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10328},"__LivelyClassName__":"lively.Closure"},"10326":{"this":{"__isSmartRef__":true,"id":3082}},"10327":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"10328":{"originalFunc":{"__isSmartRef__":true,"id":919}},"10329":{"varMapping":{"__isSmartRef__":true,"id":10330},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10335},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10336},"__LivelyClassName__":"lively.Closure"},"10330":{"this":{"__isSmartRef__":true,"id":3082},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10331}},"10331":{"$super":{"__isSmartRef__":true,"id":10332}},"10332":{"varMapping":{"__isSmartRef__":true,"id":10333},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10334},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10333":{"obj":{"__isSmartRef__":true,"id":3082},"name":"onMouseDown"},"10334":{},"10335":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"10336":{"originalFunc":{"__isSmartRef__":true,"id":923}},"10337":{"varMapping":{"__isSmartRef__":true,"id":10338},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":10339},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10340},"__LivelyClassName__":"lively.Closure"},"10338":{"this":{"__isSmartRef__":true,"id":3082}},"10339":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"10340":{"originalFunc":{"__isSmartRef__":true,"id":931}},"10341":{"varMapping":{"__isSmartRef__":true,"id":10342},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":10343},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10344},"__LivelyClassName__":"lively.Closure"},"10342":{"this":{"__isSmartRef__":true,"id":3082}},"10343":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"10344":{"originalFunc":{"__isSmartRef__":true,"id":935}},"10345":{"varMapping":{"__isSmartRef__":true,"id":10346},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":10347},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10348},"__LivelyClassName__":"lively.Closure"},"10346":{"this":{"__isSmartRef__":true,"id":3082}},"10347":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"10348":{"originalFunc":{"__isSmartRef__":true,"id":939}},"10349":{"varMapping":{"__isSmartRef__":true,"id":10350},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":10351},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10352},"__LivelyClassName__":"lively.Closure"},"10350":{"this":{"__isSmartRef__":true,"id":3082}},"10351":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"10352":{"originalFunc":{"__isSmartRef__":true,"id":943}},"10353":{"varMapping":{"__isSmartRef__":true,"id":10354},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":10355},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10356},"__LivelyClassName__":"lively.Closure"},"10354":{"this":{"__isSmartRef__":true,"id":3082}},"10355":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"10356":{"originalFunc":{"__isSmartRef__":true,"id":947}},"10357":{"varMapping":{"__isSmartRef__":true,"id":10358},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":10359},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10360},"__LivelyClassName__":"lively.Closure"},"10358":{"this":{"__isSmartRef__":true,"id":3082}},"10359":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"10360":{"originalFunc":{"__isSmartRef__":true,"id":951}},"10361":{"varMapping":{"__isSmartRef__":true,"id":10362},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":10363},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10364},"__LivelyClassName__":"lively.Closure"},"10362":{"this":{"__isSmartRef__":true,"id":3082}},"10363":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"10364":{"originalFunc":{"__isSmartRef__":true,"id":955}},"10365":{"varMapping":{"__isSmartRef__":true,"id":10366},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":10367},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10368},"__LivelyClassName__":"lively.Closure"},"10366":{"this":{"__isSmartRef__":true,"id":3082}},"10367":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"10368":{"originalFunc":{"__isSmartRef__":true,"id":959}},"10369":{"varMapping":{"__isSmartRef__":true,"id":10370},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":10371},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10372},"__LivelyClassName__":"lively.Closure"},"10370":{"this":{"__isSmartRef__":true,"id":3082}},"10371":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"10372":{"originalFunc":{"__isSmartRef__":true,"id":963}},"10373":{"varMapping":{"__isSmartRef__":true,"id":10374},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10375},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10376},"__LivelyClassName__":"lively.Closure"},"10374":{"this":{"__isSmartRef__":true,"id":3082}},"10375":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"10376":{"originalFunc":{"__isSmartRef__":true,"id":967}},"10377":{"varMapping":{"__isSmartRef__":true,"id":10378},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10379},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10380},"__LivelyClassName__":"lively.Closure"},"10378":{"this":{"__isSmartRef__":true,"id":3082}},"10379":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"10380":{"originalFunc":{"__isSmartRef__":true,"id":971}},"10381":{"varMapping":{"__isSmartRef__":true,"id":10382},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":10383},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10384},"__LivelyClassName__":"lively.Closure"},"10382":{"this":{"__isSmartRef__":true,"id":3082}},"10383":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"10384":{"originalFunc":{"__isSmartRef__":true,"id":975}},"10385":{"varMapping":{"__isSmartRef__":true,"id":10386},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":10387},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10388},"__LivelyClassName__":"lively.Closure"},"10386":{"this":{"__isSmartRef__":true,"id":3082}},"10387":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"10388":{"originalFunc":{"__isSmartRef__":true,"id":979}},"10389":{"varMapping":{"__isSmartRef__":true,"id":10390},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":10391},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10392},"__LivelyClassName__":"lively.Closure"},"10390":{"this":{"__isSmartRef__":true,"id":3082}},"10391":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"10392":{"originalFunc":{"__isSmartRef__":true,"id":983}},"10393":{"varMapping":{"__isSmartRef__":true,"id":10394},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":10395},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10396},"__LivelyClassName__":"lively.Closure"},"10394":{"this":{"__isSmartRef__":true,"id":3082}},"10395":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"10396":{"originalFunc":{"__isSmartRef__":true,"id":987}},"10397":{"varMapping":{"__isSmartRef__":true,"id":10398},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":10399},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10400},"__LivelyClassName__":"lively.Closure"},"10398":{"this":{"__isSmartRef__":true,"id":3082}},"10399":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"10400":{"originalFunc":{"__isSmartRef__":true,"id":991}},"10401":{"varMapping":{"__isSmartRef__":true,"id":10402},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":10403},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10404},"__LivelyClassName__":"lively.Closure"},"10402":{"this":{"__isSmartRef__":true,"id":3082}},"10403":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"10404":{"originalFunc":{"__isSmartRef__":true,"id":995}},"10405":{"varMapping":{"__isSmartRef__":true,"id":10406},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":10407},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10408},"__LivelyClassName__":"lively.Closure"},"10406":{"this":{"__isSmartRef__":true,"id":3082}},"10407":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"10408":{"originalFunc":{"__isSmartRef__":true,"id":999}},"10409":{"varMapping":{"__isSmartRef__":true,"id":10410},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10411},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10412},"__LivelyClassName__":"lively.Closure"},"10410":{"this":{"__isSmartRef__":true,"id":3082}},"10411":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"10412":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"10413":{"varMapping":{"__isSmartRef__":true,"id":10414},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10415},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10416},"__LivelyClassName__":"lively.Closure"},"10414":{"this":{"__isSmartRef__":true,"id":3082}},"10415":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"10416":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"10417":{"varMapping":{"__isSmartRef__":true,"id":10418},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":10419},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10420},"__LivelyClassName__":"lively.Closure"},"10418":{"this":{"__isSmartRef__":true,"id":3082}},"10419":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"10420":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"10421":{"setDevStyle":{"__isSmartRef__":true,"id":10422},"setNormalStyle":{"__isSmartRef__":true,"id":10426},"tileSize":{"__isSmartRef__":true,"id":10430},"become":{"__isSmartRef__":true,"id":10434},"onMouseDown":{"__isSmartRef__":true,"id":10438},"setGridPosition":{"__isSmartRef__":true,"id":10446},"toolbox":{"__isSmartRef__":true,"id":10450},"distanceTo":{"__isSmartRef__":true,"id":10454},"tileWasDropped":{"__isSmartRef__":true,"id":10458},"isObstacle":{"__isSmartRef__":true,"id":10462},"neighboursInDirection":{"__isSmartRef__":true,"id":10466},"neighbours":{"__isSmartRef__":true,"id":10470},"zIndex":{"__isSmartRef__":true,"id":10474},"obstacles":{"__isSmartRef__":true,"id":10478},"addObstacle":{"__isSmartRef__":true,"id":10482},"removeObstacle":{"__isSmartRef__":true,"id":10486},"isTile":{"__isSmartRef__":true,"id":10490},"neighbourAt":{"__isSmartRef__":true,"id":10494},"map":{"__isSmartRef__":true,"id":10498},"game":{"__isSmartRef__":true,"id":10502},"reset":{"__isSmartRef__":true,"id":10506},"shallowCopy":{"__isSmartRef__":true,"id":10510},"characters":{"__isSmartRef__":true,"id":10514},"enterTile":{"__isSmartRef__":true,"id":10518},"leaveTile":{"__isSmartRef__":true,"id":10522},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":10526}},"10422":{"varMapping":{"__isSmartRef__":true,"id":10423},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":10424},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10425},"__LivelyClassName__":"lively.Closure"},"10423":{"this":{"__isSmartRef__":true,"id":3063}},"10424":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"10425":{"originalFunc":{"__isSmartRef__":true,"id":892}},"10426":{"varMapping":{"__isSmartRef__":true,"id":10427},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":10428},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10429},"__LivelyClassName__":"lively.Closure"},"10427":{"this":{"__isSmartRef__":true,"id":3063}},"10428":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"10429":{"originalFunc":{"__isSmartRef__":true,"id":911}},"10430":{"varMapping":{"__isSmartRef__":true,"id":10431},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":10432},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10433},"__LivelyClassName__":"lively.Closure"},"10431":{"this":{"__isSmartRef__":true,"id":3063}},"10432":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"10433":{"originalFunc":{"__isSmartRef__":true,"id":915}},"10434":{"varMapping":{"__isSmartRef__":true,"id":10435},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10436},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10437},"__LivelyClassName__":"lively.Closure"},"10435":{"this":{"__isSmartRef__":true,"id":3063}},"10436":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"10437":{"originalFunc":{"__isSmartRef__":true,"id":919}},"10438":{"varMapping":{"__isSmartRef__":true,"id":10439},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10444},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10445},"__LivelyClassName__":"lively.Closure"},"10439":{"this":{"__isSmartRef__":true,"id":3063},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10440}},"10440":{"$super":{"__isSmartRef__":true,"id":10441}},"10441":{"varMapping":{"__isSmartRef__":true,"id":10442},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10443},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10442":{"obj":{"__isSmartRef__":true,"id":3063},"name":"onMouseDown"},"10443":{},"10444":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"10445":{"originalFunc":{"__isSmartRef__":true,"id":923}},"10446":{"varMapping":{"__isSmartRef__":true,"id":10447},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":10448},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10449},"__LivelyClassName__":"lively.Closure"},"10447":{"this":{"__isSmartRef__":true,"id":3063}},"10448":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"10449":{"originalFunc":{"__isSmartRef__":true,"id":931}},"10450":{"varMapping":{"__isSmartRef__":true,"id":10451},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":10452},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10453},"__LivelyClassName__":"lively.Closure"},"10451":{"this":{"__isSmartRef__":true,"id":3063}},"10452":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"10453":{"originalFunc":{"__isSmartRef__":true,"id":935}},"10454":{"varMapping":{"__isSmartRef__":true,"id":10455},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":10456},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10457},"__LivelyClassName__":"lively.Closure"},"10455":{"this":{"__isSmartRef__":true,"id":3063}},"10456":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"10457":{"originalFunc":{"__isSmartRef__":true,"id":939}},"10458":{"varMapping":{"__isSmartRef__":true,"id":10459},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":10460},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10461},"__LivelyClassName__":"lively.Closure"},"10459":{"this":{"__isSmartRef__":true,"id":3063}},"10460":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"10461":{"originalFunc":{"__isSmartRef__":true,"id":943}},"10462":{"varMapping":{"__isSmartRef__":true,"id":10463},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":10464},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10465},"__LivelyClassName__":"lively.Closure"},"10463":{"this":{"__isSmartRef__":true,"id":3063}},"10464":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"10465":{"originalFunc":{"__isSmartRef__":true,"id":947}},"10466":{"varMapping":{"__isSmartRef__":true,"id":10467},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":10468},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10469},"__LivelyClassName__":"lively.Closure"},"10467":{"this":{"__isSmartRef__":true,"id":3063}},"10468":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"10469":{"originalFunc":{"__isSmartRef__":true,"id":951}},"10470":{"varMapping":{"__isSmartRef__":true,"id":10471},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":10472},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10473},"__LivelyClassName__":"lively.Closure"},"10471":{"this":{"__isSmartRef__":true,"id":3063}},"10472":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"10473":{"originalFunc":{"__isSmartRef__":true,"id":955}},"10474":{"varMapping":{"__isSmartRef__":true,"id":10475},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":10476},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10477},"__LivelyClassName__":"lively.Closure"},"10475":{"this":{"__isSmartRef__":true,"id":3063}},"10476":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"10477":{"originalFunc":{"__isSmartRef__":true,"id":959}},"10478":{"varMapping":{"__isSmartRef__":true,"id":10479},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":10480},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10481},"__LivelyClassName__":"lively.Closure"},"10479":{"this":{"__isSmartRef__":true,"id":3063}},"10480":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"10481":{"originalFunc":{"__isSmartRef__":true,"id":963}},"10482":{"varMapping":{"__isSmartRef__":true,"id":10483},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10484},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10485},"__LivelyClassName__":"lively.Closure"},"10483":{"this":{"__isSmartRef__":true,"id":3063}},"10484":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"10485":{"originalFunc":{"__isSmartRef__":true,"id":967}},"10486":{"varMapping":{"__isSmartRef__":true,"id":10487},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10488},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10489},"__LivelyClassName__":"lively.Closure"},"10487":{"this":{"__isSmartRef__":true,"id":3063}},"10488":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"10489":{"originalFunc":{"__isSmartRef__":true,"id":971}},"10490":{"varMapping":{"__isSmartRef__":true,"id":10491},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":10492},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10493},"__LivelyClassName__":"lively.Closure"},"10491":{"this":{"__isSmartRef__":true,"id":3063}},"10492":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"10493":{"originalFunc":{"__isSmartRef__":true,"id":975}},"10494":{"varMapping":{"__isSmartRef__":true,"id":10495},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":10496},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10497},"__LivelyClassName__":"lively.Closure"},"10495":{"this":{"__isSmartRef__":true,"id":3063}},"10496":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"10497":{"originalFunc":{"__isSmartRef__":true,"id":979}},"10498":{"varMapping":{"__isSmartRef__":true,"id":10499},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":10500},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10501},"__LivelyClassName__":"lively.Closure"},"10499":{"this":{"__isSmartRef__":true,"id":3063}},"10500":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"10501":{"originalFunc":{"__isSmartRef__":true,"id":983}},"10502":{"varMapping":{"__isSmartRef__":true,"id":10503},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":10504},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10505},"__LivelyClassName__":"lively.Closure"},"10503":{"this":{"__isSmartRef__":true,"id":3063}},"10504":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"10505":{"originalFunc":{"__isSmartRef__":true,"id":987}},"10506":{"varMapping":{"__isSmartRef__":true,"id":10507},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":10508},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10509},"__LivelyClassName__":"lively.Closure"},"10507":{"this":{"__isSmartRef__":true,"id":3063}},"10508":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"10509":{"originalFunc":{"__isSmartRef__":true,"id":991}},"10510":{"varMapping":{"__isSmartRef__":true,"id":10511},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":10512},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10513},"__LivelyClassName__":"lively.Closure"},"10511":{"this":{"__isSmartRef__":true,"id":3063}},"10512":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"10513":{"originalFunc":{"__isSmartRef__":true,"id":995}},"10514":{"varMapping":{"__isSmartRef__":true,"id":10515},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":10516},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10517},"__LivelyClassName__":"lively.Closure"},"10515":{"this":{"__isSmartRef__":true,"id":3063}},"10516":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"10517":{"originalFunc":{"__isSmartRef__":true,"id":999}},"10518":{"varMapping":{"__isSmartRef__":true,"id":10519},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10520},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10521},"__LivelyClassName__":"lively.Closure"},"10519":{"this":{"__isSmartRef__":true,"id":3063}},"10520":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"10521":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"10522":{"varMapping":{"__isSmartRef__":true,"id":10523},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10524},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10525},"__LivelyClassName__":"lively.Closure"},"10523":{"this":{"__isSmartRef__":true,"id":3063}},"10524":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"10525":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"10526":{"varMapping":{"__isSmartRef__":true,"id":10527},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":10528},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10529},"__LivelyClassName__":"lively.Closure"},"10527":{"this":{"__isSmartRef__":true,"id":3063}},"10528":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"10529":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"10530":{"setDevStyle":{"__isSmartRef__":true,"id":10531},"setNormalStyle":{"__isSmartRef__":true,"id":10535},"tileSize":{"__isSmartRef__":true,"id":10539},"become":{"__isSmartRef__":true,"id":10543},"onMouseDown":{"__isSmartRef__":true,"id":10547},"setGridPosition":{"__isSmartRef__":true,"id":10555},"toolbox":{"__isSmartRef__":true,"id":10559},"distanceTo":{"__isSmartRef__":true,"id":10563},"tileWasDropped":{"__isSmartRef__":true,"id":10567},"isObstacle":{"__isSmartRef__":true,"id":10571},"neighboursInDirection":{"__isSmartRef__":true,"id":10575},"neighbours":{"__isSmartRef__":true,"id":10579},"zIndex":{"__isSmartRef__":true,"id":10583},"obstacles":{"__isSmartRef__":true,"id":10587},"addObstacle":{"__isSmartRef__":true,"id":10591},"removeObstacle":{"__isSmartRef__":true,"id":10595},"isTile":{"__isSmartRef__":true,"id":10599},"neighbourAt":{"__isSmartRef__":true,"id":10603},"map":{"__isSmartRef__":true,"id":10607},"game":{"__isSmartRef__":true,"id":10611},"reset":{"__isSmartRef__":true,"id":10615},"shallowCopy":{"__isSmartRef__":true,"id":10619},"characters":{"__isSmartRef__":true,"id":10623},"enterTile":{"__isSmartRef__":true,"id":10627},"leaveTile":{"__isSmartRef__":true,"id":10631},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":10635}},"10531":{"varMapping":{"__isSmartRef__":true,"id":10532},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":10533},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10534},"__LivelyClassName__":"lively.Closure"},"10532":{"this":{"__isSmartRef__":true,"id":3044}},"10533":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"10534":{"originalFunc":{"__isSmartRef__":true,"id":892}},"10535":{"varMapping":{"__isSmartRef__":true,"id":10536},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":10537},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10538},"__LivelyClassName__":"lively.Closure"},"10536":{"this":{"__isSmartRef__":true,"id":3044}},"10537":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"10538":{"originalFunc":{"__isSmartRef__":true,"id":911}},"10539":{"varMapping":{"__isSmartRef__":true,"id":10540},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":10541},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10542},"__LivelyClassName__":"lively.Closure"},"10540":{"this":{"__isSmartRef__":true,"id":3044}},"10541":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"10542":{"originalFunc":{"__isSmartRef__":true,"id":915}},"10543":{"varMapping":{"__isSmartRef__":true,"id":10544},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10545},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10546},"__LivelyClassName__":"lively.Closure"},"10544":{"this":{"__isSmartRef__":true,"id":3044}},"10545":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"10546":{"originalFunc":{"__isSmartRef__":true,"id":919}},"10547":{"varMapping":{"__isSmartRef__":true,"id":10548},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10553},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10554},"__LivelyClassName__":"lively.Closure"},"10548":{"this":{"__isSmartRef__":true,"id":3044},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10549}},"10549":{"$super":{"__isSmartRef__":true,"id":10550}},"10550":{"varMapping":{"__isSmartRef__":true,"id":10551},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10552},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10551":{"obj":{"__isSmartRef__":true,"id":3044},"name":"onMouseDown"},"10552":{},"10553":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"10554":{"originalFunc":{"__isSmartRef__":true,"id":923}},"10555":{"varMapping":{"__isSmartRef__":true,"id":10556},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":10557},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10558},"__LivelyClassName__":"lively.Closure"},"10556":{"this":{"__isSmartRef__":true,"id":3044}},"10557":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"10558":{"originalFunc":{"__isSmartRef__":true,"id":931}},"10559":{"varMapping":{"__isSmartRef__":true,"id":10560},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":10561},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10562},"__LivelyClassName__":"lively.Closure"},"10560":{"this":{"__isSmartRef__":true,"id":3044}},"10561":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"10562":{"originalFunc":{"__isSmartRef__":true,"id":935}},"10563":{"varMapping":{"__isSmartRef__":true,"id":10564},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":10565},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10566},"__LivelyClassName__":"lively.Closure"},"10564":{"this":{"__isSmartRef__":true,"id":3044}},"10565":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"10566":{"originalFunc":{"__isSmartRef__":true,"id":939}},"10567":{"varMapping":{"__isSmartRef__":true,"id":10568},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":10569},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10570},"__LivelyClassName__":"lively.Closure"},"10568":{"this":{"__isSmartRef__":true,"id":3044}},"10569":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"10570":{"originalFunc":{"__isSmartRef__":true,"id":943}},"10571":{"varMapping":{"__isSmartRef__":true,"id":10572},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":10573},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10574},"__LivelyClassName__":"lively.Closure"},"10572":{"this":{"__isSmartRef__":true,"id":3044}},"10573":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"10574":{"originalFunc":{"__isSmartRef__":true,"id":947}},"10575":{"varMapping":{"__isSmartRef__":true,"id":10576},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":10577},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10578},"__LivelyClassName__":"lively.Closure"},"10576":{"this":{"__isSmartRef__":true,"id":3044}},"10577":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"10578":{"originalFunc":{"__isSmartRef__":true,"id":951}},"10579":{"varMapping":{"__isSmartRef__":true,"id":10580},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":10581},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10582},"__LivelyClassName__":"lively.Closure"},"10580":{"this":{"__isSmartRef__":true,"id":3044}},"10581":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"10582":{"originalFunc":{"__isSmartRef__":true,"id":955}},"10583":{"varMapping":{"__isSmartRef__":true,"id":10584},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":10585},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10586},"__LivelyClassName__":"lively.Closure"},"10584":{"this":{"__isSmartRef__":true,"id":3044}},"10585":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"10586":{"originalFunc":{"__isSmartRef__":true,"id":959}},"10587":{"varMapping":{"__isSmartRef__":true,"id":10588},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":10589},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10590},"__LivelyClassName__":"lively.Closure"},"10588":{"this":{"__isSmartRef__":true,"id":3044}},"10589":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"10590":{"originalFunc":{"__isSmartRef__":true,"id":963}},"10591":{"varMapping":{"__isSmartRef__":true,"id":10592},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10593},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10594},"__LivelyClassName__":"lively.Closure"},"10592":{"this":{"__isSmartRef__":true,"id":3044}},"10593":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"10594":{"originalFunc":{"__isSmartRef__":true,"id":967}},"10595":{"varMapping":{"__isSmartRef__":true,"id":10596},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10597},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10598},"__LivelyClassName__":"lively.Closure"},"10596":{"this":{"__isSmartRef__":true,"id":3044}},"10597":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"10598":{"originalFunc":{"__isSmartRef__":true,"id":971}},"10599":{"varMapping":{"__isSmartRef__":true,"id":10600},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":10601},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10602},"__LivelyClassName__":"lively.Closure"},"10600":{"this":{"__isSmartRef__":true,"id":3044}},"10601":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"10602":{"originalFunc":{"__isSmartRef__":true,"id":975}},"10603":{"varMapping":{"__isSmartRef__":true,"id":10604},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":10605},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10606},"__LivelyClassName__":"lively.Closure"},"10604":{"this":{"__isSmartRef__":true,"id":3044}},"10605":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"10606":{"originalFunc":{"__isSmartRef__":true,"id":979}},"10607":{"varMapping":{"__isSmartRef__":true,"id":10608},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":10609},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10610},"__LivelyClassName__":"lively.Closure"},"10608":{"this":{"__isSmartRef__":true,"id":3044}},"10609":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"10610":{"originalFunc":{"__isSmartRef__":true,"id":983}},"10611":{"varMapping":{"__isSmartRef__":true,"id":10612},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":10613},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10614},"__LivelyClassName__":"lively.Closure"},"10612":{"this":{"__isSmartRef__":true,"id":3044}},"10613":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"10614":{"originalFunc":{"__isSmartRef__":true,"id":987}},"10615":{"varMapping":{"__isSmartRef__":true,"id":10616},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":10617},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10618},"__LivelyClassName__":"lively.Closure"},"10616":{"this":{"__isSmartRef__":true,"id":3044}},"10617":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"10618":{"originalFunc":{"__isSmartRef__":true,"id":991}},"10619":{"varMapping":{"__isSmartRef__":true,"id":10620},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":10621},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10622},"__LivelyClassName__":"lively.Closure"},"10620":{"this":{"__isSmartRef__":true,"id":3044}},"10621":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"10622":{"originalFunc":{"__isSmartRef__":true,"id":995}},"10623":{"varMapping":{"__isSmartRef__":true,"id":10624},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":10625},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10626},"__LivelyClassName__":"lively.Closure"},"10624":{"this":{"__isSmartRef__":true,"id":3044}},"10625":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"10626":{"originalFunc":{"__isSmartRef__":true,"id":999}},"10627":{"varMapping":{"__isSmartRef__":true,"id":10628},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10629},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10630},"__LivelyClassName__":"lively.Closure"},"10628":{"this":{"__isSmartRef__":true,"id":3044}},"10629":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"10630":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"10631":{"varMapping":{"__isSmartRef__":true,"id":10632},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10633},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10634},"__LivelyClassName__":"lively.Closure"},"10632":{"this":{"__isSmartRef__":true,"id":3044}},"10633":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"10634":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"10635":{"varMapping":{"__isSmartRef__":true,"id":10636},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":10637},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10638},"__LivelyClassName__":"lively.Closure"},"10636":{"this":{"__isSmartRef__":true,"id":3044}},"10637":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"10638":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"10639":{"setDevStyle":{"__isSmartRef__":true,"id":10640},"setNormalStyle":{"__isSmartRef__":true,"id":10644},"tileSize":{"__isSmartRef__":true,"id":10648},"become":{"__isSmartRef__":true,"id":10652},"onMouseDown":{"__isSmartRef__":true,"id":10656},"setGridPosition":{"__isSmartRef__":true,"id":10664},"toolbox":{"__isSmartRef__":true,"id":10668},"distanceTo":{"__isSmartRef__":true,"id":10672},"tileWasDropped":{"__isSmartRef__":true,"id":10676},"isObstacle":{"__isSmartRef__":true,"id":10680},"neighboursInDirection":{"__isSmartRef__":true,"id":10684},"neighbours":{"__isSmartRef__":true,"id":10688},"zIndex":{"__isSmartRef__":true,"id":10692},"obstacles":{"__isSmartRef__":true,"id":10696},"addObstacle":{"__isSmartRef__":true,"id":10700},"removeObstacle":{"__isSmartRef__":true,"id":10704},"isTile":{"__isSmartRef__":true,"id":10708},"neighbourAt":{"__isSmartRef__":true,"id":10712},"map":{"__isSmartRef__":true,"id":10716},"game":{"__isSmartRef__":true,"id":10720},"reset":{"__isSmartRef__":true,"id":10724},"shallowCopy":{"__isSmartRef__":true,"id":10728},"characters":{"__isSmartRef__":true,"id":10732},"enterTile":{"__isSmartRef__":true,"id":10736},"leaveTile":{"__isSmartRef__":true,"id":10740},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":10744}},"10640":{"varMapping":{"__isSmartRef__":true,"id":10641},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":10642},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10643},"__LivelyClassName__":"lively.Closure"},"10641":{"this":{"__isSmartRef__":true,"id":3025}},"10642":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"10643":{"originalFunc":{"__isSmartRef__":true,"id":892}},"10644":{"varMapping":{"__isSmartRef__":true,"id":10645},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":10646},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10647},"__LivelyClassName__":"lively.Closure"},"10645":{"this":{"__isSmartRef__":true,"id":3025}},"10646":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"10647":{"originalFunc":{"__isSmartRef__":true,"id":911}},"10648":{"varMapping":{"__isSmartRef__":true,"id":10649},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":10650},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10651},"__LivelyClassName__":"lively.Closure"},"10649":{"this":{"__isSmartRef__":true,"id":3025}},"10650":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"10651":{"originalFunc":{"__isSmartRef__":true,"id":915}},"10652":{"varMapping":{"__isSmartRef__":true,"id":10653},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10654},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10655},"__LivelyClassName__":"lively.Closure"},"10653":{"this":{"__isSmartRef__":true,"id":3025}},"10654":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"10655":{"originalFunc":{"__isSmartRef__":true,"id":919}},"10656":{"varMapping":{"__isSmartRef__":true,"id":10657},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10662},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10663},"__LivelyClassName__":"lively.Closure"},"10657":{"this":{"__isSmartRef__":true,"id":3025},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10658}},"10658":{"$super":{"__isSmartRef__":true,"id":10659}},"10659":{"varMapping":{"__isSmartRef__":true,"id":10660},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10661},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10660":{"obj":{"__isSmartRef__":true,"id":3025},"name":"onMouseDown"},"10661":{},"10662":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"10663":{"originalFunc":{"__isSmartRef__":true,"id":923}},"10664":{"varMapping":{"__isSmartRef__":true,"id":10665},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":10666},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10667},"__LivelyClassName__":"lively.Closure"},"10665":{"this":{"__isSmartRef__":true,"id":3025}},"10666":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"10667":{"originalFunc":{"__isSmartRef__":true,"id":931}},"10668":{"varMapping":{"__isSmartRef__":true,"id":10669},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":10670},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10671},"__LivelyClassName__":"lively.Closure"},"10669":{"this":{"__isSmartRef__":true,"id":3025}},"10670":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"10671":{"originalFunc":{"__isSmartRef__":true,"id":935}},"10672":{"varMapping":{"__isSmartRef__":true,"id":10673},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":10674},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10675},"__LivelyClassName__":"lively.Closure"},"10673":{"this":{"__isSmartRef__":true,"id":3025}},"10674":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"10675":{"originalFunc":{"__isSmartRef__":true,"id":939}},"10676":{"varMapping":{"__isSmartRef__":true,"id":10677},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":10678},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10679},"__LivelyClassName__":"lively.Closure"},"10677":{"this":{"__isSmartRef__":true,"id":3025}},"10678":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"10679":{"originalFunc":{"__isSmartRef__":true,"id":943}},"10680":{"varMapping":{"__isSmartRef__":true,"id":10681},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":10682},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10683},"__LivelyClassName__":"lively.Closure"},"10681":{"this":{"__isSmartRef__":true,"id":3025}},"10682":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"10683":{"originalFunc":{"__isSmartRef__":true,"id":947}},"10684":{"varMapping":{"__isSmartRef__":true,"id":10685},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":10686},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10687},"__LivelyClassName__":"lively.Closure"},"10685":{"this":{"__isSmartRef__":true,"id":3025}},"10686":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"10687":{"originalFunc":{"__isSmartRef__":true,"id":951}},"10688":{"varMapping":{"__isSmartRef__":true,"id":10689},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":10690},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10691},"__LivelyClassName__":"lively.Closure"},"10689":{"this":{"__isSmartRef__":true,"id":3025}},"10690":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"10691":{"originalFunc":{"__isSmartRef__":true,"id":955}},"10692":{"varMapping":{"__isSmartRef__":true,"id":10693},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":10694},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10695},"__LivelyClassName__":"lively.Closure"},"10693":{"this":{"__isSmartRef__":true,"id":3025}},"10694":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"10695":{"originalFunc":{"__isSmartRef__":true,"id":959}},"10696":{"varMapping":{"__isSmartRef__":true,"id":10697},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":10698},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10699},"__LivelyClassName__":"lively.Closure"},"10697":{"this":{"__isSmartRef__":true,"id":3025}},"10698":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"10699":{"originalFunc":{"__isSmartRef__":true,"id":963}},"10700":{"varMapping":{"__isSmartRef__":true,"id":10701},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10702},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10703},"__LivelyClassName__":"lively.Closure"},"10701":{"this":{"__isSmartRef__":true,"id":3025}},"10702":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"10703":{"originalFunc":{"__isSmartRef__":true,"id":967}},"10704":{"varMapping":{"__isSmartRef__":true,"id":10705},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10706},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10707},"__LivelyClassName__":"lively.Closure"},"10705":{"this":{"__isSmartRef__":true,"id":3025}},"10706":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"10707":{"originalFunc":{"__isSmartRef__":true,"id":971}},"10708":{"varMapping":{"__isSmartRef__":true,"id":10709},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":10710},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10711},"__LivelyClassName__":"lively.Closure"},"10709":{"this":{"__isSmartRef__":true,"id":3025}},"10710":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"10711":{"originalFunc":{"__isSmartRef__":true,"id":975}},"10712":{"varMapping":{"__isSmartRef__":true,"id":10713},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":10714},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10715},"__LivelyClassName__":"lively.Closure"},"10713":{"this":{"__isSmartRef__":true,"id":3025}},"10714":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"10715":{"originalFunc":{"__isSmartRef__":true,"id":979}},"10716":{"varMapping":{"__isSmartRef__":true,"id":10717},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":10718},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10719},"__LivelyClassName__":"lively.Closure"},"10717":{"this":{"__isSmartRef__":true,"id":3025}},"10718":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"10719":{"originalFunc":{"__isSmartRef__":true,"id":983}},"10720":{"varMapping":{"__isSmartRef__":true,"id":10721},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":10722},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10723},"__LivelyClassName__":"lively.Closure"},"10721":{"this":{"__isSmartRef__":true,"id":3025}},"10722":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"10723":{"originalFunc":{"__isSmartRef__":true,"id":987}},"10724":{"varMapping":{"__isSmartRef__":true,"id":10725},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":10726},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10727},"__LivelyClassName__":"lively.Closure"},"10725":{"this":{"__isSmartRef__":true,"id":3025}},"10726":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"10727":{"originalFunc":{"__isSmartRef__":true,"id":991}},"10728":{"varMapping":{"__isSmartRef__":true,"id":10729},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":10730},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10731},"__LivelyClassName__":"lively.Closure"},"10729":{"this":{"__isSmartRef__":true,"id":3025}},"10730":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"10731":{"originalFunc":{"__isSmartRef__":true,"id":995}},"10732":{"varMapping":{"__isSmartRef__":true,"id":10733},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":10734},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10735},"__LivelyClassName__":"lively.Closure"},"10733":{"this":{"__isSmartRef__":true,"id":3025}},"10734":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"10735":{"originalFunc":{"__isSmartRef__":true,"id":999}},"10736":{"varMapping":{"__isSmartRef__":true,"id":10737},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10738},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10739},"__LivelyClassName__":"lively.Closure"},"10737":{"this":{"__isSmartRef__":true,"id":3025}},"10738":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"10739":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"10740":{"varMapping":{"__isSmartRef__":true,"id":10741},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10742},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10743},"__LivelyClassName__":"lively.Closure"},"10741":{"this":{"__isSmartRef__":true,"id":3025}},"10742":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"10743":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"10744":{"varMapping":{"__isSmartRef__":true,"id":10745},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":10746},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10747},"__LivelyClassName__":"lively.Closure"},"10745":{"this":{"__isSmartRef__":true,"id":3025}},"10746":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"10747":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"10748":{"setDevStyle":{"__isSmartRef__":true,"id":10749},"setNormalStyle":{"__isSmartRef__":true,"id":10753},"tileSize":{"__isSmartRef__":true,"id":10757},"become":{"__isSmartRef__":true,"id":10761},"onMouseDown":{"__isSmartRef__":true,"id":10765},"setGridPosition":{"__isSmartRef__":true,"id":10773},"toolbox":{"__isSmartRef__":true,"id":10777},"distanceTo":{"__isSmartRef__":true,"id":10781},"tileWasDropped":{"__isSmartRef__":true,"id":10785},"isObstacle":{"__isSmartRef__":true,"id":10789},"neighboursInDirection":{"__isSmartRef__":true,"id":10793},"neighbours":{"__isSmartRef__":true,"id":10797},"zIndex":{"__isSmartRef__":true,"id":10801},"obstacles":{"__isSmartRef__":true,"id":10805},"addObstacle":{"__isSmartRef__":true,"id":10809},"removeObstacle":{"__isSmartRef__":true,"id":10813},"isTile":{"__isSmartRef__":true,"id":10817},"neighbourAt":{"__isSmartRef__":true,"id":10821},"map":{"__isSmartRef__":true,"id":10825},"game":{"__isSmartRef__":true,"id":10829},"reset":{"__isSmartRef__":true,"id":10833},"shallowCopy":{"__isSmartRef__":true,"id":10837},"characters":{"__isSmartRef__":true,"id":10841},"enterTile":{"__isSmartRef__":true,"id":10845},"leaveTile":{"__isSmartRef__":true,"id":10849},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":10853}},"10749":{"varMapping":{"__isSmartRef__":true,"id":10750},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":10751},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10752},"__LivelyClassName__":"lively.Closure"},"10750":{"this":{"__isSmartRef__":true,"id":3006}},"10751":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"10752":{"originalFunc":{"__isSmartRef__":true,"id":892}},"10753":{"varMapping":{"__isSmartRef__":true,"id":10754},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":10755},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10756},"__LivelyClassName__":"lively.Closure"},"10754":{"this":{"__isSmartRef__":true,"id":3006}},"10755":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"10756":{"originalFunc":{"__isSmartRef__":true,"id":911}},"10757":{"varMapping":{"__isSmartRef__":true,"id":10758},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":10759},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10760},"__LivelyClassName__":"lively.Closure"},"10758":{"this":{"__isSmartRef__":true,"id":3006}},"10759":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"10760":{"originalFunc":{"__isSmartRef__":true,"id":915}},"10761":{"varMapping":{"__isSmartRef__":true,"id":10762},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10763},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10764},"__LivelyClassName__":"lively.Closure"},"10762":{"this":{"__isSmartRef__":true,"id":3006}},"10763":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"10764":{"originalFunc":{"__isSmartRef__":true,"id":919}},"10765":{"varMapping":{"__isSmartRef__":true,"id":10766},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10771},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10772},"__LivelyClassName__":"lively.Closure"},"10766":{"this":{"__isSmartRef__":true,"id":3006},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10767}},"10767":{"$super":{"__isSmartRef__":true,"id":10768}},"10768":{"varMapping":{"__isSmartRef__":true,"id":10769},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10770},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10769":{"obj":{"__isSmartRef__":true,"id":3006},"name":"onMouseDown"},"10770":{},"10771":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"10772":{"originalFunc":{"__isSmartRef__":true,"id":923}},"10773":{"varMapping":{"__isSmartRef__":true,"id":10774},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":10775},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10776},"__LivelyClassName__":"lively.Closure"},"10774":{"this":{"__isSmartRef__":true,"id":3006}},"10775":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"10776":{"originalFunc":{"__isSmartRef__":true,"id":931}},"10777":{"varMapping":{"__isSmartRef__":true,"id":10778},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":10779},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10780},"__LivelyClassName__":"lively.Closure"},"10778":{"this":{"__isSmartRef__":true,"id":3006}},"10779":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"10780":{"originalFunc":{"__isSmartRef__":true,"id":935}},"10781":{"varMapping":{"__isSmartRef__":true,"id":10782},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":10783},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10784},"__LivelyClassName__":"lively.Closure"},"10782":{"this":{"__isSmartRef__":true,"id":3006}},"10783":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"10784":{"originalFunc":{"__isSmartRef__":true,"id":939}},"10785":{"varMapping":{"__isSmartRef__":true,"id":10786},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":10787},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10788},"__LivelyClassName__":"lively.Closure"},"10786":{"this":{"__isSmartRef__":true,"id":3006}},"10787":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"10788":{"originalFunc":{"__isSmartRef__":true,"id":943}},"10789":{"varMapping":{"__isSmartRef__":true,"id":10790},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":10791},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10792},"__LivelyClassName__":"lively.Closure"},"10790":{"this":{"__isSmartRef__":true,"id":3006}},"10791":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"10792":{"originalFunc":{"__isSmartRef__":true,"id":947}},"10793":{"varMapping":{"__isSmartRef__":true,"id":10794},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":10795},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10796},"__LivelyClassName__":"lively.Closure"},"10794":{"this":{"__isSmartRef__":true,"id":3006}},"10795":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"10796":{"originalFunc":{"__isSmartRef__":true,"id":951}},"10797":{"varMapping":{"__isSmartRef__":true,"id":10798},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":10799},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10800},"__LivelyClassName__":"lively.Closure"},"10798":{"this":{"__isSmartRef__":true,"id":3006}},"10799":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"10800":{"originalFunc":{"__isSmartRef__":true,"id":955}},"10801":{"varMapping":{"__isSmartRef__":true,"id":10802},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":10803},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10804},"__LivelyClassName__":"lively.Closure"},"10802":{"this":{"__isSmartRef__":true,"id":3006}},"10803":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"10804":{"originalFunc":{"__isSmartRef__":true,"id":959}},"10805":{"varMapping":{"__isSmartRef__":true,"id":10806},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":10807},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10808},"__LivelyClassName__":"lively.Closure"},"10806":{"this":{"__isSmartRef__":true,"id":3006}},"10807":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"10808":{"originalFunc":{"__isSmartRef__":true,"id":963}},"10809":{"varMapping":{"__isSmartRef__":true,"id":10810},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10811},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10812},"__LivelyClassName__":"lively.Closure"},"10810":{"this":{"__isSmartRef__":true,"id":3006}},"10811":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"10812":{"originalFunc":{"__isSmartRef__":true,"id":967}},"10813":{"varMapping":{"__isSmartRef__":true,"id":10814},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10815},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10816},"__LivelyClassName__":"lively.Closure"},"10814":{"this":{"__isSmartRef__":true,"id":3006}},"10815":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"10816":{"originalFunc":{"__isSmartRef__":true,"id":971}},"10817":{"varMapping":{"__isSmartRef__":true,"id":10818},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":10819},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10820},"__LivelyClassName__":"lively.Closure"},"10818":{"this":{"__isSmartRef__":true,"id":3006}},"10819":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"10820":{"originalFunc":{"__isSmartRef__":true,"id":975}},"10821":{"varMapping":{"__isSmartRef__":true,"id":10822},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":10823},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10824},"__LivelyClassName__":"lively.Closure"},"10822":{"this":{"__isSmartRef__":true,"id":3006}},"10823":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"10824":{"originalFunc":{"__isSmartRef__":true,"id":979}},"10825":{"varMapping":{"__isSmartRef__":true,"id":10826},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":10827},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10828},"__LivelyClassName__":"lively.Closure"},"10826":{"this":{"__isSmartRef__":true,"id":3006}},"10827":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"10828":{"originalFunc":{"__isSmartRef__":true,"id":983}},"10829":{"varMapping":{"__isSmartRef__":true,"id":10830},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":10831},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10832},"__LivelyClassName__":"lively.Closure"},"10830":{"this":{"__isSmartRef__":true,"id":3006}},"10831":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"10832":{"originalFunc":{"__isSmartRef__":true,"id":987}},"10833":{"varMapping":{"__isSmartRef__":true,"id":10834},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":10835},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10836},"__LivelyClassName__":"lively.Closure"},"10834":{"this":{"__isSmartRef__":true,"id":3006}},"10835":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"10836":{"originalFunc":{"__isSmartRef__":true,"id":991}},"10837":{"varMapping":{"__isSmartRef__":true,"id":10838},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":10839},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10840},"__LivelyClassName__":"lively.Closure"},"10838":{"this":{"__isSmartRef__":true,"id":3006}},"10839":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"10840":{"originalFunc":{"__isSmartRef__":true,"id":995}},"10841":{"varMapping":{"__isSmartRef__":true,"id":10842},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":10843},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10844},"__LivelyClassName__":"lively.Closure"},"10842":{"this":{"__isSmartRef__":true,"id":3006}},"10843":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"10844":{"originalFunc":{"__isSmartRef__":true,"id":999}},"10845":{"varMapping":{"__isSmartRef__":true,"id":10846},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10847},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10848},"__LivelyClassName__":"lively.Closure"},"10846":{"this":{"__isSmartRef__":true,"id":3006}},"10847":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"10848":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"10849":{"varMapping":{"__isSmartRef__":true,"id":10850},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10851},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10852},"__LivelyClassName__":"lively.Closure"},"10850":{"this":{"__isSmartRef__":true,"id":3006}},"10851":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"10852":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"10853":{"varMapping":{"__isSmartRef__":true,"id":10854},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":10855},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10856},"__LivelyClassName__":"lively.Closure"},"10854":{"this":{"__isSmartRef__":true,"id":3006}},"10855":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"10856":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"10857":{"setDevStyle":{"__isSmartRef__":true,"id":10858},"setNormalStyle":{"__isSmartRef__":true,"id":10862},"tileSize":{"__isSmartRef__":true,"id":10866},"become":{"__isSmartRef__":true,"id":10870},"onMouseDown":{"__isSmartRef__":true,"id":10874},"setGridPosition":{"__isSmartRef__":true,"id":10882},"toolbox":{"__isSmartRef__":true,"id":10886},"distanceTo":{"__isSmartRef__":true,"id":10890},"tileWasDropped":{"__isSmartRef__":true,"id":10894},"isObstacle":{"__isSmartRef__":true,"id":10898},"neighboursInDirection":{"__isSmartRef__":true,"id":10902},"neighbours":{"__isSmartRef__":true,"id":10906},"zIndex":{"__isSmartRef__":true,"id":10910},"obstacles":{"__isSmartRef__":true,"id":10914},"addObstacle":{"__isSmartRef__":true,"id":10918},"removeObstacle":{"__isSmartRef__":true,"id":10922},"isTile":{"__isSmartRef__":true,"id":10926},"neighbourAt":{"__isSmartRef__":true,"id":10930},"map":{"__isSmartRef__":true,"id":10934},"game":{"__isSmartRef__":true,"id":10938},"reset":{"__isSmartRef__":true,"id":10942},"shallowCopy":{"__isSmartRef__":true,"id":10946},"characters":{"__isSmartRef__":true,"id":10950},"enterTile":{"__isSmartRef__":true,"id":10954},"leaveTile":{"__isSmartRef__":true,"id":10958},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":10962}},"10858":{"varMapping":{"__isSmartRef__":true,"id":10859},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":10860},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10861},"__LivelyClassName__":"lively.Closure"},"10859":{"this":{"__isSmartRef__":true,"id":2987}},"10860":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"10861":{"originalFunc":{"__isSmartRef__":true,"id":892}},"10862":{"varMapping":{"__isSmartRef__":true,"id":10863},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":10864},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10865},"__LivelyClassName__":"lively.Closure"},"10863":{"this":{"__isSmartRef__":true,"id":2987}},"10864":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"10865":{"originalFunc":{"__isSmartRef__":true,"id":911}},"10866":{"varMapping":{"__isSmartRef__":true,"id":10867},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":10868},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10869},"__LivelyClassName__":"lively.Closure"},"10867":{"this":{"__isSmartRef__":true,"id":2987}},"10868":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"10869":{"originalFunc":{"__isSmartRef__":true,"id":915}},"10870":{"varMapping":{"__isSmartRef__":true,"id":10871},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10872},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10873},"__LivelyClassName__":"lively.Closure"},"10871":{"this":{"__isSmartRef__":true,"id":2987}},"10872":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"10873":{"originalFunc":{"__isSmartRef__":true,"id":919}},"10874":{"varMapping":{"__isSmartRef__":true,"id":10875},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10880},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10881},"__LivelyClassName__":"lively.Closure"},"10875":{"this":{"__isSmartRef__":true,"id":2987},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10876}},"10876":{"$super":{"__isSmartRef__":true,"id":10877}},"10877":{"varMapping":{"__isSmartRef__":true,"id":10878},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10879},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10878":{"obj":{"__isSmartRef__":true,"id":2987},"name":"onMouseDown"},"10879":{},"10880":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"10881":{"originalFunc":{"__isSmartRef__":true,"id":923}},"10882":{"varMapping":{"__isSmartRef__":true,"id":10883},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":10884},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10885},"__LivelyClassName__":"lively.Closure"},"10883":{"this":{"__isSmartRef__":true,"id":2987}},"10884":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"10885":{"originalFunc":{"__isSmartRef__":true,"id":931}},"10886":{"varMapping":{"__isSmartRef__":true,"id":10887},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":10888},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10889},"__LivelyClassName__":"lively.Closure"},"10887":{"this":{"__isSmartRef__":true,"id":2987}},"10888":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"10889":{"originalFunc":{"__isSmartRef__":true,"id":935}},"10890":{"varMapping":{"__isSmartRef__":true,"id":10891},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":10892},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10893},"__LivelyClassName__":"lively.Closure"},"10891":{"this":{"__isSmartRef__":true,"id":2987}},"10892":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"10893":{"originalFunc":{"__isSmartRef__":true,"id":939}},"10894":{"varMapping":{"__isSmartRef__":true,"id":10895},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":10896},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10897},"__LivelyClassName__":"lively.Closure"},"10895":{"this":{"__isSmartRef__":true,"id":2987}},"10896":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"10897":{"originalFunc":{"__isSmartRef__":true,"id":943}},"10898":{"varMapping":{"__isSmartRef__":true,"id":10899},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":10900},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10901},"__LivelyClassName__":"lively.Closure"},"10899":{"this":{"__isSmartRef__":true,"id":2987}},"10900":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"10901":{"originalFunc":{"__isSmartRef__":true,"id":947}},"10902":{"varMapping":{"__isSmartRef__":true,"id":10903},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":10904},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10905},"__LivelyClassName__":"lively.Closure"},"10903":{"this":{"__isSmartRef__":true,"id":2987}},"10904":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"10905":{"originalFunc":{"__isSmartRef__":true,"id":951}},"10906":{"varMapping":{"__isSmartRef__":true,"id":10907},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":10908},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10909},"__LivelyClassName__":"lively.Closure"},"10907":{"this":{"__isSmartRef__":true,"id":2987}},"10908":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"10909":{"originalFunc":{"__isSmartRef__":true,"id":955}},"10910":{"varMapping":{"__isSmartRef__":true,"id":10911},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":10912},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10913},"__LivelyClassName__":"lively.Closure"},"10911":{"this":{"__isSmartRef__":true,"id":2987}},"10912":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"10913":{"originalFunc":{"__isSmartRef__":true,"id":959}},"10914":{"varMapping":{"__isSmartRef__":true,"id":10915},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":10916},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10917},"__LivelyClassName__":"lively.Closure"},"10915":{"this":{"__isSmartRef__":true,"id":2987}},"10916":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"10917":{"originalFunc":{"__isSmartRef__":true,"id":963}},"10918":{"varMapping":{"__isSmartRef__":true,"id":10919},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10920},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10921},"__LivelyClassName__":"lively.Closure"},"10919":{"this":{"__isSmartRef__":true,"id":2987}},"10920":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"10921":{"originalFunc":{"__isSmartRef__":true,"id":967}},"10922":{"varMapping":{"__isSmartRef__":true,"id":10923},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10924},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10925},"__LivelyClassName__":"lively.Closure"},"10923":{"this":{"__isSmartRef__":true,"id":2987}},"10924":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"10925":{"originalFunc":{"__isSmartRef__":true,"id":971}},"10926":{"varMapping":{"__isSmartRef__":true,"id":10927},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":10928},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10929},"__LivelyClassName__":"lively.Closure"},"10927":{"this":{"__isSmartRef__":true,"id":2987}},"10928":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"10929":{"originalFunc":{"__isSmartRef__":true,"id":975}},"10930":{"varMapping":{"__isSmartRef__":true,"id":10931},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":10932},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10933},"__LivelyClassName__":"lively.Closure"},"10931":{"this":{"__isSmartRef__":true,"id":2987}},"10932":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"10933":{"originalFunc":{"__isSmartRef__":true,"id":979}},"10934":{"varMapping":{"__isSmartRef__":true,"id":10935},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":10936},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10937},"__LivelyClassName__":"lively.Closure"},"10935":{"this":{"__isSmartRef__":true,"id":2987}},"10936":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"10937":{"originalFunc":{"__isSmartRef__":true,"id":983}},"10938":{"varMapping":{"__isSmartRef__":true,"id":10939},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":10940},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10941},"__LivelyClassName__":"lively.Closure"},"10939":{"this":{"__isSmartRef__":true,"id":2987}},"10940":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"10941":{"originalFunc":{"__isSmartRef__":true,"id":987}},"10942":{"varMapping":{"__isSmartRef__":true,"id":10943},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":10944},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10945},"__LivelyClassName__":"lively.Closure"},"10943":{"this":{"__isSmartRef__":true,"id":2987}},"10944":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"10945":{"originalFunc":{"__isSmartRef__":true,"id":991}},"10946":{"varMapping":{"__isSmartRef__":true,"id":10947},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":10948},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10949},"__LivelyClassName__":"lively.Closure"},"10947":{"this":{"__isSmartRef__":true,"id":2987}},"10948":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"10949":{"originalFunc":{"__isSmartRef__":true,"id":995}},"10950":{"varMapping":{"__isSmartRef__":true,"id":10951},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":10952},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10953},"__LivelyClassName__":"lively.Closure"},"10951":{"this":{"__isSmartRef__":true,"id":2987}},"10952":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"10953":{"originalFunc":{"__isSmartRef__":true,"id":999}},"10954":{"varMapping":{"__isSmartRef__":true,"id":10955},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10956},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10957},"__LivelyClassName__":"lively.Closure"},"10955":{"this":{"__isSmartRef__":true,"id":2987}},"10956":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"10957":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"10958":{"varMapping":{"__isSmartRef__":true,"id":10959},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10960},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10961},"__LivelyClassName__":"lively.Closure"},"10959":{"this":{"__isSmartRef__":true,"id":2987}},"10960":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"10961":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"10962":{"varMapping":{"__isSmartRef__":true,"id":10963},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":10964},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10965},"__LivelyClassName__":"lively.Closure"},"10963":{"this":{"__isSmartRef__":true,"id":2987}},"10964":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"10965":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"10966":{"setDevStyle":{"__isSmartRef__":true,"id":10967},"setNormalStyle":{"__isSmartRef__":true,"id":10971},"tileSize":{"__isSmartRef__":true,"id":10975},"become":{"__isSmartRef__":true,"id":10979},"onMouseDown":{"__isSmartRef__":true,"id":10983},"setGridPosition":{"__isSmartRef__":true,"id":10991},"toolbox":{"__isSmartRef__":true,"id":10995},"distanceTo":{"__isSmartRef__":true,"id":10999},"tileWasDropped":{"__isSmartRef__":true,"id":11003},"isObstacle":{"__isSmartRef__":true,"id":11007},"neighboursInDirection":{"__isSmartRef__":true,"id":11011},"neighbours":{"__isSmartRef__":true,"id":11015},"zIndex":{"__isSmartRef__":true,"id":11019},"obstacles":{"__isSmartRef__":true,"id":11023},"addObstacle":{"__isSmartRef__":true,"id":11027},"removeObstacle":{"__isSmartRef__":true,"id":11031},"isTile":{"__isSmartRef__":true,"id":11035},"neighbourAt":{"__isSmartRef__":true,"id":11039},"map":{"__isSmartRef__":true,"id":11043},"game":{"__isSmartRef__":true,"id":11047},"reset":{"__isSmartRef__":true,"id":11051},"shallowCopy":{"__isSmartRef__":true,"id":11055},"characters":{"__isSmartRef__":true,"id":11059},"enterTile":{"__isSmartRef__":true,"id":11063},"leaveTile":{"__isSmartRef__":true,"id":11067},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":11071}},"10967":{"varMapping":{"__isSmartRef__":true,"id":10968},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":10969},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10970},"__LivelyClassName__":"lively.Closure"},"10968":{"this":{"__isSmartRef__":true,"id":2968}},"10969":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"10970":{"originalFunc":{"__isSmartRef__":true,"id":892}},"10971":{"varMapping":{"__isSmartRef__":true,"id":10972},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":10973},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10974},"__LivelyClassName__":"lively.Closure"},"10972":{"this":{"__isSmartRef__":true,"id":2968}},"10973":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"10974":{"originalFunc":{"__isSmartRef__":true,"id":911}},"10975":{"varMapping":{"__isSmartRef__":true,"id":10976},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":10977},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10978},"__LivelyClassName__":"lively.Closure"},"10976":{"this":{"__isSmartRef__":true,"id":2968}},"10977":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"10978":{"originalFunc":{"__isSmartRef__":true,"id":915}},"10979":{"varMapping":{"__isSmartRef__":true,"id":10980},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10981},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10982},"__LivelyClassName__":"lively.Closure"},"10980":{"this":{"__isSmartRef__":true,"id":2968}},"10981":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"10982":{"originalFunc":{"__isSmartRef__":true,"id":919}},"10983":{"varMapping":{"__isSmartRef__":true,"id":10984},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10989},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10990},"__LivelyClassName__":"lively.Closure"},"10984":{"this":{"__isSmartRef__":true,"id":2968},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10985}},"10985":{"$super":{"__isSmartRef__":true,"id":10986}},"10986":{"varMapping":{"__isSmartRef__":true,"id":10987},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10988},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10987":{"obj":{"__isSmartRef__":true,"id":2968},"name":"onMouseDown"},"10988":{},"10989":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"10990":{"originalFunc":{"__isSmartRef__":true,"id":923}},"10991":{"varMapping":{"__isSmartRef__":true,"id":10992},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":10993},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10994},"__LivelyClassName__":"lively.Closure"},"10992":{"this":{"__isSmartRef__":true,"id":2968}},"10993":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"10994":{"originalFunc":{"__isSmartRef__":true,"id":931}},"10995":{"varMapping":{"__isSmartRef__":true,"id":10996},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":10997},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10998},"__LivelyClassName__":"lively.Closure"},"10996":{"this":{"__isSmartRef__":true,"id":2968}},"10997":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"10998":{"originalFunc":{"__isSmartRef__":true,"id":935}},"10999":{"varMapping":{"__isSmartRef__":true,"id":11000},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":11001},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11002},"__LivelyClassName__":"lively.Closure"},"11000":{"this":{"__isSmartRef__":true,"id":2968}},"11001":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"11002":{"originalFunc":{"__isSmartRef__":true,"id":939}},"11003":{"varMapping":{"__isSmartRef__":true,"id":11004},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":11005},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11006},"__LivelyClassName__":"lively.Closure"},"11004":{"this":{"__isSmartRef__":true,"id":2968}},"11005":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"11006":{"originalFunc":{"__isSmartRef__":true,"id":943}},"11007":{"varMapping":{"__isSmartRef__":true,"id":11008},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":11009},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11010},"__LivelyClassName__":"lively.Closure"},"11008":{"this":{"__isSmartRef__":true,"id":2968}},"11009":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"11010":{"originalFunc":{"__isSmartRef__":true,"id":947}},"11011":{"varMapping":{"__isSmartRef__":true,"id":11012},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":11013},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11014},"__LivelyClassName__":"lively.Closure"},"11012":{"this":{"__isSmartRef__":true,"id":2968}},"11013":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"11014":{"originalFunc":{"__isSmartRef__":true,"id":951}},"11015":{"varMapping":{"__isSmartRef__":true,"id":11016},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":11017},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11018},"__LivelyClassName__":"lively.Closure"},"11016":{"this":{"__isSmartRef__":true,"id":2968}},"11017":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"11018":{"originalFunc":{"__isSmartRef__":true,"id":955}},"11019":{"varMapping":{"__isSmartRef__":true,"id":11020},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":11021},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11022},"__LivelyClassName__":"lively.Closure"},"11020":{"this":{"__isSmartRef__":true,"id":2968}},"11021":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"11022":{"originalFunc":{"__isSmartRef__":true,"id":959}},"11023":{"varMapping":{"__isSmartRef__":true,"id":11024},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":11025},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11026},"__LivelyClassName__":"lively.Closure"},"11024":{"this":{"__isSmartRef__":true,"id":2968}},"11025":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"11026":{"originalFunc":{"__isSmartRef__":true,"id":963}},"11027":{"varMapping":{"__isSmartRef__":true,"id":11028},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11029},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11030},"__LivelyClassName__":"lively.Closure"},"11028":{"this":{"__isSmartRef__":true,"id":2968}},"11029":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"11030":{"originalFunc":{"__isSmartRef__":true,"id":967}},"11031":{"varMapping":{"__isSmartRef__":true,"id":11032},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11033},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11034},"__LivelyClassName__":"lively.Closure"},"11032":{"this":{"__isSmartRef__":true,"id":2968}},"11033":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"11034":{"originalFunc":{"__isSmartRef__":true,"id":971}},"11035":{"varMapping":{"__isSmartRef__":true,"id":11036},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":11037},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11038},"__LivelyClassName__":"lively.Closure"},"11036":{"this":{"__isSmartRef__":true,"id":2968}},"11037":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"11038":{"originalFunc":{"__isSmartRef__":true,"id":975}},"11039":{"varMapping":{"__isSmartRef__":true,"id":11040},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":11041},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11042},"__LivelyClassName__":"lively.Closure"},"11040":{"this":{"__isSmartRef__":true,"id":2968}},"11041":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"11042":{"originalFunc":{"__isSmartRef__":true,"id":979}},"11043":{"varMapping":{"__isSmartRef__":true,"id":11044},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":11045},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11046},"__LivelyClassName__":"lively.Closure"},"11044":{"this":{"__isSmartRef__":true,"id":2968}},"11045":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"11046":{"originalFunc":{"__isSmartRef__":true,"id":983}},"11047":{"varMapping":{"__isSmartRef__":true,"id":11048},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":11049},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11050},"__LivelyClassName__":"lively.Closure"},"11048":{"this":{"__isSmartRef__":true,"id":2968}},"11049":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"11050":{"originalFunc":{"__isSmartRef__":true,"id":987}},"11051":{"varMapping":{"__isSmartRef__":true,"id":11052},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":11053},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11054},"__LivelyClassName__":"lively.Closure"},"11052":{"this":{"__isSmartRef__":true,"id":2968}},"11053":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"11054":{"originalFunc":{"__isSmartRef__":true,"id":991}},"11055":{"varMapping":{"__isSmartRef__":true,"id":11056},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":11057},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11058},"__LivelyClassName__":"lively.Closure"},"11056":{"this":{"__isSmartRef__":true,"id":2968}},"11057":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"11058":{"originalFunc":{"__isSmartRef__":true,"id":995}},"11059":{"varMapping":{"__isSmartRef__":true,"id":11060},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":11061},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11062},"__LivelyClassName__":"lively.Closure"},"11060":{"this":{"__isSmartRef__":true,"id":2968}},"11061":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"11062":{"originalFunc":{"__isSmartRef__":true,"id":999}},"11063":{"varMapping":{"__isSmartRef__":true,"id":11064},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11065},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11066},"__LivelyClassName__":"lively.Closure"},"11064":{"this":{"__isSmartRef__":true,"id":2968}},"11065":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"11066":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"11067":{"varMapping":{"__isSmartRef__":true,"id":11068},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11069},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11070},"__LivelyClassName__":"lively.Closure"},"11068":{"this":{"__isSmartRef__":true,"id":2968}},"11069":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"11070":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"11071":{"varMapping":{"__isSmartRef__":true,"id":11072},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":11073},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11074},"__LivelyClassName__":"lively.Closure"},"11072":{"this":{"__isSmartRef__":true,"id":2968}},"11073":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"11074":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"11075":{"setDevStyle":{"__isSmartRef__":true,"id":11076},"setNormalStyle":{"__isSmartRef__":true,"id":11080},"tileSize":{"__isSmartRef__":true,"id":11084},"become":{"__isSmartRef__":true,"id":11088},"onMouseDown":{"__isSmartRef__":true,"id":11092},"setGridPosition":{"__isSmartRef__":true,"id":11100},"toolbox":{"__isSmartRef__":true,"id":11104},"distanceTo":{"__isSmartRef__":true,"id":11108},"tileWasDropped":{"__isSmartRef__":true,"id":11112},"isObstacle":{"__isSmartRef__":true,"id":11116},"neighboursInDirection":{"__isSmartRef__":true,"id":11120},"neighbours":{"__isSmartRef__":true,"id":11124},"zIndex":{"__isSmartRef__":true,"id":11128},"obstacles":{"__isSmartRef__":true,"id":11132},"addObstacle":{"__isSmartRef__":true,"id":11136},"removeObstacle":{"__isSmartRef__":true,"id":11140},"isTile":{"__isSmartRef__":true,"id":11144},"neighbourAt":{"__isSmartRef__":true,"id":11148},"map":{"__isSmartRef__":true,"id":11152},"game":{"__isSmartRef__":true,"id":11156},"reset":{"__isSmartRef__":true,"id":11160},"shallowCopy":{"__isSmartRef__":true,"id":11164},"characters":{"__isSmartRef__":true,"id":11168},"enterTile":{"__isSmartRef__":true,"id":11172},"leaveTile":{"__isSmartRef__":true,"id":11176},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":11180}},"11076":{"varMapping":{"__isSmartRef__":true,"id":11077},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":11078},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11079},"__LivelyClassName__":"lively.Closure"},"11077":{"this":{"__isSmartRef__":true,"id":2949}},"11078":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"11079":{"originalFunc":{"__isSmartRef__":true,"id":892}},"11080":{"varMapping":{"__isSmartRef__":true,"id":11081},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":11082},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11083},"__LivelyClassName__":"lively.Closure"},"11081":{"this":{"__isSmartRef__":true,"id":2949}},"11082":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"11083":{"originalFunc":{"__isSmartRef__":true,"id":911}},"11084":{"varMapping":{"__isSmartRef__":true,"id":11085},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":11086},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11087},"__LivelyClassName__":"lively.Closure"},"11085":{"this":{"__isSmartRef__":true,"id":2949}},"11086":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"11087":{"originalFunc":{"__isSmartRef__":true,"id":915}},"11088":{"varMapping":{"__isSmartRef__":true,"id":11089},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11090},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11091},"__LivelyClassName__":"lively.Closure"},"11089":{"this":{"__isSmartRef__":true,"id":2949}},"11090":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"11091":{"originalFunc":{"__isSmartRef__":true,"id":919}},"11092":{"varMapping":{"__isSmartRef__":true,"id":11093},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11098},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11099},"__LivelyClassName__":"lively.Closure"},"11093":{"this":{"__isSmartRef__":true,"id":2949},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11094}},"11094":{"$super":{"__isSmartRef__":true,"id":11095}},"11095":{"varMapping":{"__isSmartRef__":true,"id":11096},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11097},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11096":{"obj":{"__isSmartRef__":true,"id":2949},"name":"onMouseDown"},"11097":{},"11098":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"11099":{"originalFunc":{"__isSmartRef__":true,"id":923}},"11100":{"varMapping":{"__isSmartRef__":true,"id":11101},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":11102},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11103},"__LivelyClassName__":"lively.Closure"},"11101":{"this":{"__isSmartRef__":true,"id":2949}},"11102":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"11103":{"originalFunc":{"__isSmartRef__":true,"id":931}},"11104":{"varMapping":{"__isSmartRef__":true,"id":11105},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":11106},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11107},"__LivelyClassName__":"lively.Closure"},"11105":{"this":{"__isSmartRef__":true,"id":2949}},"11106":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"11107":{"originalFunc":{"__isSmartRef__":true,"id":935}},"11108":{"varMapping":{"__isSmartRef__":true,"id":11109},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":11110},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11111},"__LivelyClassName__":"lively.Closure"},"11109":{"this":{"__isSmartRef__":true,"id":2949}},"11110":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"11111":{"originalFunc":{"__isSmartRef__":true,"id":939}},"11112":{"varMapping":{"__isSmartRef__":true,"id":11113},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":11114},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11115},"__LivelyClassName__":"lively.Closure"},"11113":{"this":{"__isSmartRef__":true,"id":2949}},"11114":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"11115":{"originalFunc":{"__isSmartRef__":true,"id":943}},"11116":{"varMapping":{"__isSmartRef__":true,"id":11117},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":11118},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11119},"__LivelyClassName__":"lively.Closure"},"11117":{"this":{"__isSmartRef__":true,"id":2949}},"11118":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"11119":{"originalFunc":{"__isSmartRef__":true,"id":947}},"11120":{"varMapping":{"__isSmartRef__":true,"id":11121},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":11122},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11123},"__LivelyClassName__":"lively.Closure"},"11121":{"this":{"__isSmartRef__":true,"id":2949}},"11122":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"11123":{"originalFunc":{"__isSmartRef__":true,"id":951}},"11124":{"varMapping":{"__isSmartRef__":true,"id":11125},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":11126},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11127},"__LivelyClassName__":"lively.Closure"},"11125":{"this":{"__isSmartRef__":true,"id":2949}},"11126":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"11127":{"originalFunc":{"__isSmartRef__":true,"id":955}},"11128":{"varMapping":{"__isSmartRef__":true,"id":11129},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":11130},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11131},"__LivelyClassName__":"lively.Closure"},"11129":{"this":{"__isSmartRef__":true,"id":2949}},"11130":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"11131":{"originalFunc":{"__isSmartRef__":true,"id":959}},"11132":{"varMapping":{"__isSmartRef__":true,"id":11133},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":11134},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11135},"__LivelyClassName__":"lively.Closure"},"11133":{"this":{"__isSmartRef__":true,"id":2949}},"11134":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"11135":{"originalFunc":{"__isSmartRef__":true,"id":963}},"11136":{"varMapping":{"__isSmartRef__":true,"id":11137},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11138},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11139},"__LivelyClassName__":"lively.Closure"},"11137":{"this":{"__isSmartRef__":true,"id":2949}},"11138":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"11139":{"originalFunc":{"__isSmartRef__":true,"id":967}},"11140":{"varMapping":{"__isSmartRef__":true,"id":11141},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11142},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11143},"__LivelyClassName__":"lively.Closure"},"11141":{"this":{"__isSmartRef__":true,"id":2949}},"11142":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"11143":{"originalFunc":{"__isSmartRef__":true,"id":971}},"11144":{"varMapping":{"__isSmartRef__":true,"id":11145},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":11146},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11147},"__LivelyClassName__":"lively.Closure"},"11145":{"this":{"__isSmartRef__":true,"id":2949}},"11146":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"11147":{"originalFunc":{"__isSmartRef__":true,"id":975}},"11148":{"varMapping":{"__isSmartRef__":true,"id":11149},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":11150},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11151},"__LivelyClassName__":"lively.Closure"},"11149":{"this":{"__isSmartRef__":true,"id":2949}},"11150":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"11151":{"originalFunc":{"__isSmartRef__":true,"id":979}},"11152":{"varMapping":{"__isSmartRef__":true,"id":11153},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":11154},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11155},"__LivelyClassName__":"lively.Closure"},"11153":{"this":{"__isSmartRef__":true,"id":2949}},"11154":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"11155":{"originalFunc":{"__isSmartRef__":true,"id":983}},"11156":{"varMapping":{"__isSmartRef__":true,"id":11157},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":11158},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11159},"__LivelyClassName__":"lively.Closure"},"11157":{"this":{"__isSmartRef__":true,"id":2949}},"11158":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"11159":{"originalFunc":{"__isSmartRef__":true,"id":987}},"11160":{"varMapping":{"__isSmartRef__":true,"id":11161},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":11162},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11163},"__LivelyClassName__":"lively.Closure"},"11161":{"this":{"__isSmartRef__":true,"id":2949}},"11162":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"11163":{"originalFunc":{"__isSmartRef__":true,"id":991}},"11164":{"varMapping":{"__isSmartRef__":true,"id":11165},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":11166},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11167},"__LivelyClassName__":"lively.Closure"},"11165":{"this":{"__isSmartRef__":true,"id":2949}},"11166":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"11167":{"originalFunc":{"__isSmartRef__":true,"id":995}},"11168":{"varMapping":{"__isSmartRef__":true,"id":11169},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":11170},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11171},"__LivelyClassName__":"lively.Closure"},"11169":{"this":{"__isSmartRef__":true,"id":2949}},"11170":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"11171":{"originalFunc":{"__isSmartRef__":true,"id":999}},"11172":{"varMapping":{"__isSmartRef__":true,"id":11173},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11174},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11175},"__LivelyClassName__":"lively.Closure"},"11173":{"this":{"__isSmartRef__":true,"id":2949}},"11174":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"11175":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"11176":{"varMapping":{"__isSmartRef__":true,"id":11177},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11178},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11179},"__LivelyClassName__":"lively.Closure"},"11177":{"this":{"__isSmartRef__":true,"id":2949}},"11178":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"11179":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"11180":{"varMapping":{"__isSmartRef__":true,"id":11181},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":11182},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11183},"__LivelyClassName__":"lively.Closure"},"11181":{"this":{"__isSmartRef__":true,"id":2949}},"11182":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"11183":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"11184":{"setDevStyle":{"__isSmartRef__":true,"id":11185},"setNormalStyle":{"__isSmartRef__":true,"id":11189},"tileSize":{"__isSmartRef__":true,"id":11193},"become":{"__isSmartRef__":true,"id":11197},"onMouseDown":{"__isSmartRef__":true,"id":11201},"setGridPosition":{"__isSmartRef__":true,"id":11209},"toolbox":{"__isSmartRef__":true,"id":11213},"distanceTo":{"__isSmartRef__":true,"id":11217},"tileWasDropped":{"__isSmartRef__":true,"id":11221},"isObstacle":{"__isSmartRef__":true,"id":11225},"neighboursInDirection":{"__isSmartRef__":true,"id":11229},"neighbours":{"__isSmartRef__":true,"id":11233},"zIndex":{"__isSmartRef__":true,"id":11237},"obstacles":{"__isSmartRef__":true,"id":11241},"addObstacle":{"__isSmartRef__":true,"id":11245},"removeObstacle":{"__isSmartRef__":true,"id":11249},"isTile":{"__isSmartRef__":true,"id":11253},"neighbourAt":{"__isSmartRef__":true,"id":11257},"map":{"__isSmartRef__":true,"id":11261},"game":{"__isSmartRef__":true,"id":11265},"reset":{"__isSmartRef__":true,"id":11269},"shallowCopy":{"__isSmartRef__":true,"id":11273},"characters":{"__isSmartRef__":true,"id":11277},"enterTile":{"__isSmartRef__":true,"id":11281},"leaveTile":{"__isSmartRef__":true,"id":11285},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":11289}},"11185":{"varMapping":{"__isSmartRef__":true,"id":11186},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":11187},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11188},"__LivelyClassName__":"lively.Closure"},"11186":{"this":{"__isSmartRef__":true,"id":2909}},"11187":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"11188":{"originalFunc":{"__isSmartRef__":true,"id":892}},"11189":{"varMapping":{"__isSmartRef__":true,"id":11190},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":11191},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11192},"__LivelyClassName__":"lively.Closure"},"11190":{"this":{"__isSmartRef__":true,"id":2909}},"11191":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"11192":{"originalFunc":{"__isSmartRef__":true,"id":911}},"11193":{"varMapping":{"__isSmartRef__":true,"id":11194},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":11195},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11196},"__LivelyClassName__":"lively.Closure"},"11194":{"this":{"__isSmartRef__":true,"id":2909}},"11195":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"11196":{"originalFunc":{"__isSmartRef__":true,"id":915}},"11197":{"varMapping":{"__isSmartRef__":true,"id":11198},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11199},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11200},"__LivelyClassName__":"lively.Closure"},"11198":{"this":{"__isSmartRef__":true,"id":2909}},"11199":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"11200":{"originalFunc":{"__isSmartRef__":true,"id":919}},"11201":{"varMapping":{"__isSmartRef__":true,"id":11202},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11207},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11208},"__LivelyClassName__":"lively.Closure"},"11202":{"this":{"__isSmartRef__":true,"id":2909},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11203}},"11203":{"$super":{"__isSmartRef__":true,"id":11204}},"11204":{"varMapping":{"__isSmartRef__":true,"id":11205},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11206},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11205":{"obj":{"__isSmartRef__":true,"id":2909},"name":"onMouseDown"},"11206":{},"11207":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"11208":{"originalFunc":{"__isSmartRef__":true,"id":923}},"11209":{"varMapping":{"__isSmartRef__":true,"id":11210},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":11211},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11212},"__LivelyClassName__":"lively.Closure"},"11210":{"this":{"__isSmartRef__":true,"id":2909}},"11211":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"11212":{"originalFunc":{"__isSmartRef__":true,"id":931}},"11213":{"varMapping":{"__isSmartRef__":true,"id":11214},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":11215},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11216},"__LivelyClassName__":"lively.Closure"},"11214":{"this":{"__isSmartRef__":true,"id":2909}},"11215":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"11216":{"originalFunc":{"__isSmartRef__":true,"id":935}},"11217":{"varMapping":{"__isSmartRef__":true,"id":11218},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":11219},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11220},"__LivelyClassName__":"lively.Closure"},"11218":{"this":{"__isSmartRef__":true,"id":2909}},"11219":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"11220":{"originalFunc":{"__isSmartRef__":true,"id":939}},"11221":{"varMapping":{"__isSmartRef__":true,"id":11222},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":11223},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11224},"__LivelyClassName__":"lively.Closure"},"11222":{"this":{"__isSmartRef__":true,"id":2909}},"11223":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"11224":{"originalFunc":{"__isSmartRef__":true,"id":943}},"11225":{"varMapping":{"__isSmartRef__":true,"id":11226},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":11227},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11228},"__LivelyClassName__":"lively.Closure"},"11226":{"this":{"__isSmartRef__":true,"id":2909}},"11227":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"11228":{"originalFunc":{"__isSmartRef__":true,"id":947}},"11229":{"varMapping":{"__isSmartRef__":true,"id":11230},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":11231},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11232},"__LivelyClassName__":"lively.Closure"},"11230":{"this":{"__isSmartRef__":true,"id":2909}},"11231":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"11232":{"originalFunc":{"__isSmartRef__":true,"id":951}},"11233":{"varMapping":{"__isSmartRef__":true,"id":11234},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":11235},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11236},"__LivelyClassName__":"lively.Closure"},"11234":{"this":{"__isSmartRef__":true,"id":2909}},"11235":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"11236":{"originalFunc":{"__isSmartRef__":true,"id":955}},"11237":{"varMapping":{"__isSmartRef__":true,"id":11238},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":11239},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11240},"__LivelyClassName__":"lively.Closure"},"11238":{"this":{"__isSmartRef__":true,"id":2909}},"11239":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"11240":{"originalFunc":{"__isSmartRef__":true,"id":959}},"11241":{"varMapping":{"__isSmartRef__":true,"id":11242},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":11243},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11244},"__LivelyClassName__":"lively.Closure"},"11242":{"this":{"__isSmartRef__":true,"id":2909}},"11243":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"11244":{"originalFunc":{"__isSmartRef__":true,"id":963}},"11245":{"varMapping":{"__isSmartRef__":true,"id":11246},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11247},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11248},"__LivelyClassName__":"lively.Closure"},"11246":{"this":{"__isSmartRef__":true,"id":2909}},"11247":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"11248":{"originalFunc":{"__isSmartRef__":true,"id":967}},"11249":{"varMapping":{"__isSmartRef__":true,"id":11250},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11251},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11252},"__LivelyClassName__":"lively.Closure"},"11250":{"this":{"__isSmartRef__":true,"id":2909}},"11251":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"11252":{"originalFunc":{"__isSmartRef__":true,"id":971}},"11253":{"varMapping":{"__isSmartRef__":true,"id":11254},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":11255},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11256},"__LivelyClassName__":"lively.Closure"},"11254":{"this":{"__isSmartRef__":true,"id":2909}},"11255":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"11256":{"originalFunc":{"__isSmartRef__":true,"id":975}},"11257":{"varMapping":{"__isSmartRef__":true,"id":11258},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":11259},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11260},"__LivelyClassName__":"lively.Closure"},"11258":{"this":{"__isSmartRef__":true,"id":2909}},"11259":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"11260":{"originalFunc":{"__isSmartRef__":true,"id":979}},"11261":{"varMapping":{"__isSmartRef__":true,"id":11262},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":11263},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11264},"__LivelyClassName__":"lively.Closure"},"11262":{"this":{"__isSmartRef__":true,"id":2909}},"11263":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"11264":{"originalFunc":{"__isSmartRef__":true,"id":983}},"11265":{"varMapping":{"__isSmartRef__":true,"id":11266},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":11267},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11268},"__LivelyClassName__":"lively.Closure"},"11266":{"this":{"__isSmartRef__":true,"id":2909}},"11267":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"11268":{"originalFunc":{"__isSmartRef__":true,"id":987}},"11269":{"varMapping":{"__isSmartRef__":true,"id":11270},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":11271},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11272},"__LivelyClassName__":"lively.Closure"},"11270":{"this":{"__isSmartRef__":true,"id":2909}},"11271":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"11272":{"originalFunc":{"__isSmartRef__":true,"id":991}},"11273":{"varMapping":{"__isSmartRef__":true,"id":11274},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":11275},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11276},"__LivelyClassName__":"lively.Closure"},"11274":{"this":{"__isSmartRef__":true,"id":2909}},"11275":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"11276":{"originalFunc":{"__isSmartRef__":true,"id":995}},"11277":{"varMapping":{"__isSmartRef__":true,"id":11278},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":11279},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11280},"__LivelyClassName__":"lively.Closure"},"11278":{"this":{"__isSmartRef__":true,"id":2909}},"11279":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"11280":{"originalFunc":{"__isSmartRef__":true,"id":999}},"11281":{"varMapping":{"__isSmartRef__":true,"id":11282},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11283},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11284},"__LivelyClassName__":"lively.Closure"},"11282":{"this":{"__isSmartRef__":true,"id":2909}},"11283":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"11284":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"11285":{"varMapping":{"__isSmartRef__":true,"id":11286},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11287},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11288},"__LivelyClassName__":"lively.Closure"},"11286":{"this":{"__isSmartRef__":true,"id":2909}},"11287":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"11288":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"11289":{"varMapping":{"__isSmartRef__":true,"id":11290},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":11291},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11292},"__LivelyClassName__":"lively.Closure"},"11290":{"this":{"__isSmartRef__":true,"id":2909}},"11291":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"11292":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"11293":{"setDevStyle":{"__isSmartRef__":true,"id":11294},"setNormalStyle":{"__isSmartRef__":true,"id":11298},"tileSize":{"__isSmartRef__":true,"id":11302},"become":{"__isSmartRef__":true,"id":11306},"onMouseDown":{"__isSmartRef__":true,"id":11310},"setGridPosition":{"__isSmartRef__":true,"id":11318},"toolbox":{"__isSmartRef__":true,"id":11322},"distanceTo":{"__isSmartRef__":true,"id":11326},"tileWasDropped":{"__isSmartRef__":true,"id":11330},"isObstacle":{"__isSmartRef__":true,"id":11334},"neighboursInDirection":{"__isSmartRef__":true,"id":11338},"neighbours":{"__isSmartRef__":true,"id":11342},"zIndex":{"__isSmartRef__":true,"id":11346},"obstacles":{"__isSmartRef__":true,"id":11350},"addObstacle":{"__isSmartRef__":true,"id":11354},"removeObstacle":{"__isSmartRef__":true,"id":11358},"isTile":{"__isSmartRef__":true,"id":11362},"neighbourAt":{"__isSmartRef__":true,"id":11366},"map":{"__isSmartRef__":true,"id":11370},"game":{"__isSmartRef__":true,"id":11374},"reset":{"__isSmartRef__":true,"id":11378},"shallowCopy":{"__isSmartRef__":true,"id":11382},"characters":{"__isSmartRef__":true,"id":11386},"enterTile":{"__isSmartRef__":true,"id":11390},"leaveTile":{"__isSmartRef__":true,"id":11394},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":11398}},"11294":{"varMapping":{"__isSmartRef__":true,"id":11295},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":11296},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11297},"__LivelyClassName__":"lively.Closure"},"11295":{"this":{"__isSmartRef__":true,"id":2890}},"11296":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"11297":{"originalFunc":{"__isSmartRef__":true,"id":892}},"11298":{"varMapping":{"__isSmartRef__":true,"id":11299},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":11300},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11301},"__LivelyClassName__":"lively.Closure"},"11299":{"this":{"__isSmartRef__":true,"id":2890}},"11300":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"11301":{"originalFunc":{"__isSmartRef__":true,"id":911}},"11302":{"varMapping":{"__isSmartRef__":true,"id":11303},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":11304},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11305},"__LivelyClassName__":"lively.Closure"},"11303":{"this":{"__isSmartRef__":true,"id":2890}},"11304":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"11305":{"originalFunc":{"__isSmartRef__":true,"id":915}},"11306":{"varMapping":{"__isSmartRef__":true,"id":11307},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11308},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11309},"__LivelyClassName__":"lively.Closure"},"11307":{"this":{"__isSmartRef__":true,"id":2890}},"11308":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"11309":{"originalFunc":{"__isSmartRef__":true,"id":919}},"11310":{"varMapping":{"__isSmartRef__":true,"id":11311},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11316},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11317},"__LivelyClassName__":"lively.Closure"},"11311":{"this":{"__isSmartRef__":true,"id":2890},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11312}},"11312":{"$super":{"__isSmartRef__":true,"id":11313}},"11313":{"varMapping":{"__isSmartRef__":true,"id":11314},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11315},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11314":{"obj":{"__isSmartRef__":true,"id":2890},"name":"onMouseDown"},"11315":{},"11316":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"11317":{"originalFunc":{"__isSmartRef__":true,"id":923}},"11318":{"varMapping":{"__isSmartRef__":true,"id":11319},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":11320},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11321},"__LivelyClassName__":"lively.Closure"},"11319":{"this":{"__isSmartRef__":true,"id":2890}},"11320":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"11321":{"originalFunc":{"__isSmartRef__":true,"id":931}},"11322":{"varMapping":{"__isSmartRef__":true,"id":11323},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":11324},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11325},"__LivelyClassName__":"lively.Closure"},"11323":{"this":{"__isSmartRef__":true,"id":2890}},"11324":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"11325":{"originalFunc":{"__isSmartRef__":true,"id":935}},"11326":{"varMapping":{"__isSmartRef__":true,"id":11327},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":11328},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11329},"__LivelyClassName__":"lively.Closure"},"11327":{"this":{"__isSmartRef__":true,"id":2890}},"11328":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"11329":{"originalFunc":{"__isSmartRef__":true,"id":939}},"11330":{"varMapping":{"__isSmartRef__":true,"id":11331},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":11332},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11333},"__LivelyClassName__":"lively.Closure"},"11331":{"this":{"__isSmartRef__":true,"id":2890}},"11332":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"11333":{"originalFunc":{"__isSmartRef__":true,"id":943}},"11334":{"varMapping":{"__isSmartRef__":true,"id":11335},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":11336},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11337},"__LivelyClassName__":"lively.Closure"},"11335":{"this":{"__isSmartRef__":true,"id":2890}},"11336":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"11337":{"originalFunc":{"__isSmartRef__":true,"id":947}},"11338":{"varMapping":{"__isSmartRef__":true,"id":11339},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":11340},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11341},"__LivelyClassName__":"lively.Closure"},"11339":{"this":{"__isSmartRef__":true,"id":2890}},"11340":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"11341":{"originalFunc":{"__isSmartRef__":true,"id":951}},"11342":{"varMapping":{"__isSmartRef__":true,"id":11343},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":11344},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11345},"__LivelyClassName__":"lively.Closure"},"11343":{"this":{"__isSmartRef__":true,"id":2890}},"11344":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"11345":{"originalFunc":{"__isSmartRef__":true,"id":955}},"11346":{"varMapping":{"__isSmartRef__":true,"id":11347},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":11348},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11349},"__LivelyClassName__":"lively.Closure"},"11347":{"this":{"__isSmartRef__":true,"id":2890}},"11348":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"11349":{"originalFunc":{"__isSmartRef__":true,"id":959}},"11350":{"varMapping":{"__isSmartRef__":true,"id":11351},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":11352},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11353},"__LivelyClassName__":"lively.Closure"},"11351":{"this":{"__isSmartRef__":true,"id":2890}},"11352":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"11353":{"originalFunc":{"__isSmartRef__":true,"id":963}},"11354":{"varMapping":{"__isSmartRef__":true,"id":11355},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11356},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11357},"__LivelyClassName__":"lively.Closure"},"11355":{"this":{"__isSmartRef__":true,"id":2890}},"11356":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"11357":{"originalFunc":{"__isSmartRef__":true,"id":967}},"11358":{"varMapping":{"__isSmartRef__":true,"id":11359},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11360},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11361},"__LivelyClassName__":"lively.Closure"},"11359":{"this":{"__isSmartRef__":true,"id":2890}},"11360":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"11361":{"originalFunc":{"__isSmartRef__":true,"id":971}},"11362":{"varMapping":{"__isSmartRef__":true,"id":11363},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":11364},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11365},"__LivelyClassName__":"lively.Closure"},"11363":{"this":{"__isSmartRef__":true,"id":2890}},"11364":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"11365":{"originalFunc":{"__isSmartRef__":true,"id":975}},"11366":{"varMapping":{"__isSmartRef__":true,"id":11367},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":11368},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11369},"__LivelyClassName__":"lively.Closure"},"11367":{"this":{"__isSmartRef__":true,"id":2890}},"11368":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"11369":{"originalFunc":{"__isSmartRef__":true,"id":979}},"11370":{"varMapping":{"__isSmartRef__":true,"id":11371},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":11372},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11373},"__LivelyClassName__":"lively.Closure"},"11371":{"this":{"__isSmartRef__":true,"id":2890}},"11372":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"11373":{"originalFunc":{"__isSmartRef__":true,"id":983}},"11374":{"varMapping":{"__isSmartRef__":true,"id":11375},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":11376},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11377},"__LivelyClassName__":"lively.Closure"},"11375":{"this":{"__isSmartRef__":true,"id":2890}},"11376":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"11377":{"originalFunc":{"__isSmartRef__":true,"id":987}},"11378":{"varMapping":{"__isSmartRef__":true,"id":11379},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":11380},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11381},"__LivelyClassName__":"lively.Closure"},"11379":{"this":{"__isSmartRef__":true,"id":2890}},"11380":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"11381":{"originalFunc":{"__isSmartRef__":true,"id":991}},"11382":{"varMapping":{"__isSmartRef__":true,"id":11383},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":11384},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11385},"__LivelyClassName__":"lively.Closure"},"11383":{"this":{"__isSmartRef__":true,"id":2890}},"11384":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"11385":{"originalFunc":{"__isSmartRef__":true,"id":995}},"11386":{"varMapping":{"__isSmartRef__":true,"id":11387},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":11388},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11389},"__LivelyClassName__":"lively.Closure"},"11387":{"this":{"__isSmartRef__":true,"id":2890}},"11388":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"11389":{"originalFunc":{"__isSmartRef__":true,"id":999}},"11390":{"varMapping":{"__isSmartRef__":true,"id":11391},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11392},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11393},"__LivelyClassName__":"lively.Closure"},"11391":{"this":{"__isSmartRef__":true,"id":2890}},"11392":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"11393":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"11394":{"varMapping":{"__isSmartRef__":true,"id":11395},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11396},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11397},"__LivelyClassName__":"lively.Closure"},"11395":{"this":{"__isSmartRef__":true,"id":2890}},"11396":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"11397":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"11398":{"varMapping":{"__isSmartRef__":true,"id":11399},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":11400},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11401},"__LivelyClassName__":"lively.Closure"},"11399":{"this":{"__isSmartRef__":true,"id":2890}},"11400":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"11401":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"11402":{"setDevStyle":{"__isSmartRef__":true,"id":11403},"setNormalStyle":{"__isSmartRef__":true,"id":11407},"tileSize":{"__isSmartRef__":true,"id":11411},"become":{"__isSmartRef__":true,"id":11415},"onMouseDown":{"__isSmartRef__":true,"id":11419},"setGridPosition":{"__isSmartRef__":true,"id":11427},"toolbox":{"__isSmartRef__":true,"id":11431},"distanceTo":{"__isSmartRef__":true,"id":11435},"tileWasDropped":{"__isSmartRef__":true,"id":11439},"isObstacle":{"__isSmartRef__":true,"id":11443},"neighboursInDirection":{"__isSmartRef__":true,"id":11447},"neighbours":{"__isSmartRef__":true,"id":11451},"zIndex":{"__isSmartRef__":true,"id":11455},"obstacles":{"__isSmartRef__":true,"id":11459},"addObstacle":{"__isSmartRef__":true,"id":11463},"removeObstacle":{"__isSmartRef__":true,"id":11467},"isTile":{"__isSmartRef__":true,"id":11471},"neighbourAt":{"__isSmartRef__":true,"id":11475},"map":{"__isSmartRef__":true,"id":11479},"game":{"__isSmartRef__":true,"id":11483},"reset":{"__isSmartRef__":true,"id":11487},"shallowCopy":{"__isSmartRef__":true,"id":11491},"characters":{"__isSmartRef__":true,"id":11495},"enterTile":{"__isSmartRef__":true,"id":11499},"leaveTile":{"__isSmartRef__":true,"id":11503},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":11507}},"11403":{"varMapping":{"__isSmartRef__":true,"id":11404},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":11405},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11406},"__LivelyClassName__":"lively.Closure"},"11404":{"this":{"__isSmartRef__":true,"id":2833}},"11405":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"11406":{"originalFunc":{"__isSmartRef__":true,"id":892}},"11407":{"varMapping":{"__isSmartRef__":true,"id":11408},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":11409},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11410},"__LivelyClassName__":"lively.Closure"},"11408":{"this":{"__isSmartRef__":true,"id":2833}},"11409":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"11410":{"originalFunc":{"__isSmartRef__":true,"id":911}},"11411":{"varMapping":{"__isSmartRef__":true,"id":11412},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":11413},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11414},"__LivelyClassName__":"lively.Closure"},"11412":{"this":{"__isSmartRef__":true,"id":2833}},"11413":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"11414":{"originalFunc":{"__isSmartRef__":true,"id":915}},"11415":{"varMapping":{"__isSmartRef__":true,"id":11416},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11417},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11418},"__LivelyClassName__":"lively.Closure"},"11416":{"this":{"__isSmartRef__":true,"id":2833}},"11417":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"11418":{"originalFunc":{"__isSmartRef__":true,"id":919}},"11419":{"varMapping":{"__isSmartRef__":true,"id":11420},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11425},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11426},"__LivelyClassName__":"lively.Closure"},"11420":{"this":{"__isSmartRef__":true,"id":2833},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11421}},"11421":{"$super":{"__isSmartRef__":true,"id":11422}},"11422":{"varMapping":{"__isSmartRef__":true,"id":11423},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11424},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11423":{"obj":{"__isSmartRef__":true,"id":2833},"name":"onMouseDown"},"11424":{},"11425":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"11426":{"originalFunc":{"__isSmartRef__":true,"id":923}},"11427":{"varMapping":{"__isSmartRef__":true,"id":11428},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":11429},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11430},"__LivelyClassName__":"lively.Closure"},"11428":{"this":{"__isSmartRef__":true,"id":2833}},"11429":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"11430":{"originalFunc":{"__isSmartRef__":true,"id":931}},"11431":{"varMapping":{"__isSmartRef__":true,"id":11432},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":11433},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11434},"__LivelyClassName__":"lively.Closure"},"11432":{"this":{"__isSmartRef__":true,"id":2833}},"11433":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"11434":{"originalFunc":{"__isSmartRef__":true,"id":935}},"11435":{"varMapping":{"__isSmartRef__":true,"id":11436},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":11437},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11438},"__LivelyClassName__":"lively.Closure"},"11436":{"this":{"__isSmartRef__":true,"id":2833}},"11437":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"11438":{"originalFunc":{"__isSmartRef__":true,"id":939}},"11439":{"varMapping":{"__isSmartRef__":true,"id":11440},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":11441},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11442},"__LivelyClassName__":"lively.Closure"},"11440":{"this":{"__isSmartRef__":true,"id":2833}},"11441":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"11442":{"originalFunc":{"__isSmartRef__":true,"id":943}},"11443":{"varMapping":{"__isSmartRef__":true,"id":11444},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":11445},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11446},"__LivelyClassName__":"lively.Closure"},"11444":{"this":{"__isSmartRef__":true,"id":2833}},"11445":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"11446":{"originalFunc":{"__isSmartRef__":true,"id":947}},"11447":{"varMapping":{"__isSmartRef__":true,"id":11448},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":11449},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11450},"__LivelyClassName__":"lively.Closure"},"11448":{"this":{"__isSmartRef__":true,"id":2833}},"11449":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"11450":{"originalFunc":{"__isSmartRef__":true,"id":951}},"11451":{"varMapping":{"__isSmartRef__":true,"id":11452},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":11453},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11454},"__LivelyClassName__":"lively.Closure"},"11452":{"this":{"__isSmartRef__":true,"id":2833}},"11453":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"11454":{"originalFunc":{"__isSmartRef__":true,"id":955}},"11455":{"varMapping":{"__isSmartRef__":true,"id":11456},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":11457},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11458},"__LivelyClassName__":"lively.Closure"},"11456":{"this":{"__isSmartRef__":true,"id":2833}},"11457":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"11458":{"originalFunc":{"__isSmartRef__":true,"id":959}},"11459":{"varMapping":{"__isSmartRef__":true,"id":11460},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":11461},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11462},"__LivelyClassName__":"lively.Closure"},"11460":{"this":{"__isSmartRef__":true,"id":2833}},"11461":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"11462":{"originalFunc":{"__isSmartRef__":true,"id":963}},"11463":{"varMapping":{"__isSmartRef__":true,"id":11464},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11465},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11466},"__LivelyClassName__":"lively.Closure"},"11464":{"this":{"__isSmartRef__":true,"id":2833}},"11465":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"11466":{"originalFunc":{"__isSmartRef__":true,"id":967}},"11467":{"varMapping":{"__isSmartRef__":true,"id":11468},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11469},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11470},"__LivelyClassName__":"lively.Closure"},"11468":{"this":{"__isSmartRef__":true,"id":2833}},"11469":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"11470":{"originalFunc":{"__isSmartRef__":true,"id":971}},"11471":{"varMapping":{"__isSmartRef__":true,"id":11472},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":11473},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11474},"__LivelyClassName__":"lively.Closure"},"11472":{"this":{"__isSmartRef__":true,"id":2833}},"11473":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"11474":{"originalFunc":{"__isSmartRef__":true,"id":975}},"11475":{"varMapping":{"__isSmartRef__":true,"id":11476},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":11477},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11478},"__LivelyClassName__":"lively.Closure"},"11476":{"this":{"__isSmartRef__":true,"id":2833}},"11477":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"11478":{"originalFunc":{"__isSmartRef__":true,"id":979}},"11479":{"varMapping":{"__isSmartRef__":true,"id":11480},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":11481},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11482},"__LivelyClassName__":"lively.Closure"},"11480":{"this":{"__isSmartRef__":true,"id":2833}},"11481":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"11482":{"originalFunc":{"__isSmartRef__":true,"id":983}},"11483":{"varMapping":{"__isSmartRef__":true,"id":11484},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":11485},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11486},"__LivelyClassName__":"lively.Closure"},"11484":{"this":{"__isSmartRef__":true,"id":2833}},"11485":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"11486":{"originalFunc":{"__isSmartRef__":true,"id":987}},"11487":{"varMapping":{"__isSmartRef__":true,"id":11488},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":11489},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11490},"__LivelyClassName__":"lively.Closure"},"11488":{"this":{"__isSmartRef__":true,"id":2833}},"11489":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"11490":{"originalFunc":{"__isSmartRef__":true,"id":991}},"11491":{"varMapping":{"__isSmartRef__":true,"id":11492},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":11493},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11494},"__LivelyClassName__":"lively.Closure"},"11492":{"this":{"__isSmartRef__":true,"id":2833}},"11493":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"11494":{"originalFunc":{"__isSmartRef__":true,"id":995}},"11495":{"varMapping":{"__isSmartRef__":true,"id":11496},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":11497},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11498},"__LivelyClassName__":"lively.Closure"},"11496":{"this":{"__isSmartRef__":true,"id":2833}},"11497":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"11498":{"originalFunc":{"__isSmartRef__":true,"id":999}},"11499":{"varMapping":{"__isSmartRef__":true,"id":11500},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11501},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11502},"__LivelyClassName__":"lively.Closure"},"11500":{"this":{"__isSmartRef__":true,"id":2833}},"11501":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"11502":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"11503":{"varMapping":{"__isSmartRef__":true,"id":11504},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11505},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11506},"__LivelyClassName__":"lively.Closure"},"11504":{"this":{"__isSmartRef__":true,"id":2833}},"11505":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"11506":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"11507":{"varMapping":{"__isSmartRef__":true,"id":11508},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":11509},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11510},"__LivelyClassName__":"lively.Closure"},"11508":{"this":{"__isSmartRef__":true,"id":2833}},"11509":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"11510":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"11511":{"setDevStyle":{"__isSmartRef__":true,"id":11512},"setNormalStyle":{"__isSmartRef__":true,"id":11516},"tileSize":{"__isSmartRef__":true,"id":11520},"become":{"__isSmartRef__":true,"id":11524},"onMouseDown":{"__isSmartRef__":true,"id":11528},"setGridPosition":{"__isSmartRef__":true,"id":11536},"toolbox":{"__isSmartRef__":true,"id":11540},"distanceTo":{"__isSmartRef__":true,"id":11544},"tileWasDropped":{"__isSmartRef__":true,"id":11548},"isObstacle":{"__isSmartRef__":true,"id":11552},"neighboursInDirection":{"__isSmartRef__":true,"id":11556},"neighbours":{"__isSmartRef__":true,"id":11560},"zIndex":{"__isSmartRef__":true,"id":11564},"obstacles":{"__isSmartRef__":true,"id":11568},"addObstacle":{"__isSmartRef__":true,"id":11572},"removeObstacle":{"__isSmartRef__":true,"id":11576},"isTile":{"__isSmartRef__":true,"id":11580},"neighbourAt":{"__isSmartRef__":true,"id":11584},"map":{"__isSmartRef__":true,"id":11588},"game":{"__isSmartRef__":true,"id":11592},"reset":{"__isSmartRef__":true,"id":11596},"shallowCopy":{"__isSmartRef__":true,"id":11600},"characters":{"__isSmartRef__":true,"id":11604},"enterTile":{"__isSmartRef__":true,"id":11608},"leaveTile":{"__isSmartRef__":true,"id":11612},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":11616}},"11512":{"varMapping":{"__isSmartRef__":true,"id":11513},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":11514},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11515},"__LivelyClassName__":"lively.Closure"},"11513":{"this":{"__isSmartRef__":true,"id":2814}},"11514":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"11515":{"originalFunc":{"__isSmartRef__":true,"id":892}},"11516":{"varMapping":{"__isSmartRef__":true,"id":11517},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":11518},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11519},"__LivelyClassName__":"lively.Closure"},"11517":{"this":{"__isSmartRef__":true,"id":2814}},"11518":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"11519":{"originalFunc":{"__isSmartRef__":true,"id":911}},"11520":{"varMapping":{"__isSmartRef__":true,"id":11521},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":11522},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11523},"__LivelyClassName__":"lively.Closure"},"11521":{"this":{"__isSmartRef__":true,"id":2814}},"11522":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"11523":{"originalFunc":{"__isSmartRef__":true,"id":915}},"11524":{"varMapping":{"__isSmartRef__":true,"id":11525},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11526},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11527},"__LivelyClassName__":"lively.Closure"},"11525":{"this":{"__isSmartRef__":true,"id":2814}},"11526":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"11527":{"originalFunc":{"__isSmartRef__":true,"id":919}},"11528":{"varMapping":{"__isSmartRef__":true,"id":11529},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11534},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11535},"__LivelyClassName__":"lively.Closure"},"11529":{"this":{"__isSmartRef__":true,"id":2814},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11530}},"11530":{"$super":{"__isSmartRef__":true,"id":11531}},"11531":{"varMapping":{"__isSmartRef__":true,"id":11532},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11533},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11532":{"obj":{"__isSmartRef__":true,"id":2814},"name":"onMouseDown"},"11533":{},"11534":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"11535":{"originalFunc":{"__isSmartRef__":true,"id":923}},"11536":{"varMapping":{"__isSmartRef__":true,"id":11537},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":11538},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11539},"__LivelyClassName__":"lively.Closure"},"11537":{"this":{"__isSmartRef__":true,"id":2814}},"11538":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"11539":{"originalFunc":{"__isSmartRef__":true,"id":931}},"11540":{"varMapping":{"__isSmartRef__":true,"id":11541},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":11542},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11543},"__LivelyClassName__":"lively.Closure"},"11541":{"this":{"__isSmartRef__":true,"id":2814}},"11542":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"11543":{"originalFunc":{"__isSmartRef__":true,"id":935}},"11544":{"varMapping":{"__isSmartRef__":true,"id":11545},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":11546},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11547},"__LivelyClassName__":"lively.Closure"},"11545":{"this":{"__isSmartRef__":true,"id":2814}},"11546":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"11547":{"originalFunc":{"__isSmartRef__":true,"id":939}},"11548":{"varMapping":{"__isSmartRef__":true,"id":11549},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":11550},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11551},"__LivelyClassName__":"lively.Closure"},"11549":{"this":{"__isSmartRef__":true,"id":2814}},"11550":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"11551":{"originalFunc":{"__isSmartRef__":true,"id":943}},"11552":{"varMapping":{"__isSmartRef__":true,"id":11553},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":11554},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11555},"__LivelyClassName__":"lively.Closure"},"11553":{"this":{"__isSmartRef__":true,"id":2814}},"11554":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"11555":{"originalFunc":{"__isSmartRef__":true,"id":947}},"11556":{"varMapping":{"__isSmartRef__":true,"id":11557},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":11558},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11559},"__LivelyClassName__":"lively.Closure"},"11557":{"this":{"__isSmartRef__":true,"id":2814}},"11558":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"11559":{"originalFunc":{"__isSmartRef__":true,"id":951}},"11560":{"varMapping":{"__isSmartRef__":true,"id":11561},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":11562},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11563},"__LivelyClassName__":"lively.Closure"},"11561":{"this":{"__isSmartRef__":true,"id":2814}},"11562":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"11563":{"originalFunc":{"__isSmartRef__":true,"id":955}},"11564":{"varMapping":{"__isSmartRef__":true,"id":11565},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":11566},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11567},"__LivelyClassName__":"lively.Closure"},"11565":{"this":{"__isSmartRef__":true,"id":2814}},"11566":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"11567":{"originalFunc":{"__isSmartRef__":true,"id":959}},"11568":{"varMapping":{"__isSmartRef__":true,"id":11569},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":11570},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11571},"__LivelyClassName__":"lively.Closure"},"11569":{"this":{"__isSmartRef__":true,"id":2814}},"11570":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"11571":{"originalFunc":{"__isSmartRef__":true,"id":963}},"11572":{"varMapping":{"__isSmartRef__":true,"id":11573},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11574},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11575},"__LivelyClassName__":"lively.Closure"},"11573":{"this":{"__isSmartRef__":true,"id":2814}},"11574":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"11575":{"originalFunc":{"__isSmartRef__":true,"id":967}},"11576":{"varMapping":{"__isSmartRef__":true,"id":11577},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11578},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11579},"__LivelyClassName__":"lively.Closure"},"11577":{"this":{"__isSmartRef__":true,"id":2814}},"11578":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"11579":{"originalFunc":{"__isSmartRef__":true,"id":971}},"11580":{"varMapping":{"__isSmartRef__":true,"id":11581},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":11582},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11583},"__LivelyClassName__":"lively.Closure"},"11581":{"this":{"__isSmartRef__":true,"id":2814}},"11582":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"11583":{"originalFunc":{"__isSmartRef__":true,"id":975}},"11584":{"varMapping":{"__isSmartRef__":true,"id":11585},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":11586},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11587},"__LivelyClassName__":"lively.Closure"},"11585":{"this":{"__isSmartRef__":true,"id":2814}},"11586":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"11587":{"originalFunc":{"__isSmartRef__":true,"id":979}},"11588":{"varMapping":{"__isSmartRef__":true,"id":11589},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":11590},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11591},"__LivelyClassName__":"lively.Closure"},"11589":{"this":{"__isSmartRef__":true,"id":2814}},"11590":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"11591":{"originalFunc":{"__isSmartRef__":true,"id":983}},"11592":{"varMapping":{"__isSmartRef__":true,"id":11593},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":11594},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11595},"__LivelyClassName__":"lively.Closure"},"11593":{"this":{"__isSmartRef__":true,"id":2814}},"11594":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"11595":{"originalFunc":{"__isSmartRef__":true,"id":987}},"11596":{"varMapping":{"__isSmartRef__":true,"id":11597},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":11598},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11599},"__LivelyClassName__":"lively.Closure"},"11597":{"this":{"__isSmartRef__":true,"id":2814}},"11598":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"11599":{"originalFunc":{"__isSmartRef__":true,"id":991}},"11600":{"varMapping":{"__isSmartRef__":true,"id":11601},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":11602},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11603},"__LivelyClassName__":"lively.Closure"},"11601":{"this":{"__isSmartRef__":true,"id":2814}},"11602":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"11603":{"originalFunc":{"__isSmartRef__":true,"id":995}},"11604":{"varMapping":{"__isSmartRef__":true,"id":11605},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":11606},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11607},"__LivelyClassName__":"lively.Closure"},"11605":{"this":{"__isSmartRef__":true,"id":2814}},"11606":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"11607":{"originalFunc":{"__isSmartRef__":true,"id":999}},"11608":{"varMapping":{"__isSmartRef__":true,"id":11609},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11610},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11611},"__LivelyClassName__":"lively.Closure"},"11609":{"this":{"__isSmartRef__":true,"id":2814}},"11610":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"11611":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"11612":{"varMapping":{"__isSmartRef__":true,"id":11613},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11614},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11615},"__LivelyClassName__":"lively.Closure"},"11613":{"this":{"__isSmartRef__":true,"id":2814}},"11614":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"11615":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"11616":{"varMapping":{"__isSmartRef__":true,"id":11617},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":11618},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11619},"__LivelyClassName__":"lively.Closure"},"11617":{"this":{"__isSmartRef__":true,"id":2814}},"11618":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"11619":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"11620":{"setDevStyle":{"__isSmartRef__":true,"id":11621},"setNormalStyle":{"__isSmartRef__":true,"id":11625},"tileSize":{"__isSmartRef__":true,"id":11629},"become":{"__isSmartRef__":true,"id":11633},"onMouseDown":{"__isSmartRef__":true,"id":11637},"setGridPosition":{"__isSmartRef__":true,"id":11645},"toolbox":{"__isSmartRef__":true,"id":11649},"distanceTo":{"__isSmartRef__":true,"id":11653},"tileWasDropped":{"__isSmartRef__":true,"id":11657},"isObstacle":{"__isSmartRef__":true,"id":11661},"neighboursInDirection":{"__isSmartRef__":true,"id":11665},"neighbours":{"__isSmartRef__":true,"id":11669},"zIndex":{"__isSmartRef__":true,"id":11673},"obstacles":{"__isSmartRef__":true,"id":11677},"addObstacle":{"__isSmartRef__":true,"id":11681},"removeObstacle":{"__isSmartRef__":true,"id":11685},"isTile":{"__isSmartRef__":true,"id":11689},"neighbourAt":{"__isSmartRef__":true,"id":11693},"map":{"__isSmartRef__":true,"id":11697},"game":{"__isSmartRef__":true,"id":11701},"reset":{"__isSmartRef__":true,"id":11705},"shallowCopy":{"__isSmartRef__":true,"id":11709},"characters":{"__isSmartRef__":true,"id":11713},"enterTile":{"__isSmartRef__":true,"id":11717},"leaveTile":{"__isSmartRef__":true,"id":11721},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":11725}},"11621":{"varMapping":{"__isSmartRef__":true,"id":11622},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":11623},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11624},"__LivelyClassName__":"lively.Closure"},"11622":{"this":{"__isSmartRef__":true,"id":2795}},"11623":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"11624":{"originalFunc":{"__isSmartRef__":true,"id":892}},"11625":{"varMapping":{"__isSmartRef__":true,"id":11626},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":11627},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11628},"__LivelyClassName__":"lively.Closure"},"11626":{"this":{"__isSmartRef__":true,"id":2795}},"11627":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"11628":{"originalFunc":{"__isSmartRef__":true,"id":911}},"11629":{"varMapping":{"__isSmartRef__":true,"id":11630},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":11631},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11632},"__LivelyClassName__":"lively.Closure"},"11630":{"this":{"__isSmartRef__":true,"id":2795}},"11631":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"11632":{"originalFunc":{"__isSmartRef__":true,"id":915}},"11633":{"varMapping":{"__isSmartRef__":true,"id":11634},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11635},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11636},"__LivelyClassName__":"lively.Closure"},"11634":{"this":{"__isSmartRef__":true,"id":2795}},"11635":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"11636":{"originalFunc":{"__isSmartRef__":true,"id":919}},"11637":{"varMapping":{"__isSmartRef__":true,"id":11638},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11643},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11644},"__LivelyClassName__":"lively.Closure"},"11638":{"this":{"__isSmartRef__":true,"id":2795},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11639}},"11639":{"$super":{"__isSmartRef__":true,"id":11640}},"11640":{"varMapping":{"__isSmartRef__":true,"id":11641},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11642},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11641":{"obj":{"__isSmartRef__":true,"id":2795},"name":"onMouseDown"},"11642":{},"11643":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"11644":{"originalFunc":{"__isSmartRef__":true,"id":923}},"11645":{"varMapping":{"__isSmartRef__":true,"id":11646},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":11647},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11648},"__LivelyClassName__":"lively.Closure"},"11646":{"this":{"__isSmartRef__":true,"id":2795}},"11647":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"11648":{"originalFunc":{"__isSmartRef__":true,"id":931}},"11649":{"varMapping":{"__isSmartRef__":true,"id":11650},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":11651},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11652},"__LivelyClassName__":"lively.Closure"},"11650":{"this":{"__isSmartRef__":true,"id":2795}},"11651":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"11652":{"originalFunc":{"__isSmartRef__":true,"id":935}},"11653":{"varMapping":{"__isSmartRef__":true,"id":11654},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":11655},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11656},"__LivelyClassName__":"lively.Closure"},"11654":{"this":{"__isSmartRef__":true,"id":2795}},"11655":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"11656":{"originalFunc":{"__isSmartRef__":true,"id":939}},"11657":{"varMapping":{"__isSmartRef__":true,"id":11658},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":11659},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11660},"__LivelyClassName__":"lively.Closure"},"11658":{"this":{"__isSmartRef__":true,"id":2795}},"11659":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"11660":{"originalFunc":{"__isSmartRef__":true,"id":943}},"11661":{"varMapping":{"__isSmartRef__":true,"id":11662},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":11663},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11664},"__LivelyClassName__":"lively.Closure"},"11662":{"this":{"__isSmartRef__":true,"id":2795}},"11663":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"11664":{"originalFunc":{"__isSmartRef__":true,"id":947}},"11665":{"varMapping":{"__isSmartRef__":true,"id":11666},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":11667},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11668},"__LivelyClassName__":"lively.Closure"},"11666":{"this":{"__isSmartRef__":true,"id":2795}},"11667":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"11668":{"originalFunc":{"__isSmartRef__":true,"id":951}},"11669":{"varMapping":{"__isSmartRef__":true,"id":11670},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":11671},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11672},"__LivelyClassName__":"lively.Closure"},"11670":{"this":{"__isSmartRef__":true,"id":2795}},"11671":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"11672":{"originalFunc":{"__isSmartRef__":true,"id":955}},"11673":{"varMapping":{"__isSmartRef__":true,"id":11674},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":11675},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11676},"__LivelyClassName__":"lively.Closure"},"11674":{"this":{"__isSmartRef__":true,"id":2795}},"11675":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"11676":{"originalFunc":{"__isSmartRef__":true,"id":959}},"11677":{"varMapping":{"__isSmartRef__":true,"id":11678},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":11679},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11680},"__LivelyClassName__":"lively.Closure"},"11678":{"this":{"__isSmartRef__":true,"id":2795}},"11679":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"11680":{"originalFunc":{"__isSmartRef__":true,"id":963}},"11681":{"varMapping":{"__isSmartRef__":true,"id":11682},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11683},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11684},"__LivelyClassName__":"lively.Closure"},"11682":{"this":{"__isSmartRef__":true,"id":2795}},"11683":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"11684":{"originalFunc":{"__isSmartRef__":true,"id":967}},"11685":{"varMapping":{"__isSmartRef__":true,"id":11686},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11687},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11688},"__LivelyClassName__":"lively.Closure"},"11686":{"this":{"__isSmartRef__":true,"id":2795}},"11687":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"11688":{"originalFunc":{"__isSmartRef__":true,"id":971}},"11689":{"varMapping":{"__isSmartRef__":true,"id":11690},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":11691},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11692},"__LivelyClassName__":"lively.Closure"},"11690":{"this":{"__isSmartRef__":true,"id":2795}},"11691":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"11692":{"originalFunc":{"__isSmartRef__":true,"id":975}},"11693":{"varMapping":{"__isSmartRef__":true,"id":11694},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":11695},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11696},"__LivelyClassName__":"lively.Closure"},"11694":{"this":{"__isSmartRef__":true,"id":2795}},"11695":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"11696":{"originalFunc":{"__isSmartRef__":true,"id":979}},"11697":{"varMapping":{"__isSmartRef__":true,"id":11698},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":11699},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11700},"__LivelyClassName__":"lively.Closure"},"11698":{"this":{"__isSmartRef__":true,"id":2795}},"11699":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"11700":{"originalFunc":{"__isSmartRef__":true,"id":983}},"11701":{"varMapping":{"__isSmartRef__":true,"id":11702},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":11703},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11704},"__LivelyClassName__":"lively.Closure"},"11702":{"this":{"__isSmartRef__":true,"id":2795}},"11703":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"11704":{"originalFunc":{"__isSmartRef__":true,"id":987}},"11705":{"varMapping":{"__isSmartRef__":true,"id":11706},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":11707},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11708},"__LivelyClassName__":"lively.Closure"},"11706":{"this":{"__isSmartRef__":true,"id":2795}},"11707":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"11708":{"originalFunc":{"__isSmartRef__":true,"id":991}},"11709":{"varMapping":{"__isSmartRef__":true,"id":11710},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":11711},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11712},"__LivelyClassName__":"lively.Closure"},"11710":{"this":{"__isSmartRef__":true,"id":2795}},"11711":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"11712":{"originalFunc":{"__isSmartRef__":true,"id":995}},"11713":{"varMapping":{"__isSmartRef__":true,"id":11714},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":11715},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11716},"__LivelyClassName__":"lively.Closure"},"11714":{"this":{"__isSmartRef__":true,"id":2795}},"11715":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"11716":{"originalFunc":{"__isSmartRef__":true,"id":999}},"11717":{"varMapping":{"__isSmartRef__":true,"id":11718},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11719},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11720},"__LivelyClassName__":"lively.Closure"},"11718":{"this":{"__isSmartRef__":true,"id":2795}},"11719":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"11720":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"11721":{"varMapping":{"__isSmartRef__":true,"id":11722},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11723},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11724},"__LivelyClassName__":"lively.Closure"},"11722":{"this":{"__isSmartRef__":true,"id":2795}},"11723":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"11724":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"11725":{"varMapping":{"__isSmartRef__":true,"id":11726},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":11727},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11728},"__LivelyClassName__":"lively.Closure"},"11726":{"this":{"__isSmartRef__":true,"id":2795}},"11727":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"11728":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"11729":{"setDevStyle":{"__isSmartRef__":true,"id":11730},"setNormalStyle":{"__isSmartRef__":true,"id":11734},"tileSize":{"__isSmartRef__":true,"id":11738},"become":{"__isSmartRef__":true,"id":11742},"onMouseDown":{"__isSmartRef__":true,"id":11746},"setGridPosition":{"__isSmartRef__":true,"id":11754},"toolbox":{"__isSmartRef__":true,"id":11758},"distanceTo":{"__isSmartRef__":true,"id":11762},"tileWasDropped":{"__isSmartRef__":true,"id":11766},"isObstacle":{"__isSmartRef__":true,"id":11770},"neighboursInDirection":{"__isSmartRef__":true,"id":11774},"neighbours":{"__isSmartRef__":true,"id":11778},"zIndex":{"__isSmartRef__":true,"id":11782},"obstacles":{"__isSmartRef__":true,"id":11786},"addObstacle":{"__isSmartRef__":true,"id":11790},"removeObstacle":{"__isSmartRef__":true,"id":11794},"isTile":{"__isSmartRef__":true,"id":11798},"neighbourAt":{"__isSmartRef__":true,"id":11802},"map":{"__isSmartRef__":true,"id":11806},"game":{"__isSmartRef__":true,"id":11810},"reset":{"__isSmartRef__":true,"id":11814},"shallowCopy":{"__isSmartRef__":true,"id":11818},"characters":{"__isSmartRef__":true,"id":11822},"enterTile":{"__isSmartRef__":true,"id":11826},"leaveTile":{"__isSmartRef__":true,"id":11830},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":11834}},"11730":{"varMapping":{"__isSmartRef__":true,"id":11731},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":11732},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11733},"__LivelyClassName__":"lively.Closure"},"11731":{"this":{"__isSmartRef__":true,"id":2776}},"11732":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"11733":{"originalFunc":{"__isSmartRef__":true,"id":892}},"11734":{"varMapping":{"__isSmartRef__":true,"id":11735},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":11736},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11737},"__LivelyClassName__":"lively.Closure"},"11735":{"this":{"__isSmartRef__":true,"id":2776}},"11736":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"11737":{"originalFunc":{"__isSmartRef__":true,"id":911}},"11738":{"varMapping":{"__isSmartRef__":true,"id":11739},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":11740},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11741},"__LivelyClassName__":"lively.Closure"},"11739":{"this":{"__isSmartRef__":true,"id":2776}},"11740":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"11741":{"originalFunc":{"__isSmartRef__":true,"id":915}},"11742":{"varMapping":{"__isSmartRef__":true,"id":11743},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11744},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11745},"__LivelyClassName__":"lively.Closure"},"11743":{"this":{"__isSmartRef__":true,"id":2776}},"11744":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"11745":{"originalFunc":{"__isSmartRef__":true,"id":919}},"11746":{"varMapping":{"__isSmartRef__":true,"id":11747},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11752},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11753},"__LivelyClassName__":"lively.Closure"},"11747":{"this":{"__isSmartRef__":true,"id":2776},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11748}},"11748":{"$super":{"__isSmartRef__":true,"id":11749}},"11749":{"varMapping":{"__isSmartRef__":true,"id":11750},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11751},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11750":{"obj":{"__isSmartRef__":true,"id":2776},"name":"onMouseDown"},"11751":{},"11752":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"11753":{"originalFunc":{"__isSmartRef__":true,"id":923}},"11754":{"varMapping":{"__isSmartRef__":true,"id":11755},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":11756},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11757},"__LivelyClassName__":"lively.Closure"},"11755":{"this":{"__isSmartRef__":true,"id":2776}},"11756":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"11757":{"originalFunc":{"__isSmartRef__":true,"id":931}},"11758":{"varMapping":{"__isSmartRef__":true,"id":11759},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":11760},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11761},"__LivelyClassName__":"lively.Closure"},"11759":{"this":{"__isSmartRef__":true,"id":2776}},"11760":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"11761":{"originalFunc":{"__isSmartRef__":true,"id":935}},"11762":{"varMapping":{"__isSmartRef__":true,"id":11763},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":11764},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11765},"__LivelyClassName__":"lively.Closure"},"11763":{"this":{"__isSmartRef__":true,"id":2776}},"11764":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"11765":{"originalFunc":{"__isSmartRef__":true,"id":939}},"11766":{"varMapping":{"__isSmartRef__":true,"id":11767},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":11768},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11769},"__LivelyClassName__":"lively.Closure"},"11767":{"this":{"__isSmartRef__":true,"id":2776}},"11768":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"11769":{"originalFunc":{"__isSmartRef__":true,"id":943}},"11770":{"varMapping":{"__isSmartRef__":true,"id":11771},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":11772},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11773},"__LivelyClassName__":"lively.Closure"},"11771":{"this":{"__isSmartRef__":true,"id":2776}},"11772":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"11773":{"originalFunc":{"__isSmartRef__":true,"id":947}},"11774":{"varMapping":{"__isSmartRef__":true,"id":11775},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":11776},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11777},"__LivelyClassName__":"lively.Closure"},"11775":{"this":{"__isSmartRef__":true,"id":2776}},"11776":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"11777":{"originalFunc":{"__isSmartRef__":true,"id":951}},"11778":{"varMapping":{"__isSmartRef__":true,"id":11779},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":11780},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11781},"__LivelyClassName__":"lively.Closure"},"11779":{"this":{"__isSmartRef__":true,"id":2776}},"11780":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"11781":{"originalFunc":{"__isSmartRef__":true,"id":955}},"11782":{"varMapping":{"__isSmartRef__":true,"id":11783},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":11784},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11785},"__LivelyClassName__":"lively.Closure"},"11783":{"this":{"__isSmartRef__":true,"id":2776}},"11784":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"11785":{"originalFunc":{"__isSmartRef__":true,"id":959}},"11786":{"varMapping":{"__isSmartRef__":true,"id":11787},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":11788},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11789},"__LivelyClassName__":"lively.Closure"},"11787":{"this":{"__isSmartRef__":true,"id":2776}},"11788":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"11789":{"originalFunc":{"__isSmartRef__":true,"id":963}},"11790":{"varMapping":{"__isSmartRef__":true,"id":11791},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11792},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11793},"__LivelyClassName__":"lively.Closure"},"11791":{"this":{"__isSmartRef__":true,"id":2776}},"11792":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"11793":{"originalFunc":{"__isSmartRef__":true,"id":967}},"11794":{"varMapping":{"__isSmartRef__":true,"id":11795},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11796},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11797},"__LivelyClassName__":"lively.Closure"},"11795":{"this":{"__isSmartRef__":true,"id":2776}},"11796":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"11797":{"originalFunc":{"__isSmartRef__":true,"id":971}},"11798":{"varMapping":{"__isSmartRef__":true,"id":11799},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":11800},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11801},"__LivelyClassName__":"lively.Closure"},"11799":{"this":{"__isSmartRef__":true,"id":2776}},"11800":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"11801":{"originalFunc":{"__isSmartRef__":true,"id":975}},"11802":{"varMapping":{"__isSmartRef__":true,"id":11803},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":11804},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11805},"__LivelyClassName__":"lively.Closure"},"11803":{"this":{"__isSmartRef__":true,"id":2776}},"11804":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"11805":{"originalFunc":{"__isSmartRef__":true,"id":979}},"11806":{"varMapping":{"__isSmartRef__":true,"id":11807},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":11808},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11809},"__LivelyClassName__":"lively.Closure"},"11807":{"this":{"__isSmartRef__":true,"id":2776}},"11808":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"11809":{"originalFunc":{"__isSmartRef__":true,"id":983}},"11810":{"varMapping":{"__isSmartRef__":true,"id":11811},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":11812},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11813},"__LivelyClassName__":"lively.Closure"},"11811":{"this":{"__isSmartRef__":true,"id":2776}},"11812":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"11813":{"originalFunc":{"__isSmartRef__":true,"id":987}},"11814":{"varMapping":{"__isSmartRef__":true,"id":11815},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":11816},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11817},"__LivelyClassName__":"lively.Closure"},"11815":{"this":{"__isSmartRef__":true,"id":2776}},"11816":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"11817":{"originalFunc":{"__isSmartRef__":true,"id":991}},"11818":{"varMapping":{"__isSmartRef__":true,"id":11819},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":11820},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11821},"__LivelyClassName__":"lively.Closure"},"11819":{"this":{"__isSmartRef__":true,"id":2776}},"11820":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"11821":{"originalFunc":{"__isSmartRef__":true,"id":995}},"11822":{"varMapping":{"__isSmartRef__":true,"id":11823},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":11824},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11825},"__LivelyClassName__":"lively.Closure"},"11823":{"this":{"__isSmartRef__":true,"id":2776}},"11824":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"11825":{"originalFunc":{"__isSmartRef__":true,"id":999}},"11826":{"varMapping":{"__isSmartRef__":true,"id":11827},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11828},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11829},"__LivelyClassName__":"lively.Closure"},"11827":{"this":{"__isSmartRef__":true,"id":2776}},"11828":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"11829":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"11830":{"varMapping":{"__isSmartRef__":true,"id":11831},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11832},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11833},"__LivelyClassName__":"lively.Closure"},"11831":{"this":{"__isSmartRef__":true,"id":2776}},"11832":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"11833":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"11834":{"varMapping":{"__isSmartRef__":true,"id":11835},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":11836},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11837},"__LivelyClassName__":"lively.Closure"},"11835":{"this":{"__isSmartRef__":true,"id":2776}},"11836":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"11837":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"11838":{"submorphs":[{"__isSmartRef__":true,"id":11839}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11849},"renderContextTable":{"__isSmartRef__":true,"id":11854},"eventHandler":{"__isSmartRef__":true,"id":11855},"_ClipMode":"visible","derivationIds":[],"id":"6E752895-3C9E-456F-9AC0-F4B53961CA60","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11856},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":4,"column":6,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":11839},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":2340}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11857},"__LivelyClassName__":"lively.morphic.Box"},"11839":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11840},"renderContextTable":{"__isSmartRef__":true,"id":11845},"eventHandler":{"__isSmartRef__":true,"id":11846},"_ClipMode":"visible","derivationIds":[],"id":"F50A7154-FB0F-4D31-8904-E633019D667D","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11847},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":11838},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11848},"__LivelyClassName__":"lively.morphic.Image"},"11840":{"_Position":{"__isSmartRef__":true,"id":11841},"renderContextTable":{"__isSmartRef__":true,"id":11842},"_Extent":{"__isSmartRef__":true,"id":11843},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":11844},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"11841":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"11842":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"11843":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"11844":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"11845":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"11846":{"morph":{"__isSmartRef__":true,"id":11839},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"11847":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"11848":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"11849":{"_Position":{"__isSmartRef__":true,"id":11850},"renderContextTable":{"__isSmartRef__":true,"id":11851},"_Extent":{"__isSmartRef__":true,"id":11852},"_Padding":{"__isSmartRef__":true,"id":11853},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"11850":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"11851":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"11852":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"11853":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"11854":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"11855":{"morph":{"__isSmartRef__":true,"id":11838},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"11856":{"x":288,"y":192,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"11857":{"setDevStyle":{"__isSmartRef__":true,"id":11858},"setNormalStyle":{"__isSmartRef__":true,"id":11862},"tileSize":{"__isSmartRef__":true,"id":11866},"become":{"__isSmartRef__":true,"id":11870},"onMouseDown":{"__isSmartRef__":true,"id":11874},"setGridPosition":{"__isSmartRef__":true,"id":11882},"toolbox":{"__isSmartRef__":true,"id":11886},"distanceTo":{"__isSmartRef__":true,"id":11890},"tileWasDropped":{"__isSmartRef__":true,"id":11894},"isObstacle":{"__isSmartRef__":true,"id":11898},"neighboursInDirection":{"__isSmartRef__":true,"id":11902},"neighbours":{"__isSmartRef__":true,"id":11906},"zIndex":{"__isSmartRef__":true,"id":11910},"obstacles":{"__isSmartRef__":true,"id":11914},"addObstacle":{"__isSmartRef__":true,"id":11918},"removeObstacle":{"__isSmartRef__":true,"id":11922},"isTile":{"__isSmartRef__":true,"id":11926},"neighbourAt":{"__isSmartRef__":true,"id":11930},"map":{"__isSmartRef__":true,"id":11934},"game":{"__isSmartRef__":true,"id":11938},"reset":{"__isSmartRef__":true,"id":11942},"shallowCopy":{"__isSmartRef__":true,"id":11946},"characters":{"__isSmartRef__":true,"id":11950},"enterTile":{"__isSmartRef__":true,"id":11954},"leaveTile":{"__isSmartRef__":true,"id":11958},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":11962}},"11858":{"varMapping":{"__isSmartRef__":true,"id":11859},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":11860},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11861},"__LivelyClassName__":"lively.Closure"},"11859":{"this":{"__isSmartRef__":true,"id":11838}},"11860":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"11861":{"originalFunc":{"__isSmartRef__":true,"id":892}},"11862":{"varMapping":{"__isSmartRef__":true,"id":11863},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":11864},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11865},"__LivelyClassName__":"lively.Closure"},"11863":{"this":{"__isSmartRef__":true,"id":11838}},"11864":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"11865":{"originalFunc":{"__isSmartRef__":true,"id":911}},"11866":{"varMapping":{"__isSmartRef__":true,"id":11867},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":11868},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11869},"__LivelyClassName__":"lively.Closure"},"11867":{"this":{"__isSmartRef__":true,"id":11838}},"11868":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"11869":{"originalFunc":{"__isSmartRef__":true,"id":915}},"11870":{"varMapping":{"__isSmartRef__":true,"id":11871},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11872},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11873},"__LivelyClassName__":"lively.Closure"},"11871":{"this":{"__isSmartRef__":true,"id":11838}},"11872":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"11873":{"originalFunc":{"__isSmartRef__":true,"id":919}},"11874":{"varMapping":{"__isSmartRef__":true,"id":11875},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11880},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11881},"__LivelyClassName__":"lively.Closure"},"11875":{"this":{"__isSmartRef__":true,"id":11838},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11876}},"11876":{"$super":{"__isSmartRef__":true,"id":11877}},"11877":{"varMapping":{"__isSmartRef__":true,"id":11878},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11879},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11878":{"obj":{"__isSmartRef__":true,"id":11838},"name":"onMouseDown"},"11879":{},"11880":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"11881":{"originalFunc":{"__isSmartRef__":true,"id":923}},"11882":{"varMapping":{"__isSmartRef__":true,"id":11883},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":11884},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11885},"__LivelyClassName__":"lively.Closure"},"11883":{"this":{"__isSmartRef__":true,"id":11838}},"11884":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"11885":{"originalFunc":{"__isSmartRef__":true,"id":931}},"11886":{"varMapping":{"__isSmartRef__":true,"id":11887},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":11888},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11889},"__LivelyClassName__":"lively.Closure"},"11887":{"this":{"__isSmartRef__":true,"id":11838}},"11888":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"11889":{"originalFunc":{"__isSmartRef__":true,"id":935}},"11890":{"varMapping":{"__isSmartRef__":true,"id":11891},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":11892},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11893},"__LivelyClassName__":"lively.Closure"},"11891":{"this":{"__isSmartRef__":true,"id":11838}},"11892":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"11893":{"originalFunc":{"__isSmartRef__":true,"id":939}},"11894":{"varMapping":{"__isSmartRef__":true,"id":11895},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":11896},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11897},"__LivelyClassName__":"lively.Closure"},"11895":{"this":{"__isSmartRef__":true,"id":11838}},"11896":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"11897":{"originalFunc":{"__isSmartRef__":true,"id":943}},"11898":{"varMapping":{"__isSmartRef__":true,"id":11899},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":11900},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11901},"__LivelyClassName__":"lively.Closure"},"11899":{"this":{"__isSmartRef__":true,"id":11838}},"11900":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"11901":{"originalFunc":{"__isSmartRef__":true,"id":947}},"11902":{"varMapping":{"__isSmartRef__":true,"id":11903},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":11904},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11905},"__LivelyClassName__":"lively.Closure"},"11903":{"this":{"__isSmartRef__":true,"id":11838}},"11904":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"11905":{"originalFunc":{"__isSmartRef__":true,"id":951}},"11906":{"varMapping":{"__isSmartRef__":true,"id":11907},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":11908},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11909},"__LivelyClassName__":"lively.Closure"},"11907":{"this":{"__isSmartRef__":true,"id":11838}},"11908":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"11909":{"originalFunc":{"__isSmartRef__":true,"id":955}},"11910":{"varMapping":{"__isSmartRef__":true,"id":11911},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":11912},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11913},"__LivelyClassName__":"lively.Closure"},"11911":{"this":{"__isSmartRef__":true,"id":11838}},"11912":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"11913":{"originalFunc":{"__isSmartRef__":true,"id":959}},"11914":{"varMapping":{"__isSmartRef__":true,"id":11915},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":11916},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11917},"__LivelyClassName__":"lively.Closure"},"11915":{"this":{"__isSmartRef__":true,"id":11838}},"11916":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"11917":{"originalFunc":{"__isSmartRef__":true,"id":963}},"11918":{"varMapping":{"__isSmartRef__":true,"id":11919},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11920},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11921},"__LivelyClassName__":"lively.Closure"},"11919":{"this":{"__isSmartRef__":true,"id":11838}},"11920":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"11921":{"originalFunc":{"__isSmartRef__":true,"id":967}},"11922":{"varMapping":{"__isSmartRef__":true,"id":11923},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11924},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11925},"__LivelyClassName__":"lively.Closure"},"11923":{"this":{"__isSmartRef__":true,"id":11838}},"11924":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"11925":{"originalFunc":{"__isSmartRef__":true,"id":971}},"11926":{"varMapping":{"__isSmartRef__":true,"id":11927},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":11928},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11929},"__LivelyClassName__":"lively.Closure"},"11927":{"this":{"__isSmartRef__":true,"id":11838}},"11928":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"11929":{"originalFunc":{"__isSmartRef__":true,"id":975}},"11930":{"varMapping":{"__isSmartRef__":true,"id":11931},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":11932},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11933},"__LivelyClassName__":"lively.Closure"},"11931":{"this":{"__isSmartRef__":true,"id":11838}},"11932":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"11933":{"originalFunc":{"__isSmartRef__":true,"id":979}},"11934":{"varMapping":{"__isSmartRef__":true,"id":11935},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":11936},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11937},"__LivelyClassName__":"lively.Closure"},"11935":{"this":{"__isSmartRef__":true,"id":11838}},"11936":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"11937":{"originalFunc":{"__isSmartRef__":true,"id":983}},"11938":{"varMapping":{"__isSmartRef__":true,"id":11939},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":11940},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11941},"__LivelyClassName__":"lively.Closure"},"11939":{"this":{"__isSmartRef__":true,"id":11838}},"11940":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"11941":{"originalFunc":{"__isSmartRef__":true,"id":987}},"11942":{"varMapping":{"__isSmartRef__":true,"id":11943},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":11944},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11945},"__LivelyClassName__":"lively.Closure"},"11943":{"this":{"__isSmartRef__":true,"id":11838}},"11944":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"11945":{"originalFunc":{"__isSmartRef__":true,"id":991}},"11946":{"varMapping":{"__isSmartRef__":true,"id":11947},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":11948},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11949},"__LivelyClassName__":"lively.Closure"},"11947":{"this":{"__isSmartRef__":true,"id":11838}},"11948":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"11949":{"originalFunc":{"__isSmartRef__":true,"id":995}},"11950":{"varMapping":{"__isSmartRef__":true,"id":11951},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":11952},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11953},"__LivelyClassName__":"lively.Closure"},"11951":{"this":{"__isSmartRef__":true,"id":11838}},"11952":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"11953":{"originalFunc":{"__isSmartRef__":true,"id":999}},"11954":{"varMapping":{"__isSmartRef__":true,"id":11955},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11956},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11957},"__LivelyClassName__":"lively.Closure"},"11955":{"this":{"__isSmartRef__":true,"id":11838}},"11956":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"11957":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"11958":{"varMapping":{"__isSmartRef__":true,"id":11959},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11960},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11961},"__LivelyClassName__":"lively.Closure"},"11959":{"this":{"__isSmartRef__":true,"id":11838}},"11960":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"11961":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"11962":{"varMapping":{"__isSmartRef__":true,"id":11963},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":11964},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11965},"__LivelyClassName__":"lively.Closure"},"11963":{"this":{"__isSmartRef__":true,"id":11838}},"11964":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"11965":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"11966":{"submorphs":[{"__isSmartRef__":true,"id":11967}],"scripts":[],"shape":{"__isSmartRef__":true,"id":11977},"renderContextTable":{"__isSmartRef__":true,"id":11982},"eventHandler":{"__isSmartRef__":true,"id":11983},"_ClipMode":"visible","derivationIds":[],"id":"32187CD8-A159-4B3F-B39B-3410A3B9A10F","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11984},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":5,"column":6,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":11967},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":2340}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11985},"__LivelyClassName__":"lively.morphic.Box"},"11967":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":11968},"renderContextTable":{"__isSmartRef__":true,"id":11973},"eventHandler":{"__isSmartRef__":true,"id":11974},"_ClipMode":"visible","derivationIds":[],"id":"7623B28C-7C4A-4B0D-826D-BE11F44C173E","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":11975},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":11966},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11976},"__LivelyClassName__":"lively.morphic.Image"},"11968":{"_Position":{"__isSmartRef__":true,"id":11969},"renderContextTable":{"__isSmartRef__":true,"id":11970},"_Extent":{"__isSmartRef__":true,"id":11971},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":11972},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"11969":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"11970":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"11971":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"11972":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"11973":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"11974":{"morph":{"__isSmartRef__":true,"id":11967},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"11975":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"11976":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"11977":{"_Position":{"__isSmartRef__":true,"id":11978},"renderContextTable":{"__isSmartRef__":true,"id":11979},"_Extent":{"__isSmartRef__":true,"id":11980},"_Padding":{"__isSmartRef__":true,"id":11981},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"11978":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"11979":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"11980":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"11981":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"11982":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"11983":{"morph":{"__isSmartRef__":true,"id":11966},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"11984":{"x":288,"y":240,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"11985":{"setDevStyle":{"__isSmartRef__":true,"id":11986},"setNormalStyle":{"__isSmartRef__":true,"id":11990},"tileSize":{"__isSmartRef__":true,"id":11994},"become":{"__isSmartRef__":true,"id":11998},"onMouseDown":{"__isSmartRef__":true,"id":12002},"setGridPosition":{"__isSmartRef__":true,"id":12010},"toolbox":{"__isSmartRef__":true,"id":12014},"distanceTo":{"__isSmartRef__":true,"id":12018},"tileWasDropped":{"__isSmartRef__":true,"id":12022},"isObstacle":{"__isSmartRef__":true,"id":12026},"neighboursInDirection":{"__isSmartRef__":true,"id":12030},"neighbours":{"__isSmartRef__":true,"id":12034},"zIndex":{"__isSmartRef__":true,"id":12038},"obstacles":{"__isSmartRef__":true,"id":12042},"addObstacle":{"__isSmartRef__":true,"id":12046},"removeObstacle":{"__isSmartRef__":true,"id":12050},"isTile":{"__isSmartRef__":true,"id":12054},"neighbourAt":{"__isSmartRef__":true,"id":12058},"map":{"__isSmartRef__":true,"id":12062},"game":{"__isSmartRef__":true,"id":12066},"reset":{"__isSmartRef__":true,"id":12070},"shallowCopy":{"__isSmartRef__":true,"id":12074},"characters":{"__isSmartRef__":true,"id":12078},"enterTile":{"__isSmartRef__":true,"id":12082},"leaveTile":{"__isSmartRef__":true,"id":12086},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":12090}},"11986":{"varMapping":{"__isSmartRef__":true,"id":11987},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":11988},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11989},"__LivelyClassName__":"lively.Closure"},"11987":{"this":{"__isSmartRef__":true,"id":11966}},"11988":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"11989":{"originalFunc":{"__isSmartRef__":true,"id":892}},"11990":{"varMapping":{"__isSmartRef__":true,"id":11991},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":11992},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11993},"__LivelyClassName__":"lively.Closure"},"11991":{"this":{"__isSmartRef__":true,"id":11966}},"11992":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"11993":{"originalFunc":{"__isSmartRef__":true,"id":911}},"11994":{"varMapping":{"__isSmartRef__":true,"id":11995},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":11996},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11997},"__LivelyClassName__":"lively.Closure"},"11995":{"this":{"__isSmartRef__":true,"id":11966}},"11996":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"11997":{"originalFunc":{"__isSmartRef__":true,"id":915}},"11998":{"varMapping":{"__isSmartRef__":true,"id":11999},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12000},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12001},"__LivelyClassName__":"lively.Closure"},"11999":{"this":{"__isSmartRef__":true,"id":11966}},"12000":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"12001":{"originalFunc":{"__isSmartRef__":true,"id":919}},"12002":{"varMapping":{"__isSmartRef__":true,"id":12003},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12008},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12009},"__LivelyClassName__":"lively.Closure"},"12003":{"this":{"__isSmartRef__":true,"id":11966},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12004}},"12004":{"$super":{"__isSmartRef__":true,"id":12005}},"12005":{"varMapping":{"__isSmartRef__":true,"id":12006},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12007},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12006":{"obj":{"__isSmartRef__":true,"id":11966},"name":"onMouseDown"},"12007":{},"12008":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"12009":{"originalFunc":{"__isSmartRef__":true,"id":923}},"12010":{"varMapping":{"__isSmartRef__":true,"id":12011},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":12012},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12013},"__LivelyClassName__":"lively.Closure"},"12011":{"this":{"__isSmartRef__":true,"id":11966}},"12012":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"12013":{"originalFunc":{"__isSmartRef__":true,"id":931}},"12014":{"varMapping":{"__isSmartRef__":true,"id":12015},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":12016},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12017},"__LivelyClassName__":"lively.Closure"},"12015":{"this":{"__isSmartRef__":true,"id":11966}},"12016":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"12017":{"originalFunc":{"__isSmartRef__":true,"id":935}},"12018":{"varMapping":{"__isSmartRef__":true,"id":12019},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":12020},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12021},"__LivelyClassName__":"lively.Closure"},"12019":{"this":{"__isSmartRef__":true,"id":11966}},"12020":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"12021":{"originalFunc":{"__isSmartRef__":true,"id":939}},"12022":{"varMapping":{"__isSmartRef__":true,"id":12023},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":12024},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12025},"__LivelyClassName__":"lively.Closure"},"12023":{"this":{"__isSmartRef__":true,"id":11966}},"12024":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"12025":{"originalFunc":{"__isSmartRef__":true,"id":943}},"12026":{"varMapping":{"__isSmartRef__":true,"id":12027},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":12028},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12029},"__LivelyClassName__":"lively.Closure"},"12027":{"this":{"__isSmartRef__":true,"id":11966}},"12028":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"12029":{"originalFunc":{"__isSmartRef__":true,"id":947}},"12030":{"varMapping":{"__isSmartRef__":true,"id":12031},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":12032},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12033},"__LivelyClassName__":"lively.Closure"},"12031":{"this":{"__isSmartRef__":true,"id":11966}},"12032":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"12033":{"originalFunc":{"__isSmartRef__":true,"id":951}},"12034":{"varMapping":{"__isSmartRef__":true,"id":12035},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":12036},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12037},"__LivelyClassName__":"lively.Closure"},"12035":{"this":{"__isSmartRef__":true,"id":11966}},"12036":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"12037":{"originalFunc":{"__isSmartRef__":true,"id":955}},"12038":{"varMapping":{"__isSmartRef__":true,"id":12039},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":12040},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12041},"__LivelyClassName__":"lively.Closure"},"12039":{"this":{"__isSmartRef__":true,"id":11966}},"12040":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"12041":{"originalFunc":{"__isSmartRef__":true,"id":959}},"12042":{"varMapping":{"__isSmartRef__":true,"id":12043},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":12044},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12045},"__LivelyClassName__":"lively.Closure"},"12043":{"this":{"__isSmartRef__":true,"id":11966}},"12044":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"12045":{"originalFunc":{"__isSmartRef__":true,"id":963}},"12046":{"varMapping":{"__isSmartRef__":true,"id":12047},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12048},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12049},"__LivelyClassName__":"lively.Closure"},"12047":{"this":{"__isSmartRef__":true,"id":11966}},"12048":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"12049":{"originalFunc":{"__isSmartRef__":true,"id":967}},"12050":{"varMapping":{"__isSmartRef__":true,"id":12051},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12052},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12053},"__LivelyClassName__":"lively.Closure"},"12051":{"this":{"__isSmartRef__":true,"id":11966}},"12052":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"12053":{"originalFunc":{"__isSmartRef__":true,"id":971}},"12054":{"varMapping":{"__isSmartRef__":true,"id":12055},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":12056},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12057},"__LivelyClassName__":"lively.Closure"},"12055":{"this":{"__isSmartRef__":true,"id":11966}},"12056":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"12057":{"originalFunc":{"__isSmartRef__":true,"id":975}},"12058":{"varMapping":{"__isSmartRef__":true,"id":12059},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":12060},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12061},"__LivelyClassName__":"lively.Closure"},"12059":{"this":{"__isSmartRef__":true,"id":11966}},"12060":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"12061":{"originalFunc":{"__isSmartRef__":true,"id":979}},"12062":{"varMapping":{"__isSmartRef__":true,"id":12063},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":12064},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12065},"__LivelyClassName__":"lively.Closure"},"12063":{"this":{"__isSmartRef__":true,"id":11966}},"12064":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"12065":{"originalFunc":{"__isSmartRef__":true,"id":983}},"12066":{"varMapping":{"__isSmartRef__":true,"id":12067},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":12068},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12069},"__LivelyClassName__":"lively.Closure"},"12067":{"this":{"__isSmartRef__":true,"id":11966}},"12068":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"12069":{"originalFunc":{"__isSmartRef__":true,"id":987}},"12070":{"varMapping":{"__isSmartRef__":true,"id":12071},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":12072},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12073},"__LivelyClassName__":"lively.Closure"},"12071":{"this":{"__isSmartRef__":true,"id":11966}},"12072":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"12073":{"originalFunc":{"__isSmartRef__":true,"id":991}},"12074":{"varMapping":{"__isSmartRef__":true,"id":12075},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":12076},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12077},"__LivelyClassName__":"lively.Closure"},"12075":{"this":{"__isSmartRef__":true,"id":11966}},"12076":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"12077":{"originalFunc":{"__isSmartRef__":true,"id":995}},"12078":{"varMapping":{"__isSmartRef__":true,"id":12079},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":12080},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12081},"__LivelyClassName__":"lively.Closure"},"12079":{"this":{"__isSmartRef__":true,"id":11966}},"12080":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"12081":{"originalFunc":{"__isSmartRef__":true,"id":999}},"12082":{"varMapping":{"__isSmartRef__":true,"id":12083},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12084},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12085},"__LivelyClassName__":"lively.Closure"},"12083":{"this":{"__isSmartRef__":true,"id":11966}},"12084":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"12085":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"12086":{"varMapping":{"__isSmartRef__":true,"id":12087},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12088},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12089},"__LivelyClassName__":"lively.Closure"},"12087":{"this":{"__isSmartRef__":true,"id":11966}},"12088":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"12089":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"12090":{"varMapping":{"__isSmartRef__":true,"id":12091},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":12092},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12093},"__LivelyClassName__":"lively.Closure"},"12091":{"this":{"__isSmartRef__":true,"id":11966}},"12092":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"12093":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"12094":{"setDevStyle":{"__isSmartRef__":true,"id":12095},"setNormalStyle":{"__isSmartRef__":true,"id":12099},"tileSize":{"__isSmartRef__":true,"id":12103},"become":{"__isSmartRef__":true,"id":12107},"onMouseDown":{"__isSmartRef__":true,"id":12111},"setGridPosition":{"__isSmartRef__":true,"id":12119},"toolbox":{"__isSmartRef__":true,"id":12123},"distanceTo":{"__isSmartRef__":true,"id":12127},"tileWasDropped":{"__isSmartRef__":true,"id":12131},"isObstacle":{"__isSmartRef__":true,"id":12135},"neighboursInDirection":{"__isSmartRef__":true,"id":12139},"neighbours":{"__isSmartRef__":true,"id":12143},"zIndex":{"__isSmartRef__":true,"id":12147},"obstacles":{"__isSmartRef__":true,"id":12151},"addObstacle":{"__isSmartRef__":true,"id":12155},"removeObstacle":{"__isSmartRef__":true,"id":12159},"isTile":{"__isSmartRef__":true,"id":12163},"neighbourAt":{"__isSmartRef__":true,"id":12167},"map":{"__isSmartRef__":true,"id":12171},"game":{"__isSmartRef__":true,"id":12175},"reset":{"__isSmartRef__":true,"id":12179},"shallowCopy":{"__isSmartRef__":true,"id":12183},"characters":{"__isSmartRef__":true,"id":12187},"enterTile":{"__isSmartRef__":true,"id":12191},"leaveTile":{"__isSmartRef__":true,"id":12195},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":12199}},"12095":{"varMapping":{"__isSmartRef__":true,"id":12096},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":12097},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12098},"__LivelyClassName__":"lively.Closure"},"12096":{"this":{"__isSmartRef__":true,"id":2757}},"12097":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"12098":{"originalFunc":{"__isSmartRef__":true,"id":892}},"12099":{"varMapping":{"__isSmartRef__":true,"id":12100},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":12101},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12102},"__LivelyClassName__":"lively.Closure"},"12100":{"this":{"__isSmartRef__":true,"id":2757}},"12101":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"12102":{"originalFunc":{"__isSmartRef__":true,"id":911}},"12103":{"varMapping":{"__isSmartRef__":true,"id":12104},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":12105},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12106},"__LivelyClassName__":"lively.Closure"},"12104":{"this":{"__isSmartRef__":true,"id":2757}},"12105":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"12106":{"originalFunc":{"__isSmartRef__":true,"id":915}},"12107":{"varMapping":{"__isSmartRef__":true,"id":12108},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12109},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12110},"__LivelyClassName__":"lively.Closure"},"12108":{"this":{"__isSmartRef__":true,"id":2757}},"12109":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"12110":{"originalFunc":{"__isSmartRef__":true,"id":919}},"12111":{"varMapping":{"__isSmartRef__":true,"id":12112},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12117},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12118},"__LivelyClassName__":"lively.Closure"},"12112":{"this":{"__isSmartRef__":true,"id":2757},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12113}},"12113":{"$super":{"__isSmartRef__":true,"id":12114}},"12114":{"varMapping":{"__isSmartRef__":true,"id":12115},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12116},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12115":{"obj":{"__isSmartRef__":true,"id":2757},"name":"onMouseDown"},"12116":{},"12117":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"12118":{"originalFunc":{"__isSmartRef__":true,"id":923}},"12119":{"varMapping":{"__isSmartRef__":true,"id":12120},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":12121},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12122},"__LivelyClassName__":"lively.Closure"},"12120":{"this":{"__isSmartRef__":true,"id":2757}},"12121":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"12122":{"originalFunc":{"__isSmartRef__":true,"id":931}},"12123":{"varMapping":{"__isSmartRef__":true,"id":12124},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":12125},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12126},"__LivelyClassName__":"lively.Closure"},"12124":{"this":{"__isSmartRef__":true,"id":2757}},"12125":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"12126":{"originalFunc":{"__isSmartRef__":true,"id":935}},"12127":{"varMapping":{"__isSmartRef__":true,"id":12128},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":12129},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12130},"__LivelyClassName__":"lively.Closure"},"12128":{"this":{"__isSmartRef__":true,"id":2757}},"12129":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"12130":{"originalFunc":{"__isSmartRef__":true,"id":939}},"12131":{"varMapping":{"__isSmartRef__":true,"id":12132},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":12133},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12134},"__LivelyClassName__":"lively.Closure"},"12132":{"this":{"__isSmartRef__":true,"id":2757}},"12133":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"12134":{"originalFunc":{"__isSmartRef__":true,"id":943}},"12135":{"varMapping":{"__isSmartRef__":true,"id":12136},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":12137},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12138},"__LivelyClassName__":"lively.Closure"},"12136":{"this":{"__isSmartRef__":true,"id":2757}},"12137":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"12138":{"originalFunc":{"__isSmartRef__":true,"id":947}},"12139":{"varMapping":{"__isSmartRef__":true,"id":12140},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":12141},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12142},"__LivelyClassName__":"lively.Closure"},"12140":{"this":{"__isSmartRef__":true,"id":2757}},"12141":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"12142":{"originalFunc":{"__isSmartRef__":true,"id":951}},"12143":{"varMapping":{"__isSmartRef__":true,"id":12144},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":12145},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12146},"__LivelyClassName__":"lively.Closure"},"12144":{"this":{"__isSmartRef__":true,"id":2757}},"12145":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"12146":{"originalFunc":{"__isSmartRef__":true,"id":955}},"12147":{"varMapping":{"__isSmartRef__":true,"id":12148},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":12149},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12150},"__LivelyClassName__":"lively.Closure"},"12148":{"this":{"__isSmartRef__":true,"id":2757}},"12149":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"12150":{"originalFunc":{"__isSmartRef__":true,"id":959}},"12151":{"varMapping":{"__isSmartRef__":true,"id":12152},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":12153},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12154},"__LivelyClassName__":"lively.Closure"},"12152":{"this":{"__isSmartRef__":true,"id":2757}},"12153":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"12154":{"originalFunc":{"__isSmartRef__":true,"id":963}},"12155":{"varMapping":{"__isSmartRef__":true,"id":12156},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12157},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12158},"__LivelyClassName__":"lively.Closure"},"12156":{"this":{"__isSmartRef__":true,"id":2757}},"12157":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"12158":{"originalFunc":{"__isSmartRef__":true,"id":967}},"12159":{"varMapping":{"__isSmartRef__":true,"id":12160},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12161},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12162},"__LivelyClassName__":"lively.Closure"},"12160":{"this":{"__isSmartRef__":true,"id":2757}},"12161":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"12162":{"originalFunc":{"__isSmartRef__":true,"id":971}},"12163":{"varMapping":{"__isSmartRef__":true,"id":12164},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":12165},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12166},"__LivelyClassName__":"lively.Closure"},"12164":{"this":{"__isSmartRef__":true,"id":2757}},"12165":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"12166":{"originalFunc":{"__isSmartRef__":true,"id":975}},"12167":{"varMapping":{"__isSmartRef__":true,"id":12168},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":12169},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12170},"__LivelyClassName__":"lively.Closure"},"12168":{"this":{"__isSmartRef__":true,"id":2757}},"12169":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"12170":{"originalFunc":{"__isSmartRef__":true,"id":979}},"12171":{"varMapping":{"__isSmartRef__":true,"id":12172},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":12173},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12174},"__LivelyClassName__":"lively.Closure"},"12172":{"this":{"__isSmartRef__":true,"id":2757}},"12173":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"12174":{"originalFunc":{"__isSmartRef__":true,"id":983}},"12175":{"varMapping":{"__isSmartRef__":true,"id":12176},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":12177},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12178},"__LivelyClassName__":"lively.Closure"},"12176":{"this":{"__isSmartRef__":true,"id":2757}},"12177":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"12178":{"originalFunc":{"__isSmartRef__":true,"id":987}},"12179":{"varMapping":{"__isSmartRef__":true,"id":12180},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":12181},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12182},"__LivelyClassName__":"lively.Closure"},"12180":{"this":{"__isSmartRef__":true,"id":2757}},"12181":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"12182":{"originalFunc":{"__isSmartRef__":true,"id":991}},"12183":{"varMapping":{"__isSmartRef__":true,"id":12184},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":12185},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12186},"__LivelyClassName__":"lively.Closure"},"12184":{"this":{"__isSmartRef__":true,"id":2757}},"12185":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"12186":{"originalFunc":{"__isSmartRef__":true,"id":995}},"12187":{"varMapping":{"__isSmartRef__":true,"id":12188},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":12189},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12190},"__LivelyClassName__":"lively.Closure"},"12188":{"this":{"__isSmartRef__":true,"id":2757}},"12189":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"12190":{"originalFunc":{"__isSmartRef__":true,"id":999}},"12191":{"varMapping":{"__isSmartRef__":true,"id":12192},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12193},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12194},"__LivelyClassName__":"lively.Closure"},"12192":{"this":{"__isSmartRef__":true,"id":2757}},"12193":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"12194":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"12195":{"varMapping":{"__isSmartRef__":true,"id":12196},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12197},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12198},"__LivelyClassName__":"lively.Closure"},"12196":{"this":{"__isSmartRef__":true,"id":2757}},"12197":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"12198":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"12199":{"varMapping":{"__isSmartRef__":true,"id":12200},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":12201},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12202},"__LivelyClassName__":"lively.Closure"},"12200":{"this":{"__isSmartRef__":true,"id":2757}},"12201":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"12202":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"12203":{"setDevStyle":{"__isSmartRef__":true,"id":12204},"setNormalStyle":{"__isSmartRef__":true,"id":12208},"become":{"__isSmartRef__":true,"id":12212},"onMouseDown":{"__isSmartRef__":true,"id":12216},"toolbox":{"__isSmartRef__":true,"id":12224},"zIndex":{"__isSmartRef__":true,"id":12228},"becomeRandomThing":{"__isSmartRef__":true,"id":12232},"reset":{"__isSmartRef__":true,"id":12236},"registerAsObstacle":{"__isSmartRef__":true,"id":12240},"deregisterAsObstacle":{"__isSmartRef__":true,"id":12244},"tileSize":{"__isSmartRef__":true,"id":12248},"dropOn":{"__isSmartRef__":true,"id":12252},"map":{"__isSmartRef__":true,"id":12260},"game":{"__isSmartRef__":true,"id":12264}},"12204":{"varMapping":{"__isSmartRef__":true,"id":12205},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.shape.setBorderColor(Color.blue)\n if (this.thing) {\n this.thing.shape.setBorderColor(Color.red)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12206},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12205":{"this":{"__isSmartRef__":true,"id":2340}},"12206":{"timestamp":{"__isSmartRef__":true,"id":12207},"user":"timfelgentreff","tags":[]},"12207":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:34:18 GMT+0200 (CEST)"},"12208":{"varMapping":{"__isSmartRef__":true,"id":12209},"source":"function setNormalStyle() {\n this.setDevStyle()\n this.shape.setBorderColor(new Color.rgba(0,0,0,0))\n if (this.thing) {\n this.thing.shape.setBorderColor(new Color.rgba(0,0,0,0))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12210},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12209":{"this":{"__isSmartRef__":true,"id":2340}},"12210":{"timestamp":{"__isSmartRef__":true,"id":12211},"user":"tessi","tags":[]},"12211":{"isSerializedDate":true,"string":"Thu May 03 2012 15:24:43 GMT+0200 (CEST)"},"12212":{"varMapping":{"__isSmartRef__":true,"id":12213},"source":"function become(thingName) {\n var thing\n if (typeof thingName === \"string\") {\n thing = this.toolbox(thingName + \"Thing\")\n } else {\n thing = thingName\n }\n if (thing) {\n if (this.thing) {\n this.thing.remove();\n }\n this.thing = thing;\n thing.ignoreEvents()\n thing.setExtent(thing.shape.getExtent())\n thing.setPosition(this.getExtent().subPt(this.thing.getExtent()))\n this.addMorph(thing)\n this.registerAsObstacle()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12214},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12213":{"this":{"__isSmartRef__":true,"id":2340}},"12214":{"timestamp":{"__isSmartRef__":true,"id":12215},"user":"timfelgentreff","tags":[]},"12215":{"isSerializedDate":true,"string":"Thu May 03 2012 13:48:50 GMT+0200 (CEST)"},"12216":{"varMapping":{"__isSmartRef__":true,"id":12217},"source":"function onMouseDown(evt) {\n if (this.tile && evt.isLeftMouseButtonDown() && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this.tile)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12222},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12217":{"this":{"__isSmartRef__":true,"id":2340},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12218}},"12218":{"$super":{"__isSmartRef__":true,"id":12219}},"12219":{"varMapping":{"__isSmartRef__":true,"id":12220},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12221},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12220":{"obj":{"__isSmartRef__":true,"id":2340},"name":"onMouseDown"},"12221":{},"12222":{"timestamp":{"__isSmartRef__":true,"id":12223},"user":"tessi","tags":[]},"12223":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:27:13 GMT+0200 (CEST)"},"12224":{"varMapping":{"__isSmartRef__":true,"id":12225},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":12226},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12225":{"this":{"__isSmartRef__":true,"id":2340}},"12226":{"timestamp":{"__isSmartRef__":true,"id":12227},"user":"tessi","tags":[]},"12227":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:27:30 GMT+0200 (CEST)"},"12228":{"varMapping":{"__isSmartRef__":true,"id":12229},"source":"function zIndex(idx) {\n if (idx) {\n return this.renderContext().morphNode.style.zIndex = idx\n } else {\n return this.renderContext().morphNode.style.zIndex\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12230},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12229":{"this":{"__isSmartRef__":true,"id":2340}},"12230":{"timestamp":{"__isSmartRef__":true,"id":12231},"user":"timfelgentreff","tags":[]},"12231":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:28:09 GMT+0200 (CEST)"},"12232":{"varMapping":{"__isSmartRef__":true,"id":12233},"source":"function becomeRandomThing() {\n var thingNames = this.game().partNamesEndingWith(\"Thing\")\n this.become(thingNames[Math.round(Math.random() * (thingNames.length - 1))])\n}","funcProperties":{"__isSmartRef__":true,"id":12234},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12233":{"this":{"__isSmartRef__":true,"id":2340}},"12234":{"timestamp":{"__isSmartRef__":true,"id":12235},"user":"tessi","tags":[]},"12235":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:54 GMT+0200 (CEST)"},"12236":{"varMapping":{"__isSmartRef__":true,"id":12237},"source":"function reset() {\n if (this.thing) {\n this.thing.remove()\n this.thing = null\n }\n this.deregisterAsObstacle()\n this.tile = null\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":12238},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12237":{"this":{"__isSmartRef__":true,"id":2340}},"12238":{"timestamp":{"__isSmartRef__":true,"id":12239},"user":"tessi","tags":[]},"12239":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:28:03 GMT+0200 (CEST)"},"12240":{"varMapping":{"__isSmartRef__":true,"id":12241},"source":"function registerAsObstacle() {\n this.deregisterAsObstacle()\n\n if (this.tile && this.thing) {\n this.occludedTiles = []\n\n // things are anchored at bottom-left, so neighbours direction is negative\n var neighboursBlockVertical = Math.ceil(this.thing.getExtent().y / this.tileSize().y),\n neighboursBlockHorizontal = Math.ceil(this.thing.getExtent().x / this.tileSize().x),\n neighbour\n\n this.occludedTiles.push(this.tile)\n this.tile.addObstacle(this)\n for (var i = 0; i < neighboursBlockHorizontal; i++) {\n for (var j = 0; j < neighboursBlockVertical; j++) {\n neighbour = this.tile.neighbourAt(pt(-i,-j))\n if (neighbour && !this.occludedTiles.member(neighbour)) {\n neighbour.addObstacle(this)\n this.occludedTiles.push(neighbour)\n }\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12242},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12241":{"this":{"__isSmartRef__":true,"id":2340}},"12242":{"timestamp":{"__isSmartRef__":true,"id":12243},"user":"timfelgentreff","tags":[]},"12243":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:18:39 GMT+0200 (CEST)"},"12244":{"varMapping":{"__isSmartRef__":true,"id":12245},"source":"function deregisterAsObstacle() {\n var that = this\n if (this.occludedTiles) {\n this.occludedTiles.each(function (tile) {\n tile.removeObstacle(that)\n })\n this.occludedTiles = null\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12246},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12245":{"this":{"__isSmartRef__":true,"id":2340}},"12246":{"timestamp":{"__isSmartRef__":true,"id":12247},"user":"timfelgentreff","tags":[]},"12247":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:25:37 GMT+0200 (CEST)"},"12248":{"varMapping":{"__isSmartRef__":true,"id":12249},"source":"function tileSize() {\n if (this.tile) {\n return this.tile.tileSize()\n } else {\n return this.toolbox(\"Tile\").tileSize()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12250},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12249":{"this":{"__isSmartRef__":true,"id":2340}},"12250":{"timestamp":{"__isSmartRef__":true,"id":12251},"user":"timfelgentreff","tags":[]},"12251":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:01:00 GMT+0200 (CEST)"},"12252":{"varMapping":{"__isSmartRef__":true,"id":12253},"source":"function dropOn(morph) {\n $super(morph);\n this.deregisterAsObstacle()\n if (morph.isTile) {\n this.tile = morph\n this.setPosition(pt(0,0))\n this.registerAsObstacle()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12258},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12253":{"this":{"__isSmartRef__":true,"id":2340},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12254}},"12254":{"$super":{"__isSmartRef__":true,"id":12255}},"12255":{"varMapping":{"__isSmartRef__":true,"id":12256},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12257},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12256":{"obj":{"__isSmartRef__":true,"id":2340},"name":"dropOn"},"12257":{},"12258":{"timestamp":{"__isSmartRef__":true,"id":12259},"user":"timfelgentreff","tags":[]},"12259":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:13:07 GMT+0200 (CEST)"},"12260":{"varMapping":{"__isSmartRef__":true,"id":12261},"source":"function map() {\n return this.owner.map()\n}","funcProperties":{"__isSmartRef__":true,"id":12262},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12261":{"this":{"__isSmartRef__":true,"id":2340}},"12262":{"timestamp":{"__isSmartRef__":true,"id":12263},"user":"tessi","tags":[]},"12263":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:34 GMT+0200 (CEST)"},"12264":{"varMapping":{"__isSmartRef__":true,"id":12265},"source":"function game() {\n return this.owner.game()\n}","funcProperties":{"__isSmartRef__":true,"id":12266},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12265":{"this":{"__isSmartRef__":true,"id":2340}},"12266":{"timestamp":{"__isSmartRef__":true,"id":12267},"user":"tessi","tags":[]},"12267":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:45 GMT+0200 (CEST)"},"12268":{"setDevStyle":{"__isSmartRef__":true,"id":12269},"setNormalStyle":{"__isSmartRef__":true,"id":12273},"tileSize":{"__isSmartRef__":true,"id":12277},"become":{"__isSmartRef__":true,"id":12281},"onMouseDown":{"__isSmartRef__":true,"id":12285},"setGridPosition":{"__isSmartRef__":true,"id":12293},"toolbox":{"__isSmartRef__":true,"id":12297},"distanceTo":{"__isSmartRef__":true,"id":12301},"tileWasDropped":{"__isSmartRef__":true,"id":12305},"isObstacle":{"__isSmartRef__":true,"id":12309},"neighboursInDirection":{"__isSmartRef__":true,"id":12313},"neighbours":{"__isSmartRef__":true,"id":12317},"zIndex":{"__isSmartRef__":true,"id":12321},"obstacles":{"__isSmartRef__":true,"id":12325},"addObstacle":{"__isSmartRef__":true,"id":12329},"removeObstacle":{"__isSmartRef__":true,"id":12333},"isTile":{"__isSmartRef__":true,"id":12337},"neighbourAt":{"__isSmartRef__":true,"id":12341},"map":{"__isSmartRef__":true,"id":12345},"game":{"__isSmartRef__":true,"id":12349},"reset":{"__isSmartRef__":true,"id":12353},"shallowCopy":{"__isSmartRef__":true,"id":12357},"characters":{"__isSmartRef__":true,"id":12361},"enterTile":{"__isSmartRef__":true,"id":12365},"leaveTile":{"__isSmartRef__":true,"id":12369},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":12373}},"12269":{"varMapping":{"__isSmartRef__":true,"id":12270},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":12271},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12272},"__LivelyClassName__":"lively.Closure"},"12270":{"this":{"__isSmartRef__":true,"id":2321}},"12271":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"12272":{"originalFunc":{"__isSmartRef__":true,"id":892}},"12273":{"varMapping":{"__isSmartRef__":true,"id":12274},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":12275},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12276},"__LivelyClassName__":"lively.Closure"},"12274":{"this":{"__isSmartRef__":true,"id":2321}},"12275":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"12276":{"originalFunc":{"__isSmartRef__":true,"id":911}},"12277":{"varMapping":{"__isSmartRef__":true,"id":12278},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":12279},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12280},"__LivelyClassName__":"lively.Closure"},"12278":{"this":{"__isSmartRef__":true,"id":2321}},"12279":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"12280":{"originalFunc":{"__isSmartRef__":true,"id":915}},"12281":{"varMapping":{"__isSmartRef__":true,"id":12282},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12283},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12284},"__LivelyClassName__":"lively.Closure"},"12282":{"this":{"__isSmartRef__":true,"id":2321}},"12283":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"12284":{"originalFunc":{"__isSmartRef__":true,"id":919}},"12285":{"varMapping":{"__isSmartRef__":true,"id":12286},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12291},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12292},"__LivelyClassName__":"lively.Closure"},"12286":{"this":{"__isSmartRef__":true,"id":2321},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12287}},"12287":{"$super":{"__isSmartRef__":true,"id":12288}},"12288":{"varMapping":{"__isSmartRef__":true,"id":12289},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12290},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12289":{"obj":{"__isSmartRef__":true,"id":2321},"name":"onMouseDown"},"12290":{},"12291":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"12292":{"originalFunc":{"__isSmartRef__":true,"id":923}},"12293":{"varMapping":{"__isSmartRef__":true,"id":12294},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":12295},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12296},"__LivelyClassName__":"lively.Closure"},"12294":{"this":{"__isSmartRef__":true,"id":2321}},"12295":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"12296":{"originalFunc":{"__isSmartRef__":true,"id":931}},"12297":{"varMapping":{"__isSmartRef__":true,"id":12298},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":12299},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12300},"__LivelyClassName__":"lively.Closure"},"12298":{"this":{"__isSmartRef__":true,"id":2321}},"12299":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"12300":{"originalFunc":{"__isSmartRef__":true,"id":935}},"12301":{"varMapping":{"__isSmartRef__":true,"id":12302},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":12303},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12304},"__LivelyClassName__":"lively.Closure"},"12302":{"this":{"__isSmartRef__":true,"id":2321}},"12303":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"12304":{"originalFunc":{"__isSmartRef__":true,"id":939}},"12305":{"varMapping":{"__isSmartRef__":true,"id":12306},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":12307},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12308},"__LivelyClassName__":"lively.Closure"},"12306":{"this":{"__isSmartRef__":true,"id":2321}},"12307":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"12308":{"originalFunc":{"__isSmartRef__":true,"id":943}},"12309":{"varMapping":{"__isSmartRef__":true,"id":12310},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":12311},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12312},"__LivelyClassName__":"lively.Closure"},"12310":{"this":{"__isSmartRef__":true,"id":2321}},"12311":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"12312":{"originalFunc":{"__isSmartRef__":true,"id":947}},"12313":{"varMapping":{"__isSmartRef__":true,"id":12314},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":12315},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12316},"__LivelyClassName__":"lively.Closure"},"12314":{"this":{"__isSmartRef__":true,"id":2321}},"12315":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"12316":{"originalFunc":{"__isSmartRef__":true,"id":951}},"12317":{"varMapping":{"__isSmartRef__":true,"id":12318},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":12319},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12320},"__LivelyClassName__":"lively.Closure"},"12318":{"this":{"__isSmartRef__":true,"id":2321}},"12319":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"12320":{"originalFunc":{"__isSmartRef__":true,"id":955}},"12321":{"varMapping":{"__isSmartRef__":true,"id":12322},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":12323},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12324},"__LivelyClassName__":"lively.Closure"},"12322":{"this":{"__isSmartRef__":true,"id":2321}},"12323":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"12324":{"originalFunc":{"__isSmartRef__":true,"id":959}},"12325":{"varMapping":{"__isSmartRef__":true,"id":12326},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":12327},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12328},"__LivelyClassName__":"lively.Closure"},"12326":{"this":{"__isSmartRef__":true,"id":2321}},"12327":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"12328":{"originalFunc":{"__isSmartRef__":true,"id":963}},"12329":{"varMapping":{"__isSmartRef__":true,"id":12330},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12331},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12332},"__LivelyClassName__":"lively.Closure"},"12330":{"this":{"__isSmartRef__":true,"id":2321}},"12331":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"12332":{"originalFunc":{"__isSmartRef__":true,"id":967}},"12333":{"varMapping":{"__isSmartRef__":true,"id":12334},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12335},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12336},"__LivelyClassName__":"lively.Closure"},"12334":{"this":{"__isSmartRef__":true,"id":2321}},"12335":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"12336":{"originalFunc":{"__isSmartRef__":true,"id":971}},"12337":{"varMapping":{"__isSmartRef__":true,"id":12338},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":12339},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12340},"__LivelyClassName__":"lively.Closure"},"12338":{"this":{"__isSmartRef__":true,"id":2321}},"12339":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"12340":{"originalFunc":{"__isSmartRef__":true,"id":975}},"12341":{"varMapping":{"__isSmartRef__":true,"id":12342},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":12343},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12344},"__LivelyClassName__":"lively.Closure"},"12342":{"this":{"__isSmartRef__":true,"id":2321}},"12343":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"12344":{"originalFunc":{"__isSmartRef__":true,"id":979}},"12345":{"varMapping":{"__isSmartRef__":true,"id":12346},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":12347},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12348},"__LivelyClassName__":"lively.Closure"},"12346":{"this":{"__isSmartRef__":true,"id":2321}},"12347":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"12348":{"originalFunc":{"__isSmartRef__":true,"id":983}},"12349":{"varMapping":{"__isSmartRef__":true,"id":12350},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":12351},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12352},"__LivelyClassName__":"lively.Closure"},"12350":{"this":{"__isSmartRef__":true,"id":2321}},"12351":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"12352":{"originalFunc":{"__isSmartRef__":true,"id":987}},"12353":{"varMapping":{"__isSmartRef__":true,"id":12354},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":12355},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12356},"__LivelyClassName__":"lively.Closure"},"12354":{"this":{"__isSmartRef__":true,"id":2321}},"12355":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"12356":{"originalFunc":{"__isSmartRef__":true,"id":991}},"12357":{"varMapping":{"__isSmartRef__":true,"id":12358},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":12359},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12360},"__LivelyClassName__":"lively.Closure"},"12358":{"this":{"__isSmartRef__":true,"id":2321}},"12359":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"12360":{"originalFunc":{"__isSmartRef__":true,"id":995}},"12361":{"varMapping":{"__isSmartRef__":true,"id":12362},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":12363},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12364},"__LivelyClassName__":"lively.Closure"},"12362":{"this":{"__isSmartRef__":true,"id":2321}},"12363":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"12364":{"originalFunc":{"__isSmartRef__":true,"id":999}},"12365":{"varMapping":{"__isSmartRef__":true,"id":12366},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12367},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12368},"__LivelyClassName__":"lively.Closure"},"12366":{"this":{"__isSmartRef__":true,"id":2321}},"12367":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"12368":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"12369":{"varMapping":{"__isSmartRef__":true,"id":12370},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12371},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12372},"__LivelyClassName__":"lively.Closure"},"12370":{"this":{"__isSmartRef__":true,"id":2321}},"12371":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"12372":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"12373":{"varMapping":{"__isSmartRef__":true,"id":12374},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":12375},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12376},"__LivelyClassName__":"lively.Closure"},"12374":{"this":{"__isSmartRef__":true,"id":2321}},"12375":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"12376":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"12377":{"setDevStyle":{"__isSmartRef__":true,"id":12378},"setNormalStyle":{"__isSmartRef__":true,"id":12382},"tileSize":{"__isSmartRef__":true,"id":12386},"become":{"__isSmartRef__":true,"id":12390},"onMouseDown":{"__isSmartRef__":true,"id":12394},"setGridPosition":{"__isSmartRef__":true,"id":12402},"toolbox":{"__isSmartRef__":true,"id":12406},"distanceTo":{"__isSmartRef__":true,"id":12410},"tileWasDropped":{"__isSmartRef__":true,"id":12414},"isObstacle":{"__isSmartRef__":true,"id":12418},"neighboursInDirection":{"__isSmartRef__":true,"id":12422},"neighbours":{"__isSmartRef__":true,"id":12426},"zIndex":{"__isSmartRef__":true,"id":12430},"obstacles":{"__isSmartRef__":true,"id":12434},"addObstacle":{"__isSmartRef__":true,"id":12438},"removeObstacle":{"__isSmartRef__":true,"id":12442},"isTile":{"__isSmartRef__":true,"id":12446},"neighbourAt":{"__isSmartRef__":true,"id":12450},"map":{"__isSmartRef__":true,"id":12454},"game":{"__isSmartRef__":true,"id":12458},"reset":{"__isSmartRef__":true,"id":12462},"shallowCopy":{"__isSmartRef__":true,"id":12466},"characters":{"__isSmartRef__":true,"id":12470},"enterTile":{"__isSmartRef__":true,"id":12474},"leaveTile":{"__isSmartRef__":true,"id":12478},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":12482}},"12378":{"varMapping":{"__isSmartRef__":true,"id":12379},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":12380},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12381},"__LivelyClassName__":"lively.Closure"},"12379":{"this":{"__isSmartRef__":true,"id":2065}},"12380":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"12381":{"originalFunc":{"__isSmartRef__":true,"id":892}},"12382":{"varMapping":{"__isSmartRef__":true,"id":12383},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":12384},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12385},"__LivelyClassName__":"lively.Closure"},"12383":{"this":{"__isSmartRef__":true,"id":2065}},"12384":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"12385":{"originalFunc":{"__isSmartRef__":true,"id":911}},"12386":{"varMapping":{"__isSmartRef__":true,"id":12387},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":12388},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12389},"__LivelyClassName__":"lively.Closure"},"12387":{"this":{"__isSmartRef__":true,"id":2065}},"12388":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"12389":{"originalFunc":{"__isSmartRef__":true,"id":915}},"12390":{"varMapping":{"__isSmartRef__":true,"id":12391},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12392},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12393},"__LivelyClassName__":"lively.Closure"},"12391":{"this":{"__isSmartRef__":true,"id":2065}},"12392":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"12393":{"originalFunc":{"__isSmartRef__":true,"id":919}},"12394":{"varMapping":{"__isSmartRef__":true,"id":12395},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12400},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12401},"__LivelyClassName__":"lively.Closure"},"12395":{"this":{"__isSmartRef__":true,"id":2065},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12396}},"12396":{"$super":{"__isSmartRef__":true,"id":12397}},"12397":{"varMapping":{"__isSmartRef__":true,"id":12398},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12399},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12398":{"obj":{"__isSmartRef__":true,"id":2065},"name":"onMouseDown"},"12399":{},"12400":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"12401":{"originalFunc":{"__isSmartRef__":true,"id":923}},"12402":{"varMapping":{"__isSmartRef__":true,"id":12403},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":12404},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12405},"__LivelyClassName__":"lively.Closure"},"12403":{"this":{"__isSmartRef__":true,"id":2065}},"12404":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"12405":{"originalFunc":{"__isSmartRef__":true,"id":931}},"12406":{"varMapping":{"__isSmartRef__":true,"id":12407},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":12408},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12409},"__LivelyClassName__":"lively.Closure"},"12407":{"this":{"__isSmartRef__":true,"id":2065}},"12408":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"12409":{"originalFunc":{"__isSmartRef__":true,"id":935}},"12410":{"varMapping":{"__isSmartRef__":true,"id":12411},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":12412},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12413},"__LivelyClassName__":"lively.Closure"},"12411":{"this":{"__isSmartRef__":true,"id":2065}},"12412":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"12413":{"originalFunc":{"__isSmartRef__":true,"id":939}},"12414":{"varMapping":{"__isSmartRef__":true,"id":12415},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":12416},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12417},"__LivelyClassName__":"lively.Closure"},"12415":{"this":{"__isSmartRef__":true,"id":2065}},"12416":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"12417":{"originalFunc":{"__isSmartRef__":true,"id":943}},"12418":{"varMapping":{"__isSmartRef__":true,"id":12419},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":12420},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12421},"__LivelyClassName__":"lively.Closure"},"12419":{"this":{"__isSmartRef__":true,"id":2065}},"12420":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"12421":{"originalFunc":{"__isSmartRef__":true,"id":947}},"12422":{"varMapping":{"__isSmartRef__":true,"id":12423},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":12424},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12425},"__LivelyClassName__":"lively.Closure"},"12423":{"this":{"__isSmartRef__":true,"id":2065}},"12424":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"12425":{"originalFunc":{"__isSmartRef__":true,"id":951}},"12426":{"varMapping":{"__isSmartRef__":true,"id":12427},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":12428},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12429},"__LivelyClassName__":"lively.Closure"},"12427":{"this":{"__isSmartRef__":true,"id":2065}},"12428":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"12429":{"originalFunc":{"__isSmartRef__":true,"id":955}},"12430":{"varMapping":{"__isSmartRef__":true,"id":12431},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":12432},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12433},"__LivelyClassName__":"lively.Closure"},"12431":{"this":{"__isSmartRef__":true,"id":2065}},"12432":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"12433":{"originalFunc":{"__isSmartRef__":true,"id":959}},"12434":{"varMapping":{"__isSmartRef__":true,"id":12435},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":12436},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12437},"__LivelyClassName__":"lively.Closure"},"12435":{"this":{"__isSmartRef__":true,"id":2065}},"12436":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"12437":{"originalFunc":{"__isSmartRef__":true,"id":963}},"12438":{"varMapping":{"__isSmartRef__":true,"id":12439},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12440},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12441},"__LivelyClassName__":"lively.Closure"},"12439":{"this":{"__isSmartRef__":true,"id":2065}},"12440":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"12441":{"originalFunc":{"__isSmartRef__":true,"id":967}},"12442":{"varMapping":{"__isSmartRef__":true,"id":12443},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12444},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12445},"__LivelyClassName__":"lively.Closure"},"12443":{"this":{"__isSmartRef__":true,"id":2065}},"12444":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"12445":{"originalFunc":{"__isSmartRef__":true,"id":971}},"12446":{"varMapping":{"__isSmartRef__":true,"id":12447},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":12448},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12449},"__LivelyClassName__":"lively.Closure"},"12447":{"this":{"__isSmartRef__":true,"id":2065}},"12448":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"12449":{"originalFunc":{"__isSmartRef__":true,"id":975}},"12450":{"varMapping":{"__isSmartRef__":true,"id":12451},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":12452},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12453},"__LivelyClassName__":"lively.Closure"},"12451":{"this":{"__isSmartRef__":true,"id":2065}},"12452":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"12453":{"originalFunc":{"__isSmartRef__":true,"id":979}},"12454":{"varMapping":{"__isSmartRef__":true,"id":12455},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":12456},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12457},"__LivelyClassName__":"lively.Closure"},"12455":{"this":{"__isSmartRef__":true,"id":2065}},"12456":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"12457":{"originalFunc":{"__isSmartRef__":true,"id":983}},"12458":{"varMapping":{"__isSmartRef__":true,"id":12459},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":12460},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12461},"__LivelyClassName__":"lively.Closure"},"12459":{"this":{"__isSmartRef__":true,"id":2065}},"12460":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"12461":{"originalFunc":{"__isSmartRef__":true,"id":987}},"12462":{"varMapping":{"__isSmartRef__":true,"id":12463},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":12464},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12465},"__LivelyClassName__":"lively.Closure"},"12463":{"this":{"__isSmartRef__":true,"id":2065}},"12464":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"12465":{"originalFunc":{"__isSmartRef__":true,"id":991}},"12466":{"varMapping":{"__isSmartRef__":true,"id":12467},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":12468},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12469},"__LivelyClassName__":"lively.Closure"},"12467":{"this":{"__isSmartRef__":true,"id":2065}},"12468":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"12469":{"originalFunc":{"__isSmartRef__":true,"id":995}},"12470":{"varMapping":{"__isSmartRef__":true,"id":12471},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":12472},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12473},"__LivelyClassName__":"lively.Closure"},"12471":{"this":{"__isSmartRef__":true,"id":2065}},"12472":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"12473":{"originalFunc":{"__isSmartRef__":true,"id":999}},"12474":{"varMapping":{"__isSmartRef__":true,"id":12475},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12476},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12477},"__LivelyClassName__":"lively.Closure"},"12475":{"this":{"__isSmartRef__":true,"id":2065}},"12476":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"12477":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"12478":{"varMapping":{"__isSmartRef__":true,"id":12479},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12480},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12481},"__LivelyClassName__":"lively.Closure"},"12479":{"this":{"__isSmartRef__":true,"id":2065}},"12480":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"12481":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"12482":{"varMapping":{"__isSmartRef__":true,"id":12483},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":12484},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12485},"__LivelyClassName__":"lively.Closure"},"12483":{"this":{"__isSmartRef__":true,"id":2065}},"12484":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"12485":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"12486":{"submorphs":[{"__isSmartRef__":true,"id":12487}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12497},"renderContextTable":{"__isSmartRef__":true,"id":12502},"eventHandler":{"__isSmartRef__":true,"id":12503},"_ClipMode":"visible","derivationIds":[],"id":"DF19DF3F-730E-42FC-9392-90E838222A38","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":12504},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":5,"column":2,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":12487},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":1618}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12505},"__LivelyClassName__":"lively.morphic.Box"},"12487":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12488},"renderContextTable":{"__isSmartRef__":true,"id":12493},"eventHandler":{"__isSmartRef__":true,"id":12494},"_ClipMode":"visible","derivationIds":[],"id":"2A465D1B-173D-48C3-9905-9CC02382BD74","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":12495},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":12486},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12496},"__LivelyClassName__":"lively.morphic.Image"},"12488":{"_Position":{"__isSmartRef__":true,"id":12489},"renderContextTable":{"__isSmartRef__":true,"id":12490},"_Extent":{"__isSmartRef__":true,"id":12491},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":12492},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"12489":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12490":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"12491":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12492":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"12493":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"12494":{"morph":{"__isSmartRef__":true,"id":12487},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12495":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12496":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"12497":{"_Position":{"__isSmartRef__":true,"id":12498},"renderContextTable":{"__isSmartRef__":true,"id":12499},"_Extent":{"__isSmartRef__":true,"id":12500},"_Padding":{"__isSmartRef__":true,"id":12501},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"12498":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12499":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"12500":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12501":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"12502":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"12503":{"morph":{"__isSmartRef__":true,"id":12486},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12504":{"x":96,"y":240,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12505":{"setDevStyle":{"__isSmartRef__":true,"id":12506},"setNormalStyle":{"__isSmartRef__":true,"id":12510},"tileSize":{"__isSmartRef__":true,"id":12514},"become":{"__isSmartRef__":true,"id":12518},"onMouseDown":{"__isSmartRef__":true,"id":12522},"setGridPosition":{"__isSmartRef__":true,"id":12530},"toolbox":{"__isSmartRef__":true,"id":12534},"distanceTo":{"__isSmartRef__":true,"id":12538},"tileWasDropped":{"__isSmartRef__":true,"id":12542},"isObstacle":{"__isSmartRef__":true,"id":12546},"neighboursInDirection":{"__isSmartRef__":true,"id":12550},"neighbours":{"__isSmartRef__":true,"id":12554},"zIndex":{"__isSmartRef__":true,"id":12558},"obstacles":{"__isSmartRef__":true,"id":12562},"addObstacle":{"__isSmartRef__":true,"id":12566},"removeObstacle":{"__isSmartRef__":true,"id":12570},"isTile":{"__isSmartRef__":true,"id":12574},"neighbourAt":{"__isSmartRef__":true,"id":12578},"map":{"__isSmartRef__":true,"id":12582},"game":{"__isSmartRef__":true,"id":12586},"reset":{"__isSmartRef__":true,"id":12590},"shallowCopy":{"__isSmartRef__":true,"id":12594},"characters":{"__isSmartRef__":true,"id":12598},"enterTile":{"__isSmartRef__":true,"id":12602},"leaveTile":{"__isSmartRef__":true,"id":12606},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":12610}},"12506":{"varMapping":{"__isSmartRef__":true,"id":12507},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":12508},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12509},"__LivelyClassName__":"lively.Closure"},"12507":{"this":{"__isSmartRef__":true,"id":12486}},"12508":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"12509":{"originalFunc":{"__isSmartRef__":true,"id":892}},"12510":{"varMapping":{"__isSmartRef__":true,"id":12511},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":12512},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12513},"__LivelyClassName__":"lively.Closure"},"12511":{"this":{"__isSmartRef__":true,"id":12486}},"12512":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"12513":{"originalFunc":{"__isSmartRef__":true,"id":911}},"12514":{"varMapping":{"__isSmartRef__":true,"id":12515},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":12516},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12517},"__LivelyClassName__":"lively.Closure"},"12515":{"this":{"__isSmartRef__":true,"id":12486}},"12516":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"12517":{"originalFunc":{"__isSmartRef__":true,"id":915}},"12518":{"varMapping":{"__isSmartRef__":true,"id":12519},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12520},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12521},"__LivelyClassName__":"lively.Closure"},"12519":{"this":{"__isSmartRef__":true,"id":12486}},"12520":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"12521":{"originalFunc":{"__isSmartRef__":true,"id":919}},"12522":{"varMapping":{"__isSmartRef__":true,"id":12523},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12528},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12529},"__LivelyClassName__":"lively.Closure"},"12523":{"this":{"__isSmartRef__":true,"id":12486},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12524}},"12524":{"$super":{"__isSmartRef__":true,"id":12525}},"12525":{"varMapping":{"__isSmartRef__":true,"id":12526},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12527},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12526":{"obj":{"__isSmartRef__":true,"id":12486},"name":"onMouseDown"},"12527":{},"12528":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"12529":{"originalFunc":{"__isSmartRef__":true,"id":923}},"12530":{"varMapping":{"__isSmartRef__":true,"id":12531},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":12532},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12533},"__LivelyClassName__":"lively.Closure"},"12531":{"this":{"__isSmartRef__":true,"id":12486}},"12532":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"12533":{"originalFunc":{"__isSmartRef__":true,"id":931}},"12534":{"varMapping":{"__isSmartRef__":true,"id":12535},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":12536},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12537},"__LivelyClassName__":"lively.Closure"},"12535":{"this":{"__isSmartRef__":true,"id":12486}},"12536":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"12537":{"originalFunc":{"__isSmartRef__":true,"id":935}},"12538":{"varMapping":{"__isSmartRef__":true,"id":12539},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":12540},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12541},"__LivelyClassName__":"lively.Closure"},"12539":{"this":{"__isSmartRef__":true,"id":12486}},"12540":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"12541":{"originalFunc":{"__isSmartRef__":true,"id":939}},"12542":{"varMapping":{"__isSmartRef__":true,"id":12543},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":12544},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12545},"__LivelyClassName__":"lively.Closure"},"12543":{"this":{"__isSmartRef__":true,"id":12486}},"12544":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"12545":{"originalFunc":{"__isSmartRef__":true,"id":943}},"12546":{"varMapping":{"__isSmartRef__":true,"id":12547},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":12548},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12549},"__LivelyClassName__":"lively.Closure"},"12547":{"this":{"__isSmartRef__":true,"id":12486}},"12548":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"12549":{"originalFunc":{"__isSmartRef__":true,"id":947}},"12550":{"varMapping":{"__isSmartRef__":true,"id":12551},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":12552},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12553},"__LivelyClassName__":"lively.Closure"},"12551":{"this":{"__isSmartRef__":true,"id":12486}},"12552":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"12553":{"originalFunc":{"__isSmartRef__":true,"id":951}},"12554":{"varMapping":{"__isSmartRef__":true,"id":12555},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":12556},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12557},"__LivelyClassName__":"lively.Closure"},"12555":{"this":{"__isSmartRef__":true,"id":12486}},"12556":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"12557":{"originalFunc":{"__isSmartRef__":true,"id":955}},"12558":{"varMapping":{"__isSmartRef__":true,"id":12559},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":12560},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12561},"__LivelyClassName__":"lively.Closure"},"12559":{"this":{"__isSmartRef__":true,"id":12486}},"12560":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"12561":{"originalFunc":{"__isSmartRef__":true,"id":959}},"12562":{"varMapping":{"__isSmartRef__":true,"id":12563},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":12564},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12565},"__LivelyClassName__":"lively.Closure"},"12563":{"this":{"__isSmartRef__":true,"id":12486}},"12564":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"12565":{"originalFunc":{"__isSmartRef__":true,"id":963}},"12566":{"varMapping":{"__isSmartRef__":true,"id":12567},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12568},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12569},"__LivelyClassName__":"lively.Closure"},"12567":{"this":{"__isSmartRef__":true,"id":12486}},"12568":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"12569":{"originalFunc":{"__isSmartRef__":true,"id":967}},"12570":{"varMapping":{"__isSmartRef__":true,"id":12571},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12572},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12573},"__LivelyClassName__":"lively.Closure"},"12571":{"this":{"__isSmartRef__":true,"id":12486}},"12572":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"12573":{"originalFunc":{"__isSmartRef__":true,"id":971}},"12574":{"varMapping":{"__isSmartRef__":true,"id":12575},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":12576},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12577},"__LivelyClassName__":"lively.Closure"},"12575":{"this":{"__isSmartRef__":true,"id":12486}},"12576":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"12577":{"originalFunc":{"__isSmartRef__":true,"id":975}},"12578":{"varMapping":{"__isSmartRef__":true,"id":12579},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":12580},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12581},"__LivelyClassName__":"lively.Closure"},"12579":{"this":{"__isSmartRef__":true,"id":12486}},"12580":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"12581":{"originalFunc":{"__isSmartRef__":true,"id":979}},"12582":{"varMapping":{"__isSmartRef__":true,"id":12583},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":12584},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12585},"__LivelyClassName__":"lively.Closure"},"12583":{"this":{"__isSmartRef__":true,"id":12486}},"12584":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"12585":{"originalFunc":{"__isSmartRef__":true,"id":983}},"12586":{"varMapping":{"__isSmartRef__":true,"id":12587},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":12588},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12589},"__LivelyClassName__":"lively.Closure"},"12587":{"this":{"__isSmartRef__":true,"id":12486}},"12588":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"12589":{"originalFunc":{"__isSmartRef__":true,"id":987}},"12590":{"varMapping":{"__isSmartRef__":true,"id":12591},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":12592},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12593},"__LivelyClassName__":"lively.Closure"},"12591":{"this":{"__isSmartRef__":true,"id":12486}},"12592":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"12593":{"originalFunc":{"__isSmartRef__":true,"id":991}},"12594":{"varMapping":{"__isSmartRef__":true,"id":12595},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":12596},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12597},"__LivelyClassName__":"lively.Closure"},"12595":{"this":{"__isSmartRef__":true,"id":12486}},"12596":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"12597":{"originalFunc":{"__isSmartRef__":true,"id":995}},"12598":{"varMapping":{"__isSmartRef__":true,"id":12599},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":12600},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12601},"__LivelyClassName__":"lively.Closure"},"12599":{"this":{"__isSmartRef__":true,"id":12486}},"12600":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"12601":{"originalFunc":{"__isSmartRef__":true,"id":999}},"12602":{"varMapping":{"__isSmartRef__":true,"id":12603},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12604},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12605},"__LivelyClassName__":"lively.Closure"},"12603":{"this":{"__isSmartRef__":true,"id":12486}},"12604":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"12605":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"12606":{"varMapping":{"__isSmartRef__":true,"id":12607},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12608},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12609},"__LivelyClassName__":"lively.Closure"},"12607":{"this":{"__isSmartRef__":true,"id":12486}},"12608":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"12609":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"12610":{"varMapping":{"__isSmartRef__":true,"id":12611},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":12612},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12613},"__LivelyClassName__":"lively.Closure"},"12611":{"this":{"__isSmartRef__":true,"id":12486}},"12612":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"12613":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"12614":{"setDevStyle":{"__isSmartRef__":true,"id":12615},"setNormalStyle":{"__isSmartRef__":true,"id":12619},"tileSize":{"__isSmartRef__":true,"id":12623},"become":{"__isSmartRef__":true,"id":12627},"onMouseDown":{"__isSmartRef__":true,"id":12631},"setGridPosition":{"__isSmartRef__":true,"id":12639},"toolbox":{"__isSmartRef__":true,"id":12643},"distanceTo":{"__isSmartRef__":true,"id":12647},"tileWasDropped":{"__isSmartRef__":true,"id":12651},"isObstacle":{"__isSmartRef__":true,"id":12655},"neighboursInDirection":{"__isSmartRef__":true,"id":12659},"neighbours":{"__isSmartRef__":true,"id":12663},"zIndex":{"__isSmartRef__":true,"id":12667},"obstacles":{"__isSmartRef__":true,"id":12671},"addObstacle":{"__isSmartRef__":true,"id":12675},"removeObstacle":{"__isSmartRef__":true,"id":12679},"isTile":{"__isSmartRef__":true,"id":12683},"neighbourAt":{"__isSmartRef__":true,"id":12687},"map":{"__isSmartRef__":true,"id":12691},"game":{"__isSmartRef__":true,"id":12695},"reset":{"__isSmartRef__":true,"id":12699},"shallowCopy":{"__isSmartRef__":true,"id":12703},"characters":{"__isSmartRef__":true,"id":12707},"enterTile":{"__isSmartRef__":true,"id":12711},"leaveTile":{"__isSmartRef__":true,"id":12715},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":12719}},"12615":{"varMapping":{"__isSmartRef__":true,"id":12616},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":12617},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12618},"__LivelyClassName__":"lively.Closure"},"12616":{"this":{"__isSmartRef__":true,"id":1790}},"12617":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"12618":{"originalFunc":{"__isSmartRef__":true,"id":892}},"12619":{"varMapping":{"__isSmartRef__":true,"id":12620},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":12621},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12622},"__LivelyClassName__":"lively.Closure"},"12620":{"this":{"__isSmartRef__":true,"id":1790}},"12621":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"12622":{"originalFunc":{"__isSmartRef__":true,"id":911}},"12623":{"varMapping":{"__isSmartRef__":true,"id":12624},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":12625},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12626},"__LivelyClassName__":"lively.Closure"},"12624":{"this":{"__isSmartRef__":true,"id":1790}},"12625":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"12626":{"originalFunc":{"__isSmartRef__":true,"id":915}},"12627":{"varMapping":{"__isSmartRef__":true,"id":12628},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12629},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12630},"__LivelyClassName__":"lively.Closure"},"12628":{"this":{"__isSmartRef__":true,"id":1790}},"12629":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"12630":{"originalFunc":{"__isSmartRef__":true,"id":919}},"12631":{"varMapping":{"__isSmartRef__":true,"id":12632},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12637},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12638},"__LivelyClassName__":"lively.Closure"},"12632":{"this":{"__isSmartRef__":true,"id":1790},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12633}},"12633":{"$super":{"__isSmartRef__":true,"id":12634}},"12634":{"varMapping":{"__isSmartRef__":true,"id":12635},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12636},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12635":{"obj":{"__isSmartRef__":true,"id":1790},"name":"onMouseDown"},"12636":{},"12637":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"12638":{"originalFunc":{"__isSmartRef__":true,"id":923}},"12639":{"varMapping":{"__isSmartRef__":true,"id":12640},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":12641},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12642},"__LivelyClassName__":"lively.Closure"},"12640":{"this":{"__isSmartRef__":true,"id":1790}},"12641":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"12642":{"originalFunc":{"__isSmartRef__":true,"id":931}},"12643":{"varMapping":{"__isSmartRef__":true,"id":12644},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":12645},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12646},"__LivelyClassName__":"lively.Closure"},"12644":{"this":{"__isSmartRef__":true,"id":1790}},"12645":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"12646":{"originalFunc":{"__isSmartRef__":true,"id":935}},"12647":{"varMapping":{"__isSmartRef__":true,"id":12648},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":12649},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12650},"__LivelyClassName__":"lively.Closure"},"12648":{"this":{"__isSmartRef__":true,"id":1790}},"12649":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"12650":{"originalFunc":{"__isSmartRef__":true,"id":939}},"12651":{"varMapping":{"__isSmartRef__":true,"id":12652},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":12653},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12654},"__LivelyClassName__":"lively.Closure"},"12652":{"this":{"__isSmartRef__":true,"id":1790}},"12653":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"12654":{"originalFunc":{"__isSmartRef__":true,"id":943}},"12655":{"varMapping":{"__isSmartRef__":true,"id":12656},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":12657},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12658},"__LivelyClassName__":"lively.Closure"},"12656":{"this":{"__isSmartRef__":true,"id":1790}},"12657":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"12658":{"originalFunc":{"__isSmartRef__":true,"id":947}},"12659":{"varMapping":{"__isSmartRef__":true,"id":12660},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":12661},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12662},"__LivelyClassName__":"lively.Closure"},"12660":{"this":{"__isSmartRef__":true,"id":1790}},"12661":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"12662":{"originalFunc":{"__isSmartRef__":true,"id":951}},"12663":{"varMapping":{"__isSmartRef__":true,"id":12664},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":12665},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12666},"__LivelyClassName__":"lively.Closure"},"12664":{"this":{"__isSmartRef__":true,"id":1790}},"12665":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"12666":{"originalFunc":{"__isSmartRef__":true,"id":955}},"12667":{"varMapping":{"__isSmartRef__":true,"id":12668},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":12669},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12670},"__LivelyClassName__":"lively.Closure"},"12668":{"this":{"__isSmartRef__":true,"id":1790}},"12669":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"12670":{"originalFunc":{"__isSmartRef__":true,"id":959}},"12671":{"varMapping":{"__isSmartRef__":true,"id":12672},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":12673},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12674},"__LivelyClassName__":"lively.Closure"},"12672":{"this":{"__isSmartRef__":true,"id":1790}},"12673":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"12674":{"originalFunc":{"__isSmartRef__":true,"id":963}},"12675":{"varMapping":{"__isSmartRef__":true,"id":12676},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12677},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12678},"__LivelyClassName__":"lively.Closure"},"12676":{"this":{"__isSmartRef__":true,"id":1790}},"12677":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"12678":{"originalFunc":{"__isSmartRef__":true,"id":967}},"12679":{"varMapping":{"__isSmartRef__":true,"id":12680},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12681},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12682},"__LivelyClassName__":"lively.Closure"},"12680":{"this":{"__isSmartRef__":true,"id":1790}},"12681":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"12682":{"originalFunc":{"__isSmartRef__":true,"id":971}},"12683":{"varMapping":{"__isSmartRef__":true,"id":12684},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":12685},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12686},"__LivelyClassName__":"lively.Closure"},"12684":{"this":{"__isSmartRef__":true,"id":1790}},"12685":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"12686":{"originalFunc":{"__isSmartRef__":true,"id":975}},"12687":{"varMapping":{"__isSmartRef__":true,"id":12688},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":12689},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12690},"__LivelyClassName__":"lively.Closure"},"12688":{"this":{"__isSmartRef__":true,"id":1790}},"12689":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"12690":{"originalFunc":{"__isSmartRef__":true,"id":979}},"12691":{"varMapping":{"__isSmartRef__":true,"id":12692},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":12693},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12694},"__LivelyClassName__":"lively.Closure"},"12692":{"this":{"__isSmartRef__":true,"id":1790}},"12693":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"12694":{"originalFunc":{"__isSmartRef__":true,"id":983}},"12695":{"varMapping":{"__isSmartRef__":true,"id":12696},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":12697},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12698},"__LivelyClassName__":"lively.Closure"},"12696":{"this":{"__isSmartRef__":true,"id":1790}},"12697":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"12698":{"originalFunc":{"__isSmartRef__":true,"id":987}},"12699":{"varMapping":{"__isSmartRef__":true,"id":12700},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":12701},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12702},"__LivelyClassName__":"lively.Closure"},"12700":{"this":{"__isSmartRef__":true,"id":1790}},"12701":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"12702":{"originalFunc":{"__isSmartRef__":true,"id":991}},"12703":{"varMapping":{"__isSmartRef__":true,"id":12704},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":12705},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12706},"__LivelyClassName__":"lively.Closure"},"12704":{"this":{"__isSmartRef__":true,"id":1790}},"12705":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"12706":{"originalFunc":{"__isSmartRef__":true,"id":995}},"12707":{"varMapping":{"__isSmartRef__":true,"id":12708},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":12709},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12710},"__LivelyClassName__":"lively.Closure"},"12708":{"this":{"__isSmartRef__":true,"id":1790}},"12709":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"12710":{"originalFunc":{"__isSmartRef__":true,"id":999}},"12711":{"varMapping":{"__isSmartRef__":true,"id":12712},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12713},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12714},"__LivelyClassName__":"lively.Closure"},"12712":{"this":{"__isSmartRef__":true,"id":1790}},"12713":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"12714":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"12715":{"varMapping":{"__isSmartRef__":true,"id":12716},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12717},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12718},"__LivelyClassName__":"lively.Closure"},"12716":{"this":{"__isSmartRef__":true,"id":1790}},"12717":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"12718":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"12719":{"varMapping":{"__isSmartRef__":true,"id":12720},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":12721},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12722},"__LivelyClassName__":"lively.Closure"},"12720":{"this":{"__isSmartRef__":true,"id":1790}},"12721":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"12722":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"12723":{"submorphs":[{"__isSmartRef__":true,"id":12724}],"scripts":[],"shape":{"__isSmartRef__":true,"id":12734},"renderContextTable":{"__isSmartRef__":true,"id":12739},"eventHandler":{"__isSmartRef__":true,"id":12740},"_ClipMode":"visible","derivationIds":[],"id":"83E7CCA9-3679-4CF4-B8E7-93EE1EC74637","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":12741},"partsBinMetaInfo":{"__isSmartRef__":true,"id":67},"row":3,"column":2,"owner":{"__isSmartRef__":true,"id":2},"terrain":{"__isSmartRef__":true,"id":12724},"grabbingEnabled":false,"__obstacles":[{"__isSmartRef__":true,"id":1618}],"charactersStandingHere":[],"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12742},"__LivelyClassName__":"lively.morphic.Box"},"12724":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":12725},"renderContextTable":{"__isSmartRef__":true,"id":12730},"eventHandler":{"__isSmartRef__":true,"id":12731},"_ClipMode":"visible","derivationIds":[],"id":"7BCC5734-781E-4668-B027-672166299361","droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":12732},"isObstacle":false,"grabbingEnabled":false,"draggingEnabled":false,"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":12723},"__SourceModuleName__":"Global.lively.morphic.Widgets","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12733},"__LivelyClassName__":"lively.morphic.Image"},"12725":{"_Position":{"__isSmartRef__":true,"id":12726},"renderContextTable":{"__isSmartRef__":true,"id":12727},"_Extent":{"__isSmartRef__":true,"id":12728},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/grass.png","_Padding":{"__isSmartRef__":true,"id":12729},"_NodeClass":["Morph","Image"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"12726":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12727":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"12728":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12729":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"12730":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"12731":{"morph":{"__isSmartRef__":true,"id":12724},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12732":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12733":{"dropOn":{"__isSmartRef__":true,"id":14},"shallowCopy":{"__isSmartRef__":true,"id":49}},"12734":{"_Position":{"__isSmartRef__":true,"id":12735},"renderContextTable":{"__isSmartRef__":true,"id":12736},"_Extent":{"__isSmartRef__":true,"id":12737},"_Padding":{"__isSmartRef__":true,"id":12738},"_NodeClass":["Morph","Box"],"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":63},"_Fill":null,"_Opacity":1,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"12735":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12736":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"12737":{"x":48.480000000000004,"y":48.480000000000004,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12738":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"12739":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"12740":{"morph":{"__isSmartRef__":true,"id":12723},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12741":{"x":96,"y":144,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"12742":{"setDevStyle":{"__isSmartRef__":true,"id":12743},"setNormalStyle":{"__isSmartRef__":true,"id":12747},"tileSize":{"__isSmartRef__":true,"id":12751},"become":{"__isSmartRef__":true,"id":12755},"onMouseDown":{"__isSmartRef__":true,"id":12759},"setGridPosition":{"__isSmartRef__":true,"id":12767},"toolbox":{"__isSmartRef__":true,"id":12771},"distanceTo":{"__isSmartRef__":true,"id":12775},"tileWasDropped":{"__isSmartRef__":true,"id":12779},"isObstacle":{"__isSmartRef__":true,"id":12783},"neighboursInDirection":{"__isSmartRef__":true,"id":12787},"neighbours":{"__isSmartRef__":true,"id":12791},"zIndex":{"__isSmartRef__":true,"id":12795},"obstacles":{"__isSmartRef__":true,"id":12799},"addObstacle":{"__isSmartRef__":true,"id":12803},"removeObstacle":{"__isSmartRef__":true,"id":12807},"isTile":{"__isSmartRef__":true,"id":12811},"neighbourAt":{"__isSmartRef__":true,"id":12815},"map":{"__isSmartRef__":true,"id":12819},"game":{"__isSmartRef__":true,"id":12823},"reset":{"__isSmartRef__":true,"id":12827},"shallowCopy":{"__isSmartRef__":true,"id":12831},"characters":{"__isSmartRef__":true,"id":12835},"enterTile":{"__isSmartRef__":true,"id":12839},"leaveTile":{"__isSmartRef__":true,"id":12843},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":12847}},"12743":{"varMapping":{"__isSmartRef__":true,"id":12744},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":12745},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12746},"__LivelyClassName__":"lively.Closure"},"12744":{"this":{"__isSmartRef__":true,"id":12723}},"12745":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"12746":{"originalFunc":{"__isSmartRef__":true,"id":892}},"12747":{"varMapping":{"__isSmartRef__":true,"id":12748},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":12749},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12750},"__LivelyClassName__":"lively.Closure"},"12748":{"this":{"__isSmartRef__":true,"id":12723}},"12749":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"12750":{"originalFunc":{"__isSmartRef__":true,"id":911}},"12751":{"varMapping":{"__isSmartRef__":true,"id":12752},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":12753},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12754},"__LivelyClassName__":"lively.Closure"},"12752":{"this":{"__isSmartRef__":true,"id":12723}},"12753":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"12754":{"originalFunc":{"__isSmartRef__":true,"id":915}},"12755":{"varMapping":{"__isSmartRef__":true,"id":12756},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12757},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12758},"__LivelyClassName__":"lively.Closure"},"12756":{"this":{"__isSmartRef__":true,"id":12723}},"12757":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"12758":{"originalFunc":{"__isSmartRef__":true,"id":919}},"12759":{"varMapping":{"__isSmartRef__":true,"id":12760},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12765},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12766},"__LivelyClassName__":"lively.Closure"},"12760":{"this":{"__isSmartRef__":true,"id":12723},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12761}},"12761":{"$super":{"__isSmartRef__":true,"id":12762}},"12762":{"varMapping":{"__isSmartRef__":true,"id":12763},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12764},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12763":{"obj":{"__isSmartRef__":true,"id":12723},"name":"onMouseDown"},"12764":{},"12765":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"12766":{"originalFunc":{"__isSmartRef__":true,"id":923}},"12767":{"varMapping":{"__isSmartRef__":true,"id":12768},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":12769},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12770},"__LivelyClassName__":"lively.Closure"},"12768":{"this":{"__isSmartRef__":true,"id":12723}},"12769":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"12770":{"originalFunc":{"__isSmartRef__":true,"id":931}},"12771":{"varMapping":{"__isSmartRef__":true,"id":12772},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":12773},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12774},"__LivelyClassName__":"lively.Closure"},"12772":{"this":{"__isSmartRef__":true,"id":12723}},"12773":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"12774":{"originalFunc":{"__isSmartRef__":true,"id":935}},"12775":{"varMapping":{"__isSmartRef__":true,"id":12776},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":12777},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12778},"__LivelyClassName__":"lively.Closure"},"12776":{"this":{"__isSmartRef__":true,"id":12723}},"12777":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"12778":{"originalFunc":{"__isSmartRef__":true,"id":939}},"12779":{"varMapping":{"__isSmartRef__":true,"id":12780},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":12781},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12782},"__LivelyClassName__":"lively.Closure"},"12780":{"this":{"__isSmartRef__":true,"id":12723}},"12781":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"12782":{"originalFunc":{"__isSmartRef__":true,"id":943}},"12783":{"varMapping":{"__isSmartRef__":true,"id":12784},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":12785},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12786},"__LivelyClassName__":"lively.Closure"},"12784":{"this":{"__isSmartRef__":true,"id":12723}},"12785":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"12786":{"originalFunc":{"__isSmartRef__":true,"id":947}},"12787":{"varMapping":{"__isSmartRef__":true,"id":12788},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":12789},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12790},"__LivelyClassName__":"lively.Closure"},"12788":{"this":{"__isSmartRef__":true,"id":12723}},"12789":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"12790":{"originalFunc":{"__isSmartRef__":true,"id":951}},"12791":{"varMapping":{"__isSmartRef__":true,"id":12792},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":12793},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12794},"__LivelyClassName__":"lively.Closure"},"12792":{"this":{"__isSmartRef__":true,"id":12723}},"12793":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"12794":{"originalFunc":{"__isSmartRef__":true,"id":955}},"12795":{"varMapping":{"__isSmartRef__":true,"id":12796},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":12797},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12798},"__LivelyClassName__":"lively.Closure"},"12796":{"this":{"__isSmartRef__":true,"id":12723}},"12797":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"12798":{"originalFunc":{"__isSmartRef__":true,"id":959}},"12799":{"varMapping":{"__isSmartRef__":true,"id":12800},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":12801},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12802},"__LivelyClassName__":"lively.Closure"},"12800":{"this":{"__isSmartRef__":true,"id":12723}},"12801":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"12802":{"originalFunc":{"__isSmartRef__":true,"id":963}},"12803":{"varMapping":{"__isSmartRef__":true,"id":12804},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12805},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12806},"__LivelyClassName__":"lively.Closure"},"12804":{"this":{"__isSmartRef__":true,"id":12723}},"12805":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"12806":{"originalFunc":{"__isSmartRef__":true,"id":967}},"12807":{"varMapping":{"__isSmartRef__":true,"id":12808},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12809},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12810},"__LivelyClassName__":"lively.Closure"},"12808":{"this":{"__isSmartRef__":true,"id":12723}},"12809":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"12810":{"originalFunc":{"__isSmartRef__":true,"id":971}},"12811":{"varMapping":{"__isSmartRef__":true,"id":12812},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":12813},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12814},"__LivelyClassName__":"lively.Closure"},"12812":{"this":{"__isSmartRef__":true,"id":12723}},"12813":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"12814":{"originalFunc":{"__isSmartRef__":true,"id":975}},"12815":{"varMapping":{"__isSmartRef__":true,"id":12816},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":12817},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12818},"__LivelyClassName__":"lively.Closure"},"12816":{"this":{"__isSmartRef__":true,"id":12723}},"12817":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"12818":{"originalFunc":{"__isSmartRef__":true,"id":979}},"12819":{"varMapping":{"__isSmartRef__":true,"id":12820},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":12821},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12822},"__LivelyClassName__":"lively.Closure"},"12820":{"this":{"__isSmartRef__":true,"id":12723}},"12821":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"12822":{"originalFunc":{"__isSmartRef__":true,"id":983}},"12823":{"varMapping":{"__isSmartRef__":true,"id":12824},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":12825},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12826},"__LivelyClassName__":"lively.Closure"},"12824":{"this":{"__isSmartRef__":true,"id":12723}},"12825":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"12826":{"originalFunc":{"__isSmartRef__":true,"id":987}},"12827":{"varMapping":{"__isSmartRef__":true,"id":12828},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":12829},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12830},"__LivelyClassName__":"lively.Closure"},"12828":{"this":{"__isSmartRef__":true,"id":12723}},"12829":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"12830":{"originalFunc":{"__isSmartRef__":true,"id":991}},"12831":{"varMapping":{"__isSmartRef__":true,"id":12832},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":12833},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12834},"__LivelyClassName__":"lively.Closure"},"12832":{"this":{"__isSmartRef__":true,"id":12723}},"12833":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"12834":{"originalFunc":{"__isSmartRef__":true,"id":995}},"12835":{"varMapping":{"__isSmartRef__":true,"id":12836},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":12837},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12838},"__LivelyClassName__":"lively.Closure"},"12836":{"this":{"__isSmartRef__":true,"id":12723}},"12837":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"12838":{"originalFunc":{"__isSmartRef__":true,"id":999}},"12839":{"varMapping":{"__isSmartRef__":true,"id":12840},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12841},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12842},"__LivelyClassName__":"lively.Closure"},"12840":{"this":{"__isSmartRef__":true,"id":12723}},"12841":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"12842":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"12843":{"varMapping":{"__isSmartRef__":true,"id":12844},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12845},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12846},"__LivelyClassName__":"lively.Closure"},"12844":{"this":{"__isSmartRef__":true,"id":12723}},"12845":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"12846":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"12847":{"varMapping":{"__isSmartRef__":true,"id":12848},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":12849},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12850},"__LivelyClassName__":"lively.Closure"},"12848":{"this":{"__isSmartRef__":true,"id":12723}},"12849":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"12850":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"12851":{"setDevStyle":{"__isSmartRef__":true,"id":12852},"setNormalStyle":{"__isSmartRef__":true,"id":12856},"become":{"__isSmartRef__":true,"id":12860},"onMouseDown":{"__isSmartRef__":true,"id":12864},"toolbox":{"__isSmartRef__":true,"id":12872},"zIndex":{"__isSmartRef__":true,"id":12876},"becomeRandomThing":{"__isSmartRef__":true,"id":12880},"reset":{"__isSmartRef__":true,"id":12884},"registerAsObstacle":{"__isSmartRef__":true,"id":12888},"deregisterAsObstacle":{"__isSmartRef__":true,"id":12892},"tileSize":{"__isSmartRef__":true,"id":12896},"dropOn":{"__isSmartRef__":true,"id":12900},"map":{"__isSmartRef__":true,"id":12908},"game":{"__isSmartRef__":true,"id":12912}},"12852":{"varMapping":{"__isSmartRef__":true,"id":12853},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.shape.setBorderColor(Color.blue)\n if (this.thing) {\n this.thing.shape.setBorderColor(Color.red)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12854},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12853":{"this":{"__isSmartRef__":true,"id":1618}},"12854":{"timestamp":{"__isSmartRef__":true,"id":12855},"user":"timfelgentreff","tags":[]},"12855":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:34:18 GMT+0200 (CEST)"},"12856":{"varMapping":{"__isSmartRef__":true,"id":12857},"source":"function setNormalStyle() {\n this.setDevStyle()\n this.shape.setBorderColor(new Color.rgba(0,0,0,0))\n if (this.thing) {\n this.thing.shape.setBorderColor(new Color.rgba(0,0,0,0))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12858},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12857":{"this":{"__isSmartRef__":true,"id":1618}},"12858":{"timestamp":{"__isSmartRef__":true,"id":12859},"user":"tessi","tags":[]},"12859":{"isSerializedDate":true,"string":"Thu May 03 2012 15:24:43 GMT+0200 (CEST)"},"12860":{"varMapping":{"__isSmartRef__":true,"id":12861},"source":"function become(thingName) {\n var thing\n if (typeof thingName === \"string\") {\n thing = this.toolbox(thingName + \"Thing\")\n } else {\n thing = thingName\n }\n if (thing) {\n if (this.thing) {\n this.thing.remove();\n }\n this.thing = thing;\n thing.ignoreEvents()\n thing.setExtent(thing.shape.getExtent())\n thing.setPosition(this.getExtent().subPt(this.thing.getExtent()))\n this.addMorph(thing)\n this.registerAsObstacle()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12862},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12861":{"this":{"__isSmartRef__":true,"id":1618}},"12862":{"timestamp":{"__isSmartRef__":true,"id":12863},"user":"timfelgentreff","tags":[]},"12863":{"isSerializedDate":true,"string":"Thu May 03 2012 13:48:50 GMT+0200 (CEST)"},"12864":{"varMapping":{"__isSmartRef__":true,"id":12865},"source":"function onMouseDown(evt) {\n if (this.tile && evt.isLeftMouseButtonDown() && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this.tile)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12870},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12865":{"this":{"__isSmartRef__":true,"id":1618},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12866}},"12866":{"$super":{"__isSmartRef__":true,"id":12867}},"12867":{"varMapping":{"__isSmartRef__":true,"id":12868},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12869},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12868":{"obj":{"__isSmartRef__":true,"id":1618},"name":"onMouseDown"},"12869":{},"12870":{"timestamp":{"__isSmartRef__":true,"id":12871},"user":"tessi","tags":[]},"12871":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:27:13 GMT+0200 (CEST)"},"12872":{"varMapping":{"__isSmartRef__":true,"id":12873},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":12874},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12873":{"this":{"__isSmartRef__":true,"id":1618}},"12874":{"timestamp":{"__isSmartRef__":true,"id":12875},"user":"tessi","tags":[]},"12875":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:27:30 GMT+0200 (CEST)"},"12876":{"varMapping":{"__isSmartRef__":true,"id":12877},"source":"function zIndex(idx) {\n if (idx) {\n return this.renderContext().morphNode.style.zIndex = idx\n } else {\n return this.renderContext().morphNode.style.zIndex\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12878},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12877":{"this":{"__isSmartRef__":true,"id":1618}},"12878":{"timestamp":{"__isSmartRef__":true,"id":12879},"user":"timfelgentreff","tags":[]},"12879":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:28:09 GMT+0200 (CEST)"},"12880":{"varMapping":{"__isSmartRef__":true,"id":12881},"source":"function becomeRandomThing() {\n var thingNames = this.game().partNamesEndingWith(\"Thing\")\n this.become(thingNames[Math.round(Math.random() * (thingNames.length - 1))])\n}","funcProperties":{"__isSmartRef__":true,"id":12882},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12881":{"this":{"__isSmartRef__":true,"id":1618}},"12882":{"timestamp":{"__isSmartRef__":true,"id":12883},"user":"tessi","tags":[]},"12883":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:54 GMT+0200 (CEST)"},"12884":{"varMapping":{"__isSmartRef__":true,"id":12885},"source":"function reset() {\n if (this.thing) {\n this.thing.remove()\n this.thing = null\n }\n this.deregisterAsObstacle()\n this.tile = null\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":12886},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12885":{"this":{"__isSmartRef__":true,"id":1618}},"12886":{"timestamp":{"__isSmartRef__":true,"id":12887},"user":"tessi","tags":[]},"12887":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:28:03 GMT+0200 (CEST)"},"12888":{"varMapping":{"__isSmartRef__":true,"id":12889},"source":"function registerAsObstacle() {\n this.deregisterAsObstacle()\n\n if (this.tile && this.thing) {\n this.occludedTiles = []\n\n // things are anchored at bottom-left, so neighbours direction is negative\n var neighboursBlockVertical = Math.ceil(this.thing.getExtent().y / this.tileSize().y),\n neighboursBlockHorizontal = Math.ceil(this.thing.getExtent().x / this.tileSize().x),\n neighbour\n\n this.occludedTiles.push(this.tile)\n this.tile.addObstacle(this)\n for (var i = 0; i < neighboursBlockHorizontal; i++) {\n for (var j = 0; j < neighboursBlockVertical; j++) {\n neighbour = this.tile.neighbourAt(pt(-i,-j))\n if (neighbour && !this.occludedTiles.member(neighbour)) {\n neighbour.addObstacle(this)\n this.occludedTiles.push(neighbour)\n }\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12890},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12889":{"this":{"__isSmartRef__":true,"id":1618}},"12890":{"timestamp":{"__isSmartRef__":true,"id":12891},"user":"timfelgentreff","tags":[]},"12891":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:18:39 GMT+0200 (CEST)"},"12892":{"varMapping":{"__isSmartRef__":true,"id":12893},"source":"function deregisterAsObstacle() {\n var that = this\n if (this.occludedTiles) {\n this.occludedTiles.each(function (tile) {\n tile.removeObstacle(that)\n })\n this.occludedTiles = null\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12894},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12893":{"this":{"__isSmartRef__":true,"id":1618}},"12894":{"timestamp":{"__isSmartRef__":true,"id":12895},"user":"timfelgentreff","tags":[]},"12895":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:25:37 GMT+0200 (CEST)"},"12896":{"varMapping":{"__isSmartRef__":true,"id":12897},"source":"function tileSize() {\n if (this.tile) {\n return this.tile.tileSize()\n } else {\n return this.toolbox(\"Tile\").tileSize()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12898},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12897":{"this":{"__isSmartRef__":true,"id":1618}},"12898":{"timestamp":{"__isSmartRef__":true,"id":12899},"user":"timfelgentreff","tags":[]},"12899":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:01:00 GMT+0200 (CEST)"},"12900":{"varMapping":{"__isSmartRef__":true,"id":12901},"source":"function dropOn(morph) {\n $super(morph);\n this.deregisterAsObstacle()\n if (morph.isTile) {\n this.tile = morph\n this.setPosition(pt(0,0))\n this.registerAsObstacle()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12906},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12901":{"this":{"__isSmartRef__":true,"id":1618},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12902}},"12902":{"$super":{"__isSmartRef__":true,"id":12903}},"12903":{"varMapping":{"__isSmartRef__":true,"id":12904},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12905},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12904":{"obj":{"__isSmartRef__":true,"id":1618},"name":"dropOn"},"12905":{},"12906":{"timestamp":{"__isSmartRef__":true,"id":12907},"user":"timfelgentreff","tags":[]},"12907":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:13:07 GMT+0200 (CEST)"},"12908":{"varMapping":{"__isSmartRef__":true,"id":12909},"source":"function map() {\n return this.owner.map()\n}","funcProperties":{"__isSmartRef__":true,"id":12910},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12909":{"this":{"__isSmartRef__":true,"id":1618}},"12910":{"timestamp":{"__isSmartRef__":true,"id":12911},"user":"tessi","tags":[]},"12911":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:34 GMT+0200 (CEST)"},"12912":{"varMapping":{"__isSmartRef__":true,"id":12913},"source":"function game() {\n return this.owner.game()\n}","funcProperties":{"__isSmartRef__":true,"id":12914},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12913":{"this":{"__isSmartRef__":true,"id":1618}},"12914":{"timestamp":{"__isSmartRef__":true,"id":12915},"user":"tessi","tags":[]},"12915":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:26:45 GMT+0200 (CEST)"},"12916":{"setDevStyle":{"__isSmartRef__":true,"id":12917},"setNormalStyle":{"__isSmartRef__":true,"id":12921},"tileSize":{"__isSmartRef__":true,"id":12925},"become":{"__isSmartRef__":true,"id":12929},"onMouseDown":{"__isSmartRef__":true,"id":12933},"setGridPosition":{"__isSmartRef__":true,"id":12941},"toolbox":{"__isSmartRef__":true,"id":12945},"distanceTo":{"__isSmartRef__":true,"id":12949},"tileWasDropped":{"__isSmartRef__":true,"id":12953},"isObstacle":{"__isSmartRef__":true,"id":12957},"neighboursInDirection":{"__isSmartRef__":true,"id":12961},"neighbours":{"__isSmartRef__":true,"id":12965},"zIndex":{"__isSmartRef__":true,"id":12969},"obstacles":{"__isSmartRef__":true,"id":12973},"addObstacle":{"__isSmartRef__":true,"id":12977},"removeObstacle":{"__isSmartRef__":true,"id":12981},"isTile":{"__isSmartRef__":true,"id":12985},"neighbourAt":{"__isSmartRef__":true,"id":12989},"map":{"__isSmartRef__":true,"id":12993},"game":{"__isSmartRef__":true,"id":12997},"reset":{"__isSmartRef__":true,"id":13001},"shallowCopy":{"__isSmartRef__":true,"id":13005},"characters":{"__isSmartRef__":true,"id":13009},"enterTile":{"__isSmartRef__":true,"id":13013},"leaveTile":{"__isSmartRef__":true,"id":13017},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":13021}},"12917":{"varMapping":{"__isSmartRef__":true,"id":12918},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":12919},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12920},"__LivelyClassName__":"lively.Closure"},"12918":{"this":{"__isSmartRef__":true,"id":1599}},"12919":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"12920":{"originalFunc":{"__isSmartRef__":true,"id":892}},"12921":{"varMapping":{"__isSmartRef__":true,"id":12922},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":12923},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12924},"__LivelyClassName__":"lively.Closure"},"12922":{"this":{"__isSmartRef__":true,"id":1599}},"12923":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"12924":{"originalFunc":{"__isSmartRef__":true,"id":911}},"12925":{"varMapping":{"__isSmartRef__":true,"id":12926},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":12927},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12928},"__LivelyClassName__":"lively.Closure"},"12926":{"this":{"__isSmartRef__":true,"id":1599}},"12927":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"12928":{"originalFunc":{"__isSmartRef__":true,"id":915}},"12929":{"varMapping":{"__isSmartRef__":true,"id":12930},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12931},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12932},"__LivelyClassName__":"lively.Closure"},"12930":{"this":{"__isSmartRef__":true,"id":1599}},"12931":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"12932":{"originalFunc":{"__isSmartRef__":true,"id":919}},"12933":{"varMapping":{"__isSmartRef__":true,"id":12934},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12939},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12940},"__LivelyClassName__":"lively.Closure"},"12934":{"this":{"__isSmartRef__":true,"id":1599},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12935}},"12935":{"$super":{"__isSmartRef__":true,"id":12936}},"12936":{"varMapping":{"__isSmartRef__":true,"id":12937},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12938},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12937":{"obj":{"__isSmartRef__":true,"id":1599},"name":"onMouseDown"},"12938":{},"12939":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"12940":{"originalFunc":{"__isSmartRef__":true,"id":923}},"12941":{"varMapping":{"__isSmartRef__":true,"id":12942},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":12943},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12944},"__LivelyClassName__":"lively.Closure"},"12942":{"this":{"__isSmartRef__":true,"id":1599}},"12943":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"12944":{"originalFunc":{"__isSmartRef__":true,"id":931}},"12945":{"varMapping":{"__isSmartRef__":true,"id":12946},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":12947},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12948},"__LivelyClassName__":"lively.Closure"},"12946":{"this":{"__isSmartRef__":true,"id":1599}},"12947":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"12948":{"originalFunc":{"__isSmartRef__":true,"id":935}},"12949":{"varMapping":{"__isSmartRef__":true,"id":12950},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":12951},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12952},"__LivelyClassName__":"lively.Closure"},"12950":{"this":{"__isSmartRef__":true,"id":1599}},"12951":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"12952":{"originalFunc":{"__isSmartRef__":true,"id":939}},"12953":{"varMapping":{"__isSmartRef__":true,"id":12954},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":12955},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12956},"__LivelyClassName__":"lively.Closure"},"12954":{"this":{"__isSmartRef__":true,"id":1599}},"12955":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"12956":{"originalFunc":{"__isSmartRef__":true,"id":943}},"12957":{"varMapping":{"__isSmartRef__":true,"id":12958},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":12959},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12960},"__LivelyClassName__":"lively.Closure"},"12958":{"this":{"__isSmartRef__":true,"id":1599}},"12959":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"12960":{"originalFunc":{"__isSmartRef__":true,"id":947}},"12961":{"varMapping":{"__isSmartRef__":true,"id":12962},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":12963},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12964},"__LivelyClassName__":"lively.Closure"},"12962":{"this":{"__isSmartRef__":true,"id":1599}},"12963":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"12964":{"originalFunc":{"__isSmartRef__":true,"id":951}},"12965":{"varMapping":{"__isSmartRef__":true,"id":12966},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":12967},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12968},"__LivelyClassName__":"lively.Closure"},"12966":{"this":{"__isSmartRef__":true,"id":1599}},"12967":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"12968":{"originalFunc":{"__isSmartRef__":true,"id":955}},"12969":{"varMapping":{"__isSmartRef__":true,"id":12970},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":12971},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12972},"__LivelyClassName__":"lively.Closure"},"12970":{"this":{"__isSmartRef__":true,"id":1599}},"12971":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"12972":{"originalFunc":{"__isSmartRef__":true,"id":959}},"12973":{"varMapping":{"__isSmartRef__":true,"id":12974},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":12975},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12976},"__LivelyClassName__":"lively.Closure"},"12974":{"this":{"__isSmartRef__":true,"id":1599}},"12975":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"12976":{"originalFunc":{"__isSmartRef__":true,"id":963}},"12977":{"varMapping":{"__isSmartRef__":true,"id":12978},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12979},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12980},"__LivelyClassName__":"lively.Closure"},"12978":{"this":{"__isSmartRef__":true,"id":1599}},"12979":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"12980":{"originalFunc":{"__isSmartRef__":true,"id":967}},"12981":{"varMapping":{"__isSmartRef__":true,"id":12982},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12983},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12984},"__LivelyClassName__":"lively.Closure"},"12982":{"this":{"__isSmartRef__":true,"id":1599}},"12983":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"12984":{"originalFunc":{"__isSmartRef__":true,"id":971}},"12985":{"varMapping":{"__isSmartRef__":true,"id":12986},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":12987},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12988},"__LivelyClassName__":"lively.Closure"},"12986":{"this":{"__isSmartRef__":true,"id":1599}},"12987":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"12988":{"originalFunc":{"__isSmartRef__":true,"id":975}},"12989":{"varMapping":{"__isSmartRef__":true,"id":12990},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":12991},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12992},"__LivelyClassName__":"lively.Closure"},"12990":{"this":{"__isSmartRef__":true,"id":1599}},"12991":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"12992":{"originalFunc":{"__isSmartRef__":true,"id":979}},"12993":{"varMapping":{"__isSmartRef__":true,"id":12994},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":12995},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12996},"__LivelyClassName__":"lively.Closure"},"12994":{"this":{"__isSmartRef__":true,"id":1599}},"12995":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"12996":{"originalFunc":{"__isSmartRef__":true,"id":983}},"12997":{"varMapping":{"__isSmartRef__":true,"id":12998},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":12999},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13000},"__LivelyClassName__":"lively.Closure"},"12998":{"this":{"__isSmartRef__":true,"id":1599}},"12999":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"13000":{"originalFunc":{"__isSmartRef__":true,"id":987}},"13001":{"varMapping":{"__isSmartRef__":true,"id":13002},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":13003},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13004},"__LivelyClassName__":"lively.Closure"},"13002":{"this":{"__isSmartRef__":true,"id":1599}},"13003":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"13004":{"originalFunc":{"__isSmartRef__":true,"id":991}},"13005":{"varMapping":{"__isSmartRef__":true,"id":13006},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":13007},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13008},"__LivelyClassName__":"lively.Closure"},"13006":{"this":{"__isSmartRef__":true,"id":1599}},"13007":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"13008":{"originalFunc":{"__isSmartRef__":true,"id":995}},"13009":{"varMapping":{"__isSmartRef__":true,"id":13010},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":13011},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13012},"__LivelyClassName__":"lively.Closure"},"13010":{"this":{"__isSmartRef__":true,"id":1599}},"13011":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"13012":{"originalFunc":{"__isSmartRef__":true,"id":999}},"13013":{"varMapping":{"__isSmartRef__":true,"id":13014},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13015},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13016},"__LivelyClassName__":"lively.Closure"},"13014":{"this":{"__isSmartRef__":true,"id":1599}},"13015":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"13016":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"13017":{"varMapping":{"__isSmartRef__":true,"id":13018},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13019},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13020},"__LivelyClassName__":"lively.Closure"},"13018":{"this":{"__isSmartRef__":true,"id":1599}},"13019":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"13020":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"13021":{"varMapping":{"__isSmartRef__":true,"id":13022},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":13023},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13024},"__LivelyClassName__":"lively.Closure"},"13022":{"this":{"__isSmartRef__":true,"id":1599}},"13023":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"13024":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"13025":{"setDevStyle":{"__isSmartRef__":true,"id":13026},"setNormalStyle":{"__isSmartRef__":true,"id":13030},"tileSize":{"__isSmartRef__":true,"id":13034},"become":{"__isSmartRef__":true,"id":13038},"onMouseDown":{"__isSmartRef__":true,"id":13042},"setGridPosition":{"__isSmartRef__":true,"id":13050},"toolbox":{"__isSmartRef__":true,"id":13054},"distanceTo":{"__isSmartRef__":true,"id":13058},"tileWasDropped":{"__isSmartRef__":true,"id":13062},"isObstacle":{"__isSmartRef__":true,"id":13066},"neighboursInDirection":{"__isSmartRef__":true,"id":13070},"neighbours":{"__isSmartRef__":true,"id":13074},"zIndex":{"__isSmartRef__":true,"id":13078},"obstacles":{"__isSmartRef__":true,"id":13082},"addObstacle":{"__isSmartRef__":true,"id":13086},"removeObstacle":{"__isSmartRef__":true,"id":13090},"isTile":{"__isSmartRef__":true,"id":13094},"neighbourAt":{"__isSmartRef__":true,"id":13098},"map":{"__isSmartRef__":true,"id":13102},"game":{"__isSmartRef__":true,"id":13106},"reset":{"__isSmartRef__":true,"id":13110},"shallowCopy":{"__isSmartRef__":true,"id":13114},"characters":{"__isSmartRef__":true,"id":13118},"enterTile":{"__isSmartRef__":true,"id":13122},"leaveTile":{"__isSmartRef__":true,"id":13126},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":13130}},"13026":{"varMapping":{"__isSmartRef__":true,"id":13027},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":13028},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13029},"__LivelyClassName__":"lively.Closure"},"13027":{"this":{"__isSmartRef__":true,"id":1580}},"13028":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"13029":{"originalFunc":{"__isSmartRef__":true,"id":892}},"13030":{"varMapping":{"__isSmartRef__":true,"id":13031},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":13032},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13033},"__LivelyClassName__":"lively.Closure"},"13031":{"this":{"__isSmartRef__":true,"id":1580}},"13032":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"13033":{"originalFunc":{"__isSmartRef__":true,"id":911}},"13034":{"varMapping":{"__isSmartRef__":true,"id":13035},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":13036},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13037},"__LivelyClassName__":"lively.Closure"},"13035":{"this":{"__isSmartRef__":true,"id":1580}},"13036":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"13037":{"originalFunc":{"__isSmartRef__":true,"id":915}},"13038":{"varMapping":{"__isSmartRef__":true,"id":13039},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13040},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13041},"__LivelyClassName__":"lively.Closure"},"13039":{"this":{"__isSmartRef__":true,"id":1580}},"13040":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"13041":{"originalFunc":{"__isSmartRef__":true,"id":919}},"13042":{"varMapping":{"__isSmartRef__":true,"id":13043},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13048},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13049},"__LivelyClassName__":"lively.Closure"},"13043":{"this":{"__isSmartRef__":true,"id":1580},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13044}},"13044":{"$super":{"__isSmartRef__":true,"id":13045}},"13045":{"varMapping":{"__isSmartRef__":true,"id":13046},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13047},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13046":{"obj":{"__isSmartRef__":true,"id":1580},"name":"onMouseDown"},"13047":{},"13048":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"13049":{"originalFunc":{"__isSmartRef__":true,"id":923}},"13050":{"varMapping":{"__isSmartRef__":true,"id":13051},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":13052},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13053},"__LivelyClassName__":"lively.Closure"},"13051":{"this":{"__isSmartRef__":true,"id":1580}},"13052":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"13053":{"originalFunc":{"__isSmartRef__":true,"id":931}},"13054":{"varMapping":{"__isSmartRef__":true,"id":13055},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":13056},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13057},"__LivelyClassName__":"lively.Closure"},"13055":{"this":{"__isSmartRef__":true,"id":1580}},"13056":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"13057":{"originalFunc":{"__isSmartRef__":true,"id":935}},"13058":{"varMapping":{"__isSmartRef__":true,"id":13059},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":13060},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13061},"__LivelyClassName__":"lively.Closure"},"13059":{"this":{"__isSmartRef__":true,"id":1580}},"13060":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"13061":{"originalFunc":{"__isSmartRef__":true,"id":939}},"13062":{"varMapping":{"__isSmartRef__":true,"id":13063},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":13064},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13065},"__LivelyClassName__":"lively.Closure"},"13063":{"this":{"__isSmartRef__":true,"id":1580}},"13064":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"13065":{"originalFunc":{"__isSmartRef__":true,"id":943}},"13066":{"varMapping":{"__isSmartRef__":true,"id":13067},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":13068},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13069},"__LivelyClassName__":"lively.Closure"},"13067":{"this":{"__isSmartRef__":true,"id":1580}},"13068":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"13069":{"originalFunc":{"__isSmartRef__":true,"id":947}},"13070":{"varMapping":{"__isSmartRef__":true,"id":13071},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":13072},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13073},"__LivelyClassName__":"lively.Closure"},"13071":{"this":{"__isSmartRef__":true,"id":1580}},"13072":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"13073":{"originalFunc":{"__isSmartRef__":true,"id":951}},"13074":{"varMapping":{"__isSmartRef__":true,"id":13075},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":13076},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13077},"__LivelyClassName__":"lively.Closure"},"13075":{"this":{"__isSmartRef__":true,"id":1580}},"13076":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"13077":{"originalFunc":{"__isSmartRef__":true,"id":955}},"13078":{"varMapping":{"__isSmartRef__":true,"id":13079},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":13080},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13081},"__LivelyClassName__":"lively.Closure"},"13079":{"this":{"__isSmartRef__":true,"id":1580}},"13080":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"13081":{"originalFunc":{"__isSmartRef__":true,"id":959}},"13082":{"varMapping":{"__isSmartRef__":true,"id":13083},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":13084},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13085},"__LivelyClassName__":"lively.Closure"},"13083":{"this":{"__isSmartRef__":true,"id":1580}},"13084":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"13085":{"originalFunc":{"__isSmartRef__":true,"id":963}},"13086":{"varMapping":{"__isSmartRef__":true,"id":13087},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13088},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13089},"__LivelyClassName__":"lively.Closure"},"13087":{"this":{"__isSmartRef__":true,"id":1580}},"13088":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"13089":{"originalFunc":{"__isSmartRef__":true,"id":967}},"13090":{"varMapping":{"__isSmartRef__":true,"id":13091},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13092},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13093},"__LivelyClassName__":"lively.Closure"},"13091":{"this":{"__isSmartRef__":true,"id":1580}},"13092":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"13093":{"originalFunc":{"__isSmartRef__":true,"id":971}},"13094":{"varMapping":{"__isSmartRef__":true,"id":13095},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":13096},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13097},"__LivelyClassName__":"lively.Closure"},"13095":{"this":{"__isSmartRef__":true,"id":1580}},"13096":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"13097":{"originalFunc":{"__isSmartRef__":true,"id":975}},"13098":{"varMapping":{"__isSmartRef__":true,"id":13099},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":13100},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13101},"__LivelyClassName__":"lively.Closure"},"13099":{"this":{"__isSmartRef__":true,"id":1580}},"13100":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"13101":{"originalFunc":{"__isSmartRef__":true,"id":979}},"13102":{"varMapping":{"__isSmartRef__":true,"id":13103},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":13104},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13105},"__LivelyClassName__":"lively.Closure"},"13103":{"this":{"__isSmartRef__":true,"id":1580}},"13104":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"13105":{"originalFunc":{"__isSmartRef__":true,"id":983}},"13106":{"varMapping":{"__isSmartRef__":true,"id":13107},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":13108},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13109},"__LivelyClassName__":"lively.Closure"},"13107":{"this":{"__isSmartRef__":true,"id":1580}},"13108":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"13109":{"originalFunc":{"__isSmartRef__":true,"id":987}},"13110":{"varMapping":{"__isSmartRef__":true,"id":13111},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":13112},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13113},"__LivelyClassName__":"lively.Closure"},"13111":{"this":{"__isSmartRef__":true,"id":1580}},"13112":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"13113":{"originalFunc":{"__isSmartRef__":true,"id":991}},"13114":{"varMapping":{"__isSmartRef__":true,"id":13115},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":13116},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13117},"__LivelyClassName__":"lively.Closure"},"13115":{"this":{"__isSmartRef__":true,"id":1580}},"13116":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"13117":{"originalFunc":{"__isSmartRef__":true,"id":995}},"13118":{"varMapping":{"__isSmartRef__":true,"id":13119},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":13120},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13121},"__LivelyClassName__":"lively.Closure"},"13119":{"this":{"__isSmartRef__":true,"id":1580}},"13120":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"13121":{"originalFunc":{"__isSmartRef__":true,"id":999}},"13122":{"varMapping":{"__isSmartRef__":true,"id":13123},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13124},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13125},"__LivelyClassName__":"lively.Closure"},"13123":{"this":{"__isSmartRef__":true,"id":1580}},"13124":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"13125":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"13126":{"varMapping":{"__isSmartRef__":true,"id":13127},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13128},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13129},"__LivelyClassName__":"lively.Closure"},"13127":{"this":{"__isSmartRef__":true,"id":1580}},"13128":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"13129":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"13130":{"varMapping":{"__isSmartRef__":true,"id":13131},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":13132},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13133},"__LivelyClassName__":"lively.Closure"},"13131":{"this":{"__isSmartRef__":true,"id":1580}},"13132":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"13133":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"13134":{"setDevStyle":{"__isSmartRef__":true,"id":13135},"setNormalStyle":{"__isSmartRef__":true,"id":13139},"tileSize":{"__isSmartRef__":true,"id":13143},"become":{"__isSmartRef__":true,"id":13147},"onMouseDown":{"__isSmartRef__":true,"id":13151},"setGridPosition":{"__isSmartRef__":true,"id":13159},"toolbox":{"__isSmartRef__":true,"id":13163},"distanceTo":{"__isSmartRef__":true,"id":13167},"tileWasDropped":{"__isSmartRef__":true,"id":13171},"isObstacle":{"__isSmartRef__":true,"id":13175},"neighboursInDirection":{"__isSmartRef__":true,"id":13179},"neighbours":{"__isSmartRef__":true,"id":13183},"zIndex":{"__isSmartRef__":true,"id":13187},"obstacles":{"__isSmartRef__":true,"id":13191},"addObstacle":{"__isSmartRef__":true,"id":13195},"removeObstacle":{"__isSmartRef__":true,"id":13199},"isTile":{"__isSmartRef__":true,"id":13203},"neighbourAt":{"__isSmartRef__":true,"id":13207},"map":{"__isSmartRef__":true,"id":13211},"game":{"__isSmartRef__":true,"id":13215},"reset":{"__isSmartRef__":true,"id":13219},"shallowCopy":{"__isSmartRef__":true,"id":13223},"characters":{"__isSmartRef__":true,"id":13227},"enterTile":{"__isSmartRef__":true,"id":13231},"leaveTile":{"__isSmartRef__":true,"id":13235},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":13239}},"13135":{"varMapping":{"__isSmartRef__":true,"id":13136},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":13137},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13138},"__LivelyClassName__":"lively.Closure"},"13136":{"this":{"__isSmartRef__":true,"id":702}},"13137":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"13138":{"originalFunc":{"__isSmartRef__":true,"id":892}},"13139":{"varMapping":{"__isSmartRef__":true,"id":13140},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":13141},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13142},"__LivelyClassName__":"lively.Closure"},"13140":{"this":{"__isSmartRef__":true,"id":702}},"13141":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"13142":{"originalFunc":{"__isSmartRef__":true,"id":911}},"13143":{"varMapping":{"__isSmartRef__":true,"id":13144},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":13145},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13146},"__LivelyClassName__":"lively.Closure"},"13144":{"this":{"__isSmartRef__":true,"id":702}},"13145":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"13146":{"originalFunc":{"__isSmartRef__":true,"id":915}},"13147":{"varMapping":{"__isSmartRef__":true,"id":13148},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13149},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13150},"__LivelyClassName__":"lively.Closure"},"13148":{"this":{"__isSmartRef__":true,"id":702}},"13149":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"13150":{"originalFunc":{"__isSmartRef__":true,"id":919}},"13151":{"varMapping":{"__isSmartRef__":true,"id":13152},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13157},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13158},"__LivelyClassName__":"lively.Closure"},"13152":{"this":{"__isSmartRef__":true,"id":702},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13153}},"13153":{"$super":{"__isSmartRef__":true,"id":13154}},"13154":{"varMapping":{"__isSmartRef__":true,"id":13155},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13156},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13155":{"obj":{"__isSmartRef__":true,"id":702},"name":"onMouseDown"},"13156":{},"13157":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"13158":{"originalFunc":{"__isSmartRef__":true,"id":923}},"13159":{"varMapping":{"__isSmartRef__":true,"id":13160},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":13161},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13162},"__LivelyClassName__":"lively.Closure"},"13160":{"this":{"__isSmartRef__":true,"id":702}},"13161":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"13162":{"originalFunc":{"__isSmartRef__":true,"id":931}},"13163":{"varMapping":{"__isSmartRef__":true,"id":13164},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":13165},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13166},"__LivelyClassName__":"lively.Closure"},"13164":{"this":{"__isSmartRef__":true,"id":702}},"13165":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"13166":{"originalFunc":{"__isSmartRef__":true,"id":935}},"13167":{"varMapping":{"__isSmartRef__":true,"id":13168},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":13169},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13170},"__LivelyClassName__":"lively.Closure"},"13168":{"this":{"__isSmartRef__":true,"id":702}},"13169":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"13170":{"originalFunc":{"__isSmartRef__":true,"id":939}},"13171":{"varMapping":{"__isSmartRef__":true,"id":13172},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":13173},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13174},"__LivelyClassName__":"lively.Closure"},"13172":{"this":{"__isSmartRef__":true,"id":702}},"13173":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"13174":{"originalFunc":{"__isSmartRef__":true,"id":943}},"13175":{"varMapping":{"__isSmartRef__":true,"id":13176},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":13177},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13178},"__LivelyClassName__":"lively.Closure"},"13176":{"this":{"__isSmartRef__":true,"id":702}},"13177":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"13178":{"originalFunc":{"__isSmartRef__":true,"id":947}},"13179":{"varMapping":{"__isSmartRef__":true,"id":13180},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":13181},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13182},"__LivelyClassName__":"lively.Closure"},"13180":{"this":{"__isSmartRef__":true,"id":702}},"13181":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"13182":{"originalFunc":{"__isSmartRef__":true,"id":951}},"13183":{"varMapping":{"__isSmartRef__":true,"id":13184},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":13185},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13186},"__LivelyClassName__":"lively.Closure"},"13184":{"this":{"__isSmartRef__":true,"id":702}},"13185":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"13186":{"originalFunc":{"__isSmartRef__":true,"id":955}},"13187":{"varMapping":{"__isSmartRef__":true,"id":13188},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":13189},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13190},"__LivelyClassName__":"lively.Closure"},"13188":{"this":{"__isSmartRef__":true,"id":702}},"13189":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"13190":{"originalFunc":{"__isSmartRef__":true,"id":959}},"13191":{"varMapping":{"__isSmartRef__":true,"id":13192},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":13193},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13194},"__LivelyClassName__":"lively.Closure"},"13192":{"this":{"__isSmartRef__":true,"id":702}},"13193":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"13194":{"originalFunc":{"__isSmartRef__":true,"id":963}},"13195":{"varMapping":{"__isSmartRef__":true,"id":13196},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13197},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13198},"__LivelyClassName__":"lively.Closure"},"13196":{"this":{"__isSmartRef__":true,"id":702}},"13197":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"13198":{"originalFunc":{"__isSmartRef__":true,"id":967}},"13199":{"varMapping":{"__isSmartRef__":true,"id":13200},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13201},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13202},"__LivelyClassName__":"lively.Closure"},"13200":{"this":{"__isSmartRef__":true,"id":702}},"13201":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"13202":{"originalFunc":{"__isSmartRef__":true,"id":971}},"13203":{"varMapping":{"__isSmartRef__":true,"id":13204},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":13205},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13206},"__LivelyClassName__":"lively.Closure"},"13204":{"this":{"__isSmartRef__":true,"id":702}},"13205":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"13206":{"originalFunc":{"__isSmartRef__":true,"id":975}},"13207":{"varMapping":{"__isSmartRef__":true,"id":13208},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":13209},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13210},"__LivelyClassName__":"lively.Closure"},"13208":{"this":{"__isSmartRef__":true,"id":702}},"13209":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"13210":{"originalFunc":{"__isSmartRef__":true,"id":979}},"13211":{"varMapping":{"__isSmartRef__":true,"id":13212},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":13213},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13214},"__LivelyClassName__":"lively.Closure"},"13212":{"this":{"__isSmartRef__":true,"id":702}},"13213":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"13214":{"originalFunc":{"__isSmartRef__":true,"id":983}},"13215":{"varMapping":{"__isSmartRef__":true,"id":13216},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":13217},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13218},"__LivelyClassName__":"lively.Closure"},"13216":{"this":{"__isSmartRef__":true,"id":702}},"13217":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"13218":{"originalFunc":{"__isSmartRef__":true,"id":987}},"13219":{"varMapping":{"__isSmartRef__":true,"id":13220},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":13221},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13222},"__LivelyClassName__":"lively.Closure"},"13220":{"this":{"__isSmartRef__":true,"id":702}},"13221":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"13222":{"originalFunc":{"__isSmartRef__":true,"id":991}},"13223":{"varMapping":{"__isSmartRef__":true,"id":13224},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":13225},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13226},"__LivelyClassName__":"lively.Closure"},"13224":{"this":{"__isSmartRef__":true,"id":702}},"13225":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"13226":{"originalFunc":{"__isSmartRef__":true,"id":995}},"13227":{"varMapping":{"__isSmartRef__":true,"id":13228},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":13229},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13230},"__LivelyClassName__":"lively.Closure"},"13228":{"this":{"__isSmartRef__":true,"id":702}},"13229":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"13230":{"originalFunc":{"__isSmartRef__":true,"id":999}},"13231":{"varMapping":{"__isSmartRef__":true,"id":13232},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13233},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13234},"__LivelyClassName__":"lively.Closure"},"13232":{"this":{"__isSmartRef__":true,"id":702}},"13233":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"13234":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"13235":{"varMapping":{"__isSmartRef__":true,"id":13236},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13237},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13238},"__LivelyClassName__":"lively.Closure"},"13236":{"this":{"__isSmartRef__":true,"id":702}},"13237":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"13238":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"13239":{"varMapping":{"__isSmartRef__":true,"id":13240},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":13241},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13242},"__LivelyClassName__":"lively.Closure"},"13240":{"this":{"__isSmartRef__":true,"id":702}},"13241":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"13242":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"13243":{"setDevStyle":{"__isSmartRef__":true,"id":13244},"setNormalStyle":{"__isSmartRef__":true,"id":13248},"tileSize":{"__isSmartRef__":true,"id":13252},"become":{"__isSmartRef__":true,"id":13256},"onMouseDown":{"__isSmartRef__":true,"id":13260},"setGridPosition":{"__isSmartRef__":true,"id":13268},"toolbox":{"__isSmartRef__":true,"id":13272},"distanceTo":{"__isSmartRef__":true,"id":13276},"tileWasDropped":{"__isSmartRef__":true,"id":13280},"isObstacle":{"__isSmartRef__":true,"id":13284},"neighboursInDirection":{"__isSmartRef__":true,"id":13288},"neighbours":{"__isSmartRef__":true,"id":13292},"zIndex":{"__isSmartRef__":true,"id":13296},"obstacles":{"__isSmartRef__":true,"id":13300},"addObstacle":{"__isSmartRef__":true,"id":13304},"removeObstacle":{"__isSmartRef__":true,"id":13308},"isTile":{"__isSmartRef__":true,"id":13312},"neighbourAt":{"__isSmartRef__":true,"id":13316},"map":{"__isSmartRef__":true,"id":13320},"game":{"__isSmartRef__":true,"id":13324},"reset":{"__isSmartRef__":true,"id":13328},"shallowCopy":{"__isSmartRef__":true,"id":13332},"characters":{"__isSmartRef__":true,"id":13336},"enterTile":{"__isSmartRef__":true,"id":13340},"leaveTile":{"__isSmartRef__":true,"id":13344},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":13348}},"13244":{"varMapping":{"__isSmartRef__":true,"id":13245},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":13246},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13247},"__LivelyClassName__":"lively.Closure"},"13245":{"this":{"__isSmartRef__":true,"id":645}},"13246":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"13247":{"originalFunc":{"__isSmartRef__":true,"id":892}},"13248":{"varMapping":{"__isSmartRef__":true,"id":13249},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":13250},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13251},"__LivelyClassName__":"lively.Closure"},"13249":{"this":{"__isSmartRef__":true,"id":645}},"13250":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"13251":{"originalFunc":{"__isSmartRef__":true,"id":911}},"13252":{"varMapping":{"__isSmartRef__":true,"id":13253},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":13254},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13255},"__LivelyClassName__":"lively.Closure"},"13253":{"this":{"__isSmartRef__":true,"id":645}},"13254":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"13255":{"originalFunc":{"__isSmartRef__":true,"id":915}},"13256":{"varMapping":{"__isSmartRef__":true,"id":13257},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13258},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13259},"__LivelyClassName__":"lively.Closure"},"13257":{"this":{"__isSmartRef__":true,"id":645}},"13258":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"13259":{"originalFunc":{"__isSmartRef__":true,"id":919}},"13260":{"varMapping":{"__isSmartRef__":true,"id":13261},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13266},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13267},"__LivelyClassName__":"lively.Closure"},"13261":{"this":{"__isSmartRef__":true,"id":645},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13262}},"13262":{"$super":{"__isSmartRef__":true,"id":13263}},"13263":{"varMapping":{"__isSmartRef__":true,"id":13264},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13265},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13264":{"obj":{"__isSmartRef__":true,"id":645},"name":"onMouseDown"},"13265":{},"13266":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"13267":{"originalFunc":{"__isSmartRef__":true,"id":923}},"13268":{"varMapping":{"__isSmartRef__":true,"id":13269},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":13270},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13271},"__LivelyClassName__":"lively.Closure"},"13269":{"this":{"__isSmartRef__":true,"id":645}},"13270":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"13271":{"originalFunc":{"__isSmartRef__":true,"id":931}},"13272":{"varMapping":{"__isSmartRef__":true,"id":13273},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":13274},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13275},"__LivelyClassName__":"lively.Closure"},"13273":{"this":{"__isSmartRef__":true,"id":645}},"13274":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"13275":{"originalFunc":{"__isSmartRef__":true,"id":935}},"13276":{"varMapping":{"__isSmartRef__":true,"id":13277},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":13278},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13279},"__LivelyClassName__":"lively.Closure"},"13277":{"this":{"__isSmartRef__":true,"id":645}},"13278":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"13279":{"originalFunc":{"__isSmartRef__":true,"id":939}},"13280":{"varMapping":{"__isSmartRef__":true,"id":13281},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":13282},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13283},"__LivelyClassName__":"lively.Closure"},"13281":{"this":{"__isSmartRef__":true,"id":645}},"13282":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"13283":{"originalFunc":{"__isSmartRef__":true,"id":943}},"13284":{"varMapping":{"__isSmartRef__":true,"id":13285},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":13286},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13287},"__LivelyClassName__":"lively.Closure"},"13285":{"this":{"__isSmartRef__":true,"id":645}},"13286":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"13287":{"originalFunc":{"__isSmartRef__":true,"id":947}},"13288":{"varMapping":{"__isSmartRef__":true,"id":13289},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":13290},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13291},"__LivelyClassName__":"lively.Closure"},"13289":{"this":{"__isSmartRef__":true,"id":645}},"13290":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"13291":{"originalFunc":{"__isSmartRef__":true,"id":951}},"13292":{"varMapping":{"__isSmartRef__":true,"id":13293},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":13294},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13295},"__LivelyClassName__":"lively.Closure"},"13293":{"this":{"__isSmartRef__":true,"id":645}},"13294":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"13295":{"originalFunc":{"__isSmartRef__":true,"id":955}},"13296":{"varMapping":{"__isSmartRef__":true,"id":13297},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":13298},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13299},"__LivelyClassName__":"lively.Closure"},"13297":{"this":{"__isSmartRef__":true,"id":645}},"13298":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"13299":{"originalFunc":{"__isSmartRef__":true,"id":959}},"13300":{"varMapping":{"__isSmartRef__":true,"id":13301},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":13302},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13303},"__LivelyClassName__":"lively.Closure"},"13301":{"this":{"__isSmartRef__":true,"id":645}},"13302":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"13303":{"originalFunc":{"__isSmartRef__":true,"id":963}},"13304":{"varMapping":{"__isSmartRef__":true,"id":13305},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13306},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13307},"__LivelyClassName__":"lively.Closure"},"13305":{"this":{"__isSmartRef__":true,"id":645}},"13306":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"13307":{"originalFunc":{"__isSmartRef__":true,"id":967}},"13308":{"varMapping":{"__isSmartRef__":true,"id":13309},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13310},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13311},"__LivelyClassName__":"lively.Closure"},"13309":{"this":{"__isSmartRef__":true,"id":645}},"13310":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"13311":{"originalFunc":{"__isSmartRef__":true,"id":971}},"13312":{"varMapping":{"__isSmartRef__":true,"id":13313},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":13314},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13315},"__LivelyClassName__":"lively.Closure"},"13313":{"this":{"__isSmartRef__":true,"id":645}},"13314":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"13315":{"originalFunc":{"__isSmartRef__":true,"id":975}},"13316":{"varMapping":{"__isSmartRef__":true,"id":13317},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":13318},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13319},"__LivelyClassName__":"lively.Closure"},"13317":{"this":{"__isSmartRef__":true,"id":645}},"13318":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"13319":{"originalFunc":{"__isSmartRef__":true,"id":979}},"13320":{"varMapping":{"__isSmartRef__":true,"id":13321},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":13322},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13323},"__LivelyClassName__":"lively.Closure"},"13321":{"this":{"__isSmartRef__":true,"id":645}},"13322":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"13323":{"originalFunc":{"__isSmartRef__":true,"id":983}},"13324":{"varMapping":{"__isSmartRef__":true,"id":13325},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":13326},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13327},"__LivelyClassName__":"lively.Closure"},"13325":{"this":{"__isSmartRef__":true,"id":645}},"13326":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"13327":{"originalFunc":{"__isSmartRef__":true,"id":987}},"13328":{"varMapping":{"__isSmartRef__":true,"id":13329},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":13330},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13331},"__LivelyClassName__":"lively.Closure"},"13329":{"this":{"__isSmartRef__":true,"id":645}},"13330":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"13331":{"originalFunc":{"__isSmartRef__":true,"id":991}},"13332":{"varMapping":{"__isSmartRef__":true,"id":13333},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":13334},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13335},"__LivelyClassName__":"lively.Closure"},"13333":{"this":{"__isSmartRef__":true,"id":645}},"13334":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"13335":{"originalFunc":{"__isSmartRef__":true,"id":995}},"13336":{"varMapping":{"__isSmartRef__":true,"id":13337},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":13338},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13339},"__LivelyClassName__":"lively.Closure"},"13337":{"this":{"__isSmartRef__":true,"id":645}},"13338":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"13339":{"originalFunc":{"__isSmartRef__":true,"id":999}},"13340":{"varMapping":{"__isSmartRef__":true,"id":13341},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13342},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13343},"__LivelyClassName__":"lively.Closure"},"13341":{"this":{"__isSmartRef__":true,"id":645}},"13342":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"13343":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"13344":{"varMapping":{"__isSmartRef__":true,"id":13345},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13346},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13347},"__LivelyClassName__":"lively.Closure"},"13345":{"this":{"__isSmartRef__":true,"id":645}},"13346":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"13347":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"13348":{"varMapping":{"__isSmartRef__":true,"id":13349},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":13350},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13351},"__LivelyClassName__":"lively.Closure"},"13349":{"this":{"__isSmartRef__":true,"id":645}},"13350":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"13351":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"13352":{"setDevStyle":{"__isSmartRef__":true,"id":13353},"setNormalStyle":{"__isSmartRef__":true,"id":13357},"tileSize":{"__isSmartRef__":true,"id":13361},"become":{"__isSmartRef__":true,"id":13365},"onMouseDown":{"__isSmartRef__":true,"id":13369},"setGridPosition":{"__isSmartRef__":true,"id":13377},"toolbox":{"__isSmartRef__":true,"id":13381},"distanceTo":{"__isSmartRef__":true,"id":13385},"tileWasDropped":{"__isSmartRef__":true,"id":13389},"isObstacle":{"__isSmartRef__":true,"id":13393},"neighboursInDirection":{"__isSmartRef__":true,"id":13397},"neighbours":{"__isSmartRef__":true,"id":13401},"zIndex":{"__isSmartRef__":true,"id":13405},"obstacles":{"__isSmartRef__":true,"id":13409},"addObstacle":{"__isSmartRef__":true,"id":13413},"removeObstacle":{"__isSmartRef__":true,"id":13417},"isTile":{"__isSmartRef__":true,"id":13421},"neighbourAt":{"__isSmartRef__":true,"id":13425},"map":{"__isSmartRef__":true,"id":13429},"game":{"__isSmartRef__":true,"id":13433},"reset":{"__isSmartRef__":true,"id":13437},"shallowCopy":{"__isSmartRef__":true,"id":13441},"characters":{"__isSmartRef__":true,"id":13445},"enterTile":{"__isSmartRef__":true,"id":13449},"leaveTile":{"__isSmartRef__":true,"id":13453},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":13457}},"13353":{"varMapping":{"__isSmartRef__":true,"id":13354},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":13355},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13356},"__LivelyClassName__":"lively.Closure"},"13354":{"this":{"__isSmartRef__":true,"id":626}},"13355":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"13356":{"originalFunc":{"__isSmartRef__":true,"id":892}},"13357":{"varMapping":{"__isSmartRef__":true,"id":13358},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":13359},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13360},"__LivelyClassName__":"lively.Closure"},"13358":{"this":{"__isSmartRef__":true,"id":626}},"13359":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"13360":{"originalFunc":{"__isSmartRef__":true,"id":911}},"13361":{"varMapping":{"__isSmartRef__":true,"id":13362},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":13363},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13364},"__LivelyClassName__":"lively.Closure"},"13362":{"this":{"__isSmartRef__":true,"id":626}},"13363":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"13364":{"originalFunc":{"__isSmartRef__":true,"id":915}},"13365":{"varMapping":{"__isSmartRef__":true,"id":13366},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13367},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13368},"__LivelyClassName__":"lively.Closure"},"13366":{"this":{"__isSmartRef__":true,"id":626}},"13367":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"13368":{"originalFunc":{"__isSmartRef__":true,"id":919}},"13369":{"varMapping":{"__isSmartRef__":true,"id":13370},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13375},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13376},"__LivelyClassName__":"lively.Closure"},"13370":{"this":{"__isSmartRef__":true,"id":626},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13371}},"13371":{"$super":{"__isSmartRef__":true,"id":13372}},"13372":{"varMapping":{"__isSmartRef__":true,"id":13373},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13374},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13373":{"obj":{"__isSmartRef__":true,"id":626},"name":"onMouseDown"},"13374":{},"13375":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"13376":{"originalFunc":{"__isSmartRef__":true,"id":923}},"13377":{"varMapping":{"__isSmartRef__":true,"id":13378},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":13379},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13380},"__LivelyClassName__":"lively.Closure"},"13378":{"this":{"__isSmartRef__":true,"id":626}},"13379":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"13380":{"originalFunc":{"__isSmartRef__":true,"id":931}},"13381":{"varMapping":{"__isSmartRef__":true,"id":13382},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":13383},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13384},"__LivelyClassName__":"lively.Closure"},"13382":{"this":{"__isSmartRef__":true,"id":626}},"13383":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"13384":{"originalFunc":{"__isSmartRef__":true,"id":935}},"13385":{"varMapping":{"__isSmartRef__":true,"id":13386},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":13387},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13388},"__LivelyClassName__":"lively.Closure"},"13386":{"this":{"__isSmartRef__":true,"id":626}},"13387":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"13388":{"originalFunc":{"__isSmartRef__":true,"id":939}},"13389":{"varMapping":{"__isSmartRef__":true,"id":13390},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":13391},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13392},"__LivelyClassName__":"lively.Closure"},"13390":{"this":{"__isSmartRef__":true,"id":626}},"13391":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"13392":{"originalFunc":{"__isSmartRef__":true,"id":943}},"13393":{"varMapping":{"__isSmartRef__":true,"id":13394},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":13395},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13396},"__LivelyClassName__":"lively.Closure"},"13394":{"this":{"__isSmartRef__":true,"id":626}},"13395":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"13396":{"originalFunc":{"__isSmartRef__":true,"id":947}},"13397":{"varMapping":{"__isSmartRef__":true,"id":13398},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":13399},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13400},"__LivelyClassName__":"lively.Closure"},"13398":{"this":{"__isSmartRef__":true,"id":626}},"13399":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"13400":{"originalFunc":{"__isSmartRef__":true,"id":951}},"13401":{"varMapping":{"__isSmartRef__":true,"id":13402},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":13403},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13404},"__LivelyClassName__":"lively.Closure"},"13402":{"this":{"__isSmartRef__":true,"id":626}},"13403":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"13404":{"originalFunc":{"__isSmartRef__":true,"id":955}},"13405":{"varMapping":{"__isSmartRef__":true,"id":13406},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":13407},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13408},"__LivelyClassName__":"lively.Closure"},"13406":{"this":{"__isSmartRef__":true,"id":626}},"13407":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"13408":{"originalFunc":{"__isSmartRef__":true,"id":959}},"13409":{"varMapping":{"__isSmartRef__":true,"id":13410},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":13411},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13412},"__LivelyClassName__":"lively.Closure"},"13410":{"this":{"__isSmartRef__":true,"id":626}},"13411":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"13412":{"originalFunc":{"__isSmartRef__":true,"id":963}},"13413":{"varMapping":{"__isSmartRef__":true,"id":13414},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13415},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13416},"__LivelyClassName__":"lively.Closure"},"13414":{"this":{"__isSmartRef__":true,"id":626}},"13415":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"13416":{"originalFunc":{"__isSmartRef__":true,"id":967}},"13417":{"varMapping":{"__isSmartRef__":true,"id":13418},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13419},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13420},"__LivelyClassName__":"lively.Closure"},"13418":{"this":{"__isSmartRef__":true,"id":626}},"13419":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"13420":{"originalFunc":{"__isSmartRef__":true,"id":971}},"13421":{"varMapping":{"__isSmartRef__":true,"id":13422},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":13423},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13424},"__LivelyClassName__":"lively.Closure"},"13422":{"this":{"__isSmartRef__":true,"id":626}},"13423":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"13424":{"originalFunc":{"__isSmartRef__":true,"id":975}},"13425":{"varMapping":{"__isSmartRef__":true,"id":13426},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":13427},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13428},"__LivelyClassName__":"lively.Closure"},"13426":{"this":{"__isSmartRef__":true,"id":626}},"13427":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"13428":{"originalFunc":{"__isSmartRef__":true,"id":979}},"13429":{"varMapping":{"__isSmartRef__":true,"id":13430},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":13431},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13432},"__LivelyClassName__":"lively.Closure"},"13430":{"this":{"__isSmartRef__":true,"id":626}},"13431":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"13432":{"originalFunc":{"__isSmartRef__":true,"id":983}},"13433":{"varMapping":{"__isSmartRef__":true,"id":13434},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":13435},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13436},"__LivelyClassName__":"lively.Closure"},"13434":{"this":{"__isSmartRef__":true,"id":626}},"13435":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"13436":{"originalFunc":{"__isSmartRef__":true,"id":987}},"13437":{"varMapping":{"__isSmartRef__":true,"id":13438},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":13439},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13440},"__LivelyClassName__":"lively.Closure"},"13438":{"this":{"__isSmartRef__":true,"id":626}},"13439":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"13440":{"originalFunc":{"__isSmartRef__":true,"id":991}},"13441":{"varMapping":{"__isSmartRef__":true,"id":13442},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":13443},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13444},"__LivelyClassName__":"lively.Closure"},"13442":{"this":{"__isSmartRef__":true,"id":626}},"13443":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"13444":{"originalFunc":{"__isSmartRef__":true,"id":995}},"13445":{"varMapping":{"__isSmartRef__":true,"id":13446},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":13447},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13448},"__LivelyClassName__":"lively.Closure"},"13446":{"this":{"__isSmartRef__":true,"id":626}},"13447":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"13448":{"originalFunc":{"__isSmartRef__":true,"id":999}},"13449":{"varMapping":{"__isSmartRef__":true,"id":13450},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13451},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13452},"__LivelyClassName__":"lively.Closure"},"13450":{"this":{"__isSmartRef__":true,"id":626}},"13451":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"13452":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"13453":{"varMapping":{"__isSmartRef__":true,"id":13454},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13455},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13456},"__LivelyClassName__":"lively.Closure"},"13454":{"this":{"__isSmartRef__":true,"id":626}},"13455":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"13456":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"13457":{"varMapping":{"__isSmartRef__":true,"id":13458},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":13459},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13460},"__LivelyClassName__":"lively.Closure"},"13458":{"this":{"__isSmartRef__":true,"id":626}},"13459":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"13460":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"13461":{"setDevStyle":{"__isSmartRef__":true,"id":13462},"setNormalStyle":{"__isSmartRef__":true,"id":13466},"tileSize":{"__isSmartRef__":true,"id":13470},"become":{"__isSmartRef__":true,"id":13474},"onMouseDown":{"__isSmartRef__":true,"id":13478},"setGridPosition":{"__isSmartRef__":true,"id":13486},"toolbox":{"__isSmartRef__":true,"id":13490},"distanceTo":{"__isSmartRef__":true,"id":13494},"tileWasDropped":{"__isSmartRef__":true,"id":13498},"isObstacle":{"__isSmartRef__":true,"id":13502},"neighboursInDirection":{"__isSmartRef__":true,"id":13506},"neighbours":{"__isSmartRef__":true,"id":13510},"zIndex":{"__isSmartRef__":true,"id":13514},"obstacles":{"__isSmartRef__":true,"id":13518},"addObstacle":{"__isSmartRef__":true,"id":13522},"removeObstacle":{"__isSmartRef__":true,"id":13526},"isTile":{"__isSmartRef__":true,"id":13530},"neighbourAt":{"__isSmartRef__":true,"id":13534},"map":{"__isSmartRef__":true,"id":13538},"game":{"__isSmartRef__":true,"id":13542},"reset":{"__isSmartRef__":true,"id":13546},"shallowCopy":{"__isSmartRef__":true,"id":13550},"characters":{"__isSmartRef__":true,"id":13554},"enterTile":{"__isSmartRef__":true,"id":13558},"leaveTile":{"__isSmartRef__":true,"id":13562},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":13566}},"13462":{"varMapping":{"__isSmartRef__":true,"id":13463},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":13464},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13465},"__LivelyClassName__":"lively.Closure"},"13463":{"this":{"__isSmartRef__":true,"id":607}},"13464":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"13465":{"originalFunc":{"__isSmartRef__":true,"id":892}},"13466":{"varMapping":{"__isSmartRef__":true,"id":13467},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":13468},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13469},"__LivelyClassName__":"lively.Closure"},"13467":{"this":{"__isSmartRef__":true,"id":607}},"13468":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"13469":{"originalFunc":{"__isSmartRef__":true,"id":911}},"13470":{"varMapping":{"__isSmartRef__":true,"id":13471},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":13472},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13473},"__LivelyClassName__":"lively.Closure"},"13471":{"this":{"__isSmartRef__":true,"id":607}},"13472":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"13473":{"originalFunc":{"__isSmartRef__":true,"id":915}},"13474":{"varMapping":{"__isSmartRef__":true,"id":13475},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13476},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13477},"__LivelyClassName__":"lively.Closure"},"13475":{"this":{"__isSmartRef__":true,"id":607}},"13476":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"13477":{"originalFunc":{"__isSmartRef__":true,"id":919}},"13478":{"varMapping":{"__isSmartRef__":true,"id":13479},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13484},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13485},"__LivelyClassName__":"lively.Closure"},"13479":{"this":{"__isSmartRef__":true,"id":607},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13480}},"13480":{"$super":{"__isSmartRef__":true,"id":13481}},"13481":{"varMapping":{"__isSmartRef__":true,"id":13482},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13483},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13482":{"obj":{"__isSmartRef__":true,"id":607},"name":"onMouseDown"},"13483":{},"13484":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"13485":{"originalFunc":{"__isSmartRef__":true,"id":923}},"13486":{"varMapping":{"__isSmartRef__":true,"id":13487},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":13488},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13489},"__LivelyClassName__":"lively.Closure"},"13487":{"this":{"__isSmartRef__":true,"id":607}},"13488":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"13489":{"originalFunc":{"__isSmartRef__":true,"id":931}},"13490":{"varMapping":{"__isSmartRef__":true,"id":13491},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":13492},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13493},"__LivelyClassName__":"lively.Closure"},"13491":{"this":{"__isSmartRef__":true,"id":607}},"13492":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"13493":{"originalFunc":{"__isSmartRef__":true,"id":935}},"13494":{"varMapping":{"__isSmartRef__":true,"id":13495},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":13496},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13497},"__LivelyClassName__":"lively.Closure"},"13495":{"this":{"__isSmartRef__":true,"id":607}},"13496":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"13497":{"originalFunc":{"__isSmartRef__":true,"id":939}},"13498":{"varMapping":{"__isSmartRef__":true,"id":13499},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":13500},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13501},"__LivelyClassName__":"lively.Closure"},"13499":{"this":{"__isSmartRef__":true,"id":607}},"13500":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"13501":{"originalFunc":{"__isSmartRef__":true,"id":943}},"13502":{"varMapping":{"__isSmartRef__":true,"id":13503},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":13504},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13505},"__LivelyClassName__":"lively.Closure"},"13503":{"this":{"__isSmartRef__":true,"id":607}},"13504":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"13505":{"originalFunc":{"__isSmartRef__":true,"id":947}},"13506":{"varMapping":{"__isSmartRef__":true,"id":13507},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":13508},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13509},"__LivelyClassName__":"lively.Closure"},"13507":{"this":{"__isSmartRef__":true,"id":607}},"13508":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"13509":{"originalFunc":{"__isSmartRef__":true,"id":951}},"13510":{"varMapping":{"__isSmartRef__":true,"id":13511},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":13512},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13513},"__LivelyClassName__":"lively.Closure"},"13511":{"this":{"__isSmartRef__":true,"id":607}},"13512":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"13513":{"originalFunc":{"__isSmartRef__":true,"id":955}},"13514":{"varMapping":{"__isSmartRef__":true,"id":13515},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":13516},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13517},"__LivelyClassName__":"lively.Closure"},"13515":{"this":{"__isSmartRef__":true,"id":607}},"13516":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"13517":{"originalFunc":{"__isSmartRef__":true,"id":959}},"13518":{"varMapping":{"__isSmartRef__":true,"id":13519},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":13520},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13521},"__LivelyClassName__":"lively.Closure"},"13519":{"this":{"__isSmartRef__":true,"id":607}},"13520":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"13521":{"originalFunc":{"__isSmartRef__":true,"id":963}},"13522":{"varMapping":{"__isSmartRef__":true,"id":13523},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13524},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13525},"__LivelyClassName__":"lively.Closure"},"13523":{"this":{"__isSmartRef__":true,"id":607}},"13524":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"13525":{"originalFunc":{"__isSmartRef__":true,"id":967}},"13526":{"varMapping":{"__isSmartRef__":true,"id":13527},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13528},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13529},"__LivelyClassName__":"lively.Closure"},"13527":{"this":{"__isSmartRef__":true,"id":607}},"13528":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"13529":{"originalFunc":{"__isSmartRef__":true,"id":971}},"13530":{"varMapping":{"__isSmartRef__":true,"id":13531},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":13532},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13533},"__LivelyClassName__":"lively.Closure"},"13531":{"this":{"__isSmartRef__":true,"id":607}},"13532":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"13533":{"originalFunc":{"__isSmartRef__":true,"id":975}},"13534":{"varMapping":{"__isSmartRef__":true,"id":13535},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":13536},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13537},"__LivelyClassName__":"lively.Closure"},"13535":{"this":{"__isSmartRef__":true,"id":607}},"13536":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"13537":{"originalFunc":{"__isSmartRef__":true,"id":979}},"13538":{"varMapping":{"__isSmartRef__":true,"id":13539},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":13540},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13541},"__LivelyClassName__":"lively.Closure"},"13539":{"this":{"__isSmartRef__":true,"id":607}},"13540":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"13541":{"originalFunc":{"__isSmartRef__":true,"id":983}},"13542":{"varMapping":{"__isSmartRef__":true,"id":13543},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":13544},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13545},"__LivelyClassName__":"lively.Closure"},"13543":{"this":{"__isSmartRef__":true,"id":607}},"13544":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"13545":{"originalFunc":{"__isSmartRef__":true,"id":987}},"13546":{"varMapping":{"__isSmartRef__":true,"id":13547},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":13548},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13549},"__LivelyClassName__":"lively.Closure"},"13547":{"this":{"__isSmartRef__":true,"id":607}},"13548":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"13549":{"originalFunc":{"__isSmartRef__":true,"id":991}},"13550":{"varMapping":{"__isSmartRef__":true,"id":13551},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":13552},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13553},"__LivelyClassName__":"lively.Closure"},"13551":{"this":{"__isSmartRef__":true,"id":607}},"13552":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"13553":{"originalFunc":{"__isSmartRef__":true,"id":995}},"13554":{"varMapping":{"__isSmartRef__":true,"id":13555},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":13556},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13557},"__LivelyClassName__":"lively.Closure"},"13555":{"this":{"__isSmartRef__":true,"id":607}},"13556":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"13557":{"originalFunc":{"__isSmartRef__":true,"id":999}},"13558":{"varMapping":{"__isSmartRef__":true,"id":13559},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13560},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13561},"__LivelyClassName__":"lively.Closure"},"13559":{"this":{"__isSmartRef__":true,"id":607}},"13560":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"13561":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"13562":{"varMapping":{"__isSmartRef__":true,"id":13563},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13564},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13565},"__LivelyClassName__":"lively.Closure"},"13563":{"this":{"__isSmartRef__":true,"id":607}},"13564":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"13565":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"13566":{"varMapping":{"__isSmartRef__":true,"id":13567},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":13568},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13569},"__LivelyClassName__":"lively.Closure"},"13567":{"this":{"__isSmartRef__":true,"id":607}},"13568":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"13569":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"13570":{"setDevStyle":{"__isSmartRef__":true,"id":13571},"setNormalStyle":{"__isSmartRef__":true,"id":13575},"tileSize":{"__isSmartRef__":true,"id":13579},"become":{"__isSmartRef__":true,"id":13583},"onMouseDown":{"__isSmartRef__":true,"id":13587},"setGridPosition":{"__isSmartRef__":true,"id":13595},"toolbox":{"__isSmartRef__":true,"id":13599},"distanceTo":{"__isSmartRef__":true,"id":13603},"tileWasDropped":{"__isSmartRef__":true,"id":13607},"isObstacle":{"__isSmartRef__":true,"id":13611},"neighboursInDirection":{"__isSmartRef__":true,"id":13615},"neighbours":{"__isSmartRef__":true,"id":13619},"zIndex":{"__isSmartRef__":true,"id":13623},"obstacles":{"__isSmartRef__":true,"id":13627},"addObstacle":{"__isSmartRef__":true,"id":13631},"removeObstacle":{"__isSmartRef__":true,"id":13635},"isTile":{"__isSmartRef__":true,"id":13639},"neighbourAt":{"__isSmartRef__":true,"id":13643},"map":{"__isSmartRef__":true,"id":13647},"game":{"__isSmartRef__":true,"id":13651},"reset":{"__isSmartRef__":true,"id":13655},"shallowCopy":{"__isSmartRef__":true,"id":13659},"characters":{"__isSmartRef__":true,"id":13663},"enterTile":{"__isSmartRef__":true,"id":13667},"leaveTile":{"__isSmartRef__":true,"id":13671},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":13675}},"13571":{"varMapping":{"__isSmartRef__":true,"id":13572},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":13573},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13574},"__LivelyClassName__":"lively.Closure"},"13572":{"this":{"__isSmartRef__":true,"id":588}},"13573":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"13574":{"originalFunc":{"__isSmartRef__":true,"id":892}},"13575":{"varMapping":{"__isSmartRef__":true,"id":13576},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":13577},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13578},"__LivelyClassName__":"lively.Closure"},"13576":{"this":{"__isSmartRef__":true,"id":588}},"13577":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"13578":{"originalFunc":{"__isSmartRef__":true,"id":911}},"13579":{"varMapping":{"__isSmartRef__":true,"id":13580},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":13581},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13582},"__LivelyClassName__":"lively.Closure"},"13580":{"this":{"__isSmartRef__":true,"id":588}},"13581":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"13582":{"originalFunc":{"__isSmartRef__":true,"id":915}},"13583":{"varMapping":{"__isSmartRef__":true,"id":13584},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13585},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13586},"__LivelyClassName__":"lively.Closure"},"13584":{"this":{"__isSmartRef__":true,"id":588}},"13585":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"13586":{"originalFunc":{"__isSmartRef__":true,"id":919}},"13587":{"varMapping":{"__isSmartRef__":true,"id":13588},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13593},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13594},"__LivelyClassName__":"lively.Closure"},"13588":{"this":{"__isSmartRef__":true,"id":588},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13589}},"13589":{"$super":{"__isSmartRef__":true,"id":13590}},"13590":{"varMapping":{"__isSmartRef__":true,"id":13591},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13592},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13591":{"obj":{"__isSmartRef__":true,"id":588},"name":"onMouseDown"},"13592":{},"13593":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"13594":{"originalFunc":{"__isSmartRef__":true,"id":923}},"13595":{"varMapping":{"__isSmartRef__":true,"id":13596},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":13597},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13598},"__LivelyClassName__":"lively.Closure"},"13596":{"this":{"__isSmartRef__":true,"id":588}},"13597":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"13598":{"originalFunc":{"__isSmartRef__":true,"id":931}},"13599":{"varMapping":{"__isSmartRef__":true,"id":13600},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":13601},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13602},"__LivelyClassName__":"lively.Closure"},"13600":{"this":{"__isSmartRef__":true,"id":588}},"13601":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"13602":{"originalFunc":{"__isSmartRef__":true,"id":935}},"13603":{"varMapping":{"__isSmartRef__":true,"id":13604},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":13605},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13606},"__LivelyClassName__":"lively.Closure"},"13604":{"this":{"__isSmartRef__":true,"id":588}},"13605":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"13606":{"originalFunc":{"__isSmartRef__":true,"id":939}},"13607":{"varMapping":{"__isSmartRef__":true,"id":13608},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":13609},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13610},"__LivelyClassName__":"lively.Closure"},"13608":{"this":{"__isSmartRef__":true,"id":588}},"13609":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"13610":{"originalFunc":{"__isSmartRef__":true,"id":943}},"13611":{"varMapping":{"__isSmartRef__":true,"id":13612},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":13613},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13614},"__LivelyClassName__":"lively.Closure"},"13612":{"this":{"__isSmartRef__":true,"id":588}},"13613":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"13614":{"originalFunc":{"__isSmartRef__":true,"id":947}},"13615":{"varMapping":{"__isSmartRef__":true,"id":13616},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":13617},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13618},"__LivelyClassName__":"lively.Closure"},"13616":{"this":{"__isSmartRef__":true,"id":588}},"13617":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"13618":{"originalFunc":{"__isSmartRef__":true,"id":951}},"13619":{"varMapping":{"__isSmartRef__":true,"id":13620},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":13621},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13622},"__LivelyClassName__":"lively.Closure"},"13620":{"this":{"__isSmartRef__":true,"id":588}},"13621":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"13622":{"originalFunc":{"__isSmartRef__":true,"id":955}},"13623":{"varMapping":{"__isSmartRef__":true,"id":13624},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":13625},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13626},"__LivelyClassName__":"lively.Closure"},"13624":{"this":{"__isSmartRef__":true,"id":588}},"13625":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"13626":{"originalFunc":{"__isSmartRef__":true,"id":959}},"13627":{"varMapping":{"__isSmartRef__":true,"id":13628},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":13629},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13630},"__LivelyClassName__":"lively.Closure"},"13628":{"this":{"__isSmartRef__":true,"id":588}},"13629":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"13630":{"originalFunc":{"__isSmartRef__":true,"id":963}},"13631":{"varMapping":{"__isSmartRef__":true,"id":13632},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13633},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13634},"__LivelyClassName__":"lively.Closure"},"13632":{"this":{"__isSmartRef__":true,"id":588}},"13633":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"13634":{"originalFunc":{"__isSmartRef__":true,"id":967}},"13635":{"varMapping":{"__isSmartRef__":true,"id":13636},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13637},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13638},"__LivelyClassName__":"lively.Closure"},"13636":{"this":{"__isSmartRef__":true,"id":588}},"13637":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"13638":{"originalFunc":{"__isSmartRef__":true,"id":971}},"13639":{"varMapping":{"__isSmartRef__":true,"id":13640},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":13641},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13642},"__LivelyClassName__":"lively.Closure"},"13640":{"this":{"__isSmartRef__":true,"id":588}},"13641":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"13642":{"originalFunc":{"__isSmartRef__":true,"id":975}},"13643":{"varMapping":{"__isSmartRef__":true,"id":13644},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":13645},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13646},"__LivelyClassName__":"lively.Closure"},"13644":{"this":{"__isSmartRef__":true,"id":588}},"13645":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"13646":{"originalFunc":{"__isSmartRef__":true,"id":979}},"13647":{"varMapping":{"__isSmartRef__":true,"id":13648},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":13649},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13650},"__LivelyClassName__":"lively.Closure"},"13648":{"this":{"__isSmartRef__":true,"id":588}},"13649":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"13650":{"originalFunc":{"__isSmartRef__":true,"id":983}},"13651":{"varMapping":{"__isSmartRef__":true,"id":13652},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":13653},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13654},"__LivelyClassName__":"lively.Closure"},"13652":{"this":{"__isSmartRef__":true,"id":588}},"13653":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"13654":{"originalFunc":{"__isSmartRef__":true,"id":987}},"13655":{"varMapping":{"__isSmartRef__":true,"id":13656},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":13657},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13658},"__LivelyClassName__":"lively.Closure"},"13656":{"this":{"__isSmartRef__":true,"id":588}},"13657":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"13658":{"originalFunc":{"__isSmartRef__":true,"id":991}},"13659":{"varMapping":{"__isSmartRef__":true,"id":13660},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":13661},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13662},"__LivelyClassName__":"lively.Closure"},"13660":{"this":{"__isSmartRef__":true,"id":588}},"13661":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"13662":{"originalFunc":{"__isSmartRef__":true,"id":995}},"13663":{"varMapping":{"__isSmartRef__":true,"id":13664},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":13665},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13666},"__LivelyClassName__":"lively.Closure"},"13664":{"this":{"__isSmartRef__":true,"id":588}},"13665":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"13666":{"originalFunc":{"__isSmartRef__":true,"id":999}},"13667":{"varMapping":{"__isSmartRef__":true,"id":13668},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13669},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13670},"__LivelyClassName__":"lively.Closure"},"13668":{"this":{"__isSmartRef__":true,"id":588}},"13669":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"13670":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"13671":{"varMapping":{"__isSmartRef__":true,"id":13672},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13673},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13674},"__LivelyClassName__":"lively.Closure"},"13672":{"this":{"__isSmartRef__":true,"id":588}},"13673":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"13674":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"13675":{"varMapping":{"__isSmartRef__":true,"id":13676},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":13677},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13678},"__LivelyClassName__":"lively.Closure"},"13676":{"this":{"__isSmartRef__":true,"id":588}},"13677":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"13678":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"13679":{"setDevStyle":{"__isSmartRef__":true,"id":13680},"setNormalStyle":{"__isSmartRef__":true,"id":13684},"tileSize":{"__isSmartRef__":true,"id":13688},"become":{"__isSmartRef__":true,"id":13692},"onMouseDown":{"__isSmartRef__":true,"id":13696},"setGridPosition":{"__isSmartRef__":true,"id":13704},"toolbox":{"__isSmartRef__":true,"id":13708},"distanceTo":{"__isSmartRef__":true,"id":13712},"tileWasDropped":{"__isSmartRef__":true,"id":13716},"isObstacle":{"__isSmartRef__":true,"id":13720},"neighboursInDirection":{"__isSmartRef__":true,"id":13724},"neighbours":{"__isSmartRef__":true,"id":13728},"zIndex":{"__isSmartRef__":true,"id":13732},"obstacles":{"__isSmartRef__":true,"id":13736},"addObstacle":{"__isSmartRef__":true,"id":13740},"removeObstacle":{"__isSmartRef__":true,"id":13744},"isTile":{"__isSmartRef__":true,"id":13748},"neighbourAt":{"__isSmartRef__":true,"id":13752},"map":{"__isSmartRef__":true,"id":13756},"game":{"__isSmartRef__":true,"id":13760},"reset":{"__isSmartRef__":true,"id":13764},"shallowCopy":{"__isSmartRef__":true,"id":13768},"characters":{"__isSmartRef__":true,"id":13772},"enterTile":{"__isSmartRef__":true,"id":13776},"leaveTile":{"__isSmartRef__":true,"id":13780},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":13784}},"13680":{"varMapping":{"__isSmartRef__":true,"id":13681},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":13682},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13683},"__LivelyClassName__":"lively.Closure"},"13681":{"this":{"__isSmartRef__":true,"id":569}},"13682":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"13683":{"originalFunc":{"__isSmartRef__":true,"id":892}},"13684":{"varMapping":{"__isSmartRef__":true,"id":13685},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":13686},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13687},"__LivelyClassName__":"lively.Closure"},"13685":{"this":{"__isSmartRef__":true,"id":569}},"13686":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"13687":{"originalFunc":{"__isSmartRef__":true,"id":911}},"13688":{"varMapping":{"__isSmartRef__":true,"id":13689},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":13690},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13691},"__LivelyClassName__":"lively.Closure"},"13689":{"this":{"__isSmartRef__":true,"id":569}},"13690":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"13691":{"originalFunc":{"__isSmartRef__":true,"id":915}},"13692":{"varMapping":{"__isSmartRef__":true,"id":13693},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13694},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13695},"__LivelyClassName__":"lively.Closure"},"13693":{"this":{"__isSmartRef__":true,"id":569}},"13694":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"13695":{"originalFunc":{"__isSmartRef__":true,"id":919}},"13696":{"varMapping":{"__isSmartRef__":true,"id":13697},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13702},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13703},"__LivelyClassName__":"lively.Closure"},"13697":{"this":{"__isSmartRef__":true,"id":569},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13698}},"13698":{"$super":{"__isSmartRef__":true,"id":13699}},"13699":{"varMapping":{"__isSmartRef__":true,"id":13700},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13701},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13700":{"obj":{"__isSmartRef__":true,"id":569},"name":"onMouseDown"},"13701":{},"13702":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"13703":{"originalFunc":{"__isSmartRef__":true,"id":923}},"13704":{"varMapping":{"__isSmartRef__":true,"id":13705},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":13706},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13707},"__LivelyClassName__":"lively.Closure"},"13705":{"this":{"__isSmartRef__":true,"id":569}},"13706":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"13707":{"originalFunc":{"__isSmartRef__":true,"id":931}},"13708":{"varMapping":{"__isSmartRef__":true,"id":13709},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":13710},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13711},"__LivelyClassName__":"lively.Closure"},"13709":{"this":{"__isSmartRef__":true,"id":569}},"13710":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"13711":{"originalFunc":{"__isSmartRef__":true,"id":935}},"13712":{"varMapping":{"__isSmartRef__":true,"id":13713},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":13714},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13715},"__LivelyClassName__":"lively.Closure"},"13713":{"this":{"__isSmartRef__":true,"id":569}},"13714":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"13715":{"originalFunc":{"__isSmartRef__":true,"id":939}},"13716":{"varMapping":{"__isSmartRef__":true,"id":13717},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":13718},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13719},"__LivelyClassName__":"lively.Closure"},"13717":{"this":{"__isSmartRef__":true,"id":569}},"13718":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"13719":{"originalFunc":{"__isSmartRef__":true,"id":943}},"13720":{"varMapping":{"__isSmartRef__":true,"id":13721},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":13722},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13723},"__LivelyClassName__":"lively.Closure"},"13721":{"this":{"__isSmartRef__":true,"id":569}},"13722":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"13723":{"originalFunc":{"__isSmartRef__":true,"id":947}},"13724":{"varMapping":{"__isSmartRef__":true,"id":13725},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":13726},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13727},"__LivelyClassName__":"lively.Closure"},"13725":{"this":{"__isSmartRef__":true,"id":569}},"13726":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"13727":{"originalFunc":{"__isSmartRef__":true,"id":951}},"13728":{"varMapping":{"__isSmartRef__":true,"id":13729},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":13730},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13731},"__LivelyClassName__":"lively.Closure"},"13729":{"this":{"__isSmartRef__":true,"id":569}},"13730":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"13731":{"originalFunc":{"__isSmartRef__":true,"id":955}},"13732":{"varMapping":{"__isSmartRef__":true,"id":13733},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":13734},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13735},"__LivelyClassName__":"lively.Closure"},"13733":{"this":{"__isSmartRef__":true,"id":569}},"13734":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"13735":{"originalFunc":{"__isSmartRef__":true,"id":959}},"13736":{"varMapping":{"__isSmartRef__":true,"id":13737},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":13738},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13739},"__LivelyClassName__":"lively.Closure"},"13737":{"this":{"__isSmartRef__":true,"id":569}},"13738":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"13739":{"originalFunc":{"__isSmartRef__":true,"id":963}},"13740":{"varMapping":{"__isSmartRef__":true,"id":13741},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13742},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13743},"__LivelyClassName__":"lively.Closure"},"13741":{"this":{"__isSmartRef__":true,"id":569}},"13742":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"13743":{"originalFunc":{"__isSmartRef__":true,"id":967}},"13744":{"varMapping":{"__isSmartRef__":true,"id":13745},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13746},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13747},"__LivelyClassName__":"lively.Closure"},"13745":{"this":{"__isSmartRef__":true,"id":569}},"13746":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"13747":{"originalFunc":{"__isSmartRef__":true,"id":971}},"13748":{"varMapping":{"__isSmartRef__":true,"id":13749},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":13750},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13751},"__LivelyClassName__":"lively.Closure"},"13749":{"this":{"__isSmartRef__":true,"id":569}},"13750":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"13751":{"originalFunc":{"__isSmartRef__":true,"id":975}},"13752":{"varMapping":{"__isSmartRef__":true,"id":13753},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":13754},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13755},"__LivelyClassName__":"lively.Closure"},"13753":{"this":{"__isSmartRef__":true,"id":569}},"13754":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"13755":{"originalFunc":{"__isSmartRef__":true,"id":979}},"13756":{"varMapping":{"__isSmartRef__":true,"id":13757},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":13758},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13759},"__LivelyClassName__":"lively.Closure"},"13757":{"this":{"__isSmartRef__":true,"id":569}},"13758":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"13759":{"originalFunc":{"__isSmartRef__":true,"id":983}},"13760":{"varMapping":{"__isSmartRef__":true,"id":13761},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":13762},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13763},"__LivelyClassName__":"lively.Closure"},"13761":{"this":{"__isSmartRef__":true,"id":569}},"13762":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"13763":{"originalFunc":{"__isSmartRef__":true,"id":987}},"13764":{"varMapping":{"__isSmartRef__":true,"id":13765},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":13766},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13767},"__LivelyClassName__":"lively.Closure"},"13765":{"this":{"__isSmartRef__":true,"id":569}},"13766":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"13767":{"originalFunc":{"__isSmartRef__":true,"id":991}},"13768":{"varMapping":{"__isSmartRef__":true,"id":13769},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":13770},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13771},"__LivelyClassName__":"lively.Closure"},"13769":{"this":{"__isSmartRef__":true,"id":569}},"13770":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"13771":{"originalFunc":{"__isSmartRef__":true,"id":995}},"13772":{"varMapping":{"__isSmartRef__":true,"id":13773},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":13774},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13775},"__LivelyClassName__":"lively.Closure"},"13773":{"this":{"__isSmartRef__":true,"id":569}},"13774":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"13775":{"originalFunc":{"__isSmartRef__":true,"id":999}},"13776":{"varMapping":{"__isSmartRef__":true,"id":13777},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13778},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13779},"__LivelyClassName__":"lively.Closure"},"13777":{"this":{"__isSmartRef__":true,"id":569}},"13778":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"13779":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"13780":{"varMapping":{"__isSmartRef__":true,"id":13781},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13782},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13783},"__LivelyClassName__":"lively.Closure"},"13781":{"this":{"__isSmartRef__":true,"id":569}},"13782":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"13783":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"13784":{"varMapping":{"__isSmartRef__":true,"id":13785},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":13786},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13787},"__LivelyClassName__":"lively.Closure"},"13785":{"this":{"__isSmartRef__":true,"id":569}},"13786":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"13787":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"13788":{"setDevStyle":{"__isSmartRef__":true,"id":13789},"setNormalStyle":{"__isSmartRef__":true,"id":13793},"tileSize":{"__isSmartRef__":true,"id":13797},"become":{"__isSmartRef__":true,"id":13801},"onMouseDown":{"__isSmartRef__":true,"id":13805},"setGridPosition":{"__isSmartRef__":true,"id":13813},"toolbox":{"__isSmartRef__":true,"id":13817},"distanceTo":{"__isSmartRef__":true,"id":13821},"tileWasDropped":{"__isSmartRef__":true,"id":13825},"isObstacle":{"__isSmartRef__":true,"id":13829},"neighboursInDirection":{"__isSmartRef__":true,"id":13833},"neighbours":{"__isSmartRef__":true,"id":13837},"zIndex":{"__isSmartRef__":true,"id":13841},"obstacles":{"__isSmartRef__":true,"id":13845},"addObstacle":{"__isSmartRef__":true,"id":13849},"removeObstacle":{"__isSmartRef__":true,"id":13853},"isTile":{"__isSmartRef__":true,"id":13857},"neighbourAt":{"__isSmartRef__":true,"id":13861},"map":{"__isSmartRef__":true,"id":13865},"game":{"__isSmartRef__":true,"id":13869},"reset":{"__isSmartRef__":true,"id":13873},"shallowCopy":{"__isSmartRef__":true,"id":13877},"characters":{"__isSmartRef__":true,"id":13881},"enterTile":{"__isSmartRef__":true,"id":13885},"leaveTile":{"__isSmartRef__":true,"id":13889},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":13893}},"13789":{"varMapping":{"__isSmartRef__":true,"id":13790},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":13791},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13792},"__LivelyClassName__":"lively.Closure"},"13790":{"this":{"__isSmartRef__":true,"id":550}},"13791":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"13792":{"originalFunc":{"__isSmartRef__":true,"id":892}},"13793":{"varMapping":{"__isSmartRef__":true,"id":13794},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":13795},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13796},"__LivelyClassName__":"lively.Closure"},"13794":{"this":{"__isSmartRef__":true,"id":550}},"13795":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"13796":{"originalFunc":{"__isSmartRef__":true,"id":911}},"13797":{"varMapping":{"__isSmartRef__":true,"id":13798},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":13799},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13800},"__LivelyClassName__":"lively.Closure"},"13798":{"this":{"__isSmartRef__":true,"id":550}},"13799":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"13800":{"originalFunc":{"__isSmartRef__":true,"id":915}},"13801":{"varMapping":{"__isSmartRef__":true,"id":13802},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13803},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13804},"__LivelyClassName__":"lively.Closure"},"13802":{"this":{"__isSmartRef__":true,"id":550}},"13803":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"13804":{"originalFunc":{"__isSmartRef__":true,"id":919}},"13805":{"varMapping":{"__isSmartRef__":true,"id":13806},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13811},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13812},"__LivelyClassName__":"lively.Closure"},"13806":{"this":{"__isSmartRef__":true,"id":550},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13807}},"13807":{"$super":{"__isSmartRef__":true,"id":13808}},"13808":{"varMapping":{"__isSmartRef__":true,"id":13809},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13810},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13809":{"obj":{"__isSmartRef__":true,"id":550},"name":"onMouseDown"},"13810":{},"13811":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"13812":{"originalFunc":{"__isSmartRef__":true,"id":923}},"13813":{"varMapping":{"__isSmartRef__":true,"id":13814},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":13815},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13816},"__LivelyClassName__":"lively.Closure"},"13814":{"this":{"__isSmartRef__":true,"id":550}},"13815":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"13816":{"originalFunc":{"__isSmartRef__":true,"id":931}},"13817":{"varMapping":{"__isSmartRef__":true,"id":13818},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":13819},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13820},"__LivelyClassName__":"lively.Closure"},"13818":{"this":{"__isSmartRef__":true,"id":550}},"13819":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"13820":{"originalFunc":{"__isSmartRef__":true,"id":935}},"13821":{"varMapping":{"__isSmartRef__":true,"id":13822},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":13823},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13824},"__LivelyClassName__":"lively.Closure"},"13822":{"this":{"__isSmartRef__":true,"id":550}},"13823":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"13824":{"originalFunc":{"__isSmartRef__":true,"id":939}},"13825":{"varMapping":{"__isSmartRef__":true,"id":13826},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":13827},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13828},"__LivelyClassName__":"lively.Closure"},"13826":{"this":{"__isSmartRef__":true,"id":550}},"13827":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"13828":{"originalFunc":{"__isSmartRef__":true,"id":943}},"13829":{"varMapping":{"__isSmartRef__":true,"id":13830},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":13831},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13832},"__LivelyClassName__":"lively.Closure"},"13830":{"this":{"__isSmartRef__":true,"id":550}},"13831":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"13832":{"originalFunc":{"__isSmartRef__":true,"id":947}},"13833":{"varMapping":{"__isSmartRef__":true,"id":13834},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":13835},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13836},"__LivelyClassName__":"lively.Closure"},"13834":{"this":{"__isSmartRef__":true,"id":550}},"13835":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"13836":{"originalFunc":{"__isSmartRef__":true,"id":951}},"13837":{"varMapping":{"__isSmartRef__":true,"id":13838},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":13839},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13840},"__LivelyClassName__":"lively.Closure"},"13838":{"this":{"__isSmartRef__":true,"id":550}},"13839":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"13840":{"originalFunc":{"__isSmartRef__":true,"id":955}},"13841":{"varMapping":{"__isSmartRef__":true,"id":13842},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":13843},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13844},"__LivelyClassName__":"lively.Closure"},"13842":{"this":{"__isSmartRef__":true,"id":550}},"13843":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"13844":{"originalFunc":{"__isSmartRef__":true,"id":959}},"13845":{"varMapping":{"__isSmartRef__":true,"id":13846},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":13847},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13848},"__LivelyClassName__":"lively.Closure"},"13846":{"this":{"__isSmartRef__":true,"id":550}},"13847":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"13848":{"originalFunc":{"__isSmartRef__":true,"id":963}},"13849":{"varMapping":{"__isSmartRef__":true,"id":13850},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13851},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13852},"__LivelyClassName__":"lively.Closure"},"13850":{"this":{"__isSmartRef__":true,"id":550}},"13851":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"13852":{"originalFunc":{"__isSmartRef__":true,"id":967}},"13853":{"varMapping":{"__isSmartRef__":true,"id":13854},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13855},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13856},"__LivelyClassName__":"lively.Closure"},"13854":{"this":{"__isSmartRef__":true,"id":550}},"13855":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"13856":{"originalFunc":{"__isSmartRef__":true,"id":971}},"13857":{"varMapping":{"__isSmartRef__":true,"id":13858},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":13859},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13860},"__LivelyClassName__":"lively.Closure"},"13858":{"this":{"__isSmartRef__":true,"id":550}},"13859":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"13860":{"originalFunc":{"__isSmartRef__":true,"id":975}},"13861":{"varMapping":{"__isSmartRef__":true,"id":13862},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":13863},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13864},"__LivelyClassName__":"lively.Closure"},"13862":{"this":{"__isSmartRef__":true,"id":550}},"13863":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"13864":{"originalFunc":{"__isSmartRef__":true,"id":979}},"13865":{"varMapping":{"__isSmartRef__":true,"id":13866},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":13867},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13868},"__LivelyClassName__":"lively.Closure"},"13866":{"this":{"__isSmartRef__":true,"id":550}},"13867":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"13868":{"originalFunc":{"__isSmartRef__":true,"id":983}},"13869":{"varMapping":{"__isSmartRef__":true,"id":13870},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":13871},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13872},"__LivelyClassName__":"lively.Closure"},"13870":{"this":{"__isSmartRef__":true,"id":550}},"13871":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"13872":{"originalFunc":{"__isSmartRef__":true,"id":987}},"13873":{"varMapping":{"__isSmartRef__":true,"id":13874},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":13875},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13876},"__LivelyClassName__":"lively.Closure"},"13874":{"this":{"__isSmartRef__":true,"id":550}},"13875":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"13876":{"originalFunc":{"__isSmartRef__":true,"id":991}},"13877":{"varMapping":{"__isSmartRef__":true,"id":13878},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":13879},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13880},"__LivelyClassName__":"lively.Closure"},"13878":{"this":{"__isSmartRef__":true,"id":550}},"13879":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"13880":{"originalFunc":{"__isSmartRef__":true,"id":995}},"13881":{"varMapping":{"__isSmartRef__":true,"id":13882},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":13883},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13884},"__LivelyClassName__":"lively.Closure"},"13882":{"this":{"__isSmartRef__":true,"id":550}},"13883":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"13884":{"originalFunc":{"__isSmartRef__":true,"id":999}},"13885":{"varMapping":{"__isSmartRef__":true,"id":13886},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13887},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13888},"__LivelyClassName__":"lively.Closure"},"13886":{"this":{"__isSmartRef__":true,"id":550}},"13887":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"13888":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"13889":{"varMapping":{"__isSmartRef__":true,"id":13890},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13891},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13892},"__LivelyClassName__":"lively.Closure"},"13890":{"this":{"__isSmartRef__":true,"id":550}},"13891":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"13892":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"13893":{"varMapping":{"__isSmartRef__":true,"id":13894},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":13895},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13896},"__LivelyClassName__":"lively.Closure"},"13894":{"this":{"__isSmartRef__":true,"id":550}},"13895":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"13896":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"13897":{"setDevStyle":{"__isSmartRef__":true,"id":13898},"setNormalStyle":{"__isSmartRef__":true,"id":13902},"tileSize":{"__isSmartRef__":true,"id":13906},"become":{"__isSmartRef__":true,"id":13910},"onMouseDown":{"__isSmartRef__":true,"id":13914},"setGridPosition":{"__isSmartRef__":true,"id":13922},"toolbox":{"__isSmartRef__":true,"id":13926},"distanceTo":{"__isSmartRef__":true,"id":13930},"tileWasDropped":{"__isSmartRef__":true,"id":13934},"isObstacle":{"__isSmartRef__":true,"id":13938},"neighboursInDirection":{"__isSmartRef__":true,"id":13942},"neighbours":{"__isSmartRef__":true,"id":13946},"zIndex":{"__isSmartRef__":true,"id":13950},"obstacles":{"__isSmartRef__":true,"id":13954},"addObstacle":{"__isSmartRef__":true,"id":13958},"removeObstacle":{"__isSmartRef__":true,"id":13962},"isTile":{"__isSmartRef__":true,"id":13966},"neighbourAt":{"__isSmartRef__":true,"id":13970},"map":{"__isSmartRef__":true,"id":13974},"game":{"__isSmartRef__":true,"id":13978},"reset":{"__isSmartRef__":true,"id":13982},"shallowCopy":{"__isSmartRef__":true,"id":13986},"characters":{"__isSmartRef__":true,"id":13990},"enterTile":{"__isSmartRef__":true,"id":13994},"leaveTile":{"__isSmartRef__":true,"id":13998},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":14002}},"13898":{"varMapping":{"__isSmartRef__":true,"id":13899},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":13900},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13901},"__LivelyClassName__":"lively.Closure"},"13899":{"this":{"__isSmartRef__":true,"id":531}},"13900":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"13901":{"originalFunc":{"__isSmartRef__":true,"id":892}},"13902":{"varMapping":{"__isSmartRef__":true,"id":13903},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":13904},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13905},"__LivelyClassName__":"lively.Closure"},"13903":{"this":{"__isSmartRef__":true,"id":531}},"13904":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"13905":{"originalFunc":{"__isSmartRef__":true,"id":911}},"13906":{"varMapping":{"__isSmartRef__":true,"id":13907},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":13908},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13909},"__LivelyClassName__":"lively.Closure"},"13907":{"this":{"__isSmartRef__":true,"id":531}},"13908":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"13909":{"originalFunc":{"__isSmartRef__":true,"id":915}},"13910":{"varMapping":{"__isSmartRef__":true,"id":13911},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13912},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13913},"__LivelyClassName__":"lively.Closure"},"13911":{"this":{"__isSmartRef__":true,"id":531}},"13912":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"13913":{"originalFunc":{"__isSmartRef__":true,"id":919}},"13914":{"varMapping":{"__isSmartRef__":true,"id":13915},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13920},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13921},"__LivelyClassName__":"lively.Closure"},"13915":{"this":{"__isSmartRef__":true,"id":531},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13916}},"13916":{"$super":{"__isSmartRef__":true,"id":13917}},"13917":{"varMapping":{"__isSmartRef__":true,"id":13918},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13919},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13918":{"obj":{"__isSmartRef__":true,"id":531},"name":"onMouseDown"},"13919":{},"13920":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"13921":{"originalFunc":{"__isSmartRef__":true,"id":923}},"13922":{"varMapping":{"__isSmartRef__":true,"id":13923},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":13924},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13925},"__LivelyClassName__":"lively.Closure"},"13923":{"this":{"__isSmartRef__":true,"id":531}},"13924":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"13925":{"originalFunc":{"__isSmartRef__":true,"id":931}},"13926":{"varMapping":{"__isSmartRef__":true,"id":13927},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":13928},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13929},"__LivelyClassName__":"lively.Closure"},"13927":{"this":{"__isSmartRef__":true,"id":531}},"13928":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"13929":{"originalFunc":{"__isSmartRef__":true,"id":935}},"13930":{"varMapping":{"__isSmartRef__":true,"id":13931},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":13932},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13933},"__LivelyClassName__":"lively.Closure"},"13931":{"this":{"__isSmartRef__":true,"id":531}},"13932":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"13933":{"originalFunc":{"__isSmartRef__":true,"id":939}},"13934":{"varMapping":{"__isSmartRef__":true,"id":13935},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":13936},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13937},"__LivelyClassName__":"lively.Closure"},"13935":{"this":{"__isSmartRef__":true,"id":531}},"13936":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"13937":{"originalFunc":{"__isSmartRef__":true,"id":943}},"13938":{"varMapping":{"__isSmartRef__":true,"id":13939},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":13940},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13941},"__LivelyClassName__":"lively.Closure"},"13939":{"this":{"__isSmartRef__":true,"id":531}},"13940":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"13941":{"originalFunc":{"__isSmartRef__":true,"id":947}},"13942":{"varMapping":{"__isSmartRef__":true,"id":13943},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":13944},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13945},"__LivelyClassName__":"lively.Closure"},"13943":{"this":{"__isSmartRef__":true,"id":531}},"13944":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"13945":{"originalFunc":{"__isSmartRef__":true,"id":951}},"13946":{"varMapping":{"__isSmartRef__":true,"id":13947},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":13948},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13949},"__LivelyClassName__":"lively.Closure"},"13947":{"this":{"__isSmartRef__":true,"id":531}},"13948":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"13949":{"originalFunc":{"__isSmartRef__":true,"id":955}},"13950":{"varMapping":{"__isSmartRef__":true,"id":13951},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":13952},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13953},"__LivelyClassName__":"lively.Closure"},"13951":{"this":{"__isSmartRef__":true,"id":531}},"13952":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"13953":{"originalFunc":{"__isSmartRef__":true,"id":959}},"13954":{"varMapping":{"__isSmartRef__":true,"id":13955},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":13956},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13957},"__LivelyClassName__":"lively.Closure"},"13955":{"this":{"__isSmartRef__":true,"id":531}},"13956":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"13957":{"originalFunc":{"__isSmartRef__":true,"id":963}},"13958":{"varMapping":{"__isSmartRef__":true,"id":13959},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13960},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13961},"__LivelyClassName__":"lively.Closure"},"13959":{"this":{"__isSmartRef__":true,"id":531}},"13960":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"13961":{"originalFunc":{"__isSmartRef__":true,"id":967}},"13962":{"varMapping":{"__isSmartRef__":true,"id":13963},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13964},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13965},"__LivelyClassName__":"lively.Closure"},"13963":{"this":{"__isSmartRef__":true,"id":531}},"13964":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"13965":{"originalFunc":{"__isSmartRef__":true,"id":971}},"13966":{"varMapping":{"__isSmartRef__":true,"id":13967},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":13968},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13969},"__LivelyClassName__":"lively.Closure"},"13967":{"this":{"__isSmartRef__":true,"id":531}},"13968":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"13969":{"originalFunc":{"__isSmartRef__":true,"id":975}},"13970":{"varMapping":{"__isSmartRef__":true,"id":13971},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":13972},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13973},"__LivelyClassName__":"lively.Closure"},"13971":{"this":{"__isSmartRef__":true,"id":531}},"13972":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"13973":{"originalFunc":{"__isSmartRef__":true,"id":979}},"13974":{"varMapping":{"__isSmartRef__":true,"id":13975},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":13976},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13977},"__LivelyClassName__":"lively.Closure"},"13975":{"this":{"__isSmartRef__":true,"id":531}},"13976":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"13977":{"originalFunc":{"__isSmartRef__":true,"id":983}},"13978":{"varMapping":{"__isSmartRef__":true,"id":13979},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":13980},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13981},"__LivelyClassName__":"lively.Closure"},"13979":{"this":{"__isSmartRef__":true,"id":531}},"13980":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"13981":{"originalFunc":{"__isSmartRef__":true,"id":987}},"13982":{"varMapping":{"__isSmartRef__":true,"id":13983},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":13984},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13985},"__LivelyClassName__":"lively.Closure"},"13983":{"this":{"__isSmartRef__":true,"id":531}},"13984":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"13985":{"originalFunc":{"__isSmartRef__":true,"id":991}},"13986":{"varMapping":{"__isSmartRef__":true,"id":13987},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":13988},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13989},"__LivelyClassName__":"lively.Closure"},"13987":{"this":{"__isSmartRef__":true,"id":531}},"13988":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"13989":{"originalFunc":{"__isSmartRef__":true,"id":995}},"13990":{"varMapping":{"__isSmartRef__":true,"id":13991},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":13992},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13993},"__LivelyClassName__":"lively.Closure"},"13991":{"this":{"__isSmartRef__":true,"id":531}},"13992":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"13993":{"originalFunc":{"__isSmartRef__":true,"id":999}},"13994":{"varMapping":{"__isSmartRef__":true,"id":13995},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13996},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13997},"__LivelyClassName__":"lively.Closure"},"13995":{"this":{"__isSmartRef__":true,"id":531}},"13996":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"13997":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"13998":{"varMapping":{"__isSmartRef__":true,"id":13999},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14000},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14001},"__LivelyClassName__":"lively.Closure"},"13999":{"this":{"__isSmartRef__":true,"id":531}},"14000":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"14001":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"14002":{"varMapping":{"__isSmartRef__":true,"id":14003},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14004},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14005},"__LivelyClassName__":"lively.Closure"},"14003":{"this":{"__isSmartRef__":true,"id":531}},"14004":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"14005":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"14006":{"setDevStyle":{"__isSmartRef__":true,"id":14007},"setNormalStyle":{"__isSmartRef__":true,"id":14011},"tileSize":{"__isSmartRef__":true,"id":14015},"become":{"__isSmartRef__":true,"id":14019},"onMouseDown":{"__isSmartRef__":true,"id":14023},"setGridPosition":{"__isSmartRef__":true,"id":14031},"toolbox":{"__isSmartRef__":true,"id":14035},"distanceTo":{"__isSmartRef__":true,"id":14039},"tileWasDropped":{"__isSmartRef__":true,"id":14043},"isObstacle":{"__isSmartRef__":true,"id":14047},"neighboursInDirection":{"__isSmartRef__":true,"id":14051},"neighbours":{"__isSmartRef__":true,"id":14055},"zIndex":{"__isSmartRef__":true,"id":14059},"obstacles":{"__isSmartRef__":true,"id":14063},"addObstacle":{"__isSmartRef__":true,"id":14067},"removeObstacle":{"__isSmartRef__":true,"id":14071},"isTile":{"__isSmartRef__":true,"id":14075},"neighbourAt":{"__isSmartRef__":true,"id":14079},"map":{"__isSmartRef__":true,"id":14083},"game":{"__isSmartRef__":true,"id":14087},"reset":{"__isSmartRef__":true,"id":14091},"shallowCopy":{"__isSmartRef__":true,"id":14095},"characters":{"__isSmartRef__":true,"id":14099},"enterTile":{"__isSmartRef__":true,"id":14103},"leaveTile":{"__isSmartRef__":true,"id":14107},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":14111}},"14007":{"varMapping":{"__isSmartRef__":true,"id":14008},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14009},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14010},"__LivelyClassName__":"lively.Closure"},"14008":{"this":{"__isSmartRef__":true,"id":512}},"14009":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"14010":{"originalFunc":{"__isSmartRef__":true,"id":892}},"14011":{"varMapping":{"__isSmartRef__":true,"id":14012},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14013},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14014},"__LivelyClassName__":"lively.Closure"},"14012":{"this":{"__isSmartRef__":true,"id":512}},"14013":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"14014":{"originalFunc":{"__isSmartRef__":true,"id":911}},"14015":{"varMapping":{"__isSmartRef__":true,"id":14016},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":14017},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14018},"__LivelyClassName__":"lively.Closure"},"14016":{"this":{"__isSmartRef__":true,"id":512}},"14017":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"14018":{"originalFunc":{"__isSmartRef__":true,"id":915}},"14019":{"varMapping":{"__isSmartRef__":true,"id":14020},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14021},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14022},"__LivelyClassName__":"lively.Closure"},"14020":{"this":{"__isSmartRef__":true,"id":512}},"14021":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"14022":{"originalFunc":{"__isSmartRef__":true,"id":919}},"14023":{"varMapping":{"__isSmartRef__":true,"id":14024},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14029},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14030},"__LivelyClassName__":"lively.Closure"},"14024":{"this":{"__isSmartRef__":true,"id":512},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14025}},"14025":{"$super":{"__isSmartRef__":true,"id":14026}},"14026":{"varMapping":{"__isSmartRef__":true,"id":14027},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14028},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14027":{"obj":{"__isSmartRef__":true,"id":512},"name":"onMouseDown"},"14028":{},"14029":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"14030":{"originalFunc":{"__isSmartRef__":true,"id":923}},"14031":{"varMapping":{"__isSmartRef__":true,"id":14032},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":14033},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14034},"__LivelyClassName__":"lively.Closure"},"14032":{"this":{"__isSmartRef__":true,"id":512}},"14033":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"14034":{"originalFunc":{"__isSmartRef__":true,"id":931}},"14035":{"varMapping":{"__isSmartRef__":true,"id":14036},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":14037},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14038},"__LivelyClassName__":"lively.Closure"},"14036":{"this":{"__isSmartRef__":true,"id":512}},"14037":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"14038":{"originalFunc":{"__isSmartRef__":true,"id":935}},"14039":{"varMapping":{"__isSmartRef__":true,"id":14040},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":14041},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14042},"__LivelyClassName__":"lively.Closure"},"14040":{"this":{"__isSmartRef__":true,"id":512}},"14041":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"14042":{"originalFunc":{"__isSmartRef__":true,"id":939}},"14043":{"varMapping":{"__isSmartRef__":true,"id":14044},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":14045},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14046},"__LivelyClassName__":"lively.Closure"},"14044":{"this":{"__isSmartRef__":true,"id":512}},"14045":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"14046":{"originalFunc":{"__isSmartRef__":true,"id":943}},"14047":{"varMapping":{"__isSmartRef__":true,"id":14048},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":14049},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14050},"__LivelyClassName__":"lively.Closure"},"14048":{"this":{"__isSmartRef__":true,"id":512}},"14049":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"14050":{"originalFunc":{"__isSmartRef__":true,"id":947}},"14051":{"varMapping":{"__isSmartRef__":true,"id":14052},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":14053},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14054},"__LivelyClassName__":"lively.Closure"},"14052":{"this":{"__isSmartRef__":true,"id":512}},"14053":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"14054":{"originalFunc":{"__isSmartRef__":true,"id":951}},"14055":{"varMapping":{"__isSmartRef__":true,"id":14056},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":14057},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14058},"__LivelyClassName__":"lively.Closure"},"14056":{"this":{"__isSmartRef__":true,"id":512}},"14057":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"14058":{"originalFunc":{"__isSmartRef__":true,"id":955}},"14059":{"varMapping":{"__isSmartRef__":true,"id":14060},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":14061},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14062},"__LivelyClassName__":"lively.Closure"},"14060":{"this":{"__isSmartRef__":true,"id":512}},"14061":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"14062":{"originalFunc":{"__isSmartRef__":true,"id":959}},"14063":{"varMapping":{"__isSmartRef__":true,"id":14064},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":14065},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14066},"__LivelyClassName__":"lively.Closure"},"14064":{"this":{"__isSmartRef__":true,"id":512}},"14065":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"14066":{"originalFunc":{"__isSmartRef__":true,"id":963}},"14067":{"varMapping":{"__isSmartRef__":true,"id":14068},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14069},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14070},"__LivelyClassName__":"lively.Closure"},"14068":{"this":{"__isSmartRef__":true,"id":512}},"14069":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"14070":{"originalFunc":{"__isSmartRef__":true,"id":967}},"14071":{"varMapping":{"__isSmartRef__":true,"id":14072},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14073},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14074},"__LivelyClassName__":"lively.Closure"},"14072":{"this":{"__isSmartRef__":true,"id":512}},"14073":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"14074":{"originalFunc":{"__isSmartRef__":true,"id":971}},"14075":{"varMapping":{"__isSmartRef__":true,"id":14076},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":14077},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14078},"__LivelyClassName__":"lively.Closure"},"14076":{"this":{"__isSmartRef__":true,"id":512}},"14077":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"14078":{"originalFunc":{"__isSmartRef__":true,"id":975}},"14079":{"varMapping":{"__isSmartRef__":true,"id":14080},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":14081},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14082},"__LivelyClassName__":"lively.Closure"},"14080":{"this":{"__isSmartRef__":true,"id":512}},"14081":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"14082":{"originalFunc":{"__isSmartRef__":true,"id":979}},"14083":{"varMapping":{"__isSmartRef__":true,"id":14084},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":14085},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14086},"__LivelyClassName__":"lively.Closure"},"14084":{"this":{"__isSmartRef__":true,"id":512}},"14085":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"14086":{"originalFunc":{"__isSmartRef__":true,"id":983}},"14087":{"varMapping":{"__isSmartRef__":true,"id":14088},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":14089},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14090},"__LivelyClassName__":"lively.Closure"},"14088":{"this":{"__isSmartRef__":true,"id":512}},"14089":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"14090":{"originalFunc":{"__isSmartRef__":true,"id":987}},"14091":{"varMapping":{"__isSmartRef__":true,"id":14092},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":14093},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14094},"__LivelyClassName__":"lively.Closure"},"14092":{"this":{"__isSmartRef__":true,"id":512}},"14093":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"14094":{"originalFunc":{"__isSmartRef__":true,"id":991}},"14095":{"varMapping":{"__isSmartRef__":true,"id":14096},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":14097},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14098},"__LivelyClassName__":"lively.Closure"},"14096":{"this":{"__isSmartRef__":true,"id":512}},"14097":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"14098":{"originalFunc":{"__isSmartRef__":true,"id":995}},"14099":{"varMapping":{"__isSmartRef__":true,"id":14100},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":14101},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14102},"__LivelyClassName__":"lively.Closure"},"14100":{"this":{"__isSmartRef__":true,"id":512}},"14101":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"14102":{"originalFunc":{"__isSmartRef__":true,"id":999}},"14103":{"varMapping":{"__isSmartRef__":true,"id":14104},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14105},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14106},"__LivelyClassName__":"lively.Closure"},"14104":{"this":{"__isSmartRef__":true,"id":512}},"14105":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"14106":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"14107":{"varMapping":{"__isSmartRef__":true,"id":14108},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14109},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14110},"__LivelyClassName__":"lively.Closure"},"14108":{"this":{"__isSmartRef__":true,"id":512}},"14109":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"14110":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"14111":{"varMapping":{"__isSmartRef__":true,"id":14112},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14113},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14114},"__LivelyClassName__":"lively.Closure"},"14112":{"this":{"__isSmartRef__":true,"id":512}},"14113":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"14114":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"14115":{"setDevStyle":{"__isSmartRef__":true,"id":14116},"setNormalStyle":{"__isSmartRef__":true,"id":14120},"tileSize":{"__isSmartRef__":true,"id":14124},"become":{"__isSmartRef__":true,"id":14128},"onMouseDown":{"__isSmartRef__":true,"id":14132},"setGridPosition":{"__isSmartRef__":true,"id":14140},"toolbox":{"__isSmartRef__":true,"id":14144},"distanceTo":{"__isSmartRef__":true,"id":14148},"tileWasDropped":{"__isSmartRef__":true,"id":14152},"isObstacle":{"__isSmartRef__":true,"id":14156},"neighboursInDirection":{"__isSmartRef__":true,"id":14160},"neighbours":{"__isSmartRef__":true,"id":14164},"zIndex":{"__isSmartRef__":true,"id":14168},"obstacles":{"__isSmartRef__":true,"id":14172},"addObstacle":{"__isSmartRef__":true,"id":14176},"removeObstacle":{"__isSmartRef__":true,"id":14180},"isTile":{"__isSmartRef__":true,"id":14184},"neighbourAt":{"__isSmartRef__":true,"id":14188},"map":{"__isSmartRef__":true,"id":14192},"game":{"__isSmartRef__":true,"id":14196},"reset":{"__isSmartRef__":true,"id":14200},"shallowCopy":{"__isSmartRef__":true,"id":14204},"characters":{"__isSmartRef__":true,"id":14208},"enterTile":{"__isSmartRef__":true,"id":14212},"leaveTile":{"__isSmartRef__":true,"id":14216},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":14220}},"14116":{"varMapping":{"__isSmartRef__":true,"id":14117},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14118},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14119},"__LivelyClassName__":"lively.Closure"},"14117":{"this":{"__isSmartRef__":true,"id":493}},"14118":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"14119":{"originalFunc":{"__isSmartRef__":true,"id":892}},"14120":{"varMapping":{"__isSmartRef__":true,"id":14121},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14122},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14123},"__LivelyClassName__":"lively.Closure"},"14121":{"this":{"__isSmartRef__":true,"id":493}},"14122":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"14123":{"originalFunc":{"__isSmartRef__":true,"id":911}},"14124":{"varMapping":{"__isSmartRef__":true,"id":14125},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":14126},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14127},"__LivelyClassName__":"lively.Closure"},"14125":{"this":{"__isSmartRef__":true,"id":493}},"14126":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"14127":{"originalFunc":{"__isSmartRef__":true,"id":915}},"14128":{"varMapping":{"__isSmartRef__":true,"id":14129},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14130},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14131},"__LivelyClassName__":"lively.Closure"},"14129":{"this":{"__isSmartRef__":true,"id":493}},"14130":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"14131":{"originalFunc":{"__isSmartRef__":true,"id":919}},"14132":{"varMapping":{"__isSmartRef__":true,"id":14133},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14138},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14139},"__LivelyClassName__":"lively.Closure"},"14133":{"this":{"__isSmartRef__":true,"id":493},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14134}},"14134":{"$super":{"__isSmartRef__":true,"id":14135}},"14135":{"varMapping":{"__isSmartRef__":true,"id":14136},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14137},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14136":{"obj":{"__isSmartRef__":true,"id":493},"name":"onMouseDown"},"14137":{},"14138":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"14139":{"originalFunc":{"__isSmartRef__":true,"id":923}},"14140":{"varMapping":{"__isSmartRef__":true,"id":14141},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":14142},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14143},"__LivelyClassName__":"lively.Closure"},"14141":{"this":{"__isSmartRef__":true,"id":493}},"14142":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"14143":{"originalFunc":{"__isSmartRef__":true,"id":931}},"14144":{"varMapping":{"__isSmartRef__":true,"id":14145},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":14146},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14147},"__LivelyClassName__":"lively.Closure"},"14145":{"this":{"__isSmartRef__":true,"id":493}},"14146":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"14147":{"originalFunc":{"__isSmartRef__":true,"id":935}},"14148":{"varMapping":{"__isSmartRef__":true,"id":14149},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":14150},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14151},"__LivelyClassName__":"lively.Closure"},"14149":{"this":{"__isSmartRef__":true,"id":493}},"14150":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"14151":{"originalFunc":{"__isSmartRef__":true,"id":939}},"14152":{"varMapping":{"__isSmartRef__":true,"id":14153},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":14154},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14155},"__LivelyClassName__":"lively.Closure"},"14153":{"this":{"__isSmartRef__":true,"id":493}},"14154":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"14155":{"originalFunc":{"__isSmartRef__":true,"id":943}},"14156":{"varMapping":{"__isSmartRef__":true,"id":14157},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":14158},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14159},"__LivelyClassName__":"lively.Closure"},"14157":{"this":{"__isSmartRef__":true,"id":493}},"14158":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"14159":{"originalFunc":{"__isSmartRef__":true,"id":947}},"14160":{"varMapping":{"__isSmartRef__":true,"id":14161},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":14162},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14163},"__LivelyClassName__":"lively.Closure"},"14161":{"this":{"__isSmartRef__":true,"id":493}},"14162":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"14163":{"originalFunc":{"__isSmartRef__":true,"id":951}},"14164":{"varMapping":{"__isSmartRef__":true,"id":14165},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":14166},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14167},"__LivelyClassName__":"lively.Closure"},"14165":{"this":{"__isSmartRef__":true,"id":493}},"14166":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"14167":{"originalFunc":{"__isSmartRef__":true,"id":955}},"14168":{"varMapping":{"__isSmartRef__":true,"id":14169},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":14170},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14171},"__LivelyClassName__":"lively.Closure"},"14169":{"this":{"__isSmartRef__":true,"id":493}},"14170":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"14171":{"originalFunc":{"__isSmartRef__":true,"id":959}},"14172":{"varMapping":{"__isSmartRef__":true,"id":14173},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":14174},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14175},"__LivelyClassName__":"lively.Closure"},"14173":{"this":{"__isSmartRef__":true,"id":493}},"14174":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"14175":{"originalFunc":{"__isSmartRef__":true,"id":963}},"14176":{"varMapping":{"__isSmartRef__":true,"id":14177},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14178},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14179},"__LivelyClassName__":"lively.Closure"},"14177":{"this":{"__isSmartRef__":true,"id":493}},"14178":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"14179":{"originalFunc":{"__isSmartRef__":true,"id":967}},"14180":{"varMapping":{"__isSmartRef__":true,"id":14181},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14182},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14183},"__LivelyClassName__":"lively.Closure"},"14181":{"this":{"__isSmartRef__":true,"id":493}},"14182":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"14183":{"originalFunc":{"__isSmartRef__":true,"id":971}},"14184":{"varMapping":{"__isSmartRef__":true,"id":14185},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":14186},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14187},"__LivelyClassName__":"lively.Closure"},"14185":{"this":{"__isSmartRef__":true,"id":493}},"14186":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"14187":{"originalFunc":{"__isSmartRef__":true,"id":975}},"14188":{"varMapping":{"__isSmartRef__":true,"id":14189},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":14190},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14191},"__LivelyClassName__":"lively.Closure"},"14189":{"this":{"__isSmartRef__":true,"id":493}},"14190":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"14191":{"originalFunc":{"__isSmartRef__":true,"id":979}},"14192":{"varMapping":{"__isSmartRef__":true,"id":14193},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":14194},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14195},"__LivelyClassName__":"lively.Closure"},"14193":{"this":{"__isSmartRef__":true,"id":493}},"14194":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"14195":{"originalFunc":{"__isSmartRef__":true,"id":983}},"14196":{"varMapping":{"__isSmartRef__":true,"id":14197},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":14198},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14199},"__LivelyClassName__":"lively.Closure"},"14197":{"this":{"__isSmartRef__":true,"id":493}},"14198":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"14199":{"originalFunc":{"__isSmartRef__":true,"id":987}},"14200":{"varMapping":{"__isSmartRef__":true,"id":14201},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":14202},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14203},"__LivelyClassName__":"lively.Closure"},"14201":{"this":{"__isSmartRef__":true,"id":493}},"14202":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"14203":{"originalFunc":{"__isSmartRef__":true,"id":991}},"14204":{"varMapping":{"__isSmartRef__":true,"id":14205},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":14206},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14207},"__LivelyClassName__":"lively.Closure"},"14205":{"this":{"__isSmartRef__":true,"id":493}},"14206":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"14207":{"originalFunc":{"__isSmartRef__":true,"id":995}},"14208":{"varMapping":{"__isSmartRef__":true,"id":14209},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":14210},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14211},"__LivelyClassName__":"lively.Closure"},"14209":{"this":{"__isSmartRef__":true,"id":493}},"14210":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"14211":{"originalFunc":{"__isSmartRef__":true,"id":999}},"14212":{"varMapping":{"__isSmartRef__":true,"id":14213},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14214},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14215},"__LivelyClassName__":"lively.Closure"},"14213":{"this":{"__isSmartRef__":true,"id":493}},"14214":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"14215":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"14216":{"varMapping":{"__isSmartRef__":true,"id":14217},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14218},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14219},"__LivelyClassName__":"lively.Closure"},"14217":{"this":{"__isSmartRef__":true,"id":493}},"14218":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"14219":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"14220":{"varMapping":{"__isSmartRef__":true,"id":14221},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14222},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14223},"__LivelyClassName__":"lively.Closure"},"14221":{"this":{"__isSmartRef__":true,"id":493}},"14222":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"14223":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"14224":{"setDevStyle":{"__isSmartRef__":true,"id":14225},"setNormalStyle":{"__isSmartRef__":true,"id":14229},"tileSize":{"__isSmartRef__":true,"id":14233},"become":{"__isSmartRef__":true,"id":14237},"onMouseDown":{"__isSmartRef__":true,"id":14241},"setGridPosition":{"__isSmartRef__":true,"id":14249},"toolbox":{"__isSmartRef__":true,"id":14253},"distanceTo":{"__isSmartRef__":true,"id":14257},"tileWasDropped":{"__isSmartRef__":true,"id":14261},"isObstacle":{"__isSmartRef__":true,"id":14265},"neighboursInDirection":{"__isSmartRef__":true,"id":14269},"neighbours":{"__isSmartRef__":true,"id":14273},"zIndex":{"__isSmartRef__":true,"id":14277},"obstacles":{"__isSmartRef__":true,"id":14281},"addObstacle":{"__isSmartRef__":true,"id":14285},"removeObstacle":{"__isSmartRef__":true,"id":14289},"isTile":{"__isSmartRef__":true,"id":14293},"neighbourAt":{"__isSmartRef__":true,"id":14297},"map":{"__isSmartRef__":true,"id":14301},"game":{"__isSmartRef__":true,"id":14305},"reset":{"__isSmartRef__":true,"id":14309},"shallowCopy":{"__isSmartRef__":true,"id":14313},"characters":{"__isSmartRef__":true,"id":14317},"enterTile":{"__isSmartRef__":true,"id":14321},"leaveTile":{"__isSmartRef__":true,"id":14325},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":14329}},"14225":{"varMapping":{"__isSmartRef__":true,"id":14226},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14227},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14228},"__LivelyClassName__":"lively.Closure"},"14226":{"this":{"__isSmartRef__":true,"id":474}},"14227":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"14228":{"originalFunc":{"__isSmartRef__":true,"id":892}},"14229":{"varMapping":{"__isSmartRef__":true,"id":14230},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14231},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14232},"__LivelyClassName__":"lively.Closure"},"14230":{"this":{"__isSmartRef__":true,"id":474}},"14231":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"14232":{"originalFunc":{"__isSmartRef__":true,"id":911}},"14233":{"varMapping":{"__isSmartRef__":true,"id":14234},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":14235},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14236},"__LivelyClassName__":"lively.Closure"},"14234":{"this":{"__isSmartRef__":true,"id":474}},"14235":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"14236":{"originalFunc":{"__isSmartRef__":true,"id":915}},"14237":{"varMapping":{"__isSmartRef__":true,"id":14238},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14239},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14240},"__LivelyClassName__":"lively.Closure"},"14238":{"this":{"__isSmartRef__":true,"id":474}},"14239":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"14240":{"originalFunc":{"__isSmartRef__":true,"id":919}},"14241":{"varMapping":{"__isSmartRef__":true,"id":14242},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14247},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14248},"__LivelyClassName__":"lively.Closure"},"14242":{"this":{"__isSmartRef__":true,"id":474},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14243}},"14243":{"$super":{"__isSmartRef__":true,"id":14244}},"14244":{"varMapping":{"__isSmartRef__":true,"id":14245},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14246},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14245":{"obj":{"__isSmartRef__":true,"id":474},"name":"onMouseDown"},"14246":{},"14247":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"14248":{"originalFunc":{"__isSmartRef__":true,"id":923}},"14249":{"varMapping":{"__isSmartRef__":true,"id":14250},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":14251},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14252},"__LivelyClassName__":"lively.Closure"},"14250":{"this":{"__isSmartRef__":true,"id":474}},"14251":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"14252":{"originalFunc":{"__isSmartRef__":true,"id":931}},"14253":{"varMapping":{"__isSmartRef__":true,"id":14254},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":14255},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14256},"__LivelyClassName__":"lively.Closure"},"14254":{"this":{"__isSmartRef__":true,"id":474}},"14255":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"14256":{"originalFunc":{"__isSmartRef__":true,"id":935}},"14257":{"varMapping":{"__isSmartRef__":true,"id":14258},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":14259},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14260},"__LivelyClassName__":"lively.Closure"},"14258":{"this":{"__isSmartRef__":true,"id":474}},"14259":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"14260":{"originalFunc":{"__isSmartRef__":true,"id":939}},"14261":{"varMapping":{"__isSmartRef__":true,"id":14262},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":14263},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14264},"__LivelyClassName__":"lively.Closure"},"14262":{"this":{"__isSmartRef__":true,"id":474}},"14263":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"14264":{"originalFunc":{"__isSmartRef__":true,"id":943}},"14265":{"varMapping":{"__isSmartRef__":true,"id":14266},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":14267},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14268},"__LivelyClassName__":"lively.Closure"},"14266":{"this":{"__isSmartRef__":true,"id":474}},"14267":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"14268":{"originalFunc":{"__isSmartRef__":true,"id":947}},"14269":{"varMapping":{"__isSmartRef__":true,"id":14270},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":14271},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14272},"__LivelyClassName__":"lively.Closure"},"14270":{"this":{"__isSmartRef__":true,"id":474}},"14271":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"14272":{"originalFunc":{"__isSmartRef__":true,"id":951}},"14273":{"varMapping":{"__isSmartRef__":true,"id":14274},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":14275},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14276},"__LivelyClassName__":"lively.Closure"},"14274":{"this":{"__isSmartRef__":true,"id":474}},"14275":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"14276":{"originalFunc":{"__isSmartRef__":true,"id":955}},"14277":{"varMapping":{"__isSmartRef__":true,"id":14278},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":14279},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14280},"__LivelyClassName__":"lively.Closure"},"14278":{"this":{"__isSmartRef__":true,"id":474}},"14279":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"14280":{"originalFunc":{"__isSmartRef__":true,"id":959}},"14281":{"varMapping":{"__isSmartRef__":true,"id":14282},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":14283},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14284},"__LivelyClassName__":"lively.Closure"},"14282":{"this":{"__isSmartRef__":true,"id":474}},"14283":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"14284":{"originalFunc":{"__isSmartRef__":true,"id":963}},"14285":{"varMapping":{"__isSmartRef__":true,"id":14286},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14287},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14288},"__LivelyClassName__":"lively.Closure"},"14286":{"this":{"__isSmartRef__":true,"id":474}},"14287":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"14288":{"originalFunc":{"__isSmartRef__":true,"id":967}},"14289":{"varMapping":{"__isSmartRef__":true,"id":14290},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14291},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14292},"__LivelyClassName__":"lively.Closure"},"14290":{"this":{"__isSmartRef__":true,"id":474}},"14291":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"14292":{"originalFunc":{"__isSmartRef__":true,"id":971}},"14293":{"varMapping":{"__isSmartRef__":true,"id":14294},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":14295},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14296},"__LivelyClassName__":"lively.Closure"},"14294":{"this":{"__isSmartRef__":true,"id":474}},"14295":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"14296":{"originalFunc":{"__isSmartRef__":true,"id":975}},"14297":{"varMapping":{"__isSmartRef__":true,"id":14298},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":14299},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14300},"__LivelyClassName__":"lively.Closure"},"14298":{"this":{"__isSmartRef__":true,"id":474}},"14299":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"14300":{"originalFunc":{"__isSmartRef__":true,"id":979}},"14301":{"varMapping":{"__isSmartRef__":true,"id":14302},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":14303},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14304},"__LivelyClassName__":"lively.Closure"},"14302":{"this":{"__isSmartRef__":true,"id":474}},"14303":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"14304":{"originalFunc":{"__isSmartRef__":true,"id":983}},"14305":{"varMapping":{"__isSmartRef__":true,"id":14306},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":14307},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14308},"__LivelyClassName__":"lively.Closure"},"14306":{"this":{"__isSmartRef__":true,"id":474}},"14307":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"14308":{"originalFunc":{"__isSmartRef__":true,"id":987}},"14309":{"varMapping":{"__isSmartRef__":true,"id":14310},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":14311},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14312},"__LivelyClassName__":"lively.Closure"},"14310":{"this":{"__isSmartRef__":true,"id":474}},"14311":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"14312":{"originalFunc":{"__isSmartRef__":true,"id":991}},"14313":{"varMapping":{"__isSmartRef__":true,"id":14314},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":14315},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14316},"__LivelyClassName__":"lively.Closure"},"14314":{"this":{"__isSmartRef__":true,"id":474}},"14315":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"14316":{"originalFunc":{"__isSmartRef__":true,"id":995}},"14317":{"varMapping":{"__isSmartRef__":true,"id":14318},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":14319},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14320},"__LivelyClassName__":"lively.Closure"},"14318":{"this":{"__isSmartRef__":true,"id":474}},"14319":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"14320":{"originalFunc":{"__isSmartRef__":true,"id":999}},"14321":{"varMapping":{"__isSmartRef__":true,"id":14322},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14323},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14324},"__LivelyClassName__":"lively.Closure"},"14322":{"this":{"__isSmartRef__":true,"id":474}},"14323":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"14324":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"14325":{"varMapping":{"__isSmartRef__":true,"id":14326},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14327},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14328},"__LivelyClassName__":"lively.Closure"},"14326":{"this":{"__isSmartRef__":true,"id":474}},"14327":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"14328":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"14329":{"varMapping":{"__isSmartRef__":true,"id":14330},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14331},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14332},"__LivelyClassName__":"lively.Closure"},"14330":{"this":{"__isSmartRef__":true,"id":474}},"14331":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"14332":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"14333":{"setDevStyle":{"__isSmartRef__":true,"id":14334},"setNormalStyle":{"__isSmartRef__":true,"id":14338},"tileSize":{"__isSmartRef__":true,"id":14342},"become":{"__isSmartRef__":true,"id":14346},"onMouseDown":{"__isSmartRef__":true,"id":14350},"setGridPosition":{"__isSmartRef__":true,"id":14358},"toolbox":{"__isSmartRef__":true,"id":14362},"distanceTo":{"__isSmartRef__":true,"id":14366},"tileWasDropped":{"__isSmartRef__":true,"id":14370},"isObstacle":{"__isSmartRef__":true,"id":14374},"neighboursInDirection":{"__isSmartRef__":true,"id":14378},"neighbours":{"__isSmartRef__":true,"id":14382},"zIndex":{"__isSmartRef__":true,"id":14386},"obstacles":{"__isSmartRef__":true,"id":14390},"addObstacle":{"__isSmartRef__":true,"id":14394},"removeObstacle":{"__isSmartRef__":true,"id":14398},"isTile":{"__isSmartRef__":true,"id":14402},"neighbourAt":{"__isSmartRef__":true,"id":14406},"map":{"__isSmartRef__":true,"id":14410},"game":{"__isSmartRef__":true,"id":14414},"reset":{"__isSmartRef__":true,"id":14418},"shallowCopy":{"__isSmartRef__":true,"id":14422},"characters":{"__isSmartRef__":true,"id":14426},"enterTile":{"__isSmartRef__":true,"id":14430},"leaveTile":{"__isSmartRef__":true,"id":14434},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":14438}},"14334":{"varMapping":{"__isSmartRef__":true,"id":14335},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14336},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14337},"__LivelyClassName__":"lively.Closure"},"14335":{"this":{"__isSmartRef__":true,"id":455}},"14336":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"14337":{"originalFunc":{"__isSmartRef__":true,"id":892}},"14338":{"varMapping":{"__isSmartRef__":true,"id":14339},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14340},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14341},"__LivelyClassName__":"lively.Closure"},"14339":{"this":{"__isSmartRef__":true,"id":455}},"14340":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"14341":{"originalFunc":{"__isSmartRef__":true,"id":911}},"14342":{"varMapping":{"__isSmartRef__":true,"id":14343},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":14344},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14345},"__LivelyClassName__":"lively.Closure"},"14343":{"this":{"__isSmartRef__":true,"id":455}},"14344":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"14345":{"originalFunc":{"__isSmartRef__":true,"id":915}},"14346":{"varMapping":{"__isSmartRef__":true,"id":14347},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14348},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14349},"__LivelyClassName__":"lively.Closure"},"14347":{"this":{"__isSmartRef__":true,"id":455}},"14348":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"14349":{"originalFunc":{"__isSmartRef__":true,"id":919}},"14350":{"varMapping":{"__isSmartRef__":true,"id":14351},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14356},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14357},"__LivelyClassName__":"lively.Closure"},"14351":{"this":{"__isSmartRef__":true,"id":455},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14352}},"14352":{"$super":{"__isSmartRef__":true,"id":14353}},"14353":{"varMapping":{"__isSmartRef__":true,"id":14354},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14355},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14354":{"obj":{"__isSmartRef__":true,"id":455},"name":"onMouseDown"},"14355":{},"14356":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"14357":{"originalFunc":{"__isSmartRef__":true,"id":923}},"14358":{"varMapping":{"__isSmartRef__":true,"id":14359},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":14360},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14361},"__LivelyClassName__":"lively.Closure"},"14359":{"this":{"__isSmartRef__":true,"id":455}},"14360":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"14361":{"originalFunc":{"__isSmartRef__":true,"id":931}},"14362":{"varMapping":{"__isSmartRef__":true,"id":14363},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":14364},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14365},"__LivelyClassName__":"lively.Closure"},"14363":{"this":{"__isSmartRef__":true,"id":455}},"14364":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"14365":{"originalFunc":{"__isSmartRef__":true,"id":935}},"14366":{"varMapping":{"__isSmartRef__":true,"id":14367},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":14368},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14369},"__LivelyClassName__":"lively.Closure"},"14367":{"this":{"__isSmartRef__":true,"id":455}},"14368":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"14369":{"originalFunc":{"__isSmartRef__":true,"id":939}},"14370":{"varMapping":{"__isSmartRef__":true,"id":14371},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":14372},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14373},"__LivelyClassName__":"lively.Closure"},"14371":{"this":{"__isSmartRef__":true,"id":455}},"14372":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"14373":{"originalFunc":{"__isSmartRef__":true,"id":943}},"14374":{"varMapping":{"__isSmartRef__":true,"id":14375},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":14376},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14377},"__LivelyClassName__":"lively.Closure"},"14375":{"this":{"__isSmartRef__":true,"id":455}},"14376":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"14377":{"originalFunc":{"__isSmartRef__":true,"id":947}},"14378":{"varMapping":{"__isSmartRef__":true,"id":14379},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":14380},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14381},"__LivelyClassName__":"lively.Closure"},"14379":{"this":{"__isSmartRef__":true,"id":455}},"14380":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"14381":{"originalFunc":{"__isSmartRef__":true,"id":951}},"14382":{"varMapping":{"__isSmartRef__":true,"id":14383},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":14384},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14385},"__LivelyClassName__":"lively.Closure"},"14383":{"this":{"__isSmartRef__":true,"id":455}},"14384":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"14385":{"originalFunc":{"__isSmartRef__":true,"id":955}},"14386":{"varMapping":{"__isSmartRef__":true,"id":14387},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":14388},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14389},"__LivelyClassName__":"lively.Closure"},"14387":{"this":{"__isSmartRef__":true,"id":455}},"14388":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"14389":{"originalFunc":{"__isSmartRef__":true,"id":959}},"14390":{"varMapping":{"__isSmartRef__":true,"id":14391},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":14392},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14393},"__LivelyClassName__":"lively.Closure"},"14391":{"this":{"__isSmartRef__":true,"id":455}},"14392":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"14393":{"originalFunc":{"__isSmartRef__":true,"id":963}},"14394":{"varMapping":{"__isSmartRef__":true,"id":14395},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14396},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14397},"__LivelyClassName__":"lively.Closure"},"14395":{"this":{"__isSmartRef__":true,"id":455}},"14396":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"14397":{"originalFunc":{"__isSmartRef__":true,"id":967}},"14398":{"varMapping":{"__isSmartRef__":true,"id":14399},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14400},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14401},"__LivelyClassName__":"lively.Closure"},"14399":{"this":{"__isSmartRef__":true,"id":455}},"14400":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"14401":{"originalFunc":{"__isSmartRef__":true,"id":971}},"14402":{"varMapping":{"__isSmartRef__":true,"id":14403},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":14404},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14405},"__LivelyClassName__":"lively.Closure"},"14403":{"this":{"__isSmartRef__":true,"id":455}},"14404":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"14405":{"originalFunc":{"__isSmartRef__":true,"id":975}},"14406":{"varMapping":{"__isSmartRef__":true,"id":14407},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":14408},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14409},"__LivelyClassName__":"lively.Closure"},"14407":{"this":{"__isSmartRef__":true,"id":455}},"14408":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"14409":{"originalFunc":{"__isSmartRef__":true,"id":979}},"14410":{"varMapping":{"__isSmartRef__":true,"id":14411},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":14412},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14413},"__LivelyClassName__":"lively.Closure"},"14411":{"this":{"__isSmartRef__":true,"id":455}},"14412":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"14413":{"originalFunc":{"__isSmartRef__":true,"id":983}},"14414":{"varMapping":{"__isSmartRef__":true,"id":14415},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":14416},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14417},"__LivelyClassName__":"lively.Closure"},"14415":{"this":{"__isSmartRef__":true,"id":455}},"14416":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"14417":{"originalFunc":{"__isSmartRef__":true,"id":987}},"14418":{"varMapping":{"__isSmartRef__":true,"id":14419},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":14420},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14421},"__LivelyClassName__":"lively.Closure"},"14419":{"this":{"__isSmartRef__":true,"id":455}},"14420":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"14421":{"originalFunc":{"__isSmartRef__":true,"id":991}},"14422":{"varMapping":{"__isSmartRef__":true,"id":14423},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":14424},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14425},"__LivelyClassName__":"lively.Closure"},"14423":{"this":{"__isSmartRef__":true,"id":455}},"14424":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"14425":{"originalFunc":{"__isSmartRef__":true,"id":995}},"14426":{"varMapping":{"__isSmartRef__":true,"id":14427},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":14428},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14429},"__LivelyClassName__":"lively.Closure"},"14427":{"this":{"__isSmartRef__":true,"id":455}},"14428":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"14429":{"originalFunc":{"__isSmartRef__":true,"id":999}},"14430":{"varMapping":{"__isSmartRef__":true,"id":14431},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14432},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14433},"__LivelyClassName__":"lively.Closure"},"14431":{"this":{"__isSmartRef__":true,"id":455}},"14432":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"14433":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"14434":{"varMapping":{"__isSmartRef__":true,"id":14435},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14436},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14437},"__LivelyClassName__":"lively.Closure"},"14435":{"this":{"__isSmartRef__":true,"id":455}},"14436":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"14437":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"14438":{"varMapping":{"__isSmartRef__":true,"id":14439},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14440},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14441},"__LivelyClassName__":"lively.Closure"},"14439":{"this":{"__isSmartRef__":true,"id":455}},"14440":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"14441":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"14442":{"setDevStyle":{"__isSmartRef__":true,"id":14443},"setNormalStyle":{"__isSmartRef__":true,"id":14447},"tileSize":{"__isSmartRef__":true,"id":14451},"become":{"__isSmartRef__":true,"id":14455},"onMouseDown":{"__isSmartRef__":true,"id":14459},"setGridPosition":{"__isSmartRef__":true,"id":14467},"toolbox":{"__isSmartRef__":true,"id":14471},"distanceTo":{"__isSmartRef__":true,"id":14475},"tileWasDropped":{"__isSmartRef__":true,"id":14479},"isObstacle":{"__isSmartRef__":true,"id":14483},"neighboursInDirection":{"__isSmartRef__":true,"id":14487},"neighbours":{"__isSmartRef__":true,"id":14491},"zIndex":{"__isSmartRef__":true,"id":14495},"obstacles":{"__isSmartRef__":true,"id":14499},"addObstacle":{"__isSmartRef__":true,"id":14503},"removeObstacle":{"__isSmartRef__":true,"id":14507},"isTile":{"__isSmartRef__":true,"id":14511},"neighbourAt":{"__isSmartRef__":true,"id":14515},"map":{"__isSmartRef__":true,"id":14519},"game":{"__isSmartRef__":true,"id":14523},"reset":{"__isSmartRef__":true,"id":14527},"shallowCopy":{"__isSmartRef__":true,"id":14531},"characters":{"__isSmartRef__":true,"id":14535},"enterTile":{"__isSmartRef__":true,"id":14539},"leaveTile":{"__isSmartRef__":true,"id":14543},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":14547}},"14443":{"varMapping":{"__isSmartRef__":true,"id":14444},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14445},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14446},"__LivelyClassName__":"lively.Closure"},"14444":{"this":{"__isSmartRef__":true,"id":415}},"14445":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"14446":{"originalFunc":{"__isSmartRef__":true,"id":892}},"14447":{"varMapping":{"__isSmartRef__":true,"id":14448},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14449},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14450},"__LivelyClassName__":"lively.Closure"},"14448":{"this":{"__isSmartRef__":true,"id":415}},"14449":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"14450":{"originalFunc":{"__isSmartRef__":true,"id":911}},"14451":{"varMapping":{"__isSmartRef__":true,"id":14452},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":14453},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14454},"__LivelyClassName__":"lively.Closure"},"14452":{"this":{"__isSmartRef__":true,"id":415}},"14453":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"14454":{"originalFunc":{"__isSmartRef__":true,"id":915}},"14455":{"varMapping":{"__isSmartRef__":true,"id":14456},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14457},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14458},"__LivelyClassName__":"lively.Closure"},"14456":{"this":{"__isSmartRef__":true,"id":415}},"14457":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"14458":{"originalFunc":{"__isSmartRef__":true,"id":919}},"14459":{"varMapping":{"__isSmartRef__":true,"id":14460},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14465},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14466},"__LivelyClassName__":"lively.Closure"},"14460":{"this":{"__isSmartRef__":true,"id":415},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14461}},"14461":{"$super":{"__isSmartRef__":true,"id":14462}},"14462":{"varMapping":{"__isSmartRef__":true,"id":14463},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14464},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14463":{"obj":{"__isSmartRef__":true,"id":415},"name":"onMouseDown"},"14464":{},"14465":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"14466":{"originalFunc":{"__isSmartRef__":true,"id":923}},"14467":{"varMapping":{"__isSmartRef__":true,"id":14468},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":14469},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14470},"__LivelyClassName__":"lively.Closure"},"14468":{"this":{"__isSmartRef__":true,"id":415}},"14469":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"14470":{"originalFunc":{"__isSmartRef__":true,"id":931}},"14471":{"varMapping":{"__isSmartRef__":true,"id":14472},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":14473},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14474},"__LivelyClassName__":"lively.Closure"},"14472":{"this":{"__isSmartRef__":true,"id":415}},"14473":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"14474":{"originalFunc":{"__isSmartRef__":true,"id":935}},"14475":{"varMapping":{"__isSmartRef__":true,"id":14476},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":14477},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14478},"__LivelyClassName__":"lively.Closure"},"14476":{"this":{"__isSmartRef__":true,"id":415}},"14477":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"14478":{"originalFunc":{"__isSmartRef__":true,"id":939}},"14479":{"varMapping":{"__isSmartRef__":true,"id":14480},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":14481},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14482},"__LivelyClassName__":"lively.Closure"},"14480":{"this":{"__isSmartRef__":true,"id":415}},"14481":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"14482":{"originalFunc":{"__isSmartRef__":true,"id":943}},"14483":{"varMapping":{"__isSmartRef__":true,"id":14484},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":14485},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14486},"__LivelyClassName__":"lively.Closure"},"14484":{"this":{"__isSmartRef__":true,"id":415}},"14485":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"14486":{"originalFunc":{"__isSmartRef__":true,"id":947}},"14487":{"varMapping":{"__isSmartRef__":true,"id":14488},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":14489},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14490},"__LivelyClassName__":"lively.Closure"},"14488":{"this":{"__isSmartRef__":true,"id":415}},"14489":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"14490":{"originalFunc":{"__isSmartRef__":true,"id":951}},"14491":{"varMapping":{"__isSmartRef__":true,"id":14492},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":14493},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14494},"__LivelyClassName__":"lively.Closure"},"14492":{"this":{"__isSmartRef__":true,"id":415}},"14493":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"14494":{"originalFunc":{"__isSmartRef__":true,"id":955}},"14495":{"varMapping":{"__isSmartRef__":true,"id":14496},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":14497},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14498},"__LivelyClassName__":"lively.Closure"},"14496":{"this":{"__isSmartRef__":true,"id":415}},"14497":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"14498":{"originalFunc":{"__isSmartRef__":true,"id":959}},"14499":{"varMapping":{"__isSmartRef__":true,"id":14500},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":14501},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14502},"__LivelyClassName__":"lively.Closure"},"14500":{"this":{"__isSmartRef__":true,"id":415}},"14501":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"14502":{"originalFunc":{"__isSmartRef__":true,"id":963}},"14503":{"varMapping":{"__isSmartRef__":true,"id":14504},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14505},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14506},"__LivelyClassName__":"lively.Closure"},"14504":{"this":{"__isSmartRef__":true,"id":415}},"14505":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"14506":{"originalFunc":{"__isSmartRef__":true,"id":967}},"14507":{"varMapping":{"__isSmartRef__":true,"id":14508},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14509},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14510},"__LivelyClassName__":"lively.Closure"},"14508":{"this":{"__isSmartRef__":true,"id":415}},"14509":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"14510":{"originalFunc":{"__isSmartRef__":true,"id":971}},"14511":{"varMapping":{"__isSmartRef__":true,"id":14512},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":14513},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14514},"__LivelyClassName__":"lively.Closure"},"14512":{"this":{"__isSmartRef__":true,"id":415}},"14513":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"14514":{"originalFunc":{"__isSmartRef__":true,"id":975}},"14515":{"varMapping":{"__isSmartRef__":true,"id":14516},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":14517},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14518},"__LivelyClassName__":"lively.Closure"},"14516":{"this":{"__isSmartRef__":true,"id":415}},"14517":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"14518":{"originalFunc":{"__isSmartRef__":true,"id":979}},"14519":{"varMapping":{"__isSmartRef__":true,"id":14520},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":14521},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14522},"__LivelyClassName__":"lively.Closure"},"14520":{"this":{"__isSmartRef__":true,"id":415}},"14521":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"14522":{"originalFunc":{"__isSmartRef__":true,"id":983}},"14523":{"varMapping":{"__isSmartRef__":true,"id":14524},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":14525},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14526},"__LivelyClassName__":"lively.Closure"},"14524":{"this":{"__isSmartRef__":true,"id":415}},"14525":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"14526":{"originalFunc":{"__isSmartRef__":true,"id":987}},"14527":{"varMapping":{"__isSmartRef__":true,"id":14528},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":14529},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14530},"__LivelyClassName__":"lively.Closure"},"14528":{"this":{"__isSmartRef__":true,"id":415}},"14529":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"14530":{"originalFunc":{"__isSmartRef__":true,"id":991}},"14531":{"varMapping":{"__isSmartRef__":true,"id":14532},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":14533},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14534},"__LivelyClassName__":"lively.Closure"},"14532":{"this":{"__isSmartRef__":true,"id":415}},"14533":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"14534":{"originalFunc":{"__isSmartRef__":true,"id":995}},"14535":{"varMapping":{"__isSmartRef__":true,"id":14536},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":14537},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14538},"__LivelyClassName__":"lively.Closure"},"14536":{"this":{"__isSmartRef__":true,"id":415}},"14537":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"14538":{"originalFunc":{"__isSmartRef__":true,"id":999}},"14539":{"varMapping":{"__isSmartRef__":true,"id":14540},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14541},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14542},"__LivelyClassName__":"lively.Closure"},"14540":{"this":{"__isSmartRef__":true,"id":415}},"14541":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"14542":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"14543":{"varMapping":{"__isSmartRef__":true,"id":14544},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14545},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14546},"__LivelyClassName__":"lively.Closure"},"14544":{"this":{"__isSmartRef__":true,"id":415}},"14545":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"14546":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"14547":{"varMapping":{"__isSmartRef__":true,"id":14548},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14549},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14550},"__LivelyClassName__":"lively.Closure"},"14548":{"this":{"__isSmartRef__":true,"id":415}},"14549":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"14550":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"14551":{"setDevStyle":{"__isSmartRef__":true,"id":14552},"setNormalStyle":{"__isSmartRef__":true,"id":14556},"tileSize":{"__isSmartRef__":true,"id":14560},"become":{"__isSmartRef__":true,"id":14564},"onMouseDown":{"__isSmartRef__":true,"id":14568},"setGridPosition":{"__isSmartRef__":true,"id":14576},"toolbox":{"__isSmartRef__":true,"id":14580},"distanceTo":{"__isSmartRef__":true,"id":14584},"tileWasDropped":{"__isSmartRef__":true,"id":14588},"isObstacle":{"__isSmartRef__":true,"id":14592},"neighboursInDirection":{"__isSmartRef__":true,"id":14596},"neighbours":{"__isSmartRef__":true,"id":14600},"zIndex":{"__isSmartRef__":true,"id":14604},"obstacles":{"__isSmartRef__":true,"id":14608},"addObstacle":{"__isSmartRef__":true,"id":14612},"removeObstacle":{"__isSmartRef__":true,"id":14616},"isTile":{"__isSmartRef__":true,"id":14620},"neighbourAt":{"__isSmartRef__":true,"id":14624},"map":{"__isSmartRef__":true,"id":14628},"game":{"__isSmartRef__":true,"id":14632},"reset":{"__isSmartRef__":true,"id":14636},"shallowCopy":{"__isSmartRef__":true,"id":14640},"characters":{"__isSmartRef__":true,"id":14644},"enterTile":{"__isSmartRef__":true,"id":14648},"leaveTile":{"__isSmartRef__":true,"id":14652},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":14656}},"14552":{"varMapping":{"__isSmartRef__":true,"id":14553},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14554},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14555},"__LivelyClassName__":"lively.Closure"},"14553":{"this":{"__isSmartRef__":true,"id":396}},"14554":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"14555":{"originalFunc":{"__isSmartRef__":true,"id":892}},"14556":{"varMapping":{"__isSmartRef__":true,"id":14557},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14558},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14559},"__LivelyClassName__":"lively.Closure"},"14557":{"this":{"__isSmartRef__":true,"id":396}},"14558":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"14559":{"originalFunc":{"__isSmartRef__":true,"id":911}},"14560":{"varMapping":{"__isSmartRef__":true,"id":14561},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":14562},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14563},"__LivelyClassName__":"lively.Closure"},"14561":{"this":{"__isSmartRef__":true,"id":396}},"14562":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"14563":{"originalFunc":{"__isSmartRef__":true,"id":915}},"14564":{"varMapping":{"__isSmartRef__":true,"id":14565},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14566},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14567},"__LivelyClassName__":"lively.Closure"},"14565":{"this":{"__isSmartRef__":true,"id":396}},"14566":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"14567":{"originalFunc":{"__isSmartRef__":true,"id":919}},"14568":{"varMapping":{"__isSmartRef__":true,"id":14569},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14574},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14575},"__LivelyClassName__":"lively.Closure"},"14569":{"this":{"__isSmartRef__":true,"id":396},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14570}},"14570":{"$super":{"__isSmartRef__":true,"id":14571}},"14571":{"varMapping":{"__isSmartRef__":true,"id":14572},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14573},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14572":{"obj":{"__isSmartRef__":true,"id":396},"name":"onMouseDown"},"14573":{},"14574":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"14575":{"originalFunc":{"__isSmartRef__":true,"id":923}},"14576":{"varMapping":{"__isSmartRef__":true,"id":14577},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":14578},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14579},"__LivelyClassName__":"lively.Closure"},"14577":{"this":{"__isSmartRef__":true,"id":396}},"14578":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"14579":{"originalFunc":{"__isSmartRef__":true,"id":931}},"14580":{"varMapping":{"__isSmartRef__":true,"id":14581},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":14582},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14583},"__LivelyClassName__":"lively.Closure"},"14581":{"this":{"__isSmartRef__":true,"id":396}},"14582":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"14583":{"originalFunc":{"__isSmartRef__":true,"id":935}},"14584":{"varMapping":{"__isSmartRef__":true,"id":14585},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":14586},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14587},"__LivelyClassName__":"lively.Closure"},"14585":{"this":{"__isSmartRef__":true,"id":396}},"14586":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"14587":{"originalFunc":{"__isSmartRef__":true,"id":939}},"14588":{"varMapping":{"__isSmartRef__":true,"id":14589},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":14590},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14591},"__LivelyClassName__":"lively.Closure"},"14589":{"this":{"__isSmartRef__":true,"id":396}},"14590":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"14591":{"originalFunc":{"__isSmartRef__":true,"id":943}},"14592":{"varMapping":{"__isSmartRef__":true,"id":14593},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":14594},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14595},"__LivelyClassName__":"lively.Closure"},"14593":{"this":{"__isSmartRef__":true,"id":396}},"14594":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"14595":{"originalFunc":{"__isSmartRef__":true,"id":947}},"14596":{"varMapping":{"__isSmartRef__":true,"id":14597},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":14598},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14599},"__LivelyClassName__":"lively.Closure"},"14597":{"this":{"__isSmartRef__":true,"id":396}},"14598":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"14599":{"originalFunc":{"__isSmartRef__":true,"id":951}},"14600":{"varMapping":{"__isSmartRef__":true,"id":14601},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":14602},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14603},"__LivelyClassName__":"lively.Closure"},"14601":{"this":{"__isSmartRef__":true,"id":396}},"14602":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"14603":{"originalFunc":{"__isSmartRef__":true,"id":955}},"14604":{"varMapping":{"__isSmartRef__":true,"id":14605},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":14606},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14607},"__LivelyClassName__":"lively.Closure"},"14605":{"this":{"__isSmartRef__":true,"id":396}},"14606":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"14607":{"originalFunc":{"__isSmartRef__":true,"id":959}},"14608":{"varMapping":{"__isSmartRef__":true,"id":14609},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":14610},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14611},"__LivelyClassName__":"lively.Closure"},"14609":{"this":{"__isSmartRef__":true,"id":396}},"14610":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"14611":{"originalFunc":{"__isSmartRef__":true,"id":963}},"14612":{"varMapping":{"__isSmartRef__":true,"id":14613},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14614},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14615},"__LivelyClassName__":"lively.Closure"},"14613":{"this":{"__isSmartRef__":true,"id":396}},"14614":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"14615":{"originalFunc":{"__isSmartRef__":true,"id":967}},"14616":{"varMapping":{"__isSmartRef__":true,"id":14617},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14618},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14619},"__LivelyClassName__":"lively.Closure"},"14617":{"this":{"__isSmartRef__":true,"id":396}},"14618":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"14619":{"originalFunc":{"__isSmartRef__":true,"id":971}},"14620":{"varMapping":{"__isSmartRef__":true,"id":14621},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":14622},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14623},"__LivelyClassName__":"lively.Closure"},"14621":{"this":{"__isSmartRef__":true,"id":396}},"14622":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"14623":{"originalFunc":{"__isSmartRef__":true,"id":975}},"14624":{"varMapping":{"__isSmartRef__":true,"id":14625},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":14626},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14627},"__LivelyClassName__":"lively.Closure"},"14625":{"this":{"__isSmartRef__":true,"id":396}},"14626":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"14627":{"originalFunc":{"__isSmartRef__":true,"id":979}},"14628":{"varMapping":{"__isSmartRef__":true,"id":14629},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":14630},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14631},"__LivelyClassName__":"lively.Closure"},"14629":{"this":{"__isSmartRef__":true,"id":396}},"14630":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"14631":{"originalFunc":{"__isSmartRef__":true,"id":983}},"14632":{"varMapping":{"__isSmartRef__":true,"id":14633},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":14634},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14635},"__LivelyClassName__":"lively.Closure"},"14633":{"this":{"__isSmartRef__":true,"id":396}},"14634":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"14635":{"originalFunc":{"__isSmartRef__":true,"id":987}},"14636":{"varMapping":{"__isSmartRef__":true,"id":14637},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":14638},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14639},"__LivelyClassName__":"lively.Closure"},"14637":{"this":{"__isSmartRef__":true,"id":396}},"14638":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"14639":{"originalFunc":{"__isSmartRef__":true,"id":991}},"14640":{"varMapping":{"__isSmartRef__":true,"id":14641},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":14642},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14643},"__LivelyClassName__":"lively.Closure"},"14641":{"this":{"__isSmartRef__":true,"id":396}},"14642":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"14643":{"originalFunc":{"__isSmartRef__":true,"id":995}},"14644":{"varMapping":{"__isSmartRef__":true,"id":14645},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":14646},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14647},"__LivelyClassName__":"lively.Closure"},"14645":{"this":{"__isSmartRef__":true,"id":396}},"14646":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"14647":{"originalFunc":{"__isSmartRef__":true,"id":999}},"14648":{"varMapping":{"__isSmartRef__":true,"id":14649},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14650},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14651},"__LivelyClassName__":"lively.Closure"},"14649":{"this":{"__isSmartRef__":true,"id":396}},"14650":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"14651":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"14652":{"varMapping":{"__isSmartRef__":true,"id":14653},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14654},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14655},"__LivelyClassName__":"lively.Closure"},"14653":{"this":{"__isSmartRef__":true,"id":396}},"14654":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"14655":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"14656":{"varMapping":{"__isSmartRef__":true,"id":14657},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14658},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14659},"__LivelyClassName__":"lively.Closure"},"14657":{"this":{"__isSmartRef__":true,"id":396}},"14658":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"14659":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"14660":{"setDevStyle":{"__isSmartRef__":true,"id":14661},"setNormalStyle":{"__isSmartRef__":true,"id":14665},"tileSize":{"__isSmartRef__":true,"id":14669},"become":{"__isSmartRef__":true,"id":14673},"onMouseDown":{"__isSmartRef__":true,"id":14677},"setGridPosition":{"__isSmartRef__":true,"id":14685},"toolbox":{"__isSmartRef__":true,"id":14689},"distanceTo":{"__isSmartRef__":true,"id":14693},"tileWasDropped":{"__isSmartRef__":true,"id":14697},"isObstacle":{"__isSmartRef__":true,"id":14701},"neighboursInDirection":{"__isSmartRef__":true,"id":14705},"neighbours":{"__isSmartRef__":true,"id":14709},"zIndex":{"__isSmartRef__":true,"id":14713},"obstacles":{"__isSmartRef__":true,"id":14717},"addObstacle":{"__isSmartRef__":true,"id":14721},"removeObstacle":{"__isSmartRef__":true,"id":14725},"isTile":{"__isSmartRef__":true,"id":14729},"neighbourAt":{"__isSmartRef__":true,"id":14733},"map":{"__isSmartRef__":true,"id":14737},"game":{"__isSmartRef__":true,"id":14741},"reset":{"__isSmartRef__":true,"id":14745},"shallowCopy":{"__isSmartRef__":true,"id":14749},"characters":{"__isSmartRef__":true,"id":14753},"enterTile":{"__isSmartRef__":true,"id":14757},"leaveTile":{"__isSmartRef__":true,"id":14761},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":14765}},"14661":{"varMapping":{"__isSmartRef__":true,"id":14662},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14663},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14664},"__LivelyClassName__":"lively.Closure"},"14662":{"this":{"__isSmartRef__":true,"id":377}},"14663":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"14664":{"originalFunc":{"__isSmartRef__":true,"id":892}},"14665":{"varMapping":{"__isSmartRef__":true,"id":14666},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14667},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14668},"__LivelyClassName__":"lively.Closure"},"14666":{"this":{"__isSmartRef__":true,"id":377}},"14667":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"14668":{"originalFunc":{"__isSmartRef__":true,"id":911}},"14669":{"varMapping":{"__isSmartRef__":true,"id":14670},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":14671},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14672},"__LivelyClassName__":"lively.Closure"},"14670":{"this":{"__isSmartRef__":true,"id":377}},"14671":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"14672":{"originalFunc":{"__isSmartRef__":true,"id":915}},"14673":{"varMapping":{"__isSmartRef__":true,"id":14674},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14675},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14676},"__LivelyClassName__":"lively.Closure"},"14674":{"this":{"__isSmartRef__":true,"id":377}},"14675":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"14676":{"originalFunc":{"__isSmartRef__":true,"id":919}},"14677":{"varMapping":{"__isSmartRef__":true,"id":14678},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14683},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14684},"__LivelyClassName__":"lively.Closure"},"14678":{"this":{"__isSmartRef__":true,"id":377},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14679}},"14679":{"$super":{"__isSmartRef__":true,"id":14680}},"14680":{"varMapping":{"__isSmartRef__":true,"id":14681},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14682},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14681":{"obj":{"__isSmartRef__":true,"id":377},"name":"onMouseDown"},"14682":{},"14683":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"14684":{"originalFunc":{"__isSmartRef__":true,"id":923}},"14685":{"varMapping":{"__isSmartRef__":true,"id":14686},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":14687},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14688},"__LivelyClassName__":"lively.Closure"},"14686":{"this":{"__isSmartRef__":true,"id":377}},"14687":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"14688":{"originalFunc":{"__isSmartRef__":true,"id":931}},"14689":{"varMapping":{"__isSmartRef__":true,"id":14690},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":14691},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14692},"__LivelyClassName__":"lively.Closure"},"14690":{"this":{"__isSmartRef__":true,"id":377}},"14691":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"14692":{"originalFunc":{"__isSmartRef__":true,"id":935}},"14693":{"varMapping":{"__isSmartRef__":true,"id":14694},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":14695},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14696},"__LivelyClassName__":"lively.Closure"},"14694":{"this":{"__isSmartRef__":true,"id":377}},"14695":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"14696":{"originalFunc":{"__isSmartRef__":true,"id":939}},"14697":{"varMapping":{"__isSmartRef__":true,"id":14698},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":14699},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14700},"__LivelyClassName__":"lively.Closure"},"14698":{"this":{"__isSmartRef__":true,"id":377}},"14699":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"14700":{"originalFunc":{"__isSmartRef__":true,"id":943}},"14701":{"varMapping":{"__isSmartRef__":true,"id":14702},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":14703},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14704},"__LivelyClassName__":"lively.Closure"},"14702":{"this":{"__isSmartRef__":true,"id":377}},"14703":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"14704":{"originalFunc":{"__isSmartRef__":true,"id":947}},"14705":{"varMapping":{"__isSmartRef__":true,"id":14706},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":14707},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14708},"__LivelyClassName__":"lively.Closure"},"14706":{"this":{"__isSmartRef__":true,"id":377}},"14707":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"14708":{"originalFunc":{"__isSmartRef__":true,"id":951}},"14709":{"varMapping":{"__isSmartRef__":true,"id":14710},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":14711},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14712},"__LivelyClassName__":"lively.Closure"},"14710":{"this":{"__isSmartRef__":true,"id":377}},"14711":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"14712":{"originalFunc":{"__isSmartRef__":true,"id":955}},"14713":{"varMapping":{"__isSmartRef__":true,"id":14714},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":14715},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14716},"__LivelyClassName__":"lively.Closure"},"14714":{"this":{"__isSmartRef__":true,"id":377}},"14715":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"14716":{"originalFunc":{"__isSmartRef__":true,"id":959}},"14717":{"varMapping":{"__isSmartRef__":true,"id":14718},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":14719},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14720},"__LivelyClassName__":"lively.Closure"},"14718":{"this":{"__isSmartRef__":true,"id":377}},"14719":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"14720":{"originalFunc":{"__isSmartRef__":true,"id":963}},"14721":{"varMapping":{"__isSmartRef__":true,"id":14722},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14723},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14724},"__LivelyClassName__":"lively.Closure"},"14722":{"this":{"__isSmartRef__":true,"id":377}},"14723":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"14724":{"originalFunc":{"__isSmartRef__":true,"id":967}},"14725":{"varMapping":{"__isSmartRef__":true,"id":14726},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14727},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14728},"__LivelyClassName__":"lively.Closure"},"14726":{"this":{"__isSmartRef__":true,"id":377}},"14727":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"14728":{"originalFunc":{"__isSmartRef__":true,"id":971}},"14729":{"varMapping":{"__isSmartRef__":true,"id":14730},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":14731},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14732},"__LivelyClassName__":"lively.Closure"},"14730":{"this":{"__isSmartRef__":true,"id":377}},"14731":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"14732":{"originalFunc":{"__isSmartRef__":true,"id":975}},"14733":{"varMapping":{"__isSmartRef__":true,"id":14734},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":14735},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14736},"__LivelyClassName__":"lively.Closure"},"14734":{"this":{"__isSmartRef__":true,"id":377}},"14735":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"14736":{"originalFunc":{"__isSmartRef__":true,"id":979}},"14737":{"varMapping":{"__isSmartRef__":true,"id":14738},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":14739},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14740},"__LivelyClassName__":"lively.Closure"},"14738":{"this":{"__isSmartRef__":true,"id":377}},"14739":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"14740":{"originalFunc":{"__isSmartRef__":true,"id":983}},"14741":{"varMapping":{"__isSmartRef__":true,"id":14742},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":14743},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14744},"__LivelyClassName__":"lively.Closure"},"14742":{"this":{"__isSmartRef__":true,"id":377}},"14743":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"14744":{"originalFunc":{"__isSmartRef__":true,"id":987}},"14745":{"varMapping":{"__isSmartRef__":true,"id":14746},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":14747},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14748},"__LivelyClassName__":"lively.Closure"},"14746":{"this":{"__isSmartRef__":true,"id":377}},"14747":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"14748":{"originalFunc":{"__isSmartRef__":true,"id":991}},"14749":{"varMapping":{"__isSmartRef__":true,"id":14750},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":14751},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14752},"__LivelyClassName__":"lively.Closure"},"14750":{"this":{"__isSmartRef__":true,"id":377}},"14751":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"14752":{"originalFunc":{"__isSmartRef__":true,"id":995}},"14753":{"varMapping":{"__isSmartRef__":true,"id":14754},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":14755},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14756},"__LivelyClassName__":"lively.Closure"},"14754":{"this":{"__isSmartRef__":true,"id":377}},"14755":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"14756":{"originalFunc":{"__isSmartRef__":true,"id":999}},"14757":{"varMapping":{"__isSmartRef__":true,"id":14758},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14759},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14760},"__LivelyClassName__":"lively.Closure"},"14758":{"this":{"__isSmartRef__":true,"id":377}},"14759":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"14760":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"14761":{"varMapping":{"__isSmartRef__":true,"id":14762},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14763},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14764},"__LivelyClassName__":"lively.Closure"},"14762":{"this":{"__isSmartRef__":true,"id":377}},"14763":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"14764":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"14765":{"varMapping":{"__isSmartRef__":true,"id":14766},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14767},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14768},"__LivelyClassName__":"lively.Closure"},"14766":{"this":{"__isSmartRef__":true,"id":377}},"14767":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"14768":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"14769":{"setDevStyle":{"__isSmartRef__":true,"id":14770},"setNormalStyle":{"__isSmartRef__":true,"id":14774},"tileSize":{"__isSmartRef__":true,"id":14778},"become":{"__isSmartRef__":true,"id":14782},"onMouseDown":{"__isSmartRef__":true,"id":14786},"setGridPosition":{"__isSmartRef__":true,"id":14794},"toolbox":{"__isSmartRef__":true,"id":14798},"distanceTo":{"__isSmartRef__":true,"id":14802},"tileWasDropped":{"__isSmartRef__":true,"id":14806},"isObstacle":{"__isSmartRef__":true,"id":14810},"neighboursInDirection":{"__isSmartRef__":true,"id":14814},"neighbours":{"__isSmartRef__":true,"id":14818},"zIndex":{"__isSmartRef__":true,"id":14822},"obstacles":{"__isSmartRef__":true,"id":14826},"addObstacle":{"__isSmartRef__":true,"id":14830},"removeObstacle":{"__isSmartRef__":true,"id":14834},"isTile":{"__isSmartRef__":true,"id":14838},"neighbourAt":{"__isSmartRef__":true,"id":14842},"map":{"__isSmartRef__":true,"id":14846},"game":{"__isSmartRef__":true,"id":14850},"reset":{"__isSmartRef__":true,"id":14854},"shallowCopy":{"__isSmartRef__":true,"id":14858},"characters":{"__isSmartRef__":true,"id":14862},"enterTile":{"__isSmartRef__":true,"id":14866},"leaveTile":{"__isSmartRef__":true,"id":14870},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":14874}},"14770":{"varMapping":{"__isSmartRef__":true,"id":14771},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14772},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14773},"__LivelyClassName__":"lively.Closure"},"14771":{"this":{"__isSmartRef__":true,"id":358}},"14772":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"14773":{"originalFunc":{"__isSmartRef__":true,"id":892}},"14774":{"varMapping":{"__isSmartRef__":true,"id":14775},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14776},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14777},"__LivelyClassName__":"lively.Closure"},"14775":{"this":{"__isSmartRef__":true,"id":358}},"14776":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"14777":{"originalFunc":{"__isSmartRef__":true,"id":911}},"14778":{"varMapping":{"__isSmartRef__":true,"id":14779},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":14780},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14781},"__LivelyClassName__":"lively.Closure"},"14779":{"this":{"__isSmartRef__":true,"id":358}},"14780":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"14781":{"originalFunc":{"__isSmartRef__":true,"id":915}},"14782":{"varMapping":{"__isSmartRef__":true,"id":14783},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14784},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14785},"__LivelyClassName__":"lively.Closure"},"14783":{"this":{"__isSmartRef__":true,"id":358}},"14784":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"14785":{"originalFunc":{"__isSmartRef__":true,"id":919}},"14786":{"varMapping":{"__isSmartRef__":true,"id":14787},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14792},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14793},"__LivelyClassName__":"lively.Closure"},"14787":{"this":{"__isSmartRef__":true,"id":358},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14788}},"14788":{"$super":{"__isSmartRef__":true,"id":14789}},"14789":{"varMapping":{"__isSmartRef__":true,"id":14790},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14791},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14790":{"obj":{"__isSmartRef__":true,"id":358},"name":"onMouseDown"},"14791":{},"14792":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"14793":{"originalFunc":{"__isSmartRef__":true,"id":923}},"14794":{"varMapping":{"__isSmartRef__":true,"id":14795},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":14796},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14797},"__LivelyClassName__":"lively.Closure"},"14795":{"this":{"__isSmartRef__":true,"id":358}},"14796":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"14797":{"originalFunc":{"__isSmartRef__":true,"id":931}},"14798":{"varMapping":{"__isSmartRef__":true,"id":14799},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":14800},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14801},"__LivelyClassName__":"lively.Closure"},"14799":{"this":{"__isSmartRef__":true,"id":358}},"14800":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"14801":{"originalFunc":{"__isSmartRef__":true,"id":935}},"14802":{"varMapping":{"__isSmartRef__":true,"id":14803},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":14804},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14805},"__LivelyClassName__":"lively.Closure"},"14803":{"this":{"__isSmartRef__":true,"id":358}},"14804":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"14805":{"originalFunc":{"__isSmartRef__":true,"id":939}},"14806":{"varMapping":{"__isSmartRef__":true,"id":14807},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":14808},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14809},"__LivelyClassName__":"lively.Closure"},"14807":{"this":{"__isSmartRef__":true,"id":358}},"14808":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"14809":{"originalFunc":{"__isSmartRef__":true,"id":943}},"14810":{"varMapping":{"__isSmartRef__":true,"id":14811},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":14812},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14813},"__LivelyClassName__":"lively.Closure"},"14811":{"this":{"__isSmartRef__":true,"id":358}},"14812":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"14813":{"originalFunc":{"__isSmartRef__":true,"id":947}},"14814":{"varMapping":{"__isSmartRef__":true,"id":14815},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":14816},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14817},"__LivelyClassName__":"lively.Closure"},"14815":{"this":{"__isSmartRef__":true,"id":358}},"14816":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"14817":{"originalFunc":{"__isSmartRef__":true,"id":951}},"14818":{"varMapping":{"__isSmartRef__":true,"id":14819},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":14820},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14821},"__LivelyClassName__":"lively.Closure"},"14819":{"this":{"__isSmartRef__":true,"id":358}},"14820":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"14821":{"originalFunc":{"__isSmartRef__":true,"id":955}},"14822":{"varMapping":{"__isSmartRef__":true,"id":14823},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":14824},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14825},"__LivelyClassName__":"lively.Closure"},"14823":{"this":{"__isSmartRef__":true,"id":358}},"14824":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"14825":{"originalFunc":{"__isSmartRef__":true,"id":959}},"14826":{"varMapping":{"__isSmartRef__":true,"id":14827},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":14828},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14829},"__LivelyClassName__":"lively.Closure"},"14827":{"this":{"__isSmartRef__":true,"id":358}},"14828":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"14829":{"originalFunc":{"__isSmartRef__":true,"id":963}},"14830":{"varMapping":{"__isSmartRef__":true,"id":14831},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14832},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14833},"__LivelyClassName__":"lively.Closure"},"14831":{"this":{"__isSmartRef__":true,"id":358}},"14832":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"14833":{"originalFunc":{"__isSmartRef__":true,"id":967}},"14834":{"varMapping":{"__isSmartRef__":true,"id":14835},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14836},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14837},"__LivelyClassName__":"lively.Closure"},"14835":{"this":{"__isSmartRef__":true,"id":358}},"14836":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"14837":{"originalFunc":{"__isSmartRef__":true,"id":971}},"14838":{"varMapping":{"__isSmartRef__":true,"id":14839},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":14840},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14841},"__LivelyClassName__":"lively.Closure"},"14839":{"this":{"__isSmartRef__":true,"id":358}},"14840":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"14841":{"originalFunc":{"__isSmartRef__":true,"id":975}},"14842":{"varMapping":{"__isSmartRef__":true,"id":14843},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":14844},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14845},"__LivelyClassName__":"lively.Closure"},"14843":{"this":{"__isSmartRef__":true,"id":358}},"14844":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"14845":{"originalFunc":{"__isSmartRef__":true,"id":979}},"14846":{"varMapping":{"__isSmartRef__":true,"id":14847},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":14848},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14849},"__LivelyClassName__":"lively.Closure"},"14847":{"this":{"__isSmartRef__":true,"id":358}},"14848":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"14849":{"originalFunc":{"__isSmartRef__":true,"id":983}},"14850":{"varMapping":{"__isSmartRef__":true,"id":14851},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":14852},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14853},"__LivelyClassName__":"lively.Closure"},"14851":{"this":{"__isSmartRef__":true,"id":358}},"14852":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"14853":{"originalFunc":{"__isSmartRef__":true,"id":987}},"14854":{"varMapping":{"__isSmartRef__":true,"id":14855},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":14856},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14857},"__LivelyClassName__":"lively.Closure"},"14855":{"this":{"__isSmartRef__":true,"id":358}},"14856":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"14857":{"originalFunc":{"__isSmartRef__":true,"id":991}},"14858":{"varMapping":{"__isSmartRef__":true,"id":14859},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":14860},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14861},"__LivelyClassName__":"lively.Closure"},"14859":{"this":{"__isSmartRef__":true,"id":358}},"14860":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"14861":{"originalFunc":{"__isSmartRef__":true,"id":995}},"14862":{"varMapping":{"__isSmartRef__":true,"id":14863},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":14864},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14865},"__LivelyClassName__":"lively.Closure"},"14863":{"this":{"__isSmartRef__":true,"id":358}},"14864":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"14865":{"originalFunc":{"__isSmartRef__":true,"id":999}},"14866":{"varMapping":{"__isSmartRef__":true,"id":14867},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14868},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14869},"__LivelyClassName__":"lively.Closure"},"14867":{"this":{"__isSmartRef__":true,"id":358}},"14868":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"14869":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"14870":{"varMapping":{"__isSmartRef__":true,"id":14871},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14872},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14873},"__LivelyClassName__":"lively.Closure"},"14871":{"this":{"__isSmartRef__":true,"id":358}},"14872":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"14873":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"14874":{"varMapping":{"__isSmartRef__":true,"id":14875},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14876},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14877},"__LivelyClassName__":"lively.Closure"},"14875":{"this":{"__isSmartRef__":true,"id":358}},"14876":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"14877":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"14878":{"setDevStyle":{"__isSmartRef__":true,"id":14879},"setNormalStyle":{"__isSmartRef__":true,"id":14883},"tileSize":{"__isSmartRef__":true,"id":14887},"become":{"__isSmartRef__":true,"id":14891},"onMouseDown":{"__isSmartRef__":true,"id":14895},"setGridPosition":{"__isSmartRef__":true,"id":14903},"toolbox":{"__isSmartRef__":true,"id":14907},"distanceTo":{"__isSmartRef__":true,"id":14911},"tileWasDropped":{"__isSmartRef__":true,"id":14915},"isObstacle":{"__isSmartRef__":true,"id":14919},"neighboursInDirection":{"__isSmartRef__":true,"id":14923},"neighbours":{"__isSmartRef__":true,"id":14927},"zIndex":{"__isSmartRef__":true,"id":14931},"obstacles":{"__isSmartRef__":true,"id":14935},"addObstacle":{"__isSmartRef__":true,"id":14939},"removeObstacle":{"__isSmartRef__":true,"id":14943},"isTile":{"__isSmartRef__":true,"id":14947},"neighbourAt":{"__isSmartRef__":true,"id":14951},"map":{"__isSmartRef__":true,"id":14955},"game":{"__isSmartRef__":true,"id":14959},"reset":{"__isSmartRef__":true,"id":14963},"shallowCopy":{"__isSmartRef__":true,"id":14967},"characters":{"__isSmartRef__":true,"id":14971},"enterTile":{"__isSmartRef__":true,"id":14975},"leaveTile":{"__isSmartRef__":true,"id":14979},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":14983}},"14879":{"varMapping":{"__isSmartRef__":true,"id":14880},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14881},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14882},"__LivelyClassName__":"lively.Closure"},"14880":{"this":{"__isSmartRef__":true,"id":339}},"14881":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"14882":{"originalFunc":{"__isSmartRef__":true,"id":892}},"14883":{"varMapping":{"__isSmartRef__":true,"id":14884},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14885},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14886},"__LivelyClassName__":"lively.Closure"},"14884":{"this":{"__isSmartRef__":true,"id":339}},"14885":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"14886":{"originalFunc":{"__isSmartRef__":true,"id":911}},"14887":{"varMapping":{"__isSmartRef__":true,"id":14888},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":14889},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14890},"__LivelyClassName__":"lively.Closure"},"14888":{"this":{"__isSmartRef__":true,"id":339}},"14889":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"14890":{"originalFunc":{"__isSmartRef__":true,"id":915}},"14891":{"varMapping":{"__isSmartRef__":true,"id":14892},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14893},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14894},"__LivelyClassName__":"lively.Closure"},"14892":{"this":{"__isSmartRef__":true,"id":339}},"14893":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"14894":{"originalFunc":{"__isSmartRef__":true,"id":919}},"14895":{"varMapping":{"__isSmartRef__":true,"id":14896},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14901},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14902},"__LivelyClassName__":"lively.Closure"},"14896":{"this":{"__isSmartRef__":true,"id":339},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14897}},"14897":{"$super":{"__isSmartRef__":true,"id":14898}},"14898":{"varMapping":{"__isSmartRef__":true,"id":14899},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14900},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14899":{"obj":{"__isSmartRef__":true,"id":339},"name":"onMouseDown"},"14900":{},"14901":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"14902":{"originalFunc":{"__isSmartRef__":true,"id":923}},"14903":{"varMapping":{"__isSmartRef__":true,"id":14904},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":14905},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14906},"__LivelyClassName__":"lively.Closure"},"14904":{"this":{"__isSmartRef__":true,"id":339}},"14905":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"14906":{"originalFunc":{"__isSmartRef__":true,"id":931}},"14907":{"varMapping":{"__isSmartRef__":true,"id":14908},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":14909},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14910},"__LivelyClassName__":"lively.Closure"},"14908":{"this":{"__isSmartRef__":true,"id":339}},"14909":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"14910":{"originalFunc":{"__isSmartRef__":true,"id":935}},"14911":{"varMapping":{"__isSmartRef__":true,"id":14912},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":14913},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14914},"__LivelyClassName__":"lively.Closure"},"14912":{"this":{"__isSmartRef__":true,"id":339}},"14913":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"14914":{"originalFunc":{"__isSmartRef__":true,"id":939}},"14915":{"varMapping":{"__isSmartRef__":true,"id":14916},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":14917},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14918},"__LivelyClassName__":"lively.Closure"},"14916":{"this":{"__isSmartRef__":true,"id":339}},"14917":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"14918":{"originalFunc":{"__isSmartRef__":true,"id":943}},"14919":{"varMapping":{"__isSmartRef__":true,"id":14920},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":14921},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14922},"__LivelyClassName__":"lively.Closure"},"14920":{"this":{"__isSmartRef__":true,"id":339}},"14921":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"14922":{"originalFunc":{"__isSmartRef__":true,"id":947}},"14923":{"varMapping":{"__isSmartRef__":true,"id":14924},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":14925},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14926},"__LivelyClassName__":"lively.Closure"},"14924":{"this":{"__isSmartRef__":true,"id":339}},"14925":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"14926":{"originalFunc":{"__isSmartRef__":true,"id":951}},"14927":{"varMapping":{"__isSmartRef__":true,"id":14928},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":14929},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14930},"__LivelyClassName__":"lively.Closure"},"14928":{"this":{"__isSmartRef__":true,"id":339}},"14929":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"14930":{"originalFunc":{"__isSmartRef__":true,"id":955}},"14931":{"varMapping":{"__isSmartRef__":true,"id":14932},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":14933},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14934},"__LivelyClassName__":"lively.Closure"},"14932":{"this":{"__isSmartRef__":true,"id":339}},"14933":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"14934":{"originalFunc":{"__isSmartRef__":true,"id":959}},"14935":{"varMapping":{"__isSmartRef__":true,"id":14936},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":14937},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14938},"__LivelyClassName__":"lively.Closure"},"14936":{"this":{"__isSmartRef__":true,"id":339}},"14937":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"14938":{"originalFunc":{"__isSmartRef__":true,"id":963}},"14939":{"varMapping":{"__isSmartRef__":true,"id":14940},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14941},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14942},"__LivelyClassName__":"lively.Closure"},"14940":{"this":{"__isSmartRef__":true,"id":339}},"14941":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"14942":{"originalFunc":{"__isSmartRef__":true,"id":967}},"14943":{"varMapping":{"__isSmartRef__":true,"id":14944},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14945},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14946},"__LivelyClassName__":"lively.Closure"},"14944":{"this":{"__isSmartRef__":true,"id":339}},"14945":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"14946":{"originalFunc":{"__isSmartRef__":true,"id":971}},"14947":{"varMapping":{"__isSmartRef__":true,"id":14948},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":14949},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14950},"__LivelyClassName__":"lively.Closure"},"14948":{"this":{"__isSmartRef__":true,"id":339}},"14949":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"14950":{"originalFunc":{"__isSmartRef__":true,"id":975}},"14951":{"varMapping":{"__isSmartRef__":true,"id":14952},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":14953},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14954},"__LivelyClassName__":"lively.Closure"},"14952":{"this":{"__isSmartRef__":true,"id":339}},"14953":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"14954":{"originalFunc":{"__isSmartRef__":true,"id":979}},"14955":{"varMapping":{"__isSmartRef__":true,"id":14956},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":14957},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14958},"__LivelyClassName__":"lively.Closure"},"14956":{"this":{"__isSmartRef__":true,"id":339}},"14957":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"14958":{"originalFunc":{"__isSmartRef__":true,"id":983}},"14959":{"varMapping":{"__isSmartRef__":true,"id":14960},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":14961},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14962},"__LivelyClassName__":"lively.Closure"},"14960":{"this":{"__isSmartRef__":true,"id":339}},"14961":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"14962":{"originalFunc":{"__isSmartRef__":true,"id":987}},"14963":{"varMapping":{"__isSmartRef__":true,"id":14964},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":14965},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14966},"__LivelyClassName__":"lively.Closure"},"14964":{"this":{"__isSmartRef__":true,"id":339}},"14965":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"14966":{"originalFunc":{"__isSmartRef__":true,"id":991}},"14967":{"varMapping":{"__isSmartRef__":true,"id":14968},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":14969},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14970},"__LivelyClassName__":"lively.Closure"},"14968":{"this":{"__isSmartRef__":true,"id":339}},"14969":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"14970":{"originalFunc":{"__isSmartRef__":true,"id":995}},"14971":{"varMapping":{"__isSmartRef__":true,"id":14972},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":14973},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14974},"__LivelyClassName__":"lively.Closure"},"14972":{"this":{"__isSmartRef__":true,"id":339}},"14973":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"14974":{"originalFunc":{"__isSmartRef__":true,"id":999}},"14975":{"varMapping":{"__isSmartRef__":true,"id":14976},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14977},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14978},"__LivelyClassName__":"lively.Closure"},"14976":{"this":{"__isSmartRef__":true,"id":339}},"14977":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"14978":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"14979":{"varMapping":{"__isSmartRef__":true,"id":14980},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14981},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14982},"__LivelyClassName__":"lively.Closure"},"14980":{"this":{"__isSmartRef__":true,"id":339}},"14981":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"14982":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"14983":{"varMapping":{"__isSmartRef__":true,"id":14984},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14985},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14986},"__LivelyClassName__":"lively.Closure"},"14984":{"this":{"__isSmartRef__":true,"id":339}},"14985":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"14986":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"14987":{"setDevStyle":{"__isSmartRef__":true,"id":14988},"setNormalStyle":{"__isSmartRef__":true,"id":14992},"tileSize":{"__isSmartRef__":true,"id":14996},"become":{"__isSmartRef__":true,"id":15000},"onMouseDown":{"__isSmartRef__":true,"id":15004},"setGridPosition":{"__isSmartRef__":true,"id":15012},"toolbox":{"__isSmartRef__":true,"id":15016},"distanceTo":{"__isSmartRef__":true,"id":15020},"tileWasDropped":{"__isSmartRef__":true,"id":15024},"isObstacle":{"__isSmartRef__":true,"id":15028},"neighboursInDirection":{"__isSmartRef__":true,"id":15032},"neighbours":{"__isSmartRef__":true,"id":15036},"zIndex":{"__isSmartRef__":true,"id":15040},"obstacles":{"__isSmartRef__":true,"id":15044},"addObstacle":{"__isSmartRef__":true,"id":15048},"removeObstacle":{"__isSmartRef__":true,"id":15052},"isTile":{"__isSmartRef__":true,"id":15056},"neighbourAt":{"__isSmartRef__":true,"id":15060},"map":{"__isSmartRef__":true,"id":15064},"game":{"__isSmartRef__":true,"id":15068},"reset":{"__isSmartRef__":true,"id":15072},"shallowCopy":{"__isSmartRef__":true,"id":15076},"characters":{"__isSmartRef__":true,"id":15080},"enterTile":{"__isSmartRef__":true,"id":15084},"leaveTile":{"__isSmartRef__":true,"id":15088},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":15092}},"14988":{"varMapping":{"__isSmartRef__":true,"id":14989},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14990},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14991},"__LivelyClassName__":"lively.Closure"},"14989":{"this":{"__isSmartRef__":true,"id":320}},"14990":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"14991":{"originalFunc":{"__isSmartRef__":true,"id":892}},"14992":{"varMapping":{"__isSmartRef__":true,"id":14993},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":14994},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14995},"__LivelyClassName__":"lively.Closure"},"14993":{"this":{"__isSmartRef__":true,"id":320}},"14994":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"14995":{"originalFunc":{"__isSmartRef__":true,"id":911}},"14996":{"varMapping":{"__isSmartRef__":true,"id":14997},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":14998},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14999},"__LivelyClassName__":"lively.Closure"},"14997":{"this":{"__isSmartRef__":true,"id":320}},"14998":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"14999":{"originalFunc":{"__isSmartRef__":true,"id":915}},"15000":{"varMapping":{"__isSmartRef__":true,"id":15001},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15002},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15003},"__LivelyClassName__":"lively.Closure"},"15001":{"this":{"__isSmartRef__":true,"id":320}},"15002":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"15003":{"originalFunc":{"__isSmartRef__":true,"id":919}},"15004":{"varMapping":{"__isSmartRef__":true,"id":15005},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15010},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15011},"__LivelyClassName__":"lively.Closure"},"15005":{"this":{"__isSmartRef__":true,"id":320},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15006}},"15006":{"$super":{"__isSmartRef__":true,"id":15007}},"15007":{"varMapping":{"__isSmartRef__":true,"id":15008},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15009},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15008":{"obj":{"__isSmartRef__":true,"id":320},"name":"onMouseDown"},"15009":{},"15010":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"15011":{"originalFunc":{"__isSmartRef__":true,"id":923}},"15012":{"varMapping":{"__isSmartRef__":true,"id":15013},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":15014},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15015},"__LivelyClassName__":"lively.Closure"},"15013":{"this":{"__isSmartRef__":true,"id":320}},"15014":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"15015":{"originalFunc":{"__isSmartRef__":true,"id":931}},"15016":{"varMapping":{"__isSmartRef__":true,"id":15017},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":15018},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15019},"__LivelyClassName__":"lively.Closure"},"15017":{"this":{"__isSmartRef__":true,"id":320}},"15018":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"15019":{"originalFunc":{"__isSmartRef__":true,"id":935}},"15020":{"varMapping":{"__isSmartRef__":true,"id":15021},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":15022},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15023},"__LivelyClassName__":"lively.Closure"},"15021":{"this":{"__isSmartRef__":true,"id":320}},"15022":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"15023":{"originalFunc":{"__isSmartRef__":true,"id":939}},"15024":{"varMapping":{"__isSmartRef__":true,"id":15025},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":15026},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15027},"__LivelyClassName__":"lively.Closure"},"15025":{"this":{"__isSmartRef__":true,"id":320}},"15026":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"15027":{"originalFunc":{"__isSmartRef__":true,"id":943}},"15028":{"varMapping":{"__isSmartRef__":true,"id":15029},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":15030},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15031},"__LivelyClassName__":"lively.Closure"},"15029":{"this":{"__isSmartRef__":true,"id":320}},"15030":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"15031":{"originalFunc":{"__isSmartRef__":true,"id":947}},"15032":{"varMapping":{"__isSmartRef__":true,"id":15033},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":15034},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15035},"__LivelyClassName__":"lively.Closure"},"15033":{"this":{"__isSmartRef__":true,"id":320}},"15034":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"15035":{"originalFunc":{"__isSmartRef__":true,"id":951}},"15036":{"varMapping":{"__isSmartRef__":true,"id":15037},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":15038},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15039},"__LivelyClassName__":"lively.Closure"},"15037":{"this":{"__isSmartRef__":true,"id":320}},"15038":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"15039":{"originalFunc":{"__isSmartRef__":true,"id":955}},"15040":{"varMapping":{"__isSmartRef__":true,"id":15041},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":15042},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15043},"__LivelyClassName__":"lively.Closure"},"15041":{"this":{"__isSmartRef__":true,"id":320}},"15042":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"15043":{"originalFunc":{"__isSmartRef__":true,"id":959}},"15044":{"varMapping":{"__isSmartRef__":true,"id":15045},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":15046},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15047},"__LivelyClassName__":"lively.Closure"},"15045":{"this":{"__isSmartRef__":true,"id":320}},"15046":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"15047":{"originalFunc":{"__isSmartRef__":true,"id":963}},"15048":{"varMapping":{"__isSmartRef__":true,"id":15049},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15050},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15051},"__LivelyClassName__":"lively.Closure"},"15049":{"this":{"__isSmartRef__":true,"id":320}},"15050":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"15051":{"originalFunc":{"__isSmartRef__":true,"id":967}},"15052":{"varMapping":{"__isSmartRef__":true,"id":15053},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15054},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15055},"__LivelyClassName__":"lively.Closure"},"15053":{"this":{"__isSmartRef__":true,"id":320}},"15054":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"15055":{"originalFunc":{"__isSmartRef__":true,"id":971}},"15056":{"varMapping":{"__isSmartRef__":true,"id":15057},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":15058},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15059},"__LivelyClassName__":"lively.Closure"},"15057":{"this":{"__isSmartRef__":true,"id":320}},"15058":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"15059":{"originalFunc":{"__isSmartRef__":true,"id":975}},"15060":{"varMapping":{"__isSmartRef__":true,"id":15061},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":15062},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15063},"__LivelyClassName__":"lively.Closure"},"15061":{"this":{"__isSmartRef__":true,"id":320}},"15062":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"15063":{"originalFunc":{"__isSmartRef__":true,"id":979}},"15064":{"varMapping":{"__isSmartRef__":true,"id":15065},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":15066},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15067},"__LivelyClassName__":"lively.Closure"},"15065":{"this":{"__isSmartRef__":true,"id":320}},"15066":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"15067":{"originalFunc":{"__isSmartRef__":true,"id":983}},"15068":{"varMapping":{"__isSmartRef__":true,"id":15069},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":15070},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15071},"__LivelyClassName__":"lively.Closure"},"15069":{"this":{"__isSmartRef__":true,"id":320}},"15070":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"15071":{"originalFunc":{"__isSmartRef__":true,"id":987}},"15072":{"varMapping":{"__isSmartRef__":true,"id":15073},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":15074},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15075},"__LivelyClassName__":"lively.Closure"},"15073":{"this":{"__isSmartRef__":true,"id":320}},"15074":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"15075":{"originalFunc":{"__isSmartRef__":true,"id":991}},"15076":{"varMapping":{"__isSmartRef__":true,"id":15077},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":15078},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15079},"__LivelyClassName__":"lively.Closure"},"15077":{"this":{"__isSmartRef__":true,"id":320}},"15078":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"15079":{"originalFunc":{"__isSmartRef__":true,"id":995}},"15080":{"varMapping":{"__isSmartRef__":true,"id":15081},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":15082},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15083},"__LivelyClassName__":"lively.Closure"},"15081":{"this":{"__isSmartRef__":true,"id":320}},"15082":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"15083":{"originalFunc":{"__isSmartRef__":true,"id":999}},"15084":{"varMapping":{"__isSmartRef__":true,"id":15085},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15086},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15087},"__LivelyClassName__":"lively.Closure"},"15085":{"this":{"__isSmartRef__":true,"id":320}},"15086":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"15087":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"15088":{"varMapping":{"__isSmartRef__":true,"id":15089},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15090},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15091},"__LivelyClassName__":"lively.Closure"},"15089":{"this":{"__isSmartRef__":true,"id":320}},"15090":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"15091":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"15092":{"varMapping":{"__isSmartRef__":true,"id":15093},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":15094},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15095},"__LivelyClassName__":"lively.Closure"},"15093":{"this":{"__isSmartRef__":true,"id":320}},"15094":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"15095":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"15096":{"setDevStyle":{"__isSmartRef__":true,"id":15097},"setNormalStyle":{"__isSmartRef__":true,"id":15101},"tileSize":{"__isSmartRef__":true,"id":15105},"become":{"__isSmartRef__":true,"id":15109},"onMouseDown":{"__isSmartRef__":true,"id":15113},"setGridPosition":{"__isSmartRef__":true,"id":15121},"toolbox":{"__isSmartRef__":true,"id":15125},"distanceTo":{"__isSmartRef__":true,"id":15129},"tileWasDropped":{"__isSmartRef__":true,"id":15133},"isObstacle":{"__isSmartRef__":true,"id":15137},"neighboursInDirection":{"__isSmartRef__":true,"id":15141},"neighbours":{"__isSmartRef__":true,"id":15145},"zIndex":{"__isSmartRef__":true,"id":15149},"obstacles":{"__isSmartRef__":true,"id":15153},"addObstacle":{"__isSmartRef__":true,"id":15157},"removeObstacle":{"__isSmartRef__":true,"id":15161},"isTile":{"__isSmartRef__":true,"id":15165},"neighbourAt":{"__isSmartRef__":true,"id":15169},"map":{"__isSmartRef__":true,"id":15173},"game":{"__isSmartRef__":true,"id":15177},"reset":{"__isSmartRef__":true,"id":15181},"shallowCopy":{"__isSmartRef__":true,"id":15185},"characters":{"__isSmartRef__":true,"id":15189},"enterTile":{"__isSmartRef__":true,"id":15193},"leaveTile":{"__isSmartRef__":true,"id":15197},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":15201}},"15097":{"varMapping":{"__isSmartRef__":true,"id":15098},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":15099},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15100},"__LivelyClassName__":"lively.Closure"},"15098":{"this":{"__isSmartRef__":true,"id":265}},"15099":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"15100":{"originalFunc":{"__isSmartRef__":true,"id":892}},"15101":{"varMapping":{"__isSmartRef__":true,"id":15102},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":15103},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15104},"__LivelyClassName__":"lively.Closure"},"15102":{"this":{"__isSmartRef__":true,"id":265}},"15103":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"15104":{"originalFunc":{"__isSmartRef__":true,"id":911}},"15105":{"varMapping":{"__isSmartRef__":true,"id":15106},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":15107},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15108},"__LivelyClassName__":"lively.Closure"},"15106":{"this":{"__isSmartRef__":true,"id":265}},"15107":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"15108":{"originalFunc":{"__isSmartRef__":true,"id":915}},"15109":{"varMapping":{"__isSmartRef__":true,"id":15110},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15111},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15112},"__LivelyClassName__":"lively.Closure"},"15110":{"this":{"__isSmartRef__":true,"id":265}},"15111":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"15112":{"originalFunc":{"__isSmartRef__":true,"id":919}},"15113":{"varMapping":{"__isSmartRef__":true,"id":15114},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15119},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15120},"__LivelyClassName__":"lively.Closure"},"15114":{"this":{"__isSmartRef__":true,"id":265},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15115}},"15115":{"$super":{"__isSmartRef__":true,"id":15116}},"15116":{"varMapping":{"__isSmartRef__":true,"id":15117},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15118},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15117":{"obj":{"__isSmartRef__":true,"id":265},"name":"onMouseDown"},"15118":{},"15119":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"15120":{"originalFunc":{"__isSmartRef__":true,"id":923}},"15121":{"varMapping":{"__isSmartRef__":true,"id":15122},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":15123},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15124},"__LivelyClassName__":"lively.Closure"},"15122":{"this":{"__isSmartRef__":true,"id":265}},"15123":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"15124":{"originalFunc":{"__isSmartRef__":true,"id":931}},"15125":{"varMapping":{"__isSmartRef__":true,"id":15126},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":15127},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15128},"__LivelyClassName__":"lively.Closure"},"15126":{"this":{"__isSmartRef__":true,"id":265}},"15127":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"15128":{"originalFunc":{"__isSmartRef__":true,"id":935}},"15129":{"varMapping":{"__isSmartRef__":true,"id":15130},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":15131},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15132},"__LivelyClassName__":"lively.Closure"},"15130":{"this":{"__isSmartRef__":true,"id":265}},"15131":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"15132":{"originalFunc":{"__isSmartRef__":true,"id":939}},"15133":{"varMapping":{"__isSmartRef__":true,"id":15134},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":15135},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15136},"__LivelyClassName__":"lively.Closure"},"15134":{"this":{"__isSmartRef__":true,"id":265}},"15135":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"15136":{"originalFunc":{"__isSmartRef__":true,"id":943}},"15137":{"varMapping":{"__isSmartRef__":true,"id":15138},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":15139},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15140},"__LivelyClassName__":"lively.Closure"},"15138":{"this":{"__isSmartRef__":true,"id":265}},"15139":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"15140":{"originalFunc":{"__isSmartRef__":true,"id":947}},"15141":{"varMapping":{"__isSmartRef__":true,"id":15142},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":15143},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15144},"__LivelyClassName__":"lively.Closure"},"15142":{"this":{"__isSmartRef__":true,"id":265}},"15143":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"15144":{"originalFunc":{"__isSmartRef__":true,"id":951}},"15145":{"varMapping":{"__isSmartRef__":true,"id":15146},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":15147},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15148},"__LivelyClassName__":"lively.Closure"},"15146":{"this":{"__isSmartRef__":true,"id":265}},"15147":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"15148":{"originalFunc":{"__isSmartRef__":true,"id":955}},"15149":{"varMapping":{"__isSmartRef__":true,"id":15150},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":15151},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15152},"__LivelyClassName__":"lively.Closure"},"15150":{"this":{"__isSmartRef__":true,"id":265}},"15151":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"15152":{"originalFunc":{"__isSmartRef__":true,"id":959}},"15153":{"varMapping":{"__isSmartRef__":true,"id":15154},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":15155},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15156},"__LivelyClassName__":"lively.Closure"},"15154":{"this":{"__isSmartRef__":true,"id":265}},"15155":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"15156":{"originalFunc":{"__isSmartRef__":true,"id":963}},"15157":{"varMapping":{"__isSmartRef__":true,"id":15158},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15159},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15160},"__LivelyClassName__":"lively.Closure"},"15158":{"this":{"__isSmartRef__":true,"id":265}},"15159":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"15160":{"originalFunc":{"__isSmartRef__":true,"id":967}},"15161":{"varMapping":{"__isSmartRef__":true,"id":15162},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15163},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15164},"__LivelyClassName__":"lively.Closure"},"15162":{"this":{"__isSmartRef__":true,"id":265}},"15163":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"15164":{"originalFunc":{"__isSmartRef__":true,"id":971}},"15165":{"varMapping":{"__isSmartRef__":true,"id":15166},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":15167},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15168},"__LivelyClassName__":"lively.Closure"},"15166":{"this":{"__isSmartRef__":true,"id":265}},"15167":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"15168":{"originalFunc":{"__isSmartRef__":true,"id":975}},"15169":{"varMapping":{"__isSmartRef__":true,"id":15170},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":15171},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15172},"__LivelyClassName__":"lively.Closure"},"15170":{"this":{"__isSmartRef__":true,"id":265}},"15171":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"15172":{"originalFunc":{"__isSmartRef__":true,"id":979}},"15173":{"varMapping":{"__isSmartRef__":true,"id":15174},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":15175},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15176},"__LivelyClassName__":"lively.Closure"},"15174":{"this":{"__isSmartRef__":true,"id":265}},"15175":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"15176":{"originalFunc":{"__isSmartRef__":true,"id":983}},"15177":{"varMapping":{"__isSmartRef__":true,"id":15178},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":15179},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15180},"__LivelyClassName__":"lively.Closure"},"15178":{"this":{"__isSmartRef__":true,"id":265}},"15179":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"15180":{"originalFunc":{"__isSmartRef__":true,"id":987}},"15181":{"varMapping":{"__isSmartRef__":true,"id":15182},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":15183},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15184},"__LivelyClassName__":"lively.Closure"},"15182":{"this":{"__isSmartRef__":true,"id":265}},"15183":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"15184":{"originalFunc":{"__isSmartRef__":true,"id":991}},"15185":{"varMapping":{"__isSmartRef__":true,"id":15186},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":15187},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15188},"__LivelyClassName__":"lively.Closure"},"15186":{"this":{"__isSmartRef__":true,"id":265}},"15187":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"15188":{"originalFunc":{"__isSmartRef__":true,"id":995}},"15189":{"varMapping":{"__isSmartRef__":true,"id":15190},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":15191},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15192},"__LivelyClassName__":"lively.Closure"},"15190":{"this":{"__isSmartRef__":true,"id":265}},"15191":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"15192":{"originalFunc":{"__isSmartRef__":true,"id":999}},"15193":{"varMapping":{"__isSmartRef__":true,"id":15194},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15195},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15196},"__LivelyClassName__":"lively.Closure"},"15194":{"this":{"__isSmartRef__":true,"id":265}},"15195":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"15196":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"15197":{"varMapping":{"__isSmartRef__":true,"id":15198},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15199},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15200},"__LivelyClassName__":"lively.Closure"},"15198":{"this":{"__isSmartRef__":true,"id":265}},"15199":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"15200":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"15201":{"varMapping":{"__isSmartRef__":true,"id":15202},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":15203},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15204},"__LivelyClassName__":"lively.Closure"},"15202":{"this":{"__isSmartRef__":true,"id":265}},"15203":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"15204":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"15205":{"setDevStyle":{"__isSmartRef__":true,"id":15206},"setNormalStyle":{"__isSmartRef__":true,"id":15210},"tileSize":{"__isSmartRef__":true,"id":15214},"become":{"__isSmartRef__":true,"id":15218},"onMouseDown":{"__isSmartRef__":true,"id":15222},"setGridPosition":{"__isSmartRef__":true,"id":15230},"toolbox":{"__isSmartRef__":true,"id":15234},"distanceTo":{"__isSmartRef__":true,"id":15238},"tileWasDropped":{"__isSmartRef__":true,"id":15242},"isObstacle":{"__isSmartRef__":true,"id":15246},"neighboursInDirection":{"__isSmartRef__":true,"id":15250},"neighbours":{"__isSmartRef__":true,"id":15254},"zIndex":{"__isSmartRef__":true,"id":15258},"obstacles":{"__isSmartRef__":true,"id":15262},"addObstacle":{"__isSmartRef__":true,"id":15266},"removeObstacle":{"__isSmartRef__":true,"id":15270},"isTile":{"__isSmartRef__":true,"id":15274},"neighbourAt":{"__isSmartRef__":true,"id":15278},"map":{"__isSmartRef__":true,"id":15282},"game":{"__isSmartRef__":true,"id":15286},"reset":{"__isSmartRef__":true,"id":15290},"shallowCopy":{"__isSmartRef__":true,"id":15294},"characters":{"__isSmartRef__":true,"id":15298},"enterTile":{"__isSmartRef__":true,"id":15302},"leaveTile":{"__isSmartRef__":true,"id":15306},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":15310}},"15206":{"varMapping":{"__isSmartRef__":true,"id":15207},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":15208},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15209},"__LivelyClassName__":"lively.Closure"},"15207":{"this":{"__isSmartRef__":true,"id":246}},"15208":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"15209":{"originalFunc":{"__isSmartRef__":true,"id":892}},"15210":{"varMapping":{"__isSmartRef__":true,"id":15211},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":15212},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15213},"__LivelyClassName__":"lively.Closure"},"15211":{"this":{"__isSmartRef__":true,"id":246}},"15212":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"15213":{"originalFunc":{"__isSmartRef__":true,"id":911}},"15214":{"varMapping":{"__isSmartRef__":true,"id":15215},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":15216},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15217},"__LivelyClassName__":"lively.Closure"},"15215":{"this":{"__isSmartRef__":true,"id":246}},"15216":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"15217":{"originalFunc":{"__isSmartRef__":true,"id":915}},"15218":{"varMapping":{"__isSmartRef__":true,"id":15219},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15220},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15221},"__LivelyClassName__":"lively.Closure"},"15219":{"this":{"__isSmartRef__":true,"id":246}},"15220":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"15221":{"originalFunc":{"__isSmartRef__":true,"id":919}},"15222":{"varMapping":{"__isSmartRef__":true,"id":15223},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15228},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15229},"__LivelyClassName__":"lively.Closure"},"15223":{"this":{"__isSmartRef__":true,"id":246},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15224}},"15224":{"$super":{"__isSmartRef__":true,"id":15225}},"15225":{"varMapping":{"__isSmartRef__":true,"id":15226},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15227},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15226":{"obj":{"__isSmartRef__":true,"id":246},"name":"onMouseDown"},"15227":{},"15228":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"15229":{"originalFunc":{"__isSmartRef__":true,"id":923}},"15230":{"varMapping":{"__isSmartRef__":true,"id":15231},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":15232},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15233},"__LivelyClassName__":"lively.Closure"},"15231":{"this":{"__isSmartRef__":true,"id":246}},"15232":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"15233":{"originalFunc":{"__isSmartRef__":true,"id":931}},"15234":{"varMapping":{"__isSmartRef__":true,"id":15235},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":15236},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15237},"__LivelyClassName__":"lively.Closure"},"15235":{"this":{"__isSmartRef__":true,"id":246}},"15236":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"15237":{"originalFunc":{"__isSmartRef__":true,"id":935}},"15238":{"varMapping":{"__isSmartRef__":true,"id":15239},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":15240},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15241},"__LivelyClassName__":"lively.Closure"},"15239":{"this":{"__isSmartRef__":true,"id":246}},"15240":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"15241":{"originalFunc":{"__isSmartRef__":true,"id":939}},"15242":{"varMapping":{"__isSmartRef__":true,"id":15243},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":15244},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15245},"__LivelyClassName__":"lively.Closure"},"15243":{"this":{"__isSmartRef__":true,"id":246}},"15244":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"15245":{"originalFunc":{"__isSmartRef__":true,"id":943}},"15246":{"varMapping":{"__isSmartRef__":true,"id":15247},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":15248},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15249},"__LivelyClassName__":"lively.Closure"},"15247":{"this":{"__isSmartRef__":true,"id":246}},"15248":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"15249":{"originalFunc":{"__isSmartRef__":true,"id":947}},"15250":{"varMapping":{"__isSmartRef__":true,"id":15251},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":15252},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15253},"__LivelyClassName__":"lively.Closure"},"15251":{"this":{"__isSmartRef__":true,"id":246}},"15252":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"15253":{"originalFunc":{"__isSmartRef__":true,"id":951}},"15254":{"varMapping":{"__isSmartRef__":true,"id":15255},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":15256},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15257},"__LivelyClassName__":"lively.Closure"},"15255":{"this":{"__isSmartRef__":true,"id":246}},"15256":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"15257":{"originalFunc":{"__isSmartRef__":true,"id":955}},"15258":{"varMapping":{"__isSmartRef__":true,"id":15259},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":15260},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15261},"__LivelyClassName__":"lively.Closure"},"15259":{"this":{"__isSmartRef__":true,"id":246}},"15260":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"15261":{"originalFunc":{"__isSmartRef__":true,"id":959}},"15262":{"varMapping":{"__isSmartRef__":true,"id":15263},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":15264},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15265},"__LivelyClassName__":"lively.Closure"},"15263":{"this":{"__isSmartRef__":true,"id":246}},"15264":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"15265":{"originalFunc":{"__isSmartRef__":true,"id":963}},"15266":{"varMapping":{"__isSmartRef__":true,"id":15267},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15268},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15269},"__LivelyClassName__":"lively.Closure"},"15267":{"this":{"__isSmartRef__":true,"id":246}},"15268":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"15269":{"originalFunc":{"__isSmartRef__":true,"id":967}},"15270":{"varMapping":{"__isSmartRef__":true,"id":15271},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15272},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15273},"__LivelyClassName__":"lively.Closure"},"15271":{"this":{"__isSmartRef__":true,"id":246}},"15272":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"15273":{"originalFunc":{"__isSmartRef__":true,"id":971}},"15274":{"varMapping":{"__isSmartRef__":true,"id":15275},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":15276},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15277},"__LivelyClassName__":"lively.Closure"},"15275":{"this":{"__isSmartRef__":true,"id":246}},"15276":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"15277":{"originalFunc":{"__isSmartRef__":true,"id":975}},"15278":{"varMapping":{"__isSmartRef__":true,"id":15279},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":15280},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15281},"__LivelyClassName__":"lively.Closure"},"15279":{"this":{"__isSmartRef__":true,"id":246}},"15280":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"15281":{"originalFunc":{"__isSmartRef__":true,"id":979}},"15282":{"varMapping":{"__isSmartRef__":true,"id":15283},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":15284},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15285},"__LivelyClassName__":"lively.Closure"},"15283":{"this":{"__isSmartRef__":true,"id":246}},"15284":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"15285":{"originalFunc":{"__isSmartRef__":true,"id":983}},"15286":{"varMapping":{"__isSmartRef__":true,"id":15287},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":15288},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15289},"__LivelyClassName__":"lively.Closure"},"15287":{"this":{"__isSmartRef__":true,"id":246}},"15288":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"15289":{"originalFunc":{"__isSmartRef__":true,"id":987}},"15290":{"varMapping":{"__isSmartRef__":true,"id":15291},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":15292},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15293},"__LivelyClassName__":"lively.Closure"},"15291":{"this":{"__isSmartRef__":true,"id":246}},"15292":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"15293":{"originalFunc":{"__isSmartRef__":true,"id":991}},"15294":{"varMapping":{"__isSmartRef__":true,"id":15295},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":15296},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15297},"__LivelyClassName__":"lively.Closure"},"15295":{"this":{"__isSmartRef__":true,"id":246}},"15296":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"15297":{"originalFunc":{"__isSmartRef__":true,"id":995}},"15298":{"varMapping":{"__isSmartRef__":true,"id":15299},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":15300},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15301},"__LivelyClassName__":"lively.Closure"},"15299":{"this":{"__isSmartRef__":true,"id":246}},"15300":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"15301":{"originalFunc":{"__isSmartRef__":true,"id":999}},"15302":{"varMapping":{"__isSmartRef__":true,"id":15303},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15304},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15305},"__LivelyClassName__":"lively.Closure"},"15303":{"this":{"__isSmartRef__":true,"id":246}},"15304":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"15305":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"15306":{"varMapping":{"__isSmartRef__":true,"id":15307},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15308},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15309},"__LivelyClassName__":"lively.Closure"},"15307":{"this":{"__isSmartRef__":true,"id":246}},"15308":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"15309":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"15310":{"varMapping":{"__isSmartRef__":true,"id":15311},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":15312},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15313},"__LivelyClassName__":"lively.Closure"},"15311":{"this":{"__isSmartRef__":true,"id":246}},"15312":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"15313":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"15314":{"setDevStyle":{"__isSmartRef__":true,"id":15315},"setNormalStyle":{"__isSmartRef__":true,"id":15319},"tileSize":{"__isSmartRef__":true,"id":15323},"become":{"__isSmartRef__":true,"id":15327},"onMouseDown":{"__isSmartRef__":true,"id":15331},"setGridPosition":{"__isSmartRef__":true,"id":15339},"toolbox":{"__isSmartRef__":true,"id":15343},"distanceTo":{"__isSmartRef__":true,"id":15347},"tileWasDropped":{"__isSmartRef__":true,"id":15351},"isObstacle":{"__isSmartRef__":true,"id":15355},"neighboursInDirection":{"__isSmartRef__":true,"id":15359},"neighbours":{"__isSmartRef__":true,"id":15363},"zIndex":{"__isSmartRef__":true,"id":15367},"obstacles":{"__isSmartRef__":true,"id":15371},"addObstacle":{"__isSmartRef__":true,"id":15375},"removeObstacle":{"__isSmartRef__":true,"id":15379},"isTile":{"__isSmartRef__":true,"id":15383},"neighbourAt":{"__isSmartRef__":true,"id":15387},"map":{"__isSmartRef__":true,"id":15391},"game":{"__isSmartRef__":true,"id":15395},"reset":{"__isSmartRef__":true,"id":15399},"shallowCopy":{"__isSmartRef__":true,"id":15403},"characters":{"__isSmartRef__":true,"id":15407},"enterTile":{"__isSmartRef__":true,"id":15411},"leaveTile":{"__isSmartRef__":true,"id":15415},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":15419}},"15315":{"varMapping":{"__isSmartRef__":true,"id":15316},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":15317},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15318},"__LivelyClassName__":"lively.Closure"},"15316":{"this":{"__isSmartRef__":true,"id":227}},"15317":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"15318":{"originalFunc":{"__isSmartRef__":true,"id":892}},"15319":{"varMapping":{"__isSmartRef__":true,"id":15320},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":15321},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15322},"__LivelyClassName__":"lively.Closure"},"15320":{"this":{"__isSmartRef__":true,"id":227}},"15321":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"15322":{"originalFunc":{"__isSmartRef__":true,"id":911}},"15323":{"varMapping":{"__isSmartRef__":true,"id":15324},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":15325},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15326},"__LivelyClassName__":"lively.Closure"},"15324":{"this":{"__isSmartRef__":true,"id":227}},"15325":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"15326":{"originalFunc":{"__isSmartRef__":true,"id":915}},"15327":{"varMapping":{"__isSmartRef__":true,"id":15328},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15329},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15330},"__LivelyClassName__":"lively.Closure"},"15328":{"this":{"__isSmartRef__":true,"id":227}},"15329":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"15330":{"originalFunc":{"__isSmartRef__":true,"id":919}},"15331":{"varMapping":{"__isSmartRef__":true,"id":15332},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15337},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15338},"__LivelyClassName__":"lively.Closure"},"15332":{"this":{"__isSmartRef__":true,"id":227},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15333}},"15333":{"$super":{"__isSmartRef__":true,"id":15334}},"15334":{"varMapping":{"__isSmartRef__":true,"id":15335},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15336},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15335":{"obj":{"__isSmartRef__":true,"id":227},"name":"onMouseDown"},"15336":{},"15337":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"15338":{"originalFunc":{"__isSmartRef__":true,"id":923}},"15339":{"varMapping":{"__isSmartRef__":true,"id":15340},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":15341},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15342},"__LivelyClassName__":"lively.Closure"},"15340":{"this":{"__isSmartRef__":true,"id":227}},"15341":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"15342":{"originalFunc":{"__isSmartRef__":true,"id":931}},"15343":{"varMapping":{"__isSmartRef__":true,"id":15344},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":15345},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15346},"__LivelyClassName__":"lively.Closure"},"15344":{"this":{"__isSmartRef__":true,"id":227}},"15345":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"15346":{"originalFunc":{"__isSmartRef__":true,"id":935}},"15347":{"varMapping":{"__isSmartRef__":true,"id":15348},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":15349},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15350},"__LivelyClassName__":"lively.Closure"},"15348":{"this":{"__isSmartRef__":true,"id":227}},"15349":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"15350":{"originalFunc":{"__isSmartRef__":true,"id":939}},"15351":{"varMapping":{"__isSmartRef__":true,"id":15352},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":15353},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15354},"__LivelyClassName__":"lively.Closure"},"15352":{"this":{"__isSmartRef__":true,"id":227}},"15353":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"15354":{"originalFunc":{"__isSmartRef__":true,"id":943}},"15355":{"varMapping":{"__isSmartRef__":true,"id":15356},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":15357},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15358},"__LivelyClassName__":"lively.Closure"},"15356":{"this":{"__isSmartRef__":true,"id":227}},"15357":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"15358":{"originalFunc":{"__isSmartRef__":true,"id":947}},"15359":{"varMapping":{"__isSmartRef__":true,"id":15360},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":15361},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15362},"__LivelyClassName__":"lively.Closure"},"15360":{"this":{"__isSmartRef__":true,"id":227}},"15361":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"15362":{"originalFunc":{"__isSmartRef__":true,"id":951}},"15363":{"varMapping":{"__isSmartRef__":true,"id":15364},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":15365},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15366},"__LivelyClassName__":"lively.Closure"},"15364":{"this":{"__isSmartRef__":true,"id":227}},"15365":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"15366":{"originalFunc":{"__isSmartRef__":true,"id":955}},"15367":{"varMapping":{"__isSmartRef__":true,"id":15368},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":15369},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15370},"__LivelyClassName__":"lively.Closure"},"15368":{"this":{"__isSmartRef__":true,"id":227}},"15369":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"15370":{"originalFunc":{"__isSmartRef__":true,"id":959}},"15371":{"varMapping":{"__isSmartRef__":true,"id":15372},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":15373},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15374},"__LivelyClassName__":"lively.Closure"},"15372":{"this":{"__isSmartRef__":true,"id":227}},"15373":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"15374":{"originalFunc":{"__isSmartRef__":true,"id":963}},"15375":{"varMapping":{"__isSmartRef__":true,"id":15376},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15377},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15378},"__LivelyClassName__":"lively.Closure"},"15376":{"this":{"__isSmartRef__":true,"id":227}},"15377":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"15378":{"originalFunc":{"__isSmartRef__":true,"id":967}},"15379":{"varMapping":{"__isSmartRef__":true,"id":15380},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15381},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15382},"__LivelyClassName__":"lively.Closure"},"15380":{"this":{"__isSmartRef__":true,"id":227}},"15381":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"15382":{"originalFunc":{"__isSmartRef__":true,"id":971}},"15383":{"varMapping":{"__isSmartRef__":true,"id":15384},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":15385},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15386},"__LivelyClassName__":"lively.Closure"},"15384":{"this":{"__isSmartRef__":true,"id":227}},"15385":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"15386":{"originalFunc":{"__isSmartRef__":true,"id":975}},"15387":{"varMapping":{"__isSmartRef__":true,"id":15388},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":15389},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15390},"__LivelyClassName__":"lively.Closure"},"15388":{"this":{"__isSmartRef__":true,"id":227}},"15389":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"15390":{"originalFunc":{"__isSmartRef__":true,"id":979}},"15391":{"varMapping":{"__isSmartRef__":true,"id":15392},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":15393},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15394},"__LivelyClassName__":"lively.Closure"},"15392":{"this":{"__isSmartRef__":true,"id":227}},"15393":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"15394":{"originalFunc":{"__isSmartRef__":true,"id":983}},"15395":{"varMapping":{"__isSmartRef__":true,"id":15396},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":15397},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15398},"__LivelyClassName__":"lively.Closure"},"15396":{"this":{"__isSmartRef__":true,"id":227}},"15397":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"15398":{"originalFunc":{"__isSmartRef__":true,"id":987}},"15399":{"varMapping":{"__isSmartRef__":true,"id":15400},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":15401},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15402},"__LivelyClassName__":"lively.Closure"},"15400":{"this":{"__isSmartRef__":true,"id":227}},"15401":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"15402":{"originalFunc":{"__isSmartRef__":true,"id":991}},"15403":{"varMapping":{"__isSmartRef__":true,"id":15404},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":15405},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15406},"__LivelyClassName__":"lively.Closure"},"15404":{"this":{"__isSmartRef__":true,"id":227}},"15405":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"15406":{"originalFunc":{"__isSmartRef__":true,"id":995}},"15407":{"varMapping":{"__isSmartRef__":true,"id":15408},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":15409},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15410},"__LivelyClassName__":"lively.Closure"},"15408":{"this":{"__isSmartRef__":true,"id":227}},"15409":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"15410":{"originalFunc":{"__isSmartRef__":true,"id":999}},"15411":{"varMapping":{"__isSmartRef__":true,"id":15412},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15413},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15414},"__LivelyClassName__":"lively.Closure"},"15412":{"this":{"__isSmartRef__":true,"id":227}},"15413":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"15414":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"15415":{"varMapping":{"__isSmartRef__":true,"id":15416},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15417},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15418},"__LivelyClassName__":"lively.Closure"},"15416":{"this":{"__isSmartRef__":true,"id":227}},"15417":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"15418":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"15419":{"varMapping":{"__isSmartRef__":true,"id":15420},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":15421},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15422},"__LivelyClassName__":"lively.Closure"},"15420":{"this":{"__isSmartRef__":true,"id":227}},"15421":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"15422":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"15423":{"setDevStyle":{"__isSmartRef__":true,"id":15424},"setNormalStyle":{"__isSmartRef__":true,"id":15428},"tileSize":{"__isSmartRef__":true,"id":15432},"become":{"__isSmartRef__":true,"id":15436},"onMouseDown":{"__isSmartRef__":true,"id":15440},"setGridPosition":{"__isSmartRef__":true,"id":15448},"toolbox":{"__isSmartRef__":true,"id":15452},"distanceTo":{"__isSmartRef__":true,"id":15456},"tileWasDropped":{"__isSmartRef__":true,"id":15460},"isObstacle":{"__isSmartRef__":true,"id":15464},"neighboursInDirection":{"__isSmartRef__":true,"id":15468},"neighbours":{"__isSmartRef__":true,"id":15472},"zIndex":{"__isSmartRef__":true,"id":15476},"obstacles":{"__isSmartRef__":true,"id":15480},"addObstacle":{"__isSmartRef__":true,"id":15484},"removeObstacle":{"__isSmartRef__":true,"id":15488},"isTile":{"__isSmartRef__":true,"id":15492},"neighbourAt":{"__isSmartRef__":true,"id":15496},"map":{"__isSmartRef__":true,"id":15500},"game":{"__isSmartRef__":true,"id":15504},"reset":{"__isSmartRef__":true,"id":15508},"shallowCopy":{"__isSmartRef__":true,"id":15512},"characters":{"__isSmartRef__":true,"id":15516},"enterTile":{"__isSmartRef__":true,"id":15520},"leaveTile":{"__isSmartRef__":true,"id":15524},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":15528}},"15424":{"varMapping":{"__isSmartRef__":true,"id":15425},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":15426},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15427},"__LivelyClassName__":"lively.Closure"},"15425":{"this":{"__isSmartRef__":true,"id":208}},"15426":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"15427":{"originalFunc":{"__isSmartRef__":true,"id":892}},"15428":{"varMapping":{"__isSmartRef__":true,"id":15429},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":15430},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15431},"__LivelyClassName__":"lively.Closure"},"15429":{"this":{"__isSmartRef__":true,"id":208}},"15430":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"15431":{"originalFunc":{"__isSmartRef__":true,"id":911}},"15432":{"varMapping":{"__isSmartRef__":true,"id":15433},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":15434},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15435},"__LivelyClassName__":"lively.Closure"},"15433":{"this":{"__isSmartRef__":true,"id":208}},"15434":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"15435":{"originalFunc":{"__isSmartRef__":true,"id":915}},"15436":{"varMapping":{"__isSmartRef__":true,"id":15437},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15438},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15439},"__LivelyClassName__":"lively.Closure"},"15437":{"this":{"__isSmartRef__":true,"id":208}},"15438":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"15439":{"originalFunc":{"__isSmartRef__":true,"id":919}},"15440":{"varMapping":{"__isSmartRef__":true,"id":15441},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15446},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15447},"__LivelyClassName__":"lively.Closure"},"15441":{"this":{"__isSmartRef__":true,"id":208},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15442}},"15442":{"$super":{"__isSmartRef__":true,"id":15443}},"15443":{"varMapping":{"__isSmartRef__":true,"id":15444},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15445},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15444":{"obj":{"__isSmartRef__":true,"id":208},"name":"onMouseDown"},"15445":{},"15446":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"15447":{"originalFunc":{"__isSmartRef__":true,"id":923}},"15448":{"varMapping":{"__isSmartRef__":true,"id":15449},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":15450},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15451},"__LivelyClassName__":"lively.Closure"},"15449":{"this":{"__isSmartRef__":true,"id":208}},"15450":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"15451":{"originalFunc":{"__isSmartRef__":true,"id":931}},"15452":{"varMapping":{"__isSmartRef__":true,"id":15453},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":15454},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15455},"__LivelyClassName__":"lively.Closure"},"15453":{"this":{"__isSmartRef__":true,"id":208}},"15454":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"15455":{"originalFunc":{"__isSmartRef__":true,"id":935}},"15456":{"varMapping":{"__isSmartRef__":true,"id":15457},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":15458},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15459},"__LivelyClassName__":"lively.Closure"},"15457":{"this":{"__isSmartRef__":true,"id":208}},"15458":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"15459":{"originalFunc":{"__isSmartRef__":true,"id":939}},"15460":{"varMapping":{"__isSmartRef__":true,"id":15461},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":15462},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15463},"__LivelyClassName__":"lively.Closure"},"15461":{"this":{"__isSmartRef__":true,"id":208}},"15462":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"15463":{"originalFunc":{"__isSmartRef__":true,"id":943}},"15464":{"varMapping":{"__isSmartRef__":true,"id":15465},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":15466},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15467},"__LivelyClassName__":"lively.Closure"},"15465":{"this":{"__isSmartRef__":true,"id":208}},"15466":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"15467":{"originalFunc":{"__isSmartRef__":true,"id":947}},"15468":{"varMapping":{"__isSmartRef__":true,"id":15469},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":15470},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15471},"__LivelyClassName__":"lively.Closure"},"15469":{"this":{"__isSmartRef__":true,"id":208}},"15470":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"15471":{"originalFunc":{"__isSmartRef__":true,"id":951}},"15472":{"varMapping":{"__isSmartRef__":true,"id":15473},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":15474},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15475},"__LivelyClassName__":"lively.Closure"},"15473":{"this":{"__isSmartRef__":true,"id":208}},"15474":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"15475":{"originalFunc":{"__isSmartRef__":true,"id":955}},"15476":{"varMapping":{"__isSmartRef__":true,"id":15477},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":15478},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15479},"__LivelyClassName__":"lively.Closure"},"15477":{"this":{"__isSmartRef__":true,"id":208}},"15478":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"15479":{"originalFunc":{"__isSmartRef__":true,"id":959}},"15480":{"varMapping":{"__isSmartRef__":true,"id":15481},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":15482},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15483},"__LivelyClassName__":"lively.Closure"},"15481":{"this":{"__isSmartRef__":true,"id":208}},"15482":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"15483":{"originalFunc":{"__isSmartRef__":true,"id":963}},"15484":{"varMapping":{"__isSmartRef__":true,"id":15485},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15486},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15487},"__LivelyClassName__":"lively.Closure"},"15485":{"this":{"__isSmartRef__":true,"id":208}},"15486":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"15487":{"originalFunc":{"__isSmartRef__":true,"id":967}},"15488":{"varMapping":{"__isSmartRef__":true,"id":15489},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15490},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15491},"__LivelyClassName__":"lively.Closure"},"15489":{"this":{"__isSmartRef__":true,"id":208}},"15490":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"15491":{"originalFunc":{"__isSmartRef__":true,"id":971}},"15492":{"varMapping":{"__isSmartRef__":true,"id":15493},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":15494},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15495},"__LivelyClassName__":"lively.Closure"},"15493":{"this":{"__isSmartRef__":true,"id":208}},"15494":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"15495":{"originalFunc":{"__isSmartRef__":true,"id":975}},"15496":{"varMapping":{"__isSmartRef__":true,"id":15497},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":15498},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15499},"__LivelyClassName__":"lively.Closure"},"15497":{"this":{"__isSmartRef__":true,"id":208}},"15498":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"15499":{"originalFunc":{"__isSmartRef__":true,"id":979}},"15500":{"varMapping":{"__isSmartRef__":true,"id":15501},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":15502},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15503},"__LivelyClassName__":"lively.Closure"},"15501":{"this":{"__isSmartRef__":true,"id":208}},"15502":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"15503":{"originalFunc":{"__isSmartRef__":true,"id":983}},"15504":{"varMapping":{"__isSmartRef__":true,"id":15505},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":15506},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15507},"__LivelyClassName__":"lively.Closure"},"15505":{"this":{"__isSmartRef__":true,"id":208}},"15506":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"15507":{"originalFunc":{"__isSmartRef__":true,"id":987}},"15508":{"varMapping":{"__isSmartRef__":true,"id":15509},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":15510},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15511},"__LivelyClassName__":"lively.Closure"},"15509":{"this":{"__isSmartRef__":true,"id":208}},"15510":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"15511":{"originalFunc":{"__isSmartRef__":true,"id":991}},"15512":{"varMapping":{"__isSmartRef__":true,"id":15513},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":15514},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15515},"__LivelyClassName__":"lively.Closure"},"15513":{"this":{"__isSmartRef__":true,"id":208}},"15514":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"15515":{"originalFunc":{"__isSmartRef__":true,"id":995}},"15516":{"varMapping":{"__isSmartRef__":true,"id":15517},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":15518},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15519},"__LivelyClassName__":"lively.Closure"},"15517":{"this":{"__isSmartRef__":true,"id":208}},"15518":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"15519":{"originalFunc":{"__isSmartRef__":true,"id":999}},"15520":{"varMapping":{"__isSmartRef__":true,"id":15521},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15522},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15523},"__LivelyClassName__":"lively.Closure"},"15521":{"this":{"__isSmartRef__":true,"id":208}},"15522":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"15523":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"15524":{"varMapping":{"__isSmartRef__":true,"id":15525},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15526},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15527},"__LivelyClassName__":"lively.Closure"},"15525":{"this":{"__isSmartRef__":true,"id":208}},"15526":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"15527":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"15528":{"varMapping":{"__isSmartRef__":true,"id":15529},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":15530},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15531},"__LivelyClassName__":"lively.Closure"},"15529":{"this":{"__isSmartRef__":true,"id":208}},"15530":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"15531":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"15532":{"setDevStyle":{"__isSmartRef__":true,"id":15533},"setNormalStyle":{"__isSmartRef__":true,"id":15537},"tileSize":{"__isSmartRef__":true,"id":15541},"become":{"__isSmartRef__":true,"id":15545},"onMouseDown":{"__isSmartRef__":true,"id":15549},"setGridPosition":{"__isSmartRef__":true,"id":15557},"toolbox":{"__isSmartRef__":true,"id":15561},"distanceTo":{"__isSmartRef__":true,"id":15565},"tileWasDropped":{"__isSmartRef__":true,"id":15569},"isObstacle":{"__isSmartRef__":true,"id":15573},"neighboursInDirection":{"__isSmartRef__":true,"id":15577},"neighbours":{"__isSmartRef__":true,"id":15581},"zIndex":{"__isSmartRef__":true,"id":15585},"obstacles":{"__isSmartRef__":true,"id":15589},"addObstacle":{"__isSmartRef__":true,"id":15593},"removeObstacle":{"__isSmartRef__":true,"id":15597},"isTile":{"__isSmartRef__":true,"id":15601},"neighbourAt":{"__isSmartRef__":true,"id":15605},"map":{"__isSmartRef__":true,"id":15609},"game":{"__isSmartRef__":true,"id":15613},"reset":{"__isSmartRef__":true,"id":15617},"shallowCopy":{"__isSmartRef__":true,"id":15621},"characters":{"__isSmartRef__":true,"id":15625},"enterTile":{"__isSmartRef__":true,"id":15629},"leaveTile":{"__isSmartRef__":true,"id":15633},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":15637}},"15533":{"varMapping":{"__isSmartRef__":true,"id":15534},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":15535},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15536},"__LivelyClassName__":"lively.Closure"},"15534":{"this":{"__isSmartRef__":true,"id":189}},"15535":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"15536":{"originalFunc":{"__isSmartRef__":true,"id":892}},"15537":{"varMapping":{"__isSmartRef__":true,"id":15538},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":15539},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15540},"__LivelyClassName__":"lively.Closure"},"15538":{"this":{"__isSmartRef__":true,"id":189}},"15539":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"15540":{"originalFunc":{"__isSmartRef__":true,"id":911}},"15541":{"varMapping":{"__isSmartRef__":true,"id":15542},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":15543},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15544},"__LivelyClassName__":"lively.Closure"},"15542":{"this":{"__isSmartRef__":true,"id":189}},"15543":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"15544":{"originalFunc":{"__isSmartRef__":true,"id":915}},"15545":{"varMapping":{"__isSmartRef__":true,"id":15546},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15547},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15548},"__LivelyClassName__":"lively.Closure"},"15546":{"this":{"__isSmartRef__":true,"id":189}},"15547":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"15548":{"originalFunc":{"__isSmartRef__":true,"id":919}},"15549":{"varMapping":{"__isSmartRef__":true,"id":15550},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15555},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15556},"__LivelyClassName__":"lively.Closure"},"15550":{"this":{"__isSmartRef__":true,"id":189},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15551}},"15551":{"$super":{"__isSmartRef__":true,"id":15552}},"15552":{"varMapping":{"__isSmartRef__":true,"id":15553},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15554},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15553":{"obj":{"__isSmartRef__":true,"id":189},"name":"onMouseDown"},"15554":{},"15555":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"15556":{"originalFunc":{"__isSmartRef__":true,"id":923}},"15557":{"varMapping":{"__isSmartRef__":true,"id":15558},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":15559},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15560},"__LivelyClassName__":"lively.Closure"},"15558":{"this":{"__isSmartRef__":true,"id":189}},"15559":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"15560":{"originalFunc":{"__isSmartRef__":true,"id":931}},"15561":{"varMapping":{"__isSmartRef__":true,"id":15562},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":15563},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15564},"__LivelyClassName__":"lively.Closure"},"15562":{"this":{"__isSmartRef__":true,"id":189}},"15563":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"15564":{"originalFunc":{"__isSmartRef__":true,"id":935}},"15565":{"varMapping":{"__isSmartRef__":true,"id":15566},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":15567},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15568},"__LivelyClassName__":"lively.Closure"},"15566":{"this":{"__isSmartRef__":true,"id":189}},"15567":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"15568":{"originalFunc":{"__isSmartRef__":true,"id":939}},"15569":{"varMapping":{"__isSmartRef__":true,"id":15570},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":15571},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15572},"__LivelyClassName__":"lively.Closure"},"15570":{"this":{"__isSmartRef__":true,"id":189}},"15571":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"15572":{"originalFunc":{"__isSmartRef__":true,"id":943}},"15573":{"varMapping":{"__isSmartRef__":true,"id":15574},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":15575},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15576},"__LivelyClassName__":"lively.Closure"},"15574":{"this":{"__isSmartRef__":true,"id":189}},"15575":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"15576":{"originalFunc":{"__isSmartRef__":true,"id":947}},"15577":{"varMapping":{"__isSmartRef__":true,"id":15578},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":15579},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15580},"__LivelyClassName__":"lively.Closure"},"15578":{"this":{"__isSmartRef__":true,"id":189}},"15579":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"15580":{"originalFunc":{"__isSmartRef__":true,"id":951}},"15581":{"varMapping":{"__isSmartRef__":true,"id":15582},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":15583},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15584},"__LivelyClassName__":"lively.Closure"},"15582":{"this":{"__isSmartRef__":true,"id":189}},"15583":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"15584":{"originalFunc":{"__isSmartRef__":true,"id":955}},"15585":{"varMapping":{"__isSmartRef__":true,"id":15586},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":15587},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15588},"__LivelyClassName__":"lively.Closure"},"15586":{"this":{"__isSmartRef__":true,"id":189}},"15587":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"15588":{"originalFunc":{"__isSmartRef__":true,"id":959}},"15589":{"varMapping":{"__isSmartRef__":true,"id":15590},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":15591},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15592},"__LivelyClassName__":"lively.Closure"},"15590":{"this":{"__isSmartRef__":true,"id":189}},"15591":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"15592":{"originalFunc":{"__isSmartRef__":true,"id":963}},"15593":{"varMapping":{"__isSmartRef__":true,"id":15594},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15595},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15596},"__LivelyClassName__":"lively.Closure"},"15594":{"this":{"__isSmartRef__":true,"id":189}},"15595":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"15596":{"originalFunc":{"__isSmartRef__":true,"id":967}},"15597":{"varMapping":{"__isSmartRef__":true,"id":15598},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15599},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15600},"__LivelyClassName__":"lively.Closure"},"15598":{"this":{"__isSmartRef__":true,"id":189}},"15599":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"15600":{"originalFunc":{"__isSmartRef__":true,"id":971}},"15601":{"varMapping":{"__isSmartRef__":true,"id":15602},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":15603},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15604},"__LivelyClassName__":"lively.Closure"},"15602":{"this":{"__isSmartRef__":true,"id":189}},"15603":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"15604":{"originalFunc":{"__isSmartRef__":true,"id":975}},"15605":{"varMapping":{"__isSmartRef__":true,"id":15606},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":15607},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15608},"__LivelyClassName__":"lively.Closure"},"15606":{"this":{"__isSmartRef__":true,"id":189}},"15607":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"15608":{"originalFunc":{"__isSmartRef__":true,"id":979}},"15609":{"varMapping":{"__isSmartRef__":true,"id":15610},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":15611},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15612},"__LivelyClassName__":"lively.Closure"},"15610":{"this":{"__isSmartRef__":true,"id":189}},"15611":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"15612":{"originalFunc":{"__isSmartRef__":true,"id":983}},"15613":{"varMapping":{"__isSmartRef__":true,"id":15614},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":15615},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15616},"__LivelyClassName__":"lively.Closure"},"15614":{"this":{"__isSmartRef__":true,"id":189}},"15615":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"15616":{"originalFunc":{"__isSmartRef__":true,"id":987}},"15617":{"varMapping":{"__isSmartRef__":true,"id":15618},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":15619},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15620},"__LivelyClassName__":"lively.Closure"},"15618":{"this":{"__isSmartRef__":true,"id":189}},"15619":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"15620":{"originalFunc":{"__isSmartRef__":true,"id":991}},"15621":{"varMapping":{"__isSmartRef__":true,"id":15622},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":15623},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15624},"__LivelyClassName__":"lively.Closure"},"15622":{"this":{"__isSmartRef__":true,"id":189}},"15623":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"15624":{"originalFunc":{"__isSmartRef__":true,"id":995}},"15625":{"varMapping":{"__isSmartRef__":true,"id":15626},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":15627},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15628},"__LivelyClassName__":"lively.Closure"},"15626":{"this":{"__isSmartRef__":true,"id":189}},"15627":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"15628":{"originalFunc":{"__isSmartRef__":true,"id":999}},"15629":{"varMapping":{"__isSmartRef__":true,"id":15630},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15631},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15632},"__LivelyClassName__":"lively.Closure"},"15630":{"this":{"__isSmartRef__":true,"id":189}},"15631":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"15632":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"15633":{"varMapping":{"__isSmartRef__":true,"id":15634},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15635},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15636},"__LivelyClassName__":"lively.Closure"},"15634":{"this":{"__isSmartRef__":true,"id":189}},"15635":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"15636":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"15637":{"varMapping":{"__isSmartRef__":true,"id":15638},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":15639},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15640},"__LivelyClassName__":"lively.Closure"},"15638":{"this":{"__isSmartRef__":true,"id":189}},"15639":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"15640":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"15641":{"setDevStyle":{"__isSmartRef__":true,"id":15642},"setNormalStyle":{"__isSmartRef__":true,"id":15646},"tileSize":{"__isSmartRef__":true,"id":15650},"become":{"__isSmartRef__":true,"id":15654},"onMouseDown":{"__isSmartRef__":true,"id":15658},"setGridPosition":{"__isSmartRef__":true,"id":15666},"toolbox":{"__isSmartRef__":true,"id":15670},"distanceTo":{"__isSmartRef__":true,"id":15674},"tileWasDropped":{"__isSmartRef__":true,"id":15678},"isObstacle":{"__isSmartRef__":true,"id":15682},"neighboursInDirection":{"__isSmartRef__":true,"id":15686},"neighbours":{"__isSmartRef__":true,"id":15690},"zIndex":{"__isSmartRef__":true,"id":15694},"obstacles":{"__isSmartRef__":true,"id":15698},"addObstacle":{"__isSmartRef__":true,"id":15702},"removeObstacle":{"__isSmartRef__":true,"id":15706},"isTile":{"__isSmartRef__":true,"id":15710},"neighbourAt":{"__isSmartRef__":true,"id":15714},"map":{"__isSmartRef__":true,"id":15718},"game":{"__isSmartRef__":true,"id":15722},"reset":{"__isSmartRef__":true,"id":15726},"shallowCopy":{"__isSmartRef__":true,"id":15730},"characters":{"__isSmartRef__":true,"id":15734},"enterTile":{"__isSmartRef__":true,"id":15738},"leaveTile":{"__isSmartRef__":true,"id":15742},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":15746}},"15642":{"varMapping":{"__isSmartRef__":true,"id":15643},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":15644},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15645},"__LivelyClassName__":"lively.Closure"},"15643":{"this":{"__isSmartRef__":true,"id":170}},"15644":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"15645":{"originalFunc":{"__isSmartRef__":true,"id":892}},"15646":{"varMapping":{"__isSmartRef__":true,"id":15647},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":15648},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15649},"__LivelyClassName__":"lively.Closure"},"15647":{"this":{"__isSmartRef__":true,"id":170}},"15648":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"15649":{"originalFunc":{"__isSmartRef__":true,"id":911}},"15650":{"varMapping":{"__isSmartRef__":true,"id":15651},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":15652},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15653},"__LivelyClassName__":"lively.Closure"},"15651":{"this":{"__isSmartRef__":true,"id":170}},"15652":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"15653":{"originalFunc":{"__isSmartRef__":true,"id":915}},"15654":{"varMapping":{"__isSmartRef__":true,"id":15655},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15656},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15657},"__LivelyClassName__":"lively.Closure"},"15655":{"this":{"__isSmartRef__":true,"id":170}},"15656":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"15657":{"originalFunc":{"__isSmartRef__":true,"id":919}},"15658":{"varMapping":{"__isSmartRef__":true,"id":15659},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15664},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15665},"__LivelyClassName__":"lively.Closure"},"15659":{"this":{"__isSmartRef__":true,"id":170},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15660}},"15660":{"$super":{"__isSmartRef__":true,"id":15661}},"15661":{"varMapping":{"__isSmartRef__":true,"id":15662},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15663},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15662":{"obj":{"__isSmartRef__":true,"id":170},"name":"onMouseDown"},"15663":{},"15664":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"15665":{"originalFunc":{"__isSmartRef__":true,"id":923}},"15666":{"varMapping":{"__isSmartRef__":true,"id":15667},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":15668},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15669},"__LivelyClassName__":"lively.Closure"},"15667":{"this":{"__isSmartRef__":true,"id":170}},"15668":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"15669":{"originalFunc":{"__isSmartRef__":true,"id":931}},"15670":{"varMapping":{"__isSmartRef__":true,"id":15671},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":15672},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15673},"__LivelyClassName__":"lively.Closure"},"15671":{"this":{"__isSmartRef__":true,"id":170}},"15672":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"15673":{"originalFunc":{"__isSmartRef__":true,"id":935}},"15674":{"varMapping":{"__isSmartRef__":true,"id":15675},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":15676},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15677},"__LivelyClassName__":"lively.Closure"},"15675":{"this":{"__isSmartRef__":true,"id":170}},"15676":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"15677":{"originalFunc":{"__isSmartRef__":true,"id":939}},"15678":{"varMapping":{"__isSmartRef__":true,"id":15679},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":15680},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15681},"__LivelyClassName__":"lively.Closure"},"15679":{"this":{"__isSmartRef__":true,"id":170}},"15680":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"15681":{"originalFunc":{"__isSmartRef__":true,"id":943}},"15682":{"varMapping":{"__isSmartRef__":true,"id":15683},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":15684},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15685},"__LivelyClassName__":"lively.Closure"},"15683":{"this":{"__isSmartRef__":true,"id":170}},"15684":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"15685":{"originalFunc":{"__isSmartRef__":true,"id":947}},"15686":{"varMapping":{"__isSmartRef__":true,"id":15687},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":15688},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15689},"__LivelyClassName__":"lively.Closure"},"15687":{"this":{"__isSmartRef__":true,"id":170}},"15688":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"15689":{"originalFunc":{"__isSmartRef__":true,"id":951}},"15690":{"varMapping":{"__isSmartRef__":true,"id":15691},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":15692},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15693},"__LivelyClassName__":"lively.Closure"},"15691":{"this":{"__isSmartRef__":true,"id":170}},"15692":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"15693":{"originalFunc":{"__isSmartRef__":true,"id":955}},"15694":{"varMapping":{"__isSmartRef__":true,"id":15695},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":15696},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15697},"__LivelyClassName__":"lively.Closure"},"15695":{"this":{"__isSmartRef__":true,"id":170}},"15696":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"15697":{"originalFunc":{"__isSmartRef__":true,"id":959}},"15698":{"varMapping":{"__isSmartRef__":true,"id":15699},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":15700},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15701},"__LivelyClassName__":"lively.Closure"},"15699":{"this":{"__isSmartRef__":true,"id":170}},"15700":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"15701":{"originalFunc":{"__isSmartRef__":true,"id":963}},"15702":{"varMapping":{"__isSmartRef__":true,"id":15703},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15704},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15705},"__LivelyClassName__":"lively.Closure"},"15703":{"this":{"__isSmartRef__":true,"id":170}},"15704":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"15705":{"originalFunc":{"__isSmartRef__":true,"id":967}},"15706":{"varMapping":{"__isSmartRef__":true,"id":15707},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15708},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15709},"__LivelyClassName__":"lively.Closure"},"15707":{"this":{"__isSmartRef__":true,"id":170}},"15708":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"15709":{"originalFunc":{"__isSmartRef__":true,"id":971}},"15710":{"varMapping":{"__isSmartRef__":true,"id":15711},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":15712},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15713},"__LivelyClassName__":"lively.Closure"},"15711":{"this":{"__isSmartRef__":true,"id":170}},"15712":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"15713":{"originalFunc":{"__isSmartRef__":true,"id":975}},"15714":{"varMapping":{"__isSmartRef__":true,"id":15715},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":15716},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15717},"__LivelyClassName__":"lively.Closure"},"15715":{"this":{"__isSmartRef__":true,"id":170}},"15716":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"15717":{"originalFunc":{"__isSmartRef__":true,"id":979}},"15718":{"varMapping":{"__isSmartRef__":true,"id":15719},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":15720},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15721},"__LivelyClassName__":"lively.Closure"},"15719":{"this":{"__isSmartRef__":true,"id":170}},"15720":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"15721":{"originalFunc":{"__isSmartRef__":true,"id":983}},"15722":{"varMapping":{"__isSmartRef__":true,"id":15723},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":15724},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15725},"__LivelyClassName__":"lively.Closure"},"15723":{"this":{"__isSmartRef__":true,"id":170}},"15724":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"15725":{"originalFunc":{"__isSmartRef__":true,"id":987}},"15726":{"varMapping":{"__isSmartRef__":true,"id":15727},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":15728},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15729},"__LivelyClassName__":"lively.Closure"},"15727":{"this":{"__isSmartRef__":true,"id":170}},"15728":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"15729":{"originalFunc":{"__isSmartRef__":true,"id":991}},"15730":{"varMapping":{"__isSmartRef__":true,"id":15731},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":15732},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15733},"__LivelyClassName__":"lively.Closure"},"15731":{"this":{"__isSmartRef__":true,"id":170}},"15732":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"15733":{"originalFunc":{"__isSmartRef__":true,"id":995}},"15734":{"varMapping":{"__isSmartRef__":true,"id":15735},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":15736},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15737},"__LivelyClassName__":"lively.Closure"},"15735":{"this":{"__isSmartRef__":true,"id":170}},"15736":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"15737":{"originalFunc":{"__isSmartRef__":true,"id":999}},"15738":{"varMapping":{"__isSmartRef__":true,"id":15739},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15740},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15741},"__LivelyClassName__":"lively.Closure"},"15739":{"this":{"__isSmartRef__":true,"id":170}},"15740":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"15741":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"15742":{"varMapping":{"__isSmartRef__":true,"id":15743},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15744},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15745},"__LivelyClassName__":"lively.Closure"},"15743":{"this":{"__isSmartRef__":true,"id":170}},"15744":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"15745":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"15746":{"varMapping":{"__isSmartRef__":true,"id":15747},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":15748},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15749},"__LivelyClassName__":"lively.Closure"},"15747":{"this":{"__isSmartRef__":true,"id":170}},"15748":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"15749":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"15750":{"submorphs":[{"__isSmartRef__":true,"id":15751},{"__isSmartRef__":true,"id":15807},{"__isSmartRef__":true,"id":15881},{"__isSmartRef__":true,"id":15906}],"scripts":[{"__isSmartRef__":true,"id":15961},{"__isSmartRef__":true,"id":15963}],"shape":{"__isSmartRef__":true,"id":15964},"renderContextTable":{"__isSmartRef__":true,"id":15970},"eventHandler":{"__isSmartRef__":true,"id":15971},"_ClipMode":"visible","derivationIds":[],"id":"62577D9E-09B9-4749-9FF5-B947C067945A","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":15972},"partsBinMetaInfo":{"__isSmartRef__":true,"id":3927},"lifeBar":{"__isSmartRef__":true,"id":15751},"deathAnimation":{"__isSmartRef__":true,"id":15807},"owner":{"__isSmartRef__":true,"id":2},"character":{"__isSmartRef__":true,"id":15881},"animateScript":{"__isSmartRef__":true,"id":15961},"isBusy":false,"lastSpeedTimestamp":1343640867982,"walkScript":{"__isSmartRef__":true,"id":15963},"direction":{"__isSmartRef__":true,"id":15973},"textBubble":{"__isSmartRef__":true,"id":15906},"__SourceModuleName__":"Global.lively.morphic.Core","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15974},"__LivelyClassName__":"lively.morphic.Box"},"15751":{"submorphs":[],"scripts":[],"id":"99C7C513-3D54-4B7D-808F-3BF184DAD9BD","shape":{"__isSmartRef__":true,"id":15752},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":15759},"showsHalos":false,"name":"LifeBar","partsBinMetaInfo":{"__isSmartRef__":true,"id":15760},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":15775},"eventHandler":{"__isSmartRef__":true,"id":15776},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","2DB0D0C7-DC87-4CFA-83D0-A3C69D36DFF5","D5A167D3-1B45-47C6-9589-88D524CBB671","B99E0377-C191-4217-A6A5-9C8B280EBFC7","30BAB7C0-114B-4F37-878B-09C11E3D5549","FB770FA2-2303-4F51-B162-092CD8F21AA0","612FF3E2-A0BA-4252-92A6-28D30F489F85","78D369CF-E59B-4EB9-8D69-151A5EC7EBC2","E425FE9E-F1B0-438A-A245-16A29D9D258B","803FB59F-23F3-4A2F-9E13-DC3FB4D6FBC2","16E73362-4726-4C37-8412-BB7F76E007B7","8F9461A6-FB84-4875-BE34-EDF06F5CF22B","E7D9DE9E-946E-47E7-B684-63DCCE65106B","CEE4682F-B1A8-4163-8208-67DAD6993B52","D3072470-ABA6-4EB9-8D01-4BB11A39B26D","31496EA1-A9DF-4D97-835B-E76BA2171F1A"],"partTests":{"__isSmartRef__":true,"id":15777},"_ClipMode":"visible","isBeingDragged":false,"#startLetters":"","_Rotation":0,"_Scale":1.002003004005006,"character":{"__isSmartRef__":true,"id":15750},"owner":{"__isSmartRef__":true,"id":15750},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15782},"__LivelyClassName__":"lively.morphic.Box"},"15752":{"position":{"__isSmartRef__":true,"id":15753},"_Extent":{"__isSmartRef__":true,"id":15754},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":15755},"_Fill":{"__isSmartRef__":true,"id":15756},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":15757},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":15758},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"15753":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15754":{"x":48,"y":8,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15755":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"15756":{"r":0.59375,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"15757":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"15758":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"15759":{"x":0,"y":-13,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15760":{"partsSpaceName":"PartsBin/FreedomOfSpeech/","__SourceModuleName__":"Global.lively.PartsBin","comment":"A life bar","migrationLevel":4,"partName":"LifeBar","changes":[{"__isSmartRef__":true,"id":15761},{"__isSmartRef__":true,"id":15763},{"__isSmartRef__":true,"id":15765},{"__isSmartRef__":true,"id":15767},{"__isSmartRef__":true,"id":15769},{"__isSmartRef__":true,"id":15771},{"__isSmartRef__":true,"id":15773}],"revisionOnLoad":159331,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"15761":{"date":{"__isSmartRef__":true,"id":15762},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"15762":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"15763":{"date":{"__isSmartRef__":true,"id":15764},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"15764":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"15765":{"date":{"__isSmartRef__":true,"id":15766},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"15766":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"15767":{"date":{"__isSmartRef__":true,"id":15768},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"15768":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"15769":{"date":{"__isSmartRef__":true,"id":15770},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"15770":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"15771":{"date":{"__isSmartRef__":true,"id":15772},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"15772":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"15773":{"date":{"__isSmartRef__":true,"id":15774},"author":"timfelgentreff","message":"no comment","id":"655F8C6A-8060-4BEC-9535-09682C8F0066"},"15774":{"isSerializedDate":true,"string":"Fri May 04 2012 16:52:35 GMT+0200 (CEST)"},"15775":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"15776":{"morph":{"__isSmartRef__":true,"id":15751},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15777":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15778}},"15778":{"test01IsMorph":{"__isSmartRef__":true,"id":15779}},"15779":{"varMapping":{"__isSmartRef__":true,"id":15780},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":15781},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15780":{"this":{"__isSmartRef__":true,"id":15777}},"15781":{},"15782":{"setColorForWidth":{"__isSmartRef__":true,"id":15783},"reset":{"__isSmartRef__":true,"id":15787},"hit":{"__isSmartRef__":true,"id":15791},"extent":{"__isSmartRef__":true,"id":15795},"isDead":{"__isSmartRef__":true,"id":15799},"lifeLoss":{"__isSmartRef__":true,"id":15803},"heal":{"__isSmartRef__":true,"id":15787}},"15783":{"varMapping":{"__isSmartRef__":true,"id":15784},"source":"function setColorForWidth() {\n this.setFill(Color.hsb((this.getExtent().x - this.lifeLoss() / 2) / this.extent().x * 100, 1, 1))\n}","funcProperties":{"__isSmartRef__":true,"id":15785},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15784":{"this":{"__isSmartRef__":true,"id":15751}},"15785":{"timestamp":{"__isSmartRef__":true,"id":15786},"user":"timfelgentreff","tags":[]},"15786":{"isSerializedDate":true,"string":"Fri May 04 2012 16:51:59 GMT+0200 (CEST)"},"15787":{"varMapping":{"__isSmartRef__":true,"id":15788},"source":"function reset() {\n this.setExtent(this.extent())\n this.setColorForWidth()\n this.setPosition(pt(0, -13))\n}","funcProperties":{"__isSmartRef__":true,"id":15789},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15788":{"this":{"__isSmartRef__":true,"id":15751}},"15789":{"timestamp":{"__isSmartRef__":true,"id":15790},"user":"timfelgentreff","tags":[]},"15790":{"isSerializedDate":true,"string":"Fri May 04 2012 17:19:31 GMT+0200 (CEST)"},"15791":{"varMapping":{"__isSmartRef__":true,"id":15792},"source":"function hit() {\n this.setExtent(this.getExtent().subPt(pt(this.lifeLoss(), 0)))\n this.setColorForWidth()\n if (this.isDead()) {\n this.character.become(null)\n this.character.deathAnimation.start()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15793},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15792":{"this":{"__isSmartRef__":true,"id":15751}},"15793":{"timestamp":{"__isSmartRef__":true,"id":15794},"user":"timfelgentreff","tags":[]},"15794":{"isSerializedDate":true,"string":"Fri May 04 2012 17:12:01 GMT+0200 (CEST)"},"15795":{"varMapping":{"__isSmartRef__":true,"id":15796},"source":"function extent() {\n return pt(48,8)\n}","funcProperties":{"__isSmartRef__":true,"id":15797},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15796":{"this":{"__isSmartRef__":true,"id":15751}},"15797":{"timestamp":{"__isSmartRef__":true,"id":15798},"user":"timfelgentreff","tags":[]},"15798":{"isSerializedDate":true,"string":"Fri May 04 2012 16:49:30 GMT+0200 (CEST)"},"15799":{"varMapping":{"__isSmartRef__":true,"id":15800},"source":"function isDead() {\n return this.getExtent().x < this.lifeLoss()\n}","funcProperties":{"__isSmartRef__":true,"id":15801},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15800":{"this":{"__isSmartRef__":true,"id":15751}},"15801":{"timestamp":{"__isSmartRef__":true,"id":15802},"user":"timfelgentreff","tags":[]},"15802":{"isSerializedDate":true,"string":"Fri May 04 2012 16:50:02 GMT+0200 (CEST)"},"15803":{"varMapping":{"__isSmartRef__":true,"id":15804},"source":"function lifeLoss() {\n return this.extent().x / 3 - 1\n}","funcProperties":{"__isSmartRef__":true,"id":15805},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15804":{"this":{"__isSmartRef__":true,"id":15751}},"15805":{"timestamp":{"__isSmartRef__":true,"id":15806},"user":"timfelgentreff","tags":[]},"15806":{"isSerializedDate":true,"string":"Fri May 04 2012 16:50:22 GMT+0200 (CEST)"},"15807":{"submorphs":[{"__isSmartRef__":true,"id":15808}],"scripts":[],"id":"7E7FBB77-BCBF-44BA-9F43-608291240485","shape":{"__isSmartRef__":true,"id":15837},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":15844},"showsHalos":false,"name":"DeathAnimation","partsBinMetaInfo":{"__isSmartRef__":true,"id":15845},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":15858},"eventHandler":{"__isSmartRef__":true,"id":15859},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","BFF48C2B-8378-49C8-A6EC-5205A2A46D92","0322384E-8399-4532-BD09-846510E4CEB2","D94E58BE-3730-4E93-886D-57D5F7FEDE66","8BA6D9A0-76BF-45F9-8257-B44CE32DC0E8","627E352B-D135-4086-86B2-C7271180C415","1E2E609F-0D3C-43B7-A41A-DEF99F217F62","C106586D-69FF-492C-86C0-9105E43A395A","14B978ED-D71B-4400-8BD0-92F5EB55D3FB","1F548A2A-9935-42D6-A43F-57A789A17989","7AB0E0C5-F3F5-44B8-84A4-FE58514B9CBB","0B24C9CE-0E0A-420E-BABB-1EECAF2A75F7","8BCF21E1-00C1-47E1-8C9D-C6CD6F611A30","94B8E0BB-A727-4D1F-9FCD-57500677A0E3","875CC266-7C10-4E98-A6B6-17C7EB3C93A3","8CBF3E25-2EB1-4DE6-AAB2-17CB254C9012"],"partTests":{"__isSmartRef__":true,"id":15860},"_ClipMode":"visible","isBeingDragged":false,"#startLetters":"image","image":{"__isSmartRef__":true,"id":15808},"baseUrl":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_","counter":1,"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","_Rotation":0,"_Scale":1.002003004005006,"character":{"__isSmartRef__":true,"id":15750},"owner":{"__isSmartRef__":true,"id":15750},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15865},"__LivelyClassName__":"lively.morphic.Box"},"15808":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":15809},"derivationIds":[null,"238E91DE-656E-43B5-8E3D-904CDA28A277","C00A3C0E-CF81-421A-BF06-DE6D4804AC6B","4382B5D0-4A0C-4EF1-8EA4-8A5F8AE07FED","C63F1CBE-8F12-4DFF-8B87-724D9AFDE572","4C4D5150-2BCE-4514-A48A-3787AC0E3CCF","8D704A99-14C3-4137-9E77-31DEBF2AA651","40D79729-F063-4AC0-8BA8-E1A794FC48A8","F658FB14-4DBB-4056-9F28-DD002EF336C6","19619216-9747-4EA9-A444-FFBBB4310049","40016546-5DEA-40CF-82DD-70C1F06413D4","0D8C6CD9-1951-4437-8DB1-3C658360D9B3","4A305064-C6ED-4B9B-AE1D-D1C8B588E724","438C7CD7-16E4-4D9E-A015-6D204ADE7635","92787D53-FD63-40D2-B832-464328EA031D","2A03C966-9450-4DC5-9084-A4966D9718CA","27A384D8-C394-47A1-BAE3-C121747B4EAF","D48DE2C7-4C3D-48D4-B639-D97975FE3A81","1EF27416-D2A4-4F72-A536-D94226AE04E2","D504024B-30A0-4034-B03E-EE97D7D12A3A","B8A96F87-B36E-4C2A-A697-1911B0D4A10E","CA123CA5-7C77-457D-8505-3D1E2EA12ACC"],"id":"7B7B19C6-D18F-4F90-A1A7-3CC89BB80A86","renderContextTable":{"__isSmartRef__":true,"id":15814},"eventHandler":{"__isSmartRef__":true,"id":15815},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":15816},"name":"DeathAnimationImage","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":15817},"__SourceModuleName__":"Global.lively.morphic.Widgets","moved":true,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_ClipMode":"visible","isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":15807},"#startLetters":"","eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","_Visible":false,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15832},"__LivelyClassName__":"lively.morphic.Image"},"15809":{"_Position":{"__isSmartRef__":true,"id":15810},"renderContextTable":{"__isSmartRef__":true,"id":15811},"_Extent":{"__isSmartRef__":true,"id":15812},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":15813},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_1.png","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"15810":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15811":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"15812":{"x":72,"y":72,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15813":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"15814":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"15815":{"morph":{"__isSmartRef__":true,"id":15808},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15816":{"x":-12,"y":-12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15817":{"partName":"CoderCharacter","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech/","comment":"An animated character with a Apple Macbook Air, hacking away and looking suspicious. He loves Latté and hacks Rails...he's a real hipster, living in Mission, SF.","changes":[{"__isSmartRef__":true,"id":15818},{"__isSmartRef__":true,"id":15820},{"__isSmartRef__":true,"id":15822},{"__isSmartRef__":true,"id":15824},{"__isSmartRef__":true,"id":15826},{"__isSmartRef__":true,"id":15828},{"__isSmartRef__":true,"id":15830}],"migrationLevel":4,"__SourceModuleName__":"Global.lively.PartsBin","revisionOnLoad":156414,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"15818":{"date":{"__isSmartRef__":true,"id":15819},"author":"lauritz","message":"extended his horizon minimally","id":"50EA136D-373D-4B07-9743-671C5D5FD786"},"15819":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:36:11 GMT+0200 (CEST)"},"15820":{"date":{"__isSmartRef__":true,"id":15821},"author":"tessi","message":"typo","id":"C3C7C127-AA94-4893-ACE9-14FE290D4CE1"},"15821":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:33:53 GMT+0200 (CEST)"},"15822":{"date":{"__isSmartRef__":true,"id":15823},"author":"tessi","message":"","id":"F17F7ABD-5B30-4809-9E08-0A11240FCE2B"},"15823":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:32:18 GMT+0200 (CEST)"},"15824":{"date":{"__isSmartRef__":true,"id":15825},"author":"tessi","message":"","id":"AC6C3961-CFFB-4C4A-8769-970359274337"},"15825":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:01:43 GMT+0200 (CEST)"},"15826":{"date":{"__isSmartRef__":true,"id":15827},"author":"tessi","message":"some soliloquize sentences for the awesome coder!","id":"892B001E-626A-4EE7-A217-E88C4E1F6088"},"15827":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:52:20 GMT+0200 (CEST)"},"15828":{"date":{"__isSmartRef__":true,"id":15829},"author":"lauritz","message":"no comment","id":"56F017FB-5032-49A5-A6C0-A856F2AB5B55"},"15829":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:23:49 GMT+0200 (CEST)"},"15830":{"date":{"__isSmartRef__":true,"id":15831},"author":"lauritz","message":"no comment","id":"52EB067D-BE9C-4E05-9599-5B3D0D663B9E"},"15831":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:30:38 GMT+0200 (CEST)"},"15832":{"soliloquize":{"__isSmartRef__":true,"id":15833}},"15833":{"varMapping":{"__isSmartRef__":true,"id":15834},"source":"function soliloquize() {\n this.soloSentences = this.soloSentences || [\n \"Wonder what the new iPony will be like\",\n \"Can i have some Mate pl0x?\",\n \"*click* *clack* *clack*\",\n \"Shouldn't this run faster?\",\n \"Wonder why people use Windows...\",\n \"Lets start a new programming language!\",\n \"Awesome!\",\n \"git rebase to the rescue!\",\n \"Array(16).join(\\\"wat\\\" - 1) + \\\" Batman!\\\"\",\n \"aww. screwed up the pointers\\n.. again!\",\n \"i need horn-rimmed glasses\",\n \"i'm no hipster.\",\n \"can i have a lattai\",\n \"everything you can do i can do better\",\n \"i can do everything better than you\",\n \"i studied at HPI\",\n \"oop is not for everyone\",\n \"it's spring after the java nuclear winter\",\n \"Is the company based in Mission?\",\n \"Who's that Alan Kay dude?\",\n \"I [github] code\"\n ]\n return this.soloSentences[Math.floor(Math.random() * this.soloSentences.length)]\n}","funcProperties":{"__isSmartRef__":true,"id":15835},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15834":{"this":{"__isSmartRef__":true,"id":15808}},"15835":{"timestamp":{"__isSmartRef__":true,"id":15836},"user":"lauritz","tags":[]},"15836":{"isSerializedDate":true,"string":"Thu Apr 26 2012 15:35:45 GMT+0200 (CEST)"},"15837":{"position":{"__isSmartRef__":true,"id":15838},"_Extent":{"__isSmartRef__":true,"id":15839},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":15840},"_Fill":{"__isSmartRef__":true,"id":15841},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":15842},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":15843},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"15838":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15839":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15840":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"15841":{"r":0,"g":0,"b":0,"a":0,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"15842":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"15843":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"15844":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15845":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph. A really blue one. Its amazing what you can build out of simple boxes.... Who needs stars when you got blue rectangles!","migrationLevel":4,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":15846},{"__isSmartRef__":true,"id":15848},{"__isSmartRef__":true,"id":15850},{"__isSmartRef__":true,"id":15852},{"__isSmartRef__":true,"id":15854},{"__isSmartRef__":true,"id":15856}],"revisionOnLoad":158846,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"15846":{"date":{"__isSmartRef__":true,"id":15847},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"15847":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"15848":{"date":{"__isSmartRef__":true,"id":15849},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"15849":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"15850":{"date":{"__isSmartRef__":true,"id":15851},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"15851":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"15852":{"date":{"__isSmartRef__":true,"id":15853},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"15853":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"15854":{"date":{"__isSmartRef__":true,"id":15855},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"15855":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"15856":{"date":{"__isSmartRef__":true,"id":15857},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"15857":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"15858":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"15859":{"morph":{"__isSmartRef__":true,"id":15807},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15860":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15861}},"15861":{"test01IsMorph":{"__isSmartRef__":true,"id":15862}},"15862":{"varMapping":{"__isSmartRef__":true,"id":15863},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":15864},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15863":{"this":{"__isSmartRef__":true,"id":15860}},"15864":{},"15865":{"die":{"__isSmartRef__":true,"id":15866},"reset":{"__isSmartRef__":true,"id":15869},"nextImage":{"__isSmartRef__":true,"id":15873},"start":{"__isSmartRef__":true,"id":15877}},"15866":{"varMapping":{"__isSmartRef__":true,"id":15867},"source":"function die() {\n this.nextImage()\n if (this.counter === 1) {\n this.character.animate(false);\n this.character.remove()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15868},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15867":{"this":{"__isSmartRef__":true,"id":15807}},"15868":{},"15869":{"varMapping":{"__isSmartRef__":true,"id":15870},"source":"function reset() {\n this.stopStepping()\n this.baseUrl = \"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/death_\"\n this.counter = 0\n this.image.setPosition(pt(-12,-12))\n this.image.disableEvents()\n this.nextImage()\n this.setPosition(pt(0,0))\n this.setBorderWidth(0)\n this.image.setVisible(false)\n}","funcProperties":{"__isSmartRef__":true,"id":15871},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15870":{"this":{"__isSmartRef__":true,"id":15807}},"15871":{"timestamp":{"__isSmartRef__":true,"id":15872},"user":"timfelgentreff","tags":[]},"15872":{"isSerializedDate":true,"string":"Fri May 04 2012 17:24:17 GMT+0200 (CEST)"},"15873":{"varMapping":{"__isSmartRef__":true,"id":15874},"source":"function nextImage() {\n this.counter = this.counter % 6 + 1\n this.image.setImageURL(this.baseUrl + this.counter + \".png\")\n}","funcProperties":{"__isSmartRef__":true,"id":15875},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15874":{"this":{"__isSmartRef__":true,"id":15807}},"15875":{"timestamp":{"__isSmartRef__":true,"id":15876},"user":"timfelgentreff","tags":[]},"15876":{"isSerializedDate":true,"string":"Fri May 04 2012 17:09:29 GMT+0200 (CEST)"},"15877":{"varMapping":{"__isSmartRef__":true,"id":15878},"source":"function start() {\n this.image.setVisible(true)\n this.startStepping(150, \"die\")\n}","funcProperties":{"__isSmartRef__":true,"id":15879},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15878":{"this":{"__isSmartRef__":true,"id":15807}},"15879":{"timestamp":{"__isSmartRef__":true,"id":15880},"user":"timfelgentreff","tags":[]},"15880":{"isSerializedDate":true,"string":"Fri May 04 2012 17:25:07 GMT+0200 (CEST)"},"15881":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":15882},"derivationIds":[null,"09D9B212-F744-4AE7-B38B-4A5C5288371F","6C6681FE-F923-46F9-AEB9-07333BDBD26B"],"id":"FDCF76BC-8D03-422E-9627-31127C0AB554","renderContextTable":{"__isSmartRef__":true,"id":15887},"eventHandler":{"__isSmartRef__":true,"id":15888},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":15889},"name":"Player","isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"#startLetters":"","prevScroll":[0,0],"partsBinMetaInfo":{"__isSmartRef__":true,"id":15890},"__SourceModuleName__":"Global.lively.morphic.Widgets","moved":true,"_Rotation":0,"_Scale":1,"isPlayer":true,"owner":{"__isSmartRef__":true,"id":15750},"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15897},"__LivelyClassName__":"lively.morphic.Image"},"15882":{"_Position":{"__isSmartRef__":true,"id":15883},"renderContextTable":{"__isSmartRef__":true,"id":15884},"_Extent":{"__isSmartRef__":true,"id":15885},"_ImageURL":"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media/player_south.gif","_Padding":{"__isSmartRef__":true,"id":15886},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"15883":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15884":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"15885":{"x":43.199999999999996,"y":72,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15886":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"15887":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"15888":{"morph":{"__isSmartRef__":true,"id":15881},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15889":{"x":6,"y":-5,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15890":{"partName":"Player","requiredModules":[],"partsSpaceName":"PartsBin/FreedomOfSpeech","comment":"A player character, which can face different directions","changes":[{"__isSmartRef__":true,"id":15891},{"__isSmartRef__":true,"id":15893},{"__isSmartRef__":true,"id":15895}],"migrationLevel":4,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"15891":{"date":{"__isSmartRef__":true,"id":15892},"author":"tessi","message":"no comment","id":"04C3B971-E7A7-48D8-9BB4-D2D0C01F4357"},"15892":{"isSerializedDate":true,"string":"Fri May 04 2012 17:00:59 GMT+0200 (CEST)"},"15893":{"date":{"__isSmartRef__":true,"id":15894},"author":"timfelgentreff","message":"avoid resetting image all the time","id":"828C5757-34C9-4ED5-BF71-136B71BD18F9"},"15894":{"isSerializedDate":true,"string":"Fri May 04 2012 17:44:22 GMT+0200 (CEST)"},"15895":{"date":{"__isSmartRef__":true,"id":15896},"author":"timfelgentreff","message":"no comment","id":"AB6EC246-0E78-43F0-A551-17F34378328F"},"15896":{"isSerializedDate":true,"string":"Fri May 04 2012 17:50:59 GMT+0200 (CEST)"},"15897":{"mediaURL":{"__isSmartRef__":true,"id":15898},"face":{"__isSmartRef__":true,"id":15902}},"15898":{"varMapping":{"__isSmartRef__":true,"id":15899},"source":"function mediaURL() {\n return \"http://lively-kernel.org/repository/webwerkstatt/projects/WebDev2012/Telautim/media\"\n}","funcProperties":{"__isSmartRef__":true,"id":15900},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15899":{"this":{"__isSmartRef__":true,"id":15881}},"15900":{"timestamp":{"__isSmartRef__":true,"id":15901},"user":"tessi","tags":[]},"15901":{"isSerializedDate":true,"string":"Fri May 04 2012 16:56:03 GMT+0200 (CEST)"},"15902":{"varMapping":{"__isSmartRef__":true,"id":15903},"source":"function face(direction /* north, south, east, or west */) {\n var directions = ['north', 'south', 'east', 'west']\n if ( directions.include(direction) ) {\n var newURL = this.mediaURL() + '/player_' + direction + '.gif'\n if (newURL !== this.getImageURL()) {\n this.setImageURL(newURL)\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15904},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15903":{"this":{"__isSmartRef__":true,"id":15881}},"15904":{"timestamp":{"__isSmartRef__":true,"id":15905},"user":"timfelgentreff","tags":[]},"15905":{"isSerializedDate":true,"string":"Fri May 04 2012 17:44:09 GMT+0200 (CEST)"},"15906":{"submorphs":[{"__isSmartRef__":true,"id":15907}],"scripts":[],"shape":{"__isSmartRef__":true,"id":15929},"id":"F198C75A-E246-4D2F-80FF-E85EE1BDEA21","renderContextTable":{"__isSmartRef__":true,"id":15936},"eventHandler":{"__isSmartRef__":true,"id":15937},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":15938},"__SourceModuleName__":"Global.lively.morphic.Core","showsHalos":false,"layout":{"__isSmartRef__":true,"id":15939},"name":"TextBubble1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3883},"derivationIds":[113,"07BC3F00-A1CC-4E18-8B69-527B6067A724","DE7B4D82-53D6-47AB-B640-FF3635F70AA7","99C53948-AA15-4796-B491-DB674F1EE087","58EDE5FE-6BAF-448F-B9DB-E94E1A69C992","2325F322-A469-433D-8288-7419BADD05F5"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_ClipMode":"visible","isBeingDragged":false,"text":{"__isSmartRef__":true,"id":15907},"isCopyMorphRef":true,"morphRefId":1,"_Visible":false,"moved":true,"_Rotation":0,"_Scale":1,"owner":{"__isSmartRef__":true,"id":15750},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15940},"__LivelyClassName__":"lively.morphic.Morph"},"15907":{"submorphs":[],"scripts":[],"id":"57FE6C88-7F45-4860-83B5-EF0A706BBC3E","shape":{"__isSmartRef__":true,"id":15908},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":15914},"_MaxTextWidth":null,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":15911},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Text","partsBinMetaInfo":{"__isSmartRef__":true,"id":15915},"textChunks":[{"__isSmartRef__":true,"id":15922}],"charsReplaced":"s","lastFindLoc":6,"prevScroll":[0,0],"renderContextTable":{"__isSmartRef__":true,"id":15924},"eventHandler":{"__isSmartRef__":true,"id":15925},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Padding":{"__isSmartRef__":true,"id":15926},"_ClipMode":"none","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","ECCF99AE-9763-4D68-9C21-0B5A520DB15D","2EA15529-B8A7-4D60-BAE3-8E14E934A428","3A910B2E-EF96-4264-95AF-E82F57C6DBFD","506A72F2-95FC-4677-B6D2-03CA2EC46DBB"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":null,"_MinTextHeight":null,"previousSelection":[2,2],"owner":{"__isSmartRef__":true,"id":15906},"isBeingDragged":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":15927},"isLabel":true,"_HandStyle":"default","allowInput":false,"eventsAreIgnored":true,"layout":{"__isSmartRef__":true,"id":15928},"_Rotation":0,"_Scale":1.002003004005006,"__LivelyClassName__":"lively.morphic.Text"},"15908":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":15909},"_Extent":{"__isSmartRef__":true,"id":15910},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":15911},"renderContextTable":{"__isSmartRef__":true,"id":15912},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":15913},"_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"15909":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15910":{"x":23,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"15911":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"15912":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"15913":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"15914":{"x":-28,"y":-42,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15915":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":15916},{"__isSmartRef__":true,"id":15918},{"__isSmartRef__":true,"id":15920}],"revisionOnLoad":154217,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"15916":{"date":{"__isSmartRef__":true,"id":15917},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"15917":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"15918":{"date":{"__isSmartRef__":true,"id":15919},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"15919":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"15920":{"date":{"__isSmartRef__":true,"id":15921},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"15921":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"15922":{"style":{"__isSmartRef__":true,"id":15923},"chunkOwner":{"__isSmartRef__":true,"id":15907},"_id":"_858","storedString":"...","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15923":{"whiteSpace":"pre","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15924":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"15925":{"morph":{"__isSmartRef__":true,"id":15907},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15926":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"15927":{"x":66,"y":-19,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15928":{"centeredHorizontal":true,"centeredVertical":true,"adjustForNewBounds":true},"15929":{"_Position":{"__isSmartRef__":true,"id":15930},"renderContextTable":{"__isSmartRef__":true,"id":15931},"_Extent":{"__isSmartRef__":true,"id":15932},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":15933},"_BorderWidth":2.444,"_BorderColor":{"__isSmartRef__":true,"id":15934},"_Fill":{"__isSmartRef__":true,"id":15935},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"_Opacity":0.6818000000000001,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Ellipse"},"15930":{"x":-50,"y":-50,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15931":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"15932":{"x":73,"y":47,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"15933":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"15934":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"15935":{"r":0.921,"g":0.921,"b":0.921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"15936":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"15937":{"morph":{"__isSmartRef__":true,"id":15906},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15938":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15939":{"resizeWidth":true,"resizeHeight":true},"15940":{"say":{"__isSmartRef__":true,"id":15941},"showBubbleTime":{"__isSmartRef__":true,"id":15945},"disappear":{"__isSmartRef__":true,"id":15949},"reset":{"__isSmartRef__":true,"id":15953},"hide":{"__isSmartRef__":true,"id":15957}},"15941":{"varMapping":{"__isSmartRef__":true,"id":15942},"source":"function say(aString) {\n var textExtent, _this = this\n if (aString !== undefined ) {\n this.text.setTextString(aString)\n } else {\n this.text.setTextString(\"TextBubble\")\n }\n this.text.getTextChunks().first().styleText({whiteSpace: \"pre\"})\n this.text.fit()\n textExtent = this.text.getExtent()\n textExtent.y = this.text.getTextChunks().first().chunkNode.parentElement.scrollHeight\n this.setExtent(pt(textExtent.x + 50, textExtent.y + 25))\n this.setVisible(true)\n if (aString !== undefined ) {\n window.setTimeout(function(){ _this.disappear(aString) }, this.showBubbleTime())\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15943},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15942":{"this":{"__isSmartRef__":true,"id":15906}},"15943":{"timestamp":{"__isSmartRef__":true,"id":15944},"user":"tessi","tags":[]},"15944":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:16:26 GMT+0200 (CEST)"},"15945":{"varMapping":{"__isSmartRef__":true,"id":15946},"source":"function showBubbleTime() {\n return 6000\n}","funcProperties":{"__isSmartRef__":true,"id":15947},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15946":{"this":{"__isSmartRef__":true,"id":15906}},"15947":{"timestamp":{"__isSmartRef__":true,"id":15948},"user":"timfelgentreff","tags":[]},"15948":{"isSerializedDate":true,"string":"Sat May 05 2012 19:26:43 GMT+0200 (CEST)"},"15949":{"varMapping":{"__isSmartRef__":true,"id":15950},"source":"function disappear(oldText) {\n if (this.text.getTextString() == oldText) {\n this.hide()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15951},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15950":{"this":{"__isSmartRef__":true,"id":15906}},"15951":{"timestamp":{"__isSmartRef__":true,"id":15952},"user":"tessi","tags":[]},"15952":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:15:35 GMT+0200 (CEST)"},"15953":{"varMapping":{"__isSmartRef__":true,"id":15954},"source":"function reset() {\n this.say()\n}","funcProperties":{"__isSmartRef__":true,"id":15955},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15954":{"this":{"__isSmartRef__":true,"id":15906}},"15955":{"timestamp":{"__isSmartRef__":true,"id":15956},"user":"tessi","tags":[]},"15956":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:17:22 GMT+0200 (CEST)"},"15957":{"varMapping":{"__isSmartRef__":true,"id":15958},"source":"function hide() {\n this.setVisible(false)\n}","funcProperties":{"__isSmartRef__":true,"id":15959},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15958":{"this":{"__isSmartRef__":true,"id":15906}},"15959":{"timestamp":{"__isSmartRef__":true,"id":15960},"user":"tessi","tags":[]},"15960":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:15:24 GMT+0200 (CEST)"},"15961":{"target":{"__isSmartRef__":true,"id":15750},"selector":"doSomething","args":[{"__isSmartRef__":true,"id":15962}],"stopped":false,"tickTime":3000,"__SourceModuleName__":"Global.lively.morphic.Core","suspended":false,"__LivelyClassName__":"lively.morphic.TargetScript"},"15962":{},"15963":{"target":{"__isSmartRef__":true,"id":15750},"selector":"aStarWalkPath","args":[[{"__isSmartRef__":true,"id":3}]],"stopped":true,"tickTime":10,"__SourceModuleName__":"Global.lively.morphic.Core","suspended":false,"__LivelyClassName__":"lively.morphic.TargetScript"},"15964":{"_Position":{"__isSmartRef__":true,"id":15965},"renderContextTable":{"__isSmartRef__":true,"id":15966},"_Extent":{"__isSmartRef__":true,"id":15967},"_Padding":{"__isSmartRef__":true,"id":15968},"_NodeClass":["Morph","Box"],"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":15969},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"15965":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15966":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"15967":{"x":48,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15968":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"15969":{"r":0.8,"g":0.8,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"15970":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"15971":{"morph":{"__isSmartRef__":true,"id":15750},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15972":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15973":{"x":0,"y":1,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"15974":{"setDevStyle":{"__isSmartRef__":true,"id":15975},"setNormalStyle":{"__isSmartRef__":true,"id":15979},"tileSize":{"__isSmartRef__":true,"id":15983},"become":{"__isSmartRef__":true,"id":15987},"walkUntilReached":{"__isSmartRef__":true,"id":15991},"onMouseDown":{"__isSmartRef__":true,"id":15995},"walkTo":{"__isSmartRef__":true,"id":16003},"currentTile":{"__isSmartRef__":true,"id":16007},"toolbox":{"__isSmartRef__":true,"id":16011},"setCurrentSpeed":{"__isSmartRef__":true,"id":16015},"getCurrentSpeed":{"__isSmartRef__":true,"id":16019},"isWalking":{"__isSmartRef__":true,"id":16023},"select":{"__isSmartRef__":true,"id":16027},"deselect":{"__isSmartRef__":true,"id":16031},"becomeRandomCharacter":{"__isSmartRef__":true,"id":16035},"reset":{"__isSmartRef__":true,"id":16039},"setDirectionToTile":{"__isSmartRef__":true,"id":16043},"getDirection":{"__isSmartRef__":true,"id":16047},"setDirection":{"__isSmartRef__":true,"id":16051},"setPosition":{"__isSmartRef__":true,"id":16055},"say":{"__isSmartRef__":true,"id":16063},"soliloquize":{"__isSmartRef__":true,"id":16067},"characterType":{"__isSmartRef__":true,"id":16071},"animate":{"__isSmartRef__":true,"id":16075},"doSomething":{"__isSmartRef__":true,"id":16079},"map":{"__isSmartRef__":true,"id":16083},"game":{"__isSmartRef__":true,"id":16087},"setup":{"__isSmartRef__":true,"id":16091},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":16095},"startConversation":{"__isSmartRef__":true,"id":16103},"startConversationWith":{"__isSmartRef__":true,"id":16107},"shallowCopy":{"__isSmartRef__":true,"id":16111},"conversation":{"__isSmartRef__":true,"id":16115},"answer":{"__isSmartRef__":true,"id":16119},"hideTextBubble":{"__isSmartRef__":true,"id":16123},"aStar":{"__isSmartRef__":true,"id":16127},"aStarHeuristicCostEstimate":{"__isSmartRef__":true,"id":16131},"aStarWalkPath":{"__isSmartRef__":true,"id":16135},"chatBot":{"__isSmartRef__":true,"id":16139},"getHit":{"__isSmartRef__":true,"id":16143},"becomePlayer":{"__isSmartRef__":true,"id":16147},"fight":{"__isSmartRef__":true,"id":16151},"fightPhrases":{"__isSmartRef__":true,"id":16155},"randomQuestions":{"__isSmartRef__":true,"id":16159},"randomAnswersFor":{"__isSmartRef__":true,"id":16163},"executeFightTurnAsking":{"__isSmartRef__":true,"id":16167},"heal":{"__isSmartRef__":true,"id":16171},"isDead":{"__isSmartRef__":true,"id":16175}},"15975":{"varMapping":{"__isSmartRef__":true,"id":15976},"source":"function setDevStyle() {\n if (this.map()) {\n this.setExtent(this.tileSize())\n }\n this.setFill(null)\n this.shape.setBorderColor(Color.yellow)\n}","funcProperties":{"__isSmartRef__":true,"id":15977},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15978},"__LivelyClassName__":"lively.Closure"},"15976":{"this":{"__isSmartRef__":true,"id":15750}},"15977":{"timestamp":{"__isSmartRef__":true,"id":4151},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4152},"declaredObject":""},"15978":{"originalFunc":{"__isSmartRef__":true,"id":4152}},"15979":{"varMapping":{"__isSmartRef__":true,"id":15980},"source":"function setNormalStyle() {\n this.setDevStyle()\n this.shape.setBorderColor(new Color.rgba(0,0,0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":15981},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15982},"__LivelyClassName__":"lively.Closure"},"15980":{"this":{"__isSmartRef__":true,"id":15750}},"15981":{"timestamp":{"__isSmartRef__":true,"id":4299},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4296},"declaredObject":""},"15982":{"originalFunc":{"__isSmartRef__":true,"id":4296}},"15983":{"varMapping":{"__isSmartRef__":true,"id":15984},"source":"function tileSize() {\n return this.map().tileSize()\n}","funcProperties":{"__isSmartRef__":true,"id":15985},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15986},"__LivelyClassName__":"lively.Closure"},"15984":{"this":{"__isSmartRef__":true,"id":15750}},"15985":{"timestamp":{"__isSmartRef__":true,"id":4303},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4300},"declaredObject":""},"15986":{"originalFunc":{"__isSmartRef__":true,"id":4300}},"15987":{"varMapping":{"__isSmartRef__":true,"id":15988},"source":"function become(player) {\n if (this.character) {\n this.character.remove()\n this.character = null\n }\n if (!player) { return this }\n \n this.character = this.toolbox(player + \"Character\")\n if (this.character) {\n // image should be 150% of a tile\n this.character.setExtent(this.tileSize().scaleBy(1.5))\n // -25% offset to center character on tile\n this.character.setPositionTopLeft(this.tileSize().scaleBy(-0.25))\n this.addMorph(this.character)\n this.character.ignoreEvents()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15989},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15990},"__LivelyClassName__":"lively.Closure"},"15988":{"this":{"__isSmartRef__":true,"id":15750}},"15989":{"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4304},"declaredObject":""},"15990":{"originalFunc":{"__isSmartRef__":true,"id":4304}},"15991":{"varMapping":{"__isSmartRef__":true,"id":15992},"source":"function walkUntilReached(tile) {\n var minPositive = function (a, b) {\n a = Math.abs(a), b = Math.abs(b)\n return a ? (b ? Math.min(a, b) : a) : b\n }\n\n // this.setPosition(pt(0,0))\n if (this.getPosition().equals(tile.getPosition())) {\n if (this.walkScript) { this.walkScript.stop() }\n this.setDirection(pt(0,0))\n tile.enterTile(this)\n } else {\n if (this.currentTile() !== tile) {\n this.setDirectionToTile(tile)\n var nextNeighbours = this.currentTile().neighboursInDirection(this.getDirection())\n if (nextNeighbours.any(function (each) { return each.isObstacle() })) {\n this.walkTo(this.currentTile())\n } else {\n var directionVector = this.getPosition().subPt(tile.getPosition()),\n maxSpeed = minPositive(directionVector.x, directionVector.y),\n speed = Math.min(maxSpeed, this.getCurrentSpeed())\n this.moveBy(this.getDirection().scaleBy(speed))\n }\n } else {\n var directionVector = this.getPosition().subPt(tile.getPosition()),\n maxSpeed = minPositive(directionVector.x, directionVector.y),\n speed = Math.min(maxSpeed, this.getCurrentSpeed())\n this.moveBy(this.getDirection().scaleBy(speed))\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15993},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15994},"__LivelyClassName__":"lively.Closure"},"15992":{"this":{"__isSmartRef__":true,"id":15750}},"15993":{"timestamp":{"__isSmartRef__":true,"id":4310},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4307},"declaredObject":""},"15994":{"originalFunc":{"__isSmartRef__":true,"id":4307}},"15995":{"varMapping":{"__isSmartRef__":true,"id":15996},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.game()) {\n if (this.game().selectedUnit !== this) {\n if (this.game().selectedUnit !== null) {\n this.game().selectedUnit.deselect()\n }\n this.select()\n } else {\n this.deselect()\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16001},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16002},"__LivelyClassName__":"lively.Closure"},"15996":{"this":{"__isSmartRef__":true,"id":15750},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15997}},"15997":{"$super":{"__isSmartRef__":true,"id":15998}},"15998":{"varMapping":{"__isSmartRef__":true,"id":15999},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":16000},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15999":{"obj":{"__isSmartRef__":true,"id":15750},"name":"onMouseDown"},"16000":{},"16001":{"timestamp":{"__isSmartRef__":true,"id":4318},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4311},"declaredObject":""},"16002":{"originalFunc":{"__isSmartRef__":true,"id":4311}},"16003":{"varMapping":{"__isSmartRef__":true,"id":16004},"source":"function walkTo(tile) {\n this.lastSpeedTimestamp = Date.now()\n var path = this.aStar(tile),\n that = this\n if (path.length === 0) {\n alertOK(\"No path found\")\n } else {\n this.walkScript = this.startStepping(10, \"aStarWalkPath\", path)\n }\n // this.walkScript = this.startStepping(10, \"walkUntilReached\", tile)\n this.currentTile().leaveTile(this)\n}","funcProperties":{"__isSmartRef__":true,"id":16005},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16006},"__LivelyClassName__":"lively.Closure"},"16004":{"this":{"__isSmartRef__":true,"id":15750}},"16005":{"timestamp":{"__isSmartRef__":true,"id":4322},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4319},"declaredObject":""},"16006":{"originalFunc":{"__isSmartRef__":true,"id":4319}},"16007":{"varMapping":{"__isSmartRef__":true,"id":16008},"source":"function currentTile() {\n if ( !this.character || !this.map() ) { return null }\n return this.map().getTileForPosition(\n this.getPosition().addPt(this.character.getBounds().center()))\n}","funcProperties":{"__isSmartRef__":true,"id":16009},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16010},"__LivelyClassName__":"lively.Closure"},"16008":{"this":{"__isSmartRef__":true,"id":15750}},"16009":{"timestamp":{"__isSmartRef__":true,"id":4326},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4323},"declaredObject":""},"16010":{"originalFunc":{"__isSmartRef__":true,"id":4323}},"16011":{"varMapping":{"__isSmartRef__":true,"id":16012},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":16013},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16014},"__LivelyClassName__":"lively.Closure"},"16012":{"this":{"__isSmartRef__":true,"id":15750}},"16013":{"timestamp":{"__isSmartRef__":true,"id":4330},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4327},"declaredObject":""},"16014":{"originalFunc":{"__isSmartRef__":true,"id":4327}},"16015":{"varMapping":{"__isSmartRef__":true,"id":16016},"source":"function setCurrentSpeed(arg) {\n this.currentSpeed = arg\n}","funcProperties":{"__isSmartRef__":true,"id":16017},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16018},"__LivelyClassName__":"lively.Closure"},"16016":{"this":{"__isSmartRef__":true,"id":15750}},"16017":{"timestamp":{"__isSmartRef__":true,"id":4334},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4331},"declaredObject":""},"16018":{"originalFunc":{"__isSmartRef__":true,"id":4331}},"16019":{"varMapping":{"__isSmartRef__":true,"id":16020},"source":"function getCurrentSpeed() {\n var multiplier = (Date.now() - this.lastSpeedTimestamp) / 10\n this.lastSpeedTimestamp = Date.now()\n return multiplier\n}","funcProperties":{"__isSmartRef__":true,"id":16021},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16022},"__LivelyClassName__":"lively.Closure"},"16020":{"this":{"__isSmartRef__":true,"id":15750}},"16021":{"timestamp":{"__isSmartRef__":true,"id":4338},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4335},"declaredObject":""},"16022":{"originalFunc":{"__isSmartRef__":true,"id":4335}},"16023":{"varMapping":{"__isSmartRef__":true,"id":16024},"source":"function isWalking() {\n return !this.getDirection().equals(pt(0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":16025},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16026},"__LivelyClassName__":"lively.Closure"},"16024":{"this":{"__isSmartRef__":true,"id":15750}},"16025":{"timestamp":{"__isSmartRef__":true,"id":4342},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4339},"declaredObject":""},"16026":{"originalFunc":{"__isSmartRef__":true,"id":4339}},"16027":{"varMapping":{"__isSmartRef__":true,"id":16028},"source":"function select() {\n this.game().selectedUnit = this\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":16029},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16030},"__LivelyClassName__":"lively.Closure"},"16028":{"this":{"__isSmartRef__":true,"id":15750}},"16029":{"timestamp":{"__isSmartRef__":true,"id":4346},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4343},"declaredObject":""},"16030":{"originalFunc":{"__isSmartRef__":true,"id":4343}},"16031":{"varMapping":{"__isSmartRef__":true,"id":16032},"source":"function deselect() {\n this.game().selectedUnit = null\n this.setNormalStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":16033},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16034},"__LivelyClassName__":"lively.Closure"},"16032":{"this":{"__isSmartRef__":true,"id":15750}},"16033":{"timestamp":{"__isSmartRef__":true,"id":4350},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4347},"declaredObject":""},"16034":{"originalFunc":{"__isSmartRef__":true,"id":4347}},"16035":{"varMapping":{"__isSmartRef__":true,"id":16036},"source":"function becomeRandomCharacter() {\n var characterNames = this.game().partNamesEndingWith(\"Character\")\n this.become(characterNames[Math.round(Math.random() * (characterNames.length - 1))])\n}","funcProperties":{"__isSmartRef__":true,"id":16037},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16038},"__LivelyClassName__":"lively.Closure"},"16036":{"this":{"__isSmartRef__":true,"id":15750}},"16037":{"timestamp":{"__isSmartRef__":true,"id":4354},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4351},"declaredObject":""},"16038":{"originalFunc":{"__isSmartRef__":true,"id":4351}},"16039":{"varMapping":{"__isSmartRef__":true,"id":16040},"source":"function reset() {\n this.become(null)\n this.submorphs.invoke(\"remove\")\n this.stopStepping()\n this.conversationScript = this.walkScript = this.animateScript = undefined\n this.lastAnswer = this.conversationTurn = this.textBubble = this.isBusy = undefined\n this.setDevStyle()\n this.addMorph(this.lifeBar)\n this.lifeBar.reset()\n this.addMorph(this.deathAnimation)\n this.deathAnimation.reset()\n}","funcProperties":{"__isSmartRef__":true,"id":16041},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16042},"__LivelyClassName__":"lively.Closure"},"16040":{"this":{"__isSmartRef__":true,"id":15750}},"16041":{"timestamp":{"__isSmartRef__":true,"id":4358},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4355},"declaredObject":""},"16042":{"originalFunc":{"__isSmartRef__":true,"id":4355}},"16043":{"varMapping":{"__isSmartRef__":true,"id":16044},"source":"function setDirectionToTile(tile) {\n var direction = tile.getPosition().subPt(this.getPosition()),\n xDirection = direction.x / Math.abs(direction.x),\n yDirection = direction.y / Math.abs(direction.y)\n this.setDirection(pt(xDirection, yDirection))\n}","funcProperties":{"__isSmartRef__":true,"id":16045},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16046},"__LivelyClassName__":"lively.Closure"},"16044":{"this":{"__isSmartRef__":true,"id":15750}},"16045":{"timestamp":{"__isSmartRef__":true,"id":4362},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4359},"declaredObject":""},"16046":{"originalFunc":{"__isSmartRef__":true,"id":4359}},"16047":{"varMapping":{"__isSmartRef__":true,"id":16048},"source":"function getDirection() {\n return this.direction ? this.direction : pt(0,0)\n}","funcProperties":{"__isSmartRef__":true,"id":16049},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16050},"__LivelyClassName__":"lively.Closure"},"16048":{"this":{"__isSmartRef__":true,"id":15750}},"16049":{"timestamp":{"__isSmartRef__":true,"id":4366},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4363},"declaredObject":""},"16050":{"originalFunc":{"__isSmartRef__":true,"id":4363}},"16051":{"varMapping":{"__isSmartRef__":true,"id":16052},"source":"function setDirection(arg) {\n this.direction = arg\n if (this.character && this.character.face) {\n if (arg.x === 0) {\n arg.y > 0 ? this.character.face(\"south\") : this.character.face(\"north\")\n } else if (arg.x === -1) {\n this.character.face(\"west\")\n } else {\n this.character.face(\"east\")\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16053},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16054},"__LivelyClassName__":"lively.Closure"},"16052":{"this":{"__isSmartRef__":true,"id":15750}},"16053":{"timestamp":{"__isSmartRef__":true,"id":4370},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4367},"declaredObject":""},"16054":{"originalFunc":{"__isSmartRef__":true,"id":4367}},"16055":{"varMapping":{"__isSmartRef__":true,"id":16056},"source":"function setPosition(point) {\n $super(point)\n if (this.game()) {\n this.renderContext().morphNode.style.zIndex = this.game().zIndexForThings() + point.y\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16061},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16062},"__LivelyClassName__":"lively.Closure"},"16056":{"this":{"__isSmartRef__":true,"id":15750},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16057}},"16057":{"$super":{"__isSmartRef__":true,"id":16058}},"16058":{"varMapping":{"__isSmartRef__":true,"id":16059},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":16060},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16059":{"obj":{"__isSmartRef__":true,"id":15750},"name":"setPosition"},"16060":{},"16061":{"timestamp":{"__isSmartRef__":true,"id":4378},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4371},"declaredObject":""},"16062":{"originalFunc":{"__isSmartRef__":true,"id":4371}},"16063":{"varMapping":{"__isSmartRef__":true,"id":16064},"source":"function say(aString) {\n if ( !aString ) { return }\n if (!this.textBubble) {\n this.textBubble = this.toolbox(\"TextBubble\")\n this.addMorph(this.textBubble)\n }\n this.textBubble.say(aString)\n}","funcProperties":{"__isSmartRef__":true,"id":16065},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16066},"__LivelyClassName__":"lively.Closure"},"16064":{"this":{"__isSmartRef__":true,"id":15750}},"16065":{"timestamp":{"__isSmartRef__":true,"id":4382},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4379},"declaredObject":""},"16066":{"originalFunc":{"__isSmartRef__":true,"id":4379}},"16067":{"varMapping":{"__isSmartRef__":true,"id":16068},"source":"function soliloquize() {\n this.isBusy = true\n // talk to self\n var type = this.characterType()\n if ( type && type.soliloquize ) {\n this.say(type.soliloquize())\n } else {\n this.say(\"...\")\n }\n this.isBusy = false\n}","funcProperties":{"__isSmartRef__":true,"id":16069},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16070},"__LivelyClassName__":"lively.Closure"},"16068":{"this":{"__isSmartRef__":true,"id":15750}},"16069":{"timestamp":{"__isSmartRef__":true,"id":4386},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4383},"declaredObject":""},"16070":{"originalFunc":{"__isSmartRef__":true,"id":4383}},"16071":{"varMapping":{"__isSmartRef__":true,"id":16072},"source":"function characterType() {\n return this.character\n}","funcProperties":{"__isSmartRef__":true,"id":16073},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16074},"__LivelyClassName__":"lively.Closure"},"16072":{"this":{"__isSmartRef__":true,"id":15750}},"16073":{"timestamp":{"__isSmartRef__":true,"id":4390},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4387},"declaredObject":""},"16074":{"originalFunc":{"__isSmartRef__":true,"id":4387}},"16075":{"varMapping":{"__isSmartRef__":true,"id":16076},"source":"function animate(bool) {\n if (bool || (bool === undefined)) {\n this.animateScript = this.startStepping(3000, \"doSomething\", {})\n } else if ( this.animateScript ){\n this.animateScript.stop()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16077},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16078},"__LivelyClassName__":"lively.Closure"},"16076":{"this":{"__isSmartRef__":true,"id":15750}},"16077":{"timestamp":{"__isSmartRef__":true,"id":4394},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4391},"declaredObject":""},"16078":{"originalFunc":{"__isSmartRef__":true,"id":4391}},"16079":{"varMapping":{"__isSmartRef__":true,"id":16080},"source":"function doSomething() {\n var r = Math.random()\n if (this.isBusy) { return }\n if (r < 0.1 && r >= 0.03 ) {\n this.startConversation()\n } else if (r < 0.03 ) {\n this.soliloquize()\n } else if (this.character.isPlayer) {\n this.fight()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16081},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16082},"__LivelyClassName__":"lively.Closure"},"16080":{"this":{"__isSmartRef__":true,"id":15750}},"16081":{"timestamp":{"__isSmartRef__":true,"id":4398},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4395},"declaredObject":""},"16082":{"originalFunc":{"__isSmartRef__":true,"id":4395}},"16083":{"varMapping":{"__isSmartRef__":true,"id":16084},"source":"function map() {\n return this.owner && this.owner.isMap ? this.owner : undefined\n}","funcProperties":{"__isSmartRef__":true,"id":16085},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16086},"__LivelyClassName__":"lively.Closure"},"16084":{"this":{"__isSmartRef__":true,"id":15750}},"16085":{"timestamp":{"__isSmartRef__":true,"id":4402},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4399},"declaredObject":""},"16086":{"originalFunc":{"__isSmartRef__":true,"id":4399}},"16087":{"varMapping":{"__isSmartRef__":true,"id":16088},"source":"function game() {\n return this.map() ? this.map().game() : undefined\n}","funcProperties":{"__isSmartRef__":true,"id":16089},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16090},"__LivelyClassName__":"lively.Closure"},"16088":{"this":{"__isSmartRef__":true,"id":15750}},"16089":{"timestamp":{"__isSmartRef__":true,"id":4406},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4403},"declaredObject":""},"16090":{"originalFunc":{"__isSmartRef__":true,"id":4403}},"16091":{"varMapping":{"__isSmartRef__":true,"id":16092},"source":"function setup() {\n this.becomeRandomCharacter()\n this.animate()\n}","funcProperties":{"__isSmartRef__":true,"id":16093},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16094},"__LivelyClassName__":"lively.Closure"},"16092":{"this":{"__isSmartRef__":true,"id":15750}},"16093":{"timestamp":{"__isSmartRef__":true,"id":4410},"user":"undefined","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4407},"declaredObject":""},"16094":{"originalFunc":{"__isSmartRef__":true,"id":4407}},"16095":{"varMapping":{"__isSmartRef__":true,"id":16096},"source":"function copyToPartsBinWithUserRequest() {\n this.reset()\n $super()\n}","funcProperties":{"__isSmartRef__":true,"id":16101},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16102},"__LivelyClassName__":"lively.Closure"},"16096":{"this":{"__isSmartRef__":true,"id":15750},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16097}},"16097":{"$super":{"__isSmartRef__":true,"id":16098}},"16098":{"varMapping":{"__isSmartRef__":true,"id":16099},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":16100},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16099":{"obj":{"__isSmartRef__":true,"id":15750},"name":"copyToPartsBinWithUserRequest"},"16100":{},"16101":{"timestamp":{"__isSmartRef__":true,"id":4418},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4411},"declaredObject":""},"16102":{"originalFunc":{"__isSmartRef__":true,"id":4411}},"16103":{"varMapping":{"__isSmartRef__":true,"id":16104},"source":"function startConversation() {\n this.isBusy = true\n var persons = []\n this.currentTile().neighbours().each(function(tile) {\n persons.pushAll(tile.characters())\n })\n persons = persons.select(function(each) { return !each.isBusy })\n if (persons.length > 0) {\n this.startConversationWith(persons[Math.floor(Math.random()*persons.length)])\n } else {\n this.isBusy = false\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16105},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16106},"__LivelyClassName__":"lively.Closure"},"16104":{"this":{"__isSmartRef__":true,"id":15750}},"16105":{"timestamp":{"__isSmartRef__":true,"id":4422},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4419},"declaredObject":""},"16106":{"originalFunc":{"__isSmartRef__":true,"id":4419}},"16107":{"varMapping":{"__isSmartRef__":true,"id":16108},"source":"function startConversationWith(character) {\n // I serve as the \"conversation host\" while the other character remains passive\n // The other character is controlled by me\n this.conversationScript = this.startStepping(4000, \"conversation\", {other: character})\n}","funcProperties":{"__isSmartRef__":true,"id":16109},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16110},"__LivelyClassName__":"lively.Closure"},"16108":{"this":{"__isSmartRef__":true,"id":15750}},"16109":{"timestamp":{"__isSmartRef__":true,"id":4426},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4423},"declaredObject":""},"16110":{"originalFunc":{"__isSmartRef__":true,"id":4423}},"16111":{"varMapping":{"__isSmartRef__":true,"id":16112},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // full copy for death animation and life bar\n copy.lifeBar = this.lifeBar.copy()\n copy.lifeBar.character = copy\n copy.addMorph(copy.lifeBar)\n copy.deathAnimation = this.deathAnimation.copy()\n copy.deathAnimation.character = copy\n copy.addMorph(copy.deathAnimation)\n\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":16113},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16114},"__LivelyClassName__":"lively.Closure"},"16112":{"this":{"__isSmartRef__":true,"id":15750}},"16113":{"timestamp":{"__isSmartRef__":true,"id":4430},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4427},"declaredObject":""},"16114":{"originalFunc":{"__isSmartRef__":true,"id":4427}},"16115":{"varMapping":{"__isSmartRef__":true,"id":16116},"source":"function conversation(args) {\n var other = args.other, a, b, stopConversation\n if (this.conversationTurn) {\n a = this; b = other\n } else {\n a = other; b = this\n }\n [a,b].invoke(\"hideTextBubble\")\n if (this.lastAnswer == null) {\n this.conversationScript.stop()\n this.lastAnswer = a.answer(undefined, b, true)\n if (this.lastAnswer) { a.say(this.lastAnswer) }\n var that = this\n setTimeout(function() {\n a.hideTextBubble()\n that.lastAnswer = b.answer(that.lastAnswer, a, true)\n if (that.lastAnswer) { b.say(that.lastAnswer) }\n a.isBusy = false\n b.isBusy = false\n }, 4000)\n }\n this.lastAnswer = a.answer(this.lastAnswer, b, false)\n if (this.lastAnswer) { a.say(this.lastAnswer) }\n this.conversationTurn = !this.conversationTurn\n}","funcProperties":{"__isSmartRef__":true,"id":16117},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16118},"__LivelyClassName__":"lively.Closure"},"16116":{"this":{"__isSmartRef__":true,"id":15750}},"16117":{"timestamp":{"__isSmartRef__":true,"id":4434},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4431},"declaredObject":""},"16118":{"originalFunc":{"__isSmartRef__":true,"id":4431}},"16119":{"varMapping":{"__isSmartRef__":true,"id":16120},"source":"function answer(lastSaid, other, sayGoodbye) {\n // either return a string or null to indicate that you want to stop the conversation\n // when sayGoodbye-flag is set, this is the last answer-call for this conversation\n var type = this.characterType()\n if ( type && type.answer ) {\n return type.answer(lastSaid, other, sayGoodbye)\n } else {\n if (sayGoodbye) {\n return \"Goodbye!\"\n } else {\n if ( Math.random() > 0.2 ) {\n return this.chatBot().answerTo(lastSaid);\n }\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":16121},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16122},"__LivelyClassName__":"lively.Closure"},"16120":{"this":{"__isSmartRef__":true,"id":15750}},"16121":{"timestamp":{"__isSmartRef__":true,"id":4438},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4435},"declaredObject":""},"16122":{"originalFunc":{"__isSmartRef__":true,"id":4435}},"16123":{"varMapping":{"__isSmartRef__":true,"id":16124},"source":"function hideTextBubble() {\n if (this.textBubble) {\n this.textBubble.hide()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16125},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16126},"__LivelyClassName__":"lively.Closure"},"16124":{"this":{"__isSmartRef__":true,"id":15750}},"16125":{"timestamp":{"__isSmartRef__":true,"id":4442},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4439},"declaredObject":""},"16126":{"originalFunc":{"__isSmartRef__":true,"id":4439}},"16127":{"varMapping":{"__isSmartRef__":true,"id":16128},"source":"function aStar(goal) {\n var that = this,\n start = this.currentTile(),\n closedset = [],\n openset = [start], // The set of tentative nodes to be evaluated\n came_from = {}, // The map of navigated nodes.\n g_score = {}, // general cost along best known path (as the bird flies)\n h_score = {}, // heuristic cost - used to drive parameters\n f_score = {} // sum of heuristic and general cost\n\n g_score[start] = 0 // Cost from start along best known path.\n h_score[start] = this.aStarHeuristicCostEstimate(start, goal)\n f_score[start] = g_score[start] + h_score[start] // Estimated total cost from start to goal\n\n while (openset.length > 0) { // Search until we have nothing more to search\n // Pick the next best scored candidate\n var current = openset.sortBy(function (e) { return f_score[e] }).first()\n\n if (current === goal) { // we found a path, construct the whole path and return\n var path = [],\n current_node = current\n while (came_from[current_node]) {\n path.push(current_node)\n current_node = came_from[current_node]\n }\n path.push(current_node)\n return path.reverse()\n }\n\n // We haven't found a path, mark the candidate as checked\n openset = openset.without(current)\n closedset.push(current)\n\n // check all neighbours\n current.neighboursReachableFromHere().each(function (neighbour) {\n if (!closedset.member(neighbour)) {\n // this neighbour can be walked upon and we haven't checked it before\n // assign it a score via the current path\n var tentative_g_score = g_score[current] + current.distanceTo(neighbour).r(),\n tentative_is_better = true\n\n if (!openset.member(neighbour)) {\n // we haven't given this a score before, give it a heuristic score\n openset.push(neighbour)\n h_score[neighbour] = that.aStarHeuristicCostEstimate(neighbour, goal)\n } else if (tentative_g_score >= g_score[neighbour]) {\n // we have given a better score before, this one can be dismissed\n tentative_is_better = false\n }\n\n if (tentative_is_better === true) {\n // the new score we found for this neighbour is better than the previous\n // set the new score and the new path\n came_from[neighbour] = current\n g_score[neighbour] = tentative_g_score\n f_score[neighbour] = g_score[neighbour] + h_score[neighbour]\n }\n }\n })\n }\n return []\n}","funcProperties":{"__isSmartRef__":true,"id":16129},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16130},"__LivelyClassName__":"lively.Closure"},"16128":{"this":{"__isSmartRef__":true,"id":15750}},"16129":{"timestamp":{"__isSmartRef__":true,"id":4446},"user":"timfelgentreff","tags":["pathfinding"],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4443},"declaredObject":""},"16130":{"originalFunc":{"__isSmartRef__":true,"id":4443}},"16131":{"varMapping":{"__isSmartRef__":true,"id":16132},"source":"function aStarHeuristicCostEstimate(from, to) {\n // this should be monotonic and consistent\n // see comment to: http://en.wikipedia.org/wiki/A*_search_algorithm#Pseudocode\n return 0\n}","funcProperties":{"__isSmartRef__":true,"id":16133},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16134},"__LivelyClassName__":"lively.Closure"},"16132":{"this":{"__isSmartRef__":true,"id":15750}},"16133":{"timestamp":{"__isSmartRef__":true,"id":4450},"user":"timfelgentreff","tags":["pathfinding"],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4447},"declaredObject":""},"16134":{"originalFunc":{"__isSmartRef__":true,"id":4447}},"16135":{"varMapping":{"__isSmartRef__":true,"id":16136},"source":"function aStarWalkPath(path) {\n var minPositive = function (a, b) {\n a = Math.abs(a), b = Math.abs(b)\n return a ? (b ? Math.min(a, b) : a) : b\n }\n\n var finalTile = path.last(),\n nextTile = path.first()\n\n // this.setPosition(pt(0,0))\n if (this.getPosition().equals(finalTile.getPosition())) {\n if (this.walkScript) { this.walkScript.stop() }\n this.setDirection(pt(0,1))\n this.currentTile().enterTile(this)\n } else {\n this.setDirectionToTile(nextTile)\n var directionVector = this.getPosition().subPt(nextTile.getPosition()),\n maxSpeed = minPositive(directionVector.x, directionVector.y),\n speed = Math.min(maxSpeed, this.getCurrentSpeed())\n this.moveBy(this.getDirection().scaleBy(speed))\n if (path.length > 1) { // remove all but the final tile,\n // we need that one for positioning\n var idx = path.indexOf(this.currentTile())\n if (idx > -1) {\n path.removeAt(idx)\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16137},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16138},"__LivelyClassName__":"lively.Closure"},"16136":{"this":{"__isSmartRef__":true,"id":15750}},"16137":{"timestamp":{"__isSmartRef__":true,"id":4454},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4451},"declaredObject":""},"16138":{"originalFunc":{"__isSmartRef__":true,"id":4451}},"16139":{"varMapping":{"__isSmartRef__":true,"id":16140},"source":"function chatBot() {\n if ( !this._chatbot ) { this._chatbot = new ChatBot() }\n return this._chatbot\n}","funcProperties":{"__isSmartRef__":true,"id":16141},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16142},"__LivelyClassName__":"lively.Closure"},"16140":{"this":{"__isSmartRef__":true,"id":15750}},"16141":{"timestamp":{"__isSmartRef__":true,"id":4458},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4455},"declaredObject":""},"16142":{"originalFunc":{"__isSmartRef__":true,"id":4455}},"16143":{"varMapping":{"__isSmartRef__":true,"id":16144},"source":"function getHit() {\n this.lifeBar.hit()\n}","funcProperties":{"__isSmartRef__":true,"id":16145},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16146},"__LivelyClassName__":"lively.Closure"},"16144":{"this":{"__isSmartRef__":true,"id":15750}},"16145":{"timestamp":{"__isSmartRef__":true,"id":4462},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4459},"declaredObject":""},"16146":{"originalFunc":{"__isSmartRef__":true,"id":4459}},"16147":{"varMapping":{"__isSmartRef__":true,"id":16148},"source":"function becomePlayer() {\n if (this.character) {\n this.character.remove()\n this.character = null\n }\n \n this.character = this.toolbox(\"Player\")\n if (this.character) {\n this.character.setExtent(this.character.getExtent().scaleBy(1.2))\n this.character.setPosition(pt(6, -5))\n this.addMorph(this.character)\n this.character.disableEvents()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16149},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16150},"__LivelyClassName__":"lively.Closure"},"16148":{"this":{"__isSmartRef__":true,"id":15750}},"16149":{"timestamp":{"__isSmartRef__":true,"id":4466},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4463},"declaredObject":""},"16150":{"originalFunc":{"__isSmartRef__":true,"id":4463}},"16151":{"varMapping":{"__isSmartRef__":true,"id":16152},"source":"function fight() {\n this.isBusy = true\n var persons = []\n this.currentTile().neighbours().each(function(tile) {\n persons.pushAll(tile.characters())\n })\n persons = persons.select(function(each) { return !each.isBusy })\n if (persons.length > 0) {\n var personForFight = persons[Math.floor(Math.random()*persons.length)]\n personForFight.isBusy = true\n if (Math.round(Math.random()) === 0 && false) {\n this.executeFightTurnAsking(this, personForFight)\n } else {\n this.executeFightTurnAsking(personForFight, this)\n }\n } else {\n this.isBusy = false\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16153},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16152":{"this":{"__isSmartRef__":true,"id":15750}},"16153":{"timestamp":{"__isSmartRef__":true,"id":16154},"user":"timfelgentreff","tags":[]},"16154":{"isSerializedDate":true,"string":"Mon Jul 30 2012 11:41:15 GMT+0200 (CEST)"},"16155":{"varMapping":{"__isSmartRef__":true,"id":16156},"source":"function fightPhrases() {\n return {\"This is the END for you, you gutter-crawling cur!\": \"And I've got a little TIP for you, get the POINT?\",\n\t\"Soon you'll be wearing my sword like a shish kebab!\": \"First you better stop waiving it like a feather-duster.\",\n\t\"My handkerchief will wipe up your blood!\": \"So you got that job as janitor, after all.\",\n\t\"People fall at my feet when they see me coming.\": \"Even BEFORE they smell your breath?\",\n\t\"I once owned a dog that was smarter then you.\": \"He must have taught you everything you know.\",\n\t\"You make me want to puke.\": \"You make me think somebody already did.\",\n\t\"Nobody's ever drawn blood from me and nobody ever will.\": \"You run THAT fast?\",\n\t\"You fight like a dairy farmer.\": \"How appropriate. You fight like a cow.\",\n\t\"I got this scar on my face during a mighty struggle!\": \"I hope now you've learned to stop picking your nose.\",\n\t\"Have you stopped wearing diapers yet?\": \"Why, did you want to borrow one?\",\n\t\"I've heard you were a contemptible sneak.\": \"Too bad no one's ever heard of YOU at all.\",\n\t\"You're no match for my brains, you poor fool.\": \"I'd be in real trouble if you ever used them.\",\n\t\"You have the manners of a beggar.\": \"I wanted to make sure you'd feel comfortable with me.\",\n\t\"I'm not going to take your insolence sitting down!\": \"Your hemorrhoids are flaring up again, eh?\",\n\t\"There are no words for how disgusting you are.\": \"Yes there are. You just never learned them.\",\n\t\"I've spoken with apes more polite then you.\": \"I'm glad to hear you attended your family reunion. \",\n\t\"I've got a long, sharp lesson for you you to learn today.\": \"And I've got a little TIP for you. Get the POINT?\",\n\t\"My tongue is sharper then any sword.\": \"First you better stop waving it like a feather-duster.\",\n\t\"My name is feared in every dirty corner of this island!\": \"So you got that job as janitor, after all.\",\n\t\"My wisest enemies run away at the first sight of me!\": \"Even BEFORE they smell your breath?\",\n\t\"Only once have I met such a coward!\": \"He must have taught you everything you know.\",\n\t\"If your brother's like you, better to marry a pig.\": \"You make me think somebody already did.\",\n\t\"No one will ever catch ME fighting as badly as you do.\": \"You run THAT fast?\",\n\t\"I will milk every drop of blood from your body!\": \"How appropriate. You fight like a cow.\",\n\t\"My last fight ended with my hands covered with blood.\": \"I hope now you've learned to stop picking your nose.\",\n\t\"I hope you have a boat ready for a quick escape.\": \"Why, did you want to borrow one?\",\n\t\"My sword is famous all over the Caribbean!\": \"Too bad no one's ever heard of YOU at all.\",\n\t\"I've got the courage and skill of a master swordsman!\": \"I'd be in real trouble if you ever used them.\",\n\t\"Every word you say to me is stupid.\": \"I wanted to make sure you'd feel comfortable with me.\",\n\t\"You are a pain in the backside, sir!\": \"Your hemorrhoids are flaring up again, eh?\",\n\t\"There are no clever moves that can help you now.\": \"Yes there are. You just never learned them.\",\n\t\"Now I know what filth and stupidity really are.\": \"I'm glad to hear you attended your family reunion.\",\n\t\"I usually see people like you passed-out on tavern floors.\": \"Even BEFORE they smell your breath? \",\n\t\"My attacks have left entire islands depopulated!\": \"With your breath, I'm sure they all suffocated.\",\n\t\"You have the sex appeal of a shar-pei!\": \"I look that much like your fiancée?\",\n\t\"When I'm done, your body will be rotted and putrefied!\": \"Then killing you must be justifiable fungicide.\",\n\t\"Your looks would make pigs nauseated!\": \"If you don't count all the ones you've dated.\",\n\t\"Your lips look like they belong on the catch of the day!\": \"When I'm done with you, you'll be a boneless filet.\",\n\t\"I give you a choice. You can be gutted, or decapitated!\": \"With you around, I'd rather be fumigated.\",\n\t\"Never before have I faced someone so sissified!\": \"Is that your face? I thought it was your backside.\",\n\t\"You're a disgrace to your species, you're so undignified!\": \"At least mine can be identified.\",\n\t\"Nothing can stop me from blowing you away!\": \"I could, if you would use some breath spray.\",\n\t\"I have never lost a melee!\": \"You would have, but you were always running away.\",\n\t\"Your mother wears a toupee!\": \"Oh, that is so cliché.\",\n\t\"My skills with a sword are highly venerated!\": \"Too bad they're all fabricated.\",\n\t\"Your stench would make an outhouse cleaner irritated!\": \"Then perhaps you should switch to decaffeinated.\",\n\t\"I can't tell which of my traits have you the most intimidated!\": \"Your odor alone makes me aggravated, agitated, and infuriated\",\n\t\"Nothing on this earth can save your sorry hide!\": \"The only way you'll be preserved is in formaldehyde\",\n\t\"You'll find I'm dogged and relentless to my prey!\": \"Then be a good dog, Sit! Stay! \",\n\t\"Every enemy I have met, I've annihilated!\": \"With your breath, I'm sure they all suffocated.\",\n\t\"You're as repulsive as a monkey in a negligee!\": \"I look that much like your fiancée?\",\n\t\"Killing you would be justifiable homicide!\": \"Then killing you must be justifiable fungicide.\",\n\t\"You're the ugliest monster ever created!\": \"If you don't count all the ones you've dated.\",\n\t\"I'll skewer you like a sow at a buffet!\": \"When I'm done with you, you'll be a boneless filet.\",\n\t\"Would you like to be buried, or cremated?\": \"With you around, I'd rather be fumigated.\",\n\t\"Coming face to face with me must leave you petrified!\": \"Is that your face? I thought it was your backside.\",\n\t\"When your father first saw you, he must have been mortified!\": \"At least mine can be identified.\",\n\t\"You can't match my witty repartee!\": \"I could, if you would use some breath spray.\",\n\t\"I have never seen such clumsy swordplay!\": \"You would have, but you were always running away.\",\n\t\"En Garde! Touché!\": \"Oh, that is so cliché.\",\n\t\"Throughout the Caribbean, my great deeds are celebrated!\": \"Too bad they're all fabricated.\",\n\t\"I can't rest 'til' you've been exterminated!\": \"Then perhaps you should switch to decaffeinated.\",\n\t\"I'll leave you devastated, mutilated, and perforated!\": \"Your odor alone makes me aggravated, agitated, and infuriated\",\n\t\"Heaven preserve me! You look like something that's died!\": \"The only way you'll be preserved is in formaldehyde\",\n\t\"I'll hound you night and day!\": \"Then be a good dog, Sit! Stay! \",\n\t\"Today, by myself, twelve people I've beaten.\": \"From the size of your gut I'd guess they were eaten.\",\n\t\"I've got muscles in places you've never even heard of.\": \"It's too bad none of them are in your arms.\",\n\t\"Give up now, or I'll crush you like a grape!\": \"I would if it would stop your WINE-ING.\",\n\t\"My ninety-eight year old grandmother has bigger arms than you!\": \"Yeah, but we both got better bladder control than you do.\",\n\t\"I'm going to put your arm in a sling!\": \"Why, ya studying to be a nurse?\",\n\t\"My stupefying strength will shatter your ulna into a million pieces!\": \"I'm surprised you can count that high!\",\n\t\"Hey, look over there!\": \"Yeah, yeah I know: it's a three headed monkey.\",\n\t\"Your knuckles I'll grind to a splintery paste.\": \"I thought that the been dip had a strange taste.\",\n\t\"Your arms are no bigger than fleas that I've met!\": \"So THAT'S why you're scratching. I'd go see a vet.\",\n\t\"People consider my fists lethal weapons!\": \"Sadly, your breath should be equally reckoned.\",\n\t\"Only once have I met such a coward!\": \"He must have taught you everything you know.\",\n\t\"You're the ugliest creature I've ever seen in my life.\": \"I'm shocked that you've never gazed at your wife.\",\n\t\"My forearms have been mistaken for tree trunks!\": \"An over-the-counter defoliant could help with that problem.\",\n\t\"I've out-wrestled octopi with these arms!\": \"I'm sure that spineless creatures everywhere are humbled by your might.\",\n\t\"Do I see quivers of agony dance on your lip?\": \"It's laughter that's caused by your feathery grip.\"}\n}","funcProperties":{"__isSmartRef__":true,"id":16157},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16158},"__LivelyClassName__":"lively.Closure"},"16156":{"this":{"__isSmartRef__":true,"id":15750}},"16157":{"timestamp":{"__isSmartRef__":true,"id":4474},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4471},"declaredObject":""},"16158":{"originalFunc":{"__isSmartRef__":true,"id":4471}},"16159":{"varMapping":{"__isSmartRef__":true,"id":16160},"source":"function randomQuestions(count) {\n if (!count) { count = 8 }\n\n var choices = [],\n questions = Properties.own(this.fightPhrases())\n\n for (var i = 0; i < count; i++) {\n var idx = Math.round(Math.random() * questions.length)\n choices.push(questions[idx])\n questions.removeAt(idx)\n }\n\n return choices\n}","funcProperties":{"__isSmartRef__":true,"id":16161},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16162},"__LivelyClassName__":"lively.Closure"},"16160":{"this":{"__isSmartRef__":true,"id":15750}},"16161":{"timestamp":{"__isSmartRef__":true,"id":4478},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4475},"declaredObject":""},"16162":{"originalFunc":{"__isSmartRef__":true,"id":4475}},"16163":{"varMapping":{"__isSmartRef__":true,"id":16164},"source":"function randomAnswersFor(question, count) {\n if (!count) { count = 8 }\n\n var choices = [],\n phrases = this.fightPhrases(),\n answers = Properties.own(phrases).collect(function (q) {\n return phrases[q]\n })\n\n choices.push(phrases[question])\n answers.removeAt(Properties.own(phrases).indexOf(question))\n\n for (var i = 1; i < count; i++) {\n var idx = Math.round(Math.random() * answers.length)\n choices.push(answers[idx])\n answers.removeAt(idx)\n }\n\n return choices.sortBy(function (ea) { return Math.random() })\n}","funcProperties":{"__isSmartRef__":true,"id":16165},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16166},"__LivelyClassName__":"lively.Closure"},"16164":{"this":{"__isSmartRef__":true,"id":15750}},"16165":{"timestamp":{"__isSmartRef__":true,"id":4482},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4479},"declaredObject":""},"16166":{"originalFunc":{"__isSmartRef__":true,"id":4479}},"16167":{"varMapping":{"__isSmartRef__":true,"id":16168},"source":"function executeFightTurnAsking(asker, responder) {\n var menu = this.toolbox(\"FightMenu\"),\n worldCenter = rect(pt(0, 0), pt(window.innerWidth, window.innerHeight)).center(),\n talkTimeout = 4000,\n nextTurnCallback = function (answer, correctAnswer) {\n if (correctAnswer === answer) {\n // switch turns\n asker.executeFightTurnAsking(responder, asker)\n } else {\n responder.getHit()\n if (!responder.isDead()) {\n asker.executeFightTurnAsking(asker, responder)\n }\n }\n }\n\n // Check if the last looser is dead, first\n if (responder.isDead()) {\n responder.isBusy = false\n asker.isBusy = false\n asker.heal()\n asker.select()\n return\n }\n \n // Fight\n if (asker.character.isPlayer) {\n menu.setHeader(\"Choose your insult\")\n menu.setList(asker.randomQuestions(8), function (str) {\n menu.remove()\n asker.say(str)\n setTimeout(function () {\n // the npc has a 1/3 chance of answering right\n var response = responder.randomAnswersFor(str, 3)[Math.round(Math.random() * 2)],\n correctAnswer = responder.randomAnswersFor(str, 1)[0]\n responder.say(response)\n setTimeout(function () {\n nextTurnCallback(response, correctAnswer)\n }, talkTimeout)\n }, talkTimeout)\n })\n asker.map().addMorph(menu)\n menu.centerAt(worldCenter)\n } else {\n var question = asker.randomQuestions(1)[0],\n answer = asker.randomAnswersFor(question, 1)[0]\n asker.say(question)\n setTimeout(function () {\n menu.setHeader(\"What do you reply to '\" + question + \"'?\")\n menu.setList(responder.randomAnswersFor(question, 7), function (str) {\n menu.remove()\n responder.say(str)\n setTimeout(function () {\n nextTurnCallback(str, answer)\n }, talkTimeout)\n })\n asker.map().addMorph(menu)\n menu.centerAt(worldCenter)\n }, talkTimeout)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16168":{"this":{"__isSmartRef__":true,"id":15750}},"16169":{"timestamp":{"__isSmartRef__":true,"id":16170},"user":"lauritz","tags":[]},"16170":{"isSerializedDate":true,"string":"Mon Jul 30 2012 12:48:41 GMT+0200 (CEST)"},"16171":{"varMapping":{"__isSmartRef__":true,"id":16172},"source":"function heal() {\n this.lifeBar.heal()\n}","funcProperties":{"__isSmartRef__":true,"id":16173},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16174},"__LivelyClassName__":"lively.Closure"},"16172":{"this":{"__isSmartRef__":true,"id":15750}},"16173":{"timestamp":{"__isSmartRef__":true,"id":4490},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4487},"declaredObject":""},"16174":{"originalFunc":{"__isSmartRef__":true,"id":4487}},"16175":{"varMapping":{"__isSmartRef__":true,"id":16176},"source":"function isDead() {\n return this.lifeBar.isDead()\n}","funcProperties":{"__isSmartRef__":true,"id":16177},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16178},"__LivelyClassName__":"lively.Closure"},"16176":{"this":{"__isSmartRef__":true,"id":15750}},"16177":{"timestamp":{"__isSmartRef__":true,"id":4494},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":4491},"declaredObject":""},"16178":{"originalFunc":{"__isSmartRef__":true,"id":4491}},"16179":{"setDevStyle":{"__isSmartRef__":true,"id":16180},"setNormalStyle":{"__isSmartRef__":true,"id":16184},"tileSize":{"__isSmartRef__":true,"id":16188},"become":{"__isSmartRef__":true,"id":16192},"onMouseDown":{"__isSmartRef__":true,"id":16196},"setGridPosition":{"__isSmartRef__":true,"id":16204},"toolbox":{"__isSmartRef__":true,"id":16208},"distanceTo":{"__isSmartRef__":true,"id":16212},"tileWasDropped":{"__isSmartRef__":true,"id":16216},"isObstacle":{"__isSmartRef__":true,"id":16220},"neighboursInDirection":{"__isSmartRef__":true,"id":16224},"neighbours":{"__isSmartRef__":true,"id":16228},"zIndex":{"__isSmartRef__":true,"id":16232},"obstacles":{"__isSmartRef__":true,"id":16236},"addObstacle":{"__isSmartRef__":true,"id":16240},"removeObstacle":{"__isSmartRef__":true,"id":16244},"isTile":{"__isSmartRef__":true,"id":16248},"neighbourAt":{"__isSmartRef__":true,"id":16252},"map":{"__isSmartRef__":true,"id":16256},"game":{"__isSmartRef__":true,"id":16260},"reset":{"__isSmartRef__":true,"id":16264},"shallowCopy":{"__isSmartRef__":true,"id":16268},"characters":{"__isSmartRef__":true,"id":16272},"enterTile":{"__isSmartRef__":true,"id":16276},"leaveTile":{"__isSmartRef__":true,"id":16280},"neighboursReachableFromHere":{"__isSmartRef__":true,"id":16284}},"16180":{"varMapping":{"__isSmartRef__":true,"id":16181},"source":"function setDevStyle() {\n this.setExtent(this.tileSize())\n this.setFill(null)\n this.setBorderWidth(1)\n if (this.isObstacle()) {\n this.shape.setOpacity(0.8)\n this.shape.setBorderColor(Color.gray)\n } else {\n this.setBorderColor(Color.red)\n }\n this.submorphs.each(function (ea) {\n if (ea.setDevStyle) ea.setDevStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":16182},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16183},"__LivelyClassName__":"lively.Closure"},"16181":{"this":{"__isSmartRef__":true,"id":3}},"16182":{"timestamp":{"__isSmartRef__":true,"id":891},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":892},"declaredObject":""},"16183":{"originalFunc":{"__isSmartRef__":true,"id":892}},"16184":{"varMapping":{"__isSmartRef__":true,"id":16185},"source":"function setNormalStyle() {\n this.setFill(null)\n this.setBorderWidth(0)\n this.setOpacity(1)\n this.submorphs.each(function (ea) {\n if (ea.setNormalStyle) ea.setNormalStyle()\n })\n}","funcProperties":{"__isSmartRef__":true,"id":16186},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16187},"__LivelyClassName__":"lively.Closure"},"16185":{"this":{"__isSmartRef__":true,"id":3}},"16186":{"timestamp":{"__isSmartRef__":true,"id":914},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":911},"declaredObject":""},"16187":{"originalFunc":{"__isSmartRef__":true,"id":911}},"16188":{"varMapping":{"__isSmartRef__":true,"id":16189},"source":"function tileSize() {\n return pt(48,48)\n}","funcProperties":{"__isSmartRef__":true,"id":16190},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16191},"__LivelyClassName__":"lively.Closure"},"16189":{"this":{"__isSmartRef__":true,"id":3}},"16190":{"timestamp":{"__isSmartRef__":true,"id":918},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":915},"declaredObject":""},"16191":{"originalFunc":{"__isSmartRef__":true,"id":915}},"16192":{"varMapping":{"__isSmartRef__":true,"id":16193},"source":"function become(terrainName) {\n var terrain = this.toolbox(terrainName)\n\n if (terrain) {\n if (this.terrain) {\n this.terrain.remove();\n }\n this.terrain = terrain;\n terrain.setExtent(this.tileSize())\n terrain.setPosition(pt(0,0))\n terrain.disableDropping();\n terrain.disableGrabbing();\n terrain.disableDragging();\n terrain.ignoreEvents();\n this.addMorph(terrain)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16194},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16195},"__LivelyClassName__":"lively.Closure"},"16193":{"this":{"__isSmartRef__":true,"id":3}},"16194":{"timestamp":{"__isSmartRef__":true,"id":922},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":919},"declaredObject":""},"16195":{"originalFunc":{"__isSmartRef__":true,"id":919}},"16196":{"varMapping":{"__isSmartRef__":true,"id":16197},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown() && this.map().game && this.game().selectedUnit) {\n this.game().selectedUnit.walkTo(this)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16202},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16203},"__LivelyClassName__":"lively.Closure"},"16197":{"this":{"__isSmartRef__":true,"id":3},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16198}},"16198":{"$super":{"__isSmartRef__":true,"id":16199}},"16199":{"varMapping":{"__isSmartRef__":true,"id":16200},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":16201},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16200":{"obj":{"__isSmartRef__":true,"id":3},"name":"onMouseDown"},"16201":{},"16202":{"timestamp":{"__isSmartRef__":true,"id":930},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":923},"declaredObject":""},"16203":{"originalFunc":{"__isSmartRef__":true,"id":923}},"16204":{"varMapping":{"__isSmartRef__":true,"id":16205},"source":"function setGridPosition(column, row) {\n this.row = row\n this.column = column\n this.setPosition(pt(column,row).scaleByPt(this.tileSize()))\n}","funcProperties":{"__isSmartRef__":true,"id":16206},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16207},"__LivelyClassName__":"lively.Closure"},"16205":{"this":{"__isSmartRef__":true,"id":3}},"16206":{"timestamp":{"__isSmartRef__":true,"id":934},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":931},"declaredObject":""},"16207":{"originalFunc":{"__isSmartRef__":true,"id":931}},"16208":{"varMapping":{"__isSmartRef__":true,"id":16209},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":16210},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16211},"__LivelyClassName__":"lively.Closure"},"16209":{"this":{"__isSmartRef__":true,"id":3}},"16210":{"timestamp":{"__isSmartRef__":true,"id":938},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":935},"declaredObject":""},"16211":{"originalFunc":{"__isSmartRef__":true,"id":935}},"16212":{"varMapping":{"__isSmartRef__":true,"id":16213},"source":"function distanceTo(tile) {\n return pt(tile.column - this.column, tile.row - this.row)\n}","funcProperties":{"__isSmartRef__":true,"id":16214},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16215},"__LivelyClassName__":"lively.Closure"},"16213":{"this":{"__isSmartRef__":true,"id":3}},"16214":{"timestamp":{"__isSmartRef__":true,"id":942},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":939},"declaredObject":""},"16215":{"originalFunc":{"__isSmartRef__":true,"id":939}},"16216":{"varMapping":{"__isSmartRef__":true,"id":16217},"source":"function tileWasDropped(aTile) {\n this.become(aTile);\n}","funcProperties":{"__isSmartRef__":true,"id":16218},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16219},"__LivelyClassName__":"lively.Closure"},"16217":{"this":{"__isSmartRef__":true,"id":3}},"16218":{"timestamp":{"__isSmartRef__":true,"id":946},"user":"lauritz","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":943},"declaredObject":""},"16219":{"originalFunc":{"__isSmartRef__":true,"id":943}},"16220":{"varMapping":{"__isSmartRef__":true,"id":16221},"source":"function isObstacle() {\n return (this.terrain && this.terrain.isObstacle) || (this.obstacles().size() > 0)\n}","funcProperties":{"__isSmartRef__":true,"id":16222},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16223},"__LivelyClassName__":"lively.Closure"},"16221":{"this":{"__isSmartRef__":true,"id":3}},"16222":{"timestamp":{"__isSmartRef__":true,"id":950},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":947},"declaredObject":""},"16223":{"originalFunc":{"__isSmartRef__":true,"id":947}},"16224":{"varMapping":{"__isSmartRef__":true,"id":16225},"source":"function neighboursInDirection(point) {\n var that = this;\n return [this.map().tiles[this.column + point.x][this.row],\n this.map().tiles[this.column + point.x][this.row + point.y],\n this.map().tiles[this.column][this.row + point.y]\n ].reject(function (each) { return each === that || !each }).uniq()\n}","funcProperties":{"__isSmartRef__":true,"id":16226},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16227},"__LivelyClassName__":"lively.Closure"},"16225":{"this":{"__isSmartRef__":true,"id":3}},"16226":{"timestamp":{"__isSmartRef__":true,"id":954},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":951},"declaredObject":""},"16227":{"originalFunc":{"__isSmartRef__":true,"id":951}},"16228":{"varMapping":{"__isSmartRef__":true,"id":16229},"source":"function neighbours() {\n if (this.cachedNeightbours) { return this.cachedNeightbours }\n this.cachedNeightbours = []\n var tile = null;\n for(var i = this.row - 1; i <= this.row + 1; i++) {\n for(var j = this.column - 1; j <= this.column + 1; j++) {\n column = this.map().tiles[j]\n if (column) {\n tile = column[i]\n if (tile && tile !== this) {\n this.cachedNeightbours.push(tile)\n }\n }\n }\n }\n return this.cachedNeightbours\n}","funcProperties":{"__isSmartRef__":true,"id":16230},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16231},"__LivelyClassName__":"lively.Closure"},"16229":{"this":{"__isSmartRef__":true,"id":3}},"16230":{"timestamp":{"__isSmartRef__":true,"id":958},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":955},"declaredObject":""},"16231":{"originalFunc":{"__isSmartRef__":true,"id":955}},"16232":{"varMapping":{"__isSmartRef__":true,"id":16233},"source":"function zIndex() {\n return this.renderContext().morphNode.style.zIndex\n}","funcProperties":{"__isSmartRef__":true,"id":16234},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16235},"__LivelyClassName__":"lively.Closure"},"16233":{"this":{"__isSmartRef__":true,"id":3}},"16234":{"timestamp":{"__isSmartRef__":true,"id":962},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":959},"declaredObject":""},"16235":{"originalFunc":{"__isSmartRef__":true,"id":959}},"16236":{"varMapping":{"__isSmartRef__":true,"id":16237},"source":"function obstacles() {\n if (!this[\"__obstacles\"]) this[\"__obstacles\"] = []\n return this[\"__obstacles\"]\n}","funcProperties":{"__isSmartRef__":true,"id":16238},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16239},"__LivelyClassName__":"lively.Closure"},"16237":{"this":{"__isSmartRef__":true,"id":3}},"16238":{"timestamp":{"__isSmartRef__":true,"id":966},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":963},"declaredObject":""},"16239":{"originalFunc":{"__isSmartRef__":true,"id":963}},"16240":{"varMapping":{"__isSmartRef__":true,"id":16241},"source":"function addObstacle(thing) {\n if (!this.obstacles().member(thing)) {\n this.obstacles().push(thing)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16242},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16243},"__LivelyClassName__":"lively.Closure"},"16241":{"this":{"__isSmartRef__":true,"id":3}},"16242":{"timestamp":{"__isSmartRef__":true,"id":970},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":967},"declaredObject":""},"16243":{"originalFunc":{"__isSmartRef__":true,"id":967}},"16244":{"varMapping":{"__isSmartRef__":true,"id":16245},"source":"function removeObstacle(thing) {\n var idx = this.obstacles().indexOf(thing)\n if (idx >= 0) {\n this.obstacles().removeAt(idx)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16246},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16247},"__LivelyClassName__":"lively.Closure"},"16245":{"this":{"__isSmartRef__":true,"id":3}},"16246":{"timestamp":{"__isSmartRef__":true,"id":974},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":971},"declaredObject":""},"16247":{"originalFunc":{"__isSmartRef__":true,"id":971}},"16248":{"varMapping":{"__isSmartRef__":true,"id":16249},"source":"function isTile() {\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":16250},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16251},"__LivelyClassName__":"lively.Closure"},"16249":{"this":{"__isSmartRef__":true,"id":3}},"16250":{"timestamp":{"__isSmartRef__":true,"id":978},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":975},"declaredObject":""},"16251":{"originalFunc":{"__isSmartRef__":true,"id":975}},"16252":{"varMapping":{"__isSmartRef__":true,"id":16253},"source":"function neighbourAt(point) {\n var column = this.map().tiles[this.column + point.x]\n if (column) {\n return column[this.row + point.y]\n }\n return null\n}","funcProperties":{"__isSmartRef__":true,"id":16254},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16255},"__LivelyClassName__":"lively.Closure"},"16253":{"this":{"__isSmartRef__":true,"id":3}},"16254":{"timestamp":{"__isSmartRef__":true,"id":982},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":979},"declaredObject":""},"16255":{"originalFunc":{"__isSmartRef__":true,"id":979}},"16256":{"varMapping":{"__isSmartRef__":true,"id":16257},"source":"function map() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":16258},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16259},"__LivelyClassName__":"lively.Closure"},"16257":{"this":{"__isSmartRef__":true,"id":3}},"16258":{"timestamp":{"__isSmartRef__":true,"id":986},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":983},"declaredObject":""},"16259":{"originalFunc":{"__isSmartRef__":true,"id":983}},"16260":{"varMapping":{"__isSmartRef__":true,"id":16261},"source":"function game() {\n return this.map().game()\n}","funcProperties":{"__isSmartRef__":true,"id":16262},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16263},"__LivelyClassName__":"lively.Closure"},"16261":{"this":{"__isSmartRef__":true,"id":3}},"16262":{"timestamp":{"__isSmartRef__":true,"id":990},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":987},"declaredObject":""},"16263":{"originalFunc":{"__isSmartRef__":true,"id":987}},"16264":{"varMapping":{"__isSmartRef__":true,"id":16265},"source":"function reset() {\n this.terrain = null\n this.charactersStandingHere = this.cachedNeightbours = undefined\n this.submorphs.invoke(\"remove\")\n this.setDevStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":16266},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16267},"__LivelyClassName__":"lively.Closure"},"16265":{"this":{"__isSmartRef__":true,"id":3}},"16266":{"timestamp":{"__isSmartRef__":true,"id":994},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":991},"declaredObject":""},"16267":{"originalFunc":{"__isSmartRef__":true,"id":991}},"16268":{"varMapping":{"__isSmartRef__":true,"id":16269},"source":"function shallowCopy() {\n var copy = Morph.makeRectangle(this.bounds()),\n that = this\n Functions.own(this).each(function (ea) {\n copy[ea] = that[ea].asScriptOf(copy, ea)\n })\n \n // also shallow-copy partsBinMetaInfo \n if (this.partsBinMetaInfo) {\n copy.partsBinMetaInfo = this.partsBinMetaInfo\n }\n\n // Not needed, we're not using properties on tiles\n // Properties.own(this).each(function (ea) {\n // copy[ea] = that[ea]\n // })\n // ea.findAndSetUniqueName()\n return copy\n}","funcProperties":{"__isSmartRef__":true,"id":16270},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16271},"__LivelyClassName__":"lively.Closure"},"16269":{"this":{"__isSmartRef__":true,"id":3}},"16270":{"timestamp":{"__isSmartRef__":true,"id":998},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":995},"declaredObject":""},"16271":{"originalFunc":{"__isSmartRef__":true,"id":995}},"16272":{"varMapping":{"__isSmartRef__":true,"id":16273},"source":"function characters(newCharacters /* omit parameter if you want this to be a getter */) {\n if ( !this.charactersStandingHere || newCharacters ) {\n this.charactersStandingHere = newCharacters || []\n }\n return this.charactersStandingHere\n}","funcProperties":{"__isSmartRef__":true,"id":16274},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16275},"__LivelyClassName__":"lively.Closure"},"16273":{"this":{"__isSmartRef__":true,"id":3}},"16274":{"timestamp":{"__isSmartRef__":true,"id":1002},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":999},"declaredObject":""},"16275":{"originalFunc":{"__isSmartRef__":true,"id":999}},"16276":{"varMapping":{"__isSmartRef__":true,"id":16277},"source":"function enterTile(character) {\n if (!this.characters().include(character)) {\n this.characters().push(character)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16278},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16279},"__LivelyClassName__":"lively.Closure"},"16277":{"this":{"__isSmartRef__":true,"id":3}},"16278":{"timestamp":{"__isSmartRef__":true,"id":1006},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1003},"declaredObject":""},"16279":{"originalFunc":{"__isSmartRef__":true,"id":1003}},"16280":{"varMapping":{"__isSmartRef__":true,"id":16281},"source":"function leaveTile(character) {\n if (this.characters().include(character)) {\n this.characters(this.characters().without(character))\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16282},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16283},"__LivelyClassName__":"lively.Closure"},"16281":{"this":{"__isSmartRef__":true,"id":3}},"16282":{"timestamp":{"__isSmartRef__":true,"id":1010},"user":"tessi","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1007},"declaredObject":""},"16283":{"originalFunc":{"__isSmartRef__":true,"id":1007}},"16284":{"varMapping":{"__isSmartRef__":true,"id":16285},"source":"function neighboursReachableFromHere() {\n var that = this;\n return this.neighbours().select(function (tile) {\n return that.neighboursInDirection(that.distanceTo(tile)).all(function (n) {\n return !n.isObstacle()\n })\n })\n}","funcProperties":{"__isSmartRef__":true,"id":16286},"__SourceModuleName__":"Global.lively.lang.Closure","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16287},"__LivelyClassName__":"lively.Closure"},"16285":{"this":{"__isSmartRef__":true,"id":3}},"16286":{"timestamp":{"__isSmartRef__":true,"id":1014},"user":"timfelgentreff","tags":[],"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1011},"declaredObject":""},"16287":{"originalFunc":{"__isSmartRef__":true,"id":1011}},"16288":{"position":{"__isSmartRef__":true,"id":16289},"_Extent":{"__isSmartRef__":true,"id":16290},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16291},"_Fill":{"__isSmartRef__":true,"id":16292},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":16293},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":16294},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16289":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16290":{"x":480,"y":480,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16291":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16292":{"r":1,"g":0.9725138476155526,"b":0.9773063049543793,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16293":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"16294":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16295":{"x":18.833408077045906,"y":34.871557807782345,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16296":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph. A really blue one. Its amazing what you can build out of simple boxes.... Who needs stars when you got blue rectangles!","migrationLevel":4,"partName":"Map","changes":[{"__isSmartRef__":true,"id":16297},{"__isSmartRef__":true,"id":16299},{"__isSmartRef__":true,"id":16301},{"__isSmartRef__":true,"id":16303}],"revisionOnLoad":156095,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"16297":{"date":{"__isSmartRef__":true,"id":16298},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"16298":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"16299":{"date":{"__isSmartRef__":true,"id":16300},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"16300":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"16301":{"date":{"__isSmartRef__":true,"id":16302},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"16302":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"16303":{"date":{"__isSmartRef__":true,"id":16304},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"16304":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"16305":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"16306":{"morph":{"__isSmartRef__":true,"id":2},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16307":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16308}},"16308":{"test01IsMorph":{"__isSmartRef__":true,"id":16309}},"16309":{"varMapping":{"__isSmartRef__":true,"id":16310},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":16311},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16310":{"this":{"__isSmartRef__":true,"id":16307}},"16311":{},"16312":{"x":842.1288685311482,"y":-13.941405677732092,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16313":{"mapTileSize":{"__isSmartRef__":true,"id":16314},"mapExtent":{"__isSmartRef__":true,"id":16318},"toolbox":{"__isSmartRef__":true,"id":16322},"setup":{"__isSmartRef__":true,"id":16326},"emptyMap":{"__isSmartRef__":true,"id":16330},"reset":{"__isSmartRef__":true,"id":16334},"setDevStyle":{"__isSmartRef__":true,"id":16338},"setNormalStyle":{"__isSmartRef__":true,"id":16342},"tileSize":{"__isSmartRef__":true,"id":16346},"getTileForPosition":{"__isSmartRef__":true,"id":16350},"setupTiles":{"__isSmartRef__":true,"id":16354},"setupUnits":{"__isSmartRef__":true,"id":16358},"setupThings":{"__isSmartRef__":true,"id":16362},"game":{"__isSmartRef__":true,"id":16366}},"16314":{"varMapping":{"__isSmartRef__":true,"id":16315},"source":"function mapTileSize() {\n return pt(10, 10)\n}","funcProperties":{"__isSmartRef__":true,"id":16316},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16315":{"this":{"__isSmartRef__":true,"id":2}},"16316":{"timestamp":{"__isSmartRef__":true,"id":16317},"user":"timfelgentreff","tags":[]},"16317":{"isSerializedDate":true,"string":"Mon Jul 30 2012 11:07:01 GMT+0200 (CEST)"},"16318":{"varMapping":{"__isSmartRef__":true,"id":16319},"source":"function mapExtent() {\n return this.mapTileSize().scaleByPt(this.toolbox(\"Tile\").tileSize())\n}","funcProperties":{"__isSmartRef__":true,"id":16320},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16319":{"this":{"__isSmartRef__":true,"id":2}},"16320":{"timestamp":{"__isSmartRef__":true,"id":16321},"user":"timfelgentreff","tags":[]},"16321":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:43:22 GMT+0200 (CEST)"},"16322":{"varMapping":{"__isSmartRef__":true,"id":16323},"source":"function toolbox(itemName) {\n return this.game().toolbox(itemName)\n}","funcProperties":{"__isSmartRef__":true,"id":16324},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16323":{"this":{"__isSmartRef__":true,"id":2}},"16324":{"timestamp":{"__isSmartRef__":true,"id":16325},"user":"tessi","tags":[]},"16325":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:08:47 GMT+0200 (CEST)"},"16326":{"varMapping":{"__isSmartRef__":true,"id":16327},"source":"function setup() {\n this.setExtent(this.mapExtent())\n\n this.setupTiles()\n try { this.setupUnits() } catch(e) { }\n try { this.setupThings() } catch(e) { }\n\n this.setNormalStyle()\n}","funcProperties":{"__isSmartRef__":true,"id":16328},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16327":{"this":{"__isSmartRef__":true,"id":2}},"16328":{"timestamp":{"__isSmartRef__":true,"id":16329},"user":"lauritz","tags":[]},"16329":{"isSerializedDate":true,"string":"Mon May 07 2012 19:00:50 GMT+0200 (CEST)"},"16330":{"varMapping":{"__isSmartRef__":true,"id":16331},"source":"function emptyMap() {\n this.removeAllMorphs()\n this.game().reset()\n this.tiles = null\n}","funcProperties":{"__isSmartRef__":true,"id":16332},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16331":{"this":{"__isSmartRef__":true,"id":2}},"16332":{"timestamp":{"__isSmartRef__":true,"id":16333},"user":"tessi","tags":[]},"16333":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:07:01 GMT+0200 (CEST)"},"16334":{"varMapping":{"__isSmartRef__":true,"id":16335},"source":"function reset() {\n this.emptyMap()\n this.setup()\n}","funcProperties":{"__isSmartRef__":true,"id":16336},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16335":{"this":{"__isSmartRef__":true,"id":2}},"16336":{"timestamp":{"__isSmartRef__":true,"id":16337},"user":"timfelgentreff","tags":[]},"16337":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:33:22 GMT+0200 (CEST)"},"16338":{"varMapping":{"__isSmartRef__":true,"id":16339},"source":"function setDevStyle() {\n this.submorphs.invoke(\"setDevStyle\")\n}","funcProperties":{"__isSmartRef__":true,"id":16340},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16339":{"this":{"__isSmartRef__":true,"id":2}},"16340":{"timestamp":{"__isSmartRef__":true,"id":16341},"user":"tessi","tags":[]},"16341":{"isSerializedDate":true,"string":"Wed Apr 18 2012 17:31:57 GMT+0200 (CEST)"},"16342":{"varMapping":{"__isSmartRef__":true,"id":16343},"source":"function setNormalStyle() {\n this.submorphs.invoke(\"setNormalStyle\")\n}","funcProperties":{"__isSmartRef__":true,"id":16344},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16343":{"this":{"__isSmartRef__":true,"id":2}},"16344":{"timestamp":{"__isSmartRef__":true,"id":16345},"user":"tessi","tags":[]},"16345":{"isSerializedDate":true,"string":"Wed Apr 18 2012 17:32:13 GMT+0200 (CEST)"},"16346":{"varMapping":{"__isSmartRef__":true,"id":16347},"source":"function tileSize() {\n return this.toolbox(\"Tile\").tileSize()\n}","funcProperties":{"__isSmartRef__":true,"id":16348},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16347":{"this":{"__isSmartRef__":true,"id":2}},"16348":{"timestamp":{"__isSmartRef__":true,"id":16349},"user":"timfelgentreff","tags":[]},"16349":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:43:55 GMT+0200 (CEST)"},"16350":{"varMapping":{"__isSmartRef__":true,"id":16351},"source":"function getTileForPosition(point) {\n var column = Math.floor(point.x / this.tileSize().x),\n row = Math.floor(point.y / this.tileSize().y)\n\n return this.tiles[column][row]\n}","funcProperties":{"__isSmartRef__":true,"id":16352},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16351":{"this":{"__isSmartRef__":true,"id":2}},"16352":{"timestamp":{"__isSmartRef__":true,"id":16353},"user":"timfelgentreff","tags":[]},"16353":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:04:22 GMT+0200 (CEST)"},"16354":{"varMapping":{"__isSmartRef__":true,"id":16355},"source":"function setupTiles() {\n this.tiles = []\n for(var column = 0; column < this.mapTileSize().x; column++) {\n this.tiles[column] = []\n }\n for(var row = 0; row < this.mapTileSize().y; row++) {\n for(var column = 0; column < this.mapTileSize().x; column++) {\n var currentTile = this.toolbox(\"Tile\")\n this.tiles[column][row] = currentTile\n currentTile.setGridPosition(column, row)\n currentTile.setNormalStyle()\n this.addMorph(currentTile)\n if (Math.random() < 0.04 ) {\n currentTile.become(\"FlowerGrassTile\")\n } else {\n currentTile.become(\"GrassTile\")\n }\n currentTile.disableGrabbing()\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16356},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16355":{"this":{"__isSmartRef__":true,"id":2}},"16356":{"timestamp":{"__isSmartRef__":true,"id":16357},"user":"timfelgentreff","tags":[]},"16357":{"isSerializedDate":true,"string":"Fri May 04 2012 15:31:00 GMT+0200 (CEST)"},"16358":{"varMapping":{"__isSmartRef__":true,"id":16359},"source":"function setupUnits() {\n var numberOfUnits = 3,\n xPosition, yPosition,\n maxX = this.mapTileSize().x - 4,\n maxY = this.mapTileSize().y - 4\n\n for (var x = 0; x <= numberOfUnits; x++) {\n xPosition = Math.round(Math.random() * maxX + 2)\n yPosition = Math.round(Math.random() * maxY + 2)\n var currentUnit = this.toolbox(\"Character\"),\n tile\n this.addMorph(currentUnit)\n currentUnit.setNormalStyle()\n tile = this.tiles[xPosition][yPosition]\n currentUnit.setPosition(tile.getPosition())\n tile.enterTile(currentUnit)\n x === 0 ? currentUnit.becomePlayer() : currentUnit.becomeRandomCharacter()\n currentUnit.animate()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16360},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16359":{"this":{"__isSmartRef__":true,"id":2}},"16360":{"timestamp":{"__isSmartRef__":true,"id":16361},"user":"timfelgentreff","tags":[]},"16361":{"isSerializedDate":true,"string":"Mon Jul 30 2012 11:13:14 GMT+0200 (CEST)"},"16362":{"varMapping":{"__isSmartRef__":true,"id":16363},"source":"function setupThings() {\n var numberOfThings = 3,\n xPosition, yPosition,\n maxX = this.mapTileSize().x - 4,\n maxY = this.mapTileSize().y - 4\n\n for (var x = 0; x <= numberOfThings; x++) {\n xPosition = Math.round(Math.random() * maxX + 2)\n yPosition = Math.round(Math.random() * maxY + 2)\n var currentThing = this.toolbox(\"Thing\")\n currentThing.dropOn(this.tiles[xPosition][yPosition])\n currentThing.setNormalStyle()\n currentThing.becomeRandomThing()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16364},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16363":{"this":{"__isSmartRef__":true,"id":2}},"16364":{"timestamp":{"__isSmartRef__":true,"id":16365},"user":"timfelgentreff","tags":[]},"16365":{"isSerializedDate":true,"string":"Mon Jul 30 2012 11:12:50 GMT+0200 (CEST)"},"16366":{"varMapping":{"__isSmartRef__":true,"id":16367},"source":"function game() {\n return this.owner\n}","funcProperties":{"__isSmartRef__":true,"id":16368},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16367":{"this":{"__isSmartRef__":true,"id":2}},"16368":{"timestamp":{"__isSmartRef__":true,"id":16369},"user":"tessi","tags":[]},"16369":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:08:01 GMT+0200 (CEST)"},"16370":{"position":{"__isSmartRef__":true,"id":16371},"_Extent":{"__isSmartRef__":true,"id":16372},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16373},"_Fill":{"__isSmartRef__":true,"id":16374},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":16375},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":16376},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16371":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16372":{"x":512.3025473366313,"y":527.3641847227723,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16373":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16374":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16375":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"16376":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16377":{"x":142,"y":66,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16378":{"partsSpaceName":"PartsBin/FreedomOfSpeech/","__SourceModuleName__":"Global.lively.PartsBin","comment":"The map and playing field","migrationLevel":4,"partName":"Game","changes":[{"__isSmartRef__":true,"id":16379},{"__isSmartRef__":true,"id":16381},{"__isSmartRef__":true,"id":16383},{"__isSmartRef__":true,"id":16385},{"__isSmartRef__":true,"id":16387},{"__isSmartRef__":true,"id":16389},{"__isSmartRef__":true,"id":16391},{"__isSmartRef__":true,"id":16393},{"__isSmartRef__":true,"id":16395},{"__isSmartRef__":true,"id":16397},{"__isSmartRef__":true,"id":16399},{"__isSmartRef__":true,"id":16401},{"__isSmartRef__":true,"id":16403},{"__isSmartRef__":true,"id":16405},{"__isSmartRef__":true,"id":16407},{"__isSmartRef__":true,"id":16409},{"__isSmartRef__":true,"id":16411},{"__isSmartRef__":true,"id":16413},{"__isSmartRef__":true,"id":16415},{"__isSmartRef__":true,"id":16417},{"__isSmartRef__":true,"id":16419},{"__isSmartRef__":true,"id":16421},{"__isSmartRef__":true,"id":16423},{"__isSmartRef__":true,"id":16425},{"__isSmartRef__":true,"id":16427},{"__isSmartRef__":true,"id":16429},{"__isSmartRef__":true,"id":16431},{"__isSmartRef__":true,"id":16433},{"__isSmartRef__":true,"id":16435},{"__isSmartRef__":true,"id":16437},{"__isSmartRef__":true,"id":16439},{"__isSmartRef__":true,"id":16441},{"__isSmartRef__":true,"id":16443}],"revisionOnLoad":161139,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"16379":{"date":{"__isSmartRef__":true,"id":16380},"author":"lauritz","message":"added close button for demos","id":"F393FAAD-3B17-491F-9163-20DC9B79151C"},"16380":{"isSerializedDate":true,"string":"Thu May 10 2012 13:09:46 GMT+0200 (CEST)"},"16381":{"date":{"__isSmartRef__":true,"id":16382},"author":"lauritz","message":"register characters at setup: let the fights begin!","id":"1CB8B3D0-A7FB-4673-8D71-D7FB4D423990"},"16382":{"isSerializedDate":true,"string":"Mon May 07 2012 11:37:01 GMT+0200 (CEST)"},"16383":{"date":{"__isSmartRef__":true,"id":16384},"author":"timfelgentreff","message":"build tiles rows-first, to fix zIndex of things","id":"6A13BB1F-4974-4E80-8BD3-76B74371CC74"},"16384":{"isSerializedDate":true,"string":"Fri May 04 2012 15:31:50 GMT+0200 (CEST)"},"16385":{"date":{"__isSmartRef__":true,"id":16386},"author":"timfelgentreff","message":"cache shallowCopy'able things","id":"645744AA-3EED-4686-99B2-ADEF3F3E34DC"},"16386":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:30:37 GMT+0200 (CEST)"},"16387":{"date":{"__isSmartRef__":true,"id":16388},"author":"tessi","message":"replace this.get(\"Game\") with this.game() calls","id":"4DD20E29-B711-4483-B963-CA6EEC46FFC1"},"16388":{"isSerializedDate":true,"string":"Wed Apr 25 2012 12:09:50 GMT+0200 (CEST)"},"16389":{"date":{"__isSmartRef__":true,"id":16390},"author":"timfelgentreff","message":"no comment","id":"5BD4709D-F345-48A8-B0A9-618209647AC0"},"16390":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:41:52 GMT+0200 (CEST)"},"16391":{"date":{"__isSmartRef__":true,"id":16392},"author":"timfelgentreff","message":"catch errors during setup","id":"D1EAF47B-BBBB-493B-BB78-CFE149FB951F"},"16392":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:32:35 GMT+0200 (CEST)"},"16393":{"date":{"__isSmartRef__":true,"id":16394},"author":"tessi","message":"animate","id":"8E4CF411-945C-4251-8FDB-35D3225B7CB3"},"16394":{"isSerializedDate":true,"string":"Sat Apr 21 2012 13:28:07 GMT+0200 (CEST)"},"16395":{"date":{"__isSmartRef__":true,"id":16396},"author":"tessi","message":"animate characters after they are placed on the map","id":"995FC3A0-7B17-472B-9796-435F68A99C41"},"16396":{"isSerializedDate":true,"string":"Sat Apr 21 2012 13:23:57 GMT+0200 (CEST)"},"16397":{"date":{"__isSmartRef__":true,"id":16398},"author":"timfelgentreff","message":"","id":"8A61D4CF-17A8-4B0E-AD01-3807E28FAD9E"},"16398":{"isSerializedDate":true,"string":"Thu Apr 19 2012 15:05:44 GMT+0200 (CEST)"},"16399":{"date":{"__isSmartRef__":true,"id":16400},"author":"timfelgentreff","message":"","id":"3B4FAF4F-0D7A-47F9-9247-47D6649688B6"},"16400":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:33:44 GMT+0200 (CEST)"},"16401":{"date":{"__isSmartRef__":true,"id":16402},"author":"timfelgentreff","message":"","id":"89954E3F-B4E1-49D9-9969-AB27CE0CBABD"},"16402":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:27:06 GMT+0200 (CEST)"},"16403":{"date":{"__isSmartRef__":true,"id":16404},"author":"timfelgentreff","message":"","id":"AE514D08-62FA-410B-9287-72917FA6B563"},"16404":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:26:55 GMT+0200 (CEST)"},"16405":{"date":{"__isSmartRef__":true,"id":16406},"author":"timfelgentreff","message":"","id":"DE3BE79D-EDA8-415F-9405-95CDD1774577"},"16406":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:14:52 GMT+0200 (CEST)"},"16407":{"date":{"__isSmartRef__":true,"id":16408},"author":"timfelgentreff","message":"","id":"3DF6DA7F-0492-4EC2-B626-E65ED2F0CDF2"},"16408":{"isSerializedDate":true,"string":"Thu Apr 19 2012 12:07:30 GMT+0200 (CEST)"},"16409":{"date":{"__isSmartRef__":true,"id":16410},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"16410":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"16411":{"date":{"__isSmartRef__":true,"id":16412},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"16412":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"16413":{"date":{"__isSmartRef__":true,"id":16414},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"16414":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"16415":{"date":{"__isSmartRef__":true,"id":16416},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"16416":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"16417":{"date":{"__isSmartRef__":true,"id":16418},"author":"timfelgentreff","message":"","id":"666459AF-F338-4900-A325-0A193313D463"},"16418":{"isSerializedDate":true,"string":"Thu Apr 19 2012 11:37:03 GMT+0200 (CEST)"},"16419":{"date":{"__isSmartRef__":true,"id":16420},"author":"timfelgentreff","message":"","id":"AE4850E0-F8B8-442E-9A28-2388D0500FC1"},"16420":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:07:33 GMT+0200 (CEST)"},"16421":{"date":{"__isSmartRef__":true,"id":16422},"author":"lauritz","message":"alias toolbox","id":"FECC8EA9-60A5-4B3B-A8C3-017FF0CEFE02"},"16422":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:16:41 GMT+0200 (CEST)"},"16423":{"date":{"__isSmartRef__":true,"id":16424},"author":"timfelgentreff","message":"","id":"10677F89-3177-4F33-9511-5BB0E21E2DEB"},"16424":{"isSerializedDate":true,"string":"Thu Apr 19 2012 16:11:07 GMT+0200 (CEST)"},"16425":{"date":{"__isSmartRef__":true,"id":16426},"author":"timfelgentreff","message":"","id":"A0C26B2F-3323-421E-94FB-E5E6180AD81C"},"16426":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:59:37 GMT+0200 (CEST)"},"16427":{"date":{"__isSmartRef__":true,"id":16428},"author":"timfelgentreff","message":"add a method to get the names of part items ending with a particular string, minus that string.. can be used to get all characters, things or tiles","id":"65C4FFB1-1E22-4575-A6B7-11A226A7B0E5"},"16428":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:24:39 GMT+0200 (CEST)"},"16429":{"date":{"__isSmartRef__":true,"id":16430},"author":"timfelgentreff","message":"add generation of things","id":"87868D79-001D-4B0E-A435-649B4906FEF0"},"16430":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:20:14 GMT+0200 (CEST)"},"16431":{"date":{"__isSmartRef__":true,"id":16432},"author":"timfelgentreff","message":"fix setup things","id":"5F7A588C-AB63-49EB-80E4-3083A569EBCD"},"16432":{"isSerializedDate":true,"string":"Mon Apr 23 2012 14:32:14 GMT+0200 (CEST)"},"16433":{"date":{"__isSmartRef__":true,"id":16434},"author":"tessi","message":"map now generates some flower tiles too","id":"C1AFA3CF-CD73-432A-AC79-144C9B5D433B"},"16434":{"isSerializedDate":true,"string":"Mon Apr 23 2012 15:58:01 GMT+0200 (CEST)"},"16435":{"date":{"__isSmartRef__":true,"id":16436},"author":"timfelgentreff","message":"use shallowCopy for tiles","id":"D4325DFA-12D5-4A97-BAE7-F6B2A0430EA5"},"16436":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:54:36 GMT+0200 (CEST)"},"16437":{"date":{"__isSmartRef__":true,"id":16438},"author":"timfelgentreff","message":"merge lauritz' changes","id":"51463A4E-AEC0-4BEC-AEFB-33478C31225F"},"16438":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:08:15 GMT+0200 (CEST)"},"16439":{"date":{"__isSmartRef__":true,"id":16440},"author":"timfelgentreff","message":"fix for non-shallowCopy toolbox items","id":"A6B99BEA-DE24-4559-B954-13A0EBC1E1DF"},"16440":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:13:35 GMT+0200 (CEST)"},"16441":{"date":{"__isSmartRef__":true,"id":16442},"author":"timfelgentreff","message":"add a player","id":"D427AD7F-610C-4DB0-8783-DC6652015178"},"16442":{"isSerializedDate":true,"string":"Fri May 04 2012 17:41:04 GMT+0200 (CEST)"},"16443":{"date":{"__isSmartRef__":true,"id":16444},"author":"lauritz","message":"normal-styled tiles at the beginning","id":"B7823FED-4B48-458E-9C42-0CE743ADCF93"},"16444":{"isSerializedDate":true,"string":"Mon May 07 2012 19:01:08 GMT+0200 (CEST)"},"16445":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"16446":{"morph":{"__isSmartRef__":true,"id":1},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16447":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16448}},"16448":{"test01IsMorph":{"__isSmartRef__":true,"id":16449}},"16449":{"varMapping":{"__isSmartRef__":true,"id":16450},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":16451},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16450":{"this":{"__isSmartRef__":true,"id":16447}},"16451":{},"16452":{"x":353,"y":-14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16453":{"Character":["Villagegirl","Scientist","Octocat","Ogre","Coder","Villager"],"Thing":["Fire","Stone","Woodstack","Tree","Parasol"]},"16454":{"Tile":{"__isSmartRef__":true,"id":894},"GrassTile":{"__isSmartRef__":true,"id":16},"FlowerGrassTile":{"__isSmartRef__":true,"id":658},"Character":{"__isSmartRef__":true,"id":4154},"":{"__isSmartRef__":true,"id":2922},"":{"__isSmartRef__":true,"id":2846},"":{"__isSmartRef__":true,"id":278},"":{"__isSmartRef__":true,"id":428}},"16455":{"loadPartItem":{"__isSmartRef__":true,"id":16456},"getPartsBinCategory":{"__isSmartRef__":true,"id":16460},"toolbox":{"__isSmartRef__":true,"id":16464},"reset":{"__isSmartRef__":true,"id":16468},"zIndexForTiles":{"__isSmartRef__":true,"id":16472},"zIndexForThings":{"__isSmartRef__":true,"id":16476},"partNamesEndingWith":{"__isSmartRef__":true,"id":16480}},"16456":{"varMapping":{"__isSmartRef__":true,"id":16457},"source":"function loadPartItem(partName) {\n if (!this.partItemCache) this.partItemCache = {}\n\n var shallowCopyableItem = this.partItemCache[partName]\n if (shallowCopyableItem) {\n return shallowCopyableItem.shallowCopy()\n } else {\n var newItem = $world.loadPartItem(partName, 'PartsBin/' + this.getPartsBinCategory())\n if (typeof newItem.shallowCopy == \"function\") {\n this.partItemCache[partName] = newItem\n return newItem.shallowCopy()\n } else {\n return newItem\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16458},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16457":{"this":{"__isSmartRef__":true,"id":1}},"16458":{"timestamp":{"__isSmartRef__":true,"id":16459},"user":"timfelgentreff","tags":[]},"16459":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:51 GMT+0200 (CEST)"},"16460":{"varMapping":{"__isSmartRef__":true,"id":16461},"source":"function getPartsBinCategory() {\n return 'FreedomOfSpeech';\n}","funcProperties":{"__isSmartRef__":true,"id":16462},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16461":{"this":{"__isSmartRef__":true,"id":1}},"16462":{"timestamp":{"__isSmartRef__":true,"id":16463},"user":"lauritz","tags":[]},"16463":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:09:26 GMT+0200 (CEST)"},"16464":{"varMapping":{"__isSmartRef__":true,"id":16465},"source":"function toolbox(partName) {\n return this.loadPartItem(partName);\n}","funcProperties":{"__isSmartRef__":true,"id":16466},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16465":{"this":{"__isSmartRef__":true,"id":1}},"16466":{"timestamp":{"__isSmartRef__":true,"id":16467},"user":"lauritz","tags":[]},"16467":{"isSerializedDate":true,"string":"Thu Apr 19 2012 14:15:49 GMT+0200 (CEST)"},"16468":{"varMapping":{"__isSmartRef__":true,"id":16469},"source":"function reset() {\n this.partItemCache = {}\n this.selectedUnit = null\n}","funcProperties":{"__isSmartRef__":true,"id":16470},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16469":{"this":{"__isSmartRef__":true,"id":1}},"16470":{"timestamp":{"__isSmartRef__":true,"id":16471},"user":"timfelgentreff","tags":[]},"16471":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:08:04 GMT+0200 (CEST)"},"16472":{"varMapping":{"__isSmartRef__":true,"id":16473},"source":"function zIndexForTiles() {\n return 10;\n}","funcProperties":{"__isSmartRef__":true,"id":16474},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16473":{"this":{"__isSmartRef__":true,"id":1}},"16474":{"timestamp":{"__isSmartRef__":true,"id":16475},"user":"timfelgentreff","tags":[]},"16475":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:58:48 GMT+0200 (CEST)"},"16476":{"varMapping":{"__isSmartRef__":true,"id":16477},"source":"function zIndexForThings() {\n return this.zIndexForTiles + 10;\n}","funcProperties":{"__isSmartRef__":true,"id":16478},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16477":{"this":{"__isSmartRef__":true,"id":1}},"16478":{"timestamp":{"__isSmartRef__":true,"id":16479},"user":"timfelgentreff","tags":[]},"16479":{"isSerializedDate":true,"string":"Thu Apr 19 2012 17:59:07 GMT+0200 (CEST)"},"16480":{"varMapping":{"__isSmartRef__":true,"id":16481},"source":"function partNamesEndingWith(string) {\n if (!this.partNamesCache) this.partNamesCache = {}\n if (this.partNamesCache[string]) return this.partNamesCache[string]\n\n this.partNamesCache[string] = lively.PartsBin.\n partsSpaceNamed(\"PartsBin/\" + this.getPartsBinCategory() + \"/\").\n getPartNames().select(function (each) {\n return each.match(new RegExp(\".+\" + string + \"$\"))\n }).collect(function (each) {\n return each.truncate(each.length - string.length, \"\")\n });\n return this.partNamesCache[string]\n}","funcProperties":{"__isSmartRef__":true,"id":16482},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16481":{"this":{"__isSmartRef__":true,"id":1}},"16482":{"timestamp":{"__isSmartRef__":true,"id":16483},"user":"timfelgentreff","tags":[]},"16483":{"isSerializedDate":true,"string":"Mon Apr 23 2012 12:22:18 GMT+0200 (CEST)"},"16484":{"submorphs":[{"__isSmartRef__":true,"id":16485},{"__isSmartRef__":true,"id":18747},{"__isSmartRef__":true,"id":18786}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18936},"id":"D4D43C52-FFF0-4157-BE5B-2FD677E4F701","renderContextTable":{"__isSmartRef__":true,"id":18941},"eventHandler":{"__isSmartRef__":true,"id":18942},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":18943},"LK2":true,"targetMorph":{"__isSmartRef__":true,"id":16485},"titleBar":{"__isSmartRef__":true,"id":18786},"contentOffset":{"__isSmartRef__":true,"id":18944},"collapsedTransform":{"__isSmartRef__":true,"id":18945},"collapsedExtent":{"__isSmartRef__":true,"id":18946},"expandedTransform":{"__isSmartRef__":true,"id":18947},"expandedExtent":{"__isSmartRef__":true,"id":18948},"ignoreEventsOnExpand":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":18949},"name":"ObjectGroupEditor1","prevDragPos":{"__isSmartRef__":true,"id":19102},"highlighted":false,"cameForward":false,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","expandedPosition":{"__isSmartRef__":true,"id":19103},"collapsedPosition":{"__isSmartRef__":true,"id":19104},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isBeingDragged":false,"prevScroll":[0,0],"minSize":{"__isSmartRef__":true,"id":19105},"minExtent":{"__isSmartRef__":true,"id":19106},"isCopyMorphRef":true,"morphRefId":3,"derivationIds":[205,"2951753B-EB95-4093-A0DD-249E83AC2204","A32DE788-E06D-492C-B2E6-19C3710B5AE0","96D56291-98FB-42C4-A247-0A20B4183B14","1E6BCC46-3FE3-4950-AE50-9751458F7E18","22248328-5B04-4E39-ADDE-460C107C790F","2F4F6161-9F4C-469E-AF56-24765FF03B72","88EF08D5-C1E7-4B5B-B393-FFF5921009D7","FF731ED6-5217-4053-9B85-77F1BF344BF3","496332F8-A328-4625-A7D5-0DCE90C3D2AE","E57F1D4E-AE08-4CAA-A62D-4E69FC0BFF47","94783CDE-55B0-4198-8477-C0756F2C812F","F03206B8-2964-470C-A335-FF321C7743E5","C60ABA94-4D2A-4524-9239-9B7EA074A0B5","D3FBB0FA-2BFF-4D8C-9632-41EEEDB053AE","FDF9A68D-1149-4666-9946-600CCA238B76","118B9F76-0089-47CC-9C18-9F9FF646339B","B0FFB231-7805-4F89-B4B3-4ACD87687613","76631A8F-F752-4DB8-93ED-1496BC458DF0","04D3062E-744B-4E3D-8B25-5602772A307B","89687ECD-A53A-4C95-B6E8-235EBB9198E9","9A752E28-AE8D-4E7E-A64C-D0F17B820396","EDC14C4E-75D7-40A1-9FDB-39410CCAA665","12EDC4FB-CF69-4B4C-ACE4-710EB829D699","F2C85D19-1EDB-484D-91DB-0E3E717280DB","F9782A94-E66B-430E-AC17-A05010D833EC","5F7EE9A2-838E-4265-81F5-AA9EC90E67F5","9311E7F0-6955-4C8F-B30A-36426ABFF821","B294364C-776F-4DC1-9827-B41DE14A8F01"],"_Position":{"__isSmartRef__":true,"id":19107},"moved":true,"_ClipMode":"visible","_Rotation":0,"_Scale":1.01,"owner":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19108},"__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"16485":{"submorphs":[{"__isSmartRef__":true,"id":16486},{"__isSmartRef__":true,"id":17634},{"__isSmartRef__":true,"id":17419},{"__isSmartRef__":true,"id":17648},{"__isSmartRef__":true,"id":17663},{"__isSmartRef__":true,"id":17712},{"__isSmartRef__":true,"id":17770},{"__isSmartRef__":true,"id":17824},{"__isSmartRef__":true,"id":16951},{"__isSmartRef__":true,"id":17298},{"__isSmartRef__":true,"id":17883},{"__isSmartRef__":true,"id":17897},{"__isSmartRef__":true,"id":17981},{"__isSmartRef__":true,"id":18063},{"__isSmartRef__":true,"id":18145},{"__isSmartRef__":true,"id":18191},{"__isSmartRef__":true,"id":18420},{"__isSmartRef__":true,"id":18491}],"scripts":[{"__isSmartRef__":true,"id":18625}],"id":"76E68FAA-F5C3-4F71-9F19-1C1F65C8B4ED","shape":{"__isSmartRef__":true,"id":18626},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ObjectEditorPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":18633},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":18636},"eventHandler":{"__isSmartRef__":true,"id":18637},"layout":{"__isSmartRef__":true,"id":18638},"target":{"__isSmartRef__":true,"id":17263},"scriptPane":{"__isSmartRef__":true,"id":16951},"scriptList":{"__isSmartRef__":true,"id":16486},"connectionList":{"__isSmartRef__":true,"id":17419},"morphSelector":{"__isSmartRef__":true,"id":18491},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"changeIndicator":{"__isSmartRef__":true,"id":17298},"isBeingDragged":false,"prevScroll":[0,0],"grabbingEnabled":false,"draggingEnabled":false,"currentCategory":null,"distanceToDragEvent":{"__isSmartRef__":true,"id":18639},"tagChooser":{"__isSmartRef__":true,"id":17897},"currentTag":null,"derivationIds":[206,"3BDE080D-3D60-4BB9-A690-E6001350F596","00E28CBF-E803-4BC0-93CC-651AC21008A5","1B7E7936-0145-47E4-8433-DFE58134E74B","422B98E3-E52B-4057-9C28-865873682DE1","BCDE8D30-ECC2-4883-9587-2518B6822233","BA6D5198-5AC2-4A63-9597-D4CF98A99CA9","17E22972-5EBC-4511-9779-05E9E665D899","C6F34039-F423-4223-8D6A-85611A138372","7EC3BECE-1BDA-471D-B14C-C4FB822AA55C","88F702A6-6067-4160-8561-54FAD27ADB17","738F5E09-C109-4CD0-B5F5-418A6227ABA0","0DC59884-6397-4391-A9A7-FB6F9F97E5AD","14C76016-3134-4E27-8E8F-AF9EE6ACCF4E","FEB1641E-DEA0-449B-B5E5-D3946457A986","5A09E61D-0939-46DD-B099-6337F45EAD81","42A37CDC-8F21-49BA-A701-B98418EF4AEC","FCE84B47-1667-482B-B035-D2C3C7F53837","F49E6D79-2AEB-41FC-8057-A25A4C7D4F92","7B115C74-E409-42A1-9FCB-2DEB53C88CD6","1D3B45A6-5E60-4FD3-900A-288DB80F5262","68AF592C-823F-42BD-8929-B0AD48FFB7E0","179D4BE8-C616-400C-A31A-7110217E0F4E","29D09DA5-4E88-4CBE-9A3C-2B2F427A119E","C0836C4D-E5E4-47C7-B7C1-D45597B8A562","07EAF1EA-E1E4-49CC-BC97-D82582EC3846","37EE8D85-0AA5-4D0B-AE96-C65C4384F793","E9CDD566-F432-46A6-A16E-401E6A1540AB","EAC0A578-4147-49B9-B628-EE4BD3455957"],"_Position":{"__isSmartRef__":true,"id":18640},"owner":{"__isSmartRef__":true,"id":16484},"partTests":{"__isSmartRef__":true,"id":18641},"_ClipMode":"visible","isCopyMorphRef":true,"morphRefId":142,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18642},"__LivelyClassName__":"lively.morphic.Box"},"16486":{"submorphs":[],"scripts":[],"id":"C7BE1F0A-3A1F-4BCF-8534-A9D73F6EC666","shape":{"__isSmartRef__":true,"id":16487},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":16494},"itemList":["-- ALL --","setDevStyle","setNormalStyle","tileSize","become","walkUntilReached","onMouseDown","walkTo","currentTile","toolbox","setCurrentSpeed","getCurrentSpeed","isWalking","select","deselect","becomeRandomCharacter","reset","setDirectionToTile","getDirection","setDirection","setPosition","say","soliloquize","characterType","animate","doSomething","map","game","setup","copyToPartsBinWithUserRequest","startConversation","startConversationWith","shallowCopy","conversation","answer","hideTextBubble","aStar","aStarHeuristicCostEstimate","aStarWalkPath","chatBot","getHit","becomePlayer","fightPhrases","randomQuestions","randomAnswersFor","executeFightTurnAsking","heal","isDead"],"selectedLineNo":45,"showsHalos":false,"name":"ObjectEditorScriptList","partsBinMetaInfo":{"__isSmartRef__":true,"id":16495},"__SourceModuleName__":"Global.lively.morphic.Core","_ClipMode":"auto","owner":{"__isSmartRef__":true,"id":16485},"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":16496}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"layout":{"__isSmartRef__":true,"id":16501},"doitContext":{"__isSmartRef__":true,"id":16502},"renderContextTable":{"__isSmartRef__":true,"id":17623},"eventHandler":{"__isSmartRef__":true,"id":17624},"_FontSize":10,"distanceToDragEvent":{"__isSmartRef__":true,"id":17625},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"isCopyMorphRef":true,"morphRefId":143,"currentCategory":null,"derivationIds":[207,"D87334B5-DFB8-438D-8038-D2C55A798E3B","4242A24B-D284-4130-BB19-C1AB8C7E96CB","1F2230C1-4745-4EED-8827-5D3FC0EA8D8A","1260A8AA-AD41-451A-A761-BE75A33282E8","11AABB24-1595-4EDC-95DF-8BC66785F47A","CA99FFE7-13DD-4721-8DE2-6A587B0C65D9","E01A3DAA-0001-4C7C-A6A7-449C3945A3E6","8C3C70BF-E1CE-4FB9-8407-24EA990D4E49","D70897C1-82FA-42AD-9D81-A0698E9072CC","69BB0838-2830-4831-A681-185E03308396","434D4493-4DD6-466F-A202-7364A5829C52","93D99F39-CC07-45EB-9459-5230A80A20D2","4756DE7D-3422-46FC-B24B-5565F597D490","7AF59BEC-20A9-4451-AD6E-39E86979D18D","07109F49-B19B-4C20-8632-697478AA1FFB","DD6C1E85-89E4-4619-A9B8-6CF6A5E7AD71","C9C566DA-2167-4866-B606-6D9467CC5763","43A75FC1-E0E6-4B7B-84B5-382D18881361","1EE4A800-07BC-4687-B972-0360A139A335","52766A7B-F1AC-4B5D-AFA9-3CBEC45A4175","FB3C075A-B4AF-4C36-9532-8380B00215B0","0A64CAD8-036F-4A2A-8FF0-1FC11B9FB223","69A259BB-D4BB-4C81-8BC2-2A56132762C9","468A73EF-77A8-4771-AD74-4125E8BC5811","003FAF01-8397-42D0-A20B-6924DB25B09F","EE156FF7-8BB7-40F4-BB54-F1DB2E3073D3","4F62E4A4-8D60-4CA9-A476-66D41187E752","33876DC6-F4D9-4EE3-A298-B5D37622A71D"],"selection":"executeFightTurnAsking","changeTriggered":true,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17626},"__LivelyClassName__":"lively.morphic.List"},"16487":{"position":{"__isSmartRef__":true,"id":16488},"_Extent":{"__isSmartRef__":true,"id":16489},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16490},"_Fill":{"__isSmartRef__":true,"id":16491},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":16492},"_Opacity":1,"_BorderStyle":"solid","_Padding":{"__isSmartRef__":true,"id":16493},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16488":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16489":{"x":180,"y":337.61253261443596,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16490":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16491":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16492":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"16493":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16494":{"x":10,"y":63.027958027992966,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16495":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"16496":{"sourceObj":{"__isSmartRef__":true,"id":16486},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":16485},"targetMethodName":"displaySourceForScript","converterString":"function (value) {\n return (value === '-- ALL --') ? null : value;\n}","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16497},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16498},"__LivelyClassName__":"AttributeConnection"},"16497":{"source":{"__isSmartRef__":true,"id":16486},"target":{"__isSmartRef__":true,"id":16485}},"16498":{"converter":{"__isSmartRef__":true,"id":16499}},"16499":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":16497},"source":"function (value) {\n return (value === '-- ALL --') ? null : value;\n}","funcProperties":{"__isSmartRef__":true,"id":16500},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16500":{},"16501":{"resizeHeight":true},"16502":{"submorphs":[],"scripts":[],"id":836,"shape":{"__isSmartRef__":true,"id":16503},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":16508},"titleBar":{"__isSmartRef__":true,"id":16509},"contentOffset":{"__isSmartRef__":true,"id":16642},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":{"__isSmartRef__":true,"id":16643},"expandedExtent":{"__isSmartRef__":true,"id":16644},"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":16645},"showsHalos":false,"name":"ObjectEditor","__SourceModuleName__":"Global.lively.morphic.Widgets","target":{"__isSmartRef__":true,"id":16646},"expandedPosition":{"__isSmartRef__":true,"id":16949},"partsBinMetaInfo":{"__isSmartRef__":true,"id":16950},"scriptList":{"__isSmartRef__":true,"id":16486},"scriptPane":{"__isSmartRef__":true,"id":16951},"classButton":{"__isSmartRef__":true,"id":17375},"connectionList":{"__isSmartRef__":true,"id":17419},"targetButton":{"__isSmartRef__":true,"id":17443},"renderContextTable":{"__isSmartRef__":true,"id":17485},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Position":{"__isSmartRef__":true,"id":17486},"morphSelector":{"__isSmartRef__":true,"id":17487},"eventHandler":{"__isSmartRef__":true,"id":17570},"cameForward":false,"isCopyMorphRef":true,"morphRefId":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17571},"__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"16503":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":16504},"_StrokeOpacity":0,"_BorderRadius":9.25,"_Extent":{"__isSmartRef__":true,"id":16505},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderColor":{"__isSmartRef__":true,"id":16506},"renderContextTable":{"__isSmartRef__":true,"id":16507},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16504":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16505":{"x":981,"y":585.2,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16506":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16507":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16508":{"adjustForNewBounds":true},"16509":{"submorphs":[{"__isSmartRef__":true,"id":16510},{"__isSmartRef__":true,"id":16522},{"__isSmartRef__":true,"id":16564},{"__isSmartRef__":true,"id":16594}],"scripts":[],"id":837,"shape":{"__isSmartRef__":true,"id":16625},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":16638},"_Position":{"__isSmartRef__":true,"id":16639},"eventsAreIgnored":true,"windowMorph":{"__isSmartRef__":true,"id":16502},"label":{"__isSmartRef__":true,"id":16510},"closeButton":{"__isSmartRef__":true,"id":16522},"menuButton":{"__isSmartRef__":true,"id":16564},"collapseButton":{"__isSmartRef__":true,"id":16594},"owner":null,"__SourceModuleName__":"Global.lively.morphic.Widgets","name":"ObjectEditorTitleBar","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":16640},"eventHandler":{"__isSmartRef__":true,"id":16641},"__LivelyClassName__":"lively.morphic.TitleBar"},"16510":{"submorphs":[],"scripts":[],"id":838,"shape":{"__isSmartRef__":true,"id":16511},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":16516},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":16517},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":16518}],"evalEnabled":false,"isLabel":true,"eventsAreIgnored":true,"_FontSize":10,"_Align":"center","owner":{"__isSmartRef__":true,"id":16509},"__SourceModuleName__":"Global.lively.morphic.TextCore","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":16520},"eventHandler":{"__isSmartRef__":true,"id":16521},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"16511":{"_Position":{"__isSmartRef__":true,"id":16512},"_Extent":{"__isSmartRef__":true,"id":16513},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16514},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":16515},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16512":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16513":{"x":921.9776803724167,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16514":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16515":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16516":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16517":{"x":20,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16518":{"style":{"__isSmartRef__":true,"id":16519},"chunkOwner":{"__isSmartRef__":true,"id":16510},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","_id":"_237","__LivelyClassName__":"lively.morphic.TextChunk"},"16519":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"16520":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"16521":{"morph":{"__isSmartRef__":true,"id":16510},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16522":{"submorphs":[{"__isSmartRef__":true,"id":16523}],"scripts":[],"id":839,"shape":{"__isSmartRef__":true,"id":16534},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":16549},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":16538},"lighterFill":{"__isSmartRef__":true,"id":16550},"label":{"__isSmartRef__":true,"id":16523},"owner":{"__isSmartRef__":true,"id":16509},"layout":{"__isSmartRef__":true,"id":16559},"attributeConnections":[{"__isSmartRef__":true,"id":16560},{"__isSmartRef__":true,"id":16561}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":16562},"eventHandler":{"__isSmartRef__":true,"id":16563},"__LivelyClassName__":"lively.morphic.WindowControl"},"16523":{"submorphs":[],"scripts":[],"id":840,"shape":{"__isSmartRef__":true,"id":16524},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":16528},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":16529},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":16530}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16522},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":16532},"eventHandler":{"__isSmartRef__":true,"id":16533},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"16524":{"_Position":{"__isSmartRef__":true,"id":16525},"_Extent":{"__isSmartRef__":true,"id":16526},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16514},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":16527},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16525":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16526":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16527":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16528":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16529":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16530":{"style":{"__isSmartRef__":true,"id":16531},"chunkOwner":{"__isSmartRef__":true,"id":16523},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","_id":"_238","__LivelyClassName__":"lively.morphic.TextChunk"},"16531":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"16532":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"16533":{"morph":{"__isSmartRef__":true,"id":16523},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16534":{"_Position":{"__isSmartRef__":true,"id":16535},"_Extent":{"__isSmartRef__":true,"id":16536},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16537},"_Fill":{"__isSmartRef__":true,"id":16538},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":16548},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16535":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16536":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16537":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16538":{"stops":[{"__isSmartRef__":true,"id":16539},{"__isSmartRef__":true,"id":16541},{"__isSmartRef__":true,"id":16543},{"__isSmartRef__":true,"id":16545}],"vector":{"__isSmartRef__":true,"id":16547},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"16539":{"offset":0,"color":{"__isSmartRef__":true,"id":16540}},"16540":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16541":{"offset":0.4,"color":{"__isSmartRef__":true,"id":16542}},"16542":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16543":{"offset":0.6,"color":{"__isSmartRef__":true,"id":16544}},"16544":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16545":{"offset":1,"color":{"__isSmartRef__":true,"id":16546}},"16546":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16547":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16548":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16549":{"x":960.9776803724167,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16550":{"stops":[{"__isSmartRef__":true,"id":16551},{"__isSmartRef__":true,"id":16553},{"__isSmartRef__":true,"id":16555},{"__isSmartRef__":true,"id":16557}],"vector":{"__isSmartRef__":true,"id":16547},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"16551":{"offset":0,"color":{"__isSmartRef__":true,"id":16552}},"16552":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16553":{"offset":0.4,"color":{"__isSmartRef__":true,"id":16554}},"16554":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16555":{"offset":0.6,"color":{"__isSmartRef__":true,"id":16556}},"16556":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16557":{"offset":1,"color":{"__isSmartRef__":true,"id":16558}},"16558":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16559":{"moveHorizontal":true},"16560":{"sourceObj":{"__isSmartRef__":true,"id":16522},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16502},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"16561":{"sourceObj":{"__isSmartRef__":true,"id":16522},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16502},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"16562":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"16563":{"morph":{"__isSmartRef__":true,"id":16522},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16564":{"submorphs":[{"__isSmartRef__":true,"id":16565}],"scripts":[],"id":841,"shape":{"__isSmartRef__":true,"id":16576},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":16580},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":16538},"lighterFill":{"__isSmartRef__":true,"id":16581},"label":{"__isSmartRef__":true,"id":16565},"owner":{"__isSmartRef__":true,"id":16509},"attributeConnections":[{"__isSmartRef__":true,"id":16590},{"__isSmartRef__":true,"id":16591}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","showsHalos":false,"_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":16592},"eventHandler":{"__isSmartRef__":true,"id":16593},"__LivelyClassName__":"lively.morphic.WindowControl"},"16565":{"submorphs":[],"scripts":[],"id":842,"shape":{"__isSmartRef__":true,"id":16566},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":16570},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":16571},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":16572}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16564},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":16574},"eventHandler":{"__isSmartRef__":true,"id":16575},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"16566":{"_Position":{"__isSmartRef__":true,"id":16567},"_Extent":{"__isSmartRef__":true,"id":16568},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16514},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":16569},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16567":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16568":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16569":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16570":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16571":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16572":{"style":{"__isSmartRef__":true,"id":16573},"chunkOwner":{"__isSmartRef__":true,"id":16565},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","_id":"_239","__LivelyClassName__":"lively.morphic.TextChunk"},"16573":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"16574":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"16575":{"morph":{"__isSmartRef__":true,"id":16565},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16576":{"_Position":{"__isSmartRef__":true,"id":16577},"_Extent":{"__isSmartRef__":true,"id":16578},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16537},"_Fill":{"__isSmartRef__":true,"id":16538},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":16579},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16577":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16578":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16579":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16580":{"x":3,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16581":{"stops":[{"__isSmartRef__":true,"id":16582},{"__isSmartRef__":true,"id":16584},{"__isSmartRef__":true,"id":16586},{"__isSmartRef__":true,"id":16588}],"vector":{"__isSmartRef__":true,"id":16547},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"16582":{"offset":0,"color":{"__isSmartRef__":true,"id":16583}},"16583":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16584":{"offset":0.4,"color":{"__isSmartRef__":true,"id":16585}},"16585":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16586":{"offset":0.6,"color":{"__isSmartRef__":true,"id":16587}},"16587":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16588":{"offset":1,"color":{"__isSmartRef__":true,"id":16589}},"16589":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16590":{"sourceObj":{"__isSmartRef__":true,"id":16564},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16502},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"16591":{"sourceObj":{"__isSmartRef__":true,"id":16564},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16502},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"16592":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"16593":{"morph":{"__isSmartRef__":true,"id":16564},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16594":{"submorphs":[{"__isSmartRef__":true,"id":16595}],"scripts":[],"id":843,"shape":{"__isSmartRef__":true,"id":16606},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":16610},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":16538},"lighterFill":{"__isSmartRef__":true,"id":16611},"label":{"__isSmartRef__":true,"id":16595},"owner":{"__isSmartRef__":true,"id":16509},"layout":{"__isSmartRef__":true,"id":16620},"attributeConnections":[{"__isSmartRef__":true,"id":16621},{"__isSmartRef__":true,"id":16622}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":16623},"eventHandler":{"__isSmartRef__":true,"id":16624},"__LivelyClassName__":"lively.morphic.WindowControl"},"16595":{"submorphs":[],"scripts":[],"id":844,"shape":{"__isSmartRef__":true,"id":16596},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":16600},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":16601},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":16602}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16594},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":16604},"eventHandler":{"__isSmartRef__":true,"id":16605},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"16596":{"_Position":{"__isSmartRef__":true,"id":16597},"_Extent":{"__isSmartRef__":true,"id":16598},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16514},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":16599},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16597":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16598":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16599":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16600":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16601":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16602":{"style":{"__isSmartRef__":true,"id":16603},"chunkOwner":{"__isSmartRef__":true,"id":16595},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","_id":"_240","__LivelyClassName__":"lively.morphic.TextChunk"},"16603":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"16604":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"16605":{"morph":{"__isSmartRef__":true,"id":16595},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16606":{"_Position":{"__isSmartRef__":true,"id":16607},"_Extent":{"__isSmartRef__":true,"id":16608},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16537},"_Fill":{"__isSmartRef__":true,"id":16538},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":16609},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16607":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16608":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16609":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16610":{"x":941.9776803724167,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16611":{"stops":[{"__isSmartRef__":true,"id":16612},{"__isSmartRef__":true,"id":16614},{"__isSmartRef__":true,"id":16616},{"__isSmartRef__":true,"id":16618}],"vector":{"__isSmartRef__":true,"id":16547},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"16612":{"offset":0,"color":{"__isSmartRef__":true,"id":16613}},"16613":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16614":{"offset":0.4,"color":{"__isSmartRef__":true,"id":16615}},"16615":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16616":{"offset":0.6,"color":{"__isSmartRef__":true,"id":16617}},"16617":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16618":{"offset":1,"color":{"__isSmartRef__":true,"id":16619}},"16619":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16620":{"moveHorizontal":true},"16621":{"sourceObj":{"__isSmartRef__":true,"id":16594},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16502},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"16622":{"sourceObj":{"__isSmartRef__":true,"id":16594},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16502},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"16623":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"16624":{"morph":{"__isSmartRef__":true,"id":16594},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16625":{"_Position":{"__isSmartRef__":true,"id":16626},"_Extent":{"__isSmartRef__":true,"id":16627},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":16628},"_Fill":{"__isSmartRef__":true,"id":16629},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":16637},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16626":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16627":{"x":980.9776803724167,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16628":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16629":{"stops":[{"__isSmartRef__":true,"id":16630},{"__isSmartRef__":true,"id":16632},{"__isSmartRef__":true,"id":16634}],"vector":{"__isSmartRef__":true,"id":16636},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"16630":{"offset":0,"color":{"__isSmartRef__":true,"id":16631}},"16631":{"r":0.7200000000000001,"g":0.7200000000000001,"b":0.7200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16632":{"offset":0.6,"color":{"__isSmartRef__":true,"id":16633}},"16633":{"r":0.9,"g":0.9,"b":0.9,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16634":{"offset":1,"color":{"__isSmartRef__":true,"id":16635}},"16635":{"r":0.7200000000000001,"g":0.7200000000000001,"b":0.7200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16636":{"x":0,"y":1,"width":0,"height":-1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16637":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16638":{"resizeWidth":true,"adjustForNewBounds":true},"16639":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16640":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"16641":{"morph":{"__isSmartRef__":true,"id":16509},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16642":{"x":0,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16643":{"a":1,"b":0,"c":0,"d":1,"e":377.6609726943286,"f":419.5142810783999,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"lively.morphic.Similitude"},"16644":{"x":861.5223196275833,"y":575.166499196892,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16645":{"x":613,"y":129,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16646":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16647},"id":394,"renderContextTable":{"__isSmartRef__":true,"id":16653},"textChunks":[{"__isSmartRef__":true,"id":16654}],"eventHandler":{"__isSmartRef__":true,"id":16656},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":16657},"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":16658},"_MaxTextWidth":500,"_MaxTextHeight":200,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16659},"layout":{"__isSmartRef__":true,"id":16797},"doitContext":{"__isSmartRef__":true,"id":16798},"priorSelectionRange":[0,36],"charsReplaced":"","lastFindLoc":20,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"16647":{"_Position":{"__isSmartRef__":true,"id":16648},"renderContextTable":{"__isSmartRef__":true,"id":16649},"_Extent":{"__isSmartRef__":true,"id":16650},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":16651},"_Fill":{"__isSmartRef__":true,"id":16652},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16648":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16649":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16650":{"x":500,"y":200,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16651":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16652":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16653":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"16654":{"style":{"__isSmartRef__":true,"id":16655},"chunkOwner":{"__isSmartRef__":true,"id":16646},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","_id":"_249","__LivelyClassName__":"lively.morphic.TextChunk"},"16655":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"16656":{"morph":{"__isSmartRef__":true,"id":16646},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16657":{"x":2,"y":1,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16658":{"x":0,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16659":{"submorphs":[{"__isSmartRef__":true,"id":16646},{"__isSmartRef__":true,"id":16660}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16789},"id":395,"renderContextTable":{"__isSmartRef__":true,"id":16792},"eventHandler":{"__isSmartRef__":true,"id":16793},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":16794},"LK2":true,"_Position":{"__isSmartRef__":true,"id":16795},"targetMorph":{"__isSmartRef__":true,"id":16646},"titleBar":{"__isSmartRef__":true,"id":16660},"contentOffset":{"__isSmartRef__":true,"id":16658},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":16796},"cameForward":false,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"16660":{"submorphs":[{"__isSmartRef__":true,"id":16661},{"__isSmartRef__":true,"id":16673},{"__isSmartRef__":true,"id":16717},{"__isSmartRef__":true,"id":16748}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16780},"id":396,"renderContextTable":{"__isSmartRef__":true,"id":16785},"eventHandler":{"__isSmartRef__":true,"id":16786},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":16787},"_Position":{"__isSmartRef__":true,"id":16788},"windowMorph":{"__isSmartRef__":true,"id":16659},"label":{"__isSmartRef__":true,"id":16661},"closeButton":{"__isSmartRef__":true,"id":16673},"menuButton":{"__isSmartRef__":true,"id":16717},"collapseButton":{"__isSmartRef__":true,"id":16748},"owner":{"__isSmartRef__":true,"id":16659},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.TitleBar"},"16661":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16662},"id":397,"renderContextTable":{"__isSmartRef__":true,"id":16666},"textChunks":[{"__isSmartRef__":true,"id":16667}],"eventHandler":{"__isSmartRef__":true,"id":16669},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":16670},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":16671},"_FontSize":10,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":16660},"_MaxTextWidth":441,"_MaxTextHeight":17,"_Position":{"__isSmartRef__":true,"id":16672},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"16662":{"_Position":{"__isSmartRef__":true,"id":16663},"renderContextTable":{"__isSmartRef__":true,"id":16664},"_Extent":{"__isSmartRef__":true,"id":16665},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16651},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16663":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16664":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16665":{"x":441,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16666":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"16667":{"style":{"__isSmartRef__":true,"id":16668},"chunkOwner":{"__isSmartRef__":true,"id":16661},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","_id":"_241","__LivelyClassName__":"lively.morphic.TextChunk"},"16668":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"16669":{"morph":{"__isSmartRef__":true,"id":16661},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16670":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16671":{"resizeWidth":true},"16672":{"x":20,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16673":{"submorphs":[{"__isSmartRef__":true,"id":16674}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16685},"id":398,"renderContextTable":{"__isSmartRef__":true,"id":16700},"eventHandler":{"__isSmartRef__":true,"id":16701},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":16702},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":16690},"lighterFill":{"__isSmartRef__":true,"id":16703},"label":{"__isSmartRef__":true,"id":16674},"owner":{"__isSmartRef__":true,"id":16660},"layout":{"__isSmartRef__":true,"id":16712},"attributeConnections":[{"__isSmartRef__":true,"id":16713},{"__isSmartRef__":true,"id":16715}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"16674":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16675},"id":399,"renderContextTable":{"__isSmartRef__":true,"id":16679},"textChunks":[{"__isSmartRef__":true,"id":16680}],"eventHandler":{"__isSmartRef__":true,"id":16682},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":16683},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":16684},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16673},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"16675":{"_Position":{"__isSmartRef__":true,"id":16676},"renderContextTable":{"__isSmartRef__":true,"id":16677},"_Extent":{"__isSmartRef__":true,"id":16678},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16651},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16676":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16677":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16678":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16679":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"16680":{"style":{"__isSmartRef__":true,"id":16681},"chunkOwner":{"__isSmartRef__":true,"id":16674},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","_id":"_242","__LivelyClassName__":"lively.morphic.TextChunk"},"16681":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"16682":{"morph":{"__isSmartRef__":true,"id":16674},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16683":{"x":0,"y":3,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16684":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16685":{"_Position":{"__isSmartRef__":true,"id":16686},"renderContextTable":{"__isSmartRef__":true,"id":16687},"_Extent":{"__isSmartRef__":true,"id":16688},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16689},"_Fill":{"__isSmartRef__":true,"id":16690},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16686":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16687":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16688":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16689":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16690":{"stops":[{"__isSmartRef__":true,"id":16691},{"__isSmartRef__":true,"id":16693},{"__isSmartRef__":true,"id":16695},{"__isSmartRef__":true,"id":16697}],"vector":{"__isSmartRef__":true,"id":16699},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"16691":{"offset":0,"color":{"__isSmartRef__":true,"id":16692}},"16692":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16693":{"offset":0.4,"color":{"__isSmartRef__":true,"id":16694}},"16694":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16695":{"offset":0.6,"color":{"__isSmartRef__":true,"id":16696}},"16696":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16697":{"offset":1,"color":{"__isSmartRef__":true,"id":16698}},"16698":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16699":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16700":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"16701":{"morph":{"__isSmartRef__":true,"id":16673},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16702":{"x":480,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16703":{"stops":[{"__isSmartRef__":true,"id":16704},{"__isSmartRef__":true,"id":16706},{"__isSmartRef__":true,"id":16708},{"__isSmartRef__":true,"id":16710}],"vector":{"__isSmartRef__":true,"id":16699},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"16704":{"offset":0,"color":{"__isSmartRef__":true,"id":16705}},"16705":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16706":{"offset":0.4,"color":{"__isSmartRef__":true,"id":16707}},"16707":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16708":{"offset":0.6,"color":{"__isSmartRef__":true,"id":16709}},"16709":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16710":{"offset":1,"color":{"__isSmartRef__":true,"id":16711}},"16711":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16712":{"moveHorizontal":true},"16713":{"sourceObj":{"__isSmartRef__":true,"id":16673},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16659},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16714},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"16714":{"source":{"__isSmartRef__":true,"id":16673},"target":{"__isSmartRef__":true,"id":16659}},"16715":{"sourceObj":{"__isSmartRef__":true,"id":16673},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16659},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16716},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"16716":{"source":{"__isSmartRef__":true,"id":16673},"target":{"__isSmartRef__":true,"id":16659}},"16717":{"submorphs":[{"__isSmartRef__":true,"id":16718}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16728},"id":400,"renderContextTable":{"__isSmartRef__":true,"id":16732},"eventHandler":{"__isSmartRef__":true,"id":16733},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":16734},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":16690},"lighterFill":{"__isSmartRef__":true,"id":16735},"label":{"__isSmartRef__":true,"id":16718},"owner":{"__isSmartRef__":true,"id":16660},"attributeConnections":[{"__isSmartRef__":true,"id":16744},{"__isSmartRef__":true,"id":16746}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"16718":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16719},"id":401,"renderContextTable":{"__isSmartRef__":true,"id":16723},"textChunks":[{"__isSmartRef__":true,"id":16724}],"eventHandler":{"__isSmartRef__":true,"id":16726},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":16683},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":16727},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16717},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"16719":{"_Position":{"__isSmartRef__":true,"id":16720},"renderContextTable":{"__isSmartRef__":true,"id":16721},"_Extent":{"__isSmartRef__":true,"id":16722},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16651},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16720":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16721":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16722":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16723":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"16724":{"style":{"__isSmartRef__":true,"id":16725},"chunkOwner":{"__isSmartRef__":true,"id":16718},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","_id":"_243","__LivelyClassName__":"lively.morphic.TextChunk"},"16725":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"16726":{"morph":{"__isSmartRef__":true,"id":16718},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16727":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16728":{"_Position":{"__isSmartRef__":true,"id":16729},"renderContextTable":{"__isSmartRef__":true,"id":16730},"_Extent":{"__isSmartRef__":true,"id":16731},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16689},"_Fill":{"__isSmartRef__":true,"id":16690},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16729":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16730":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16731":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16732":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"16733":{"morph":{"__isSmartRef__":true,"id":16717},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16734":{"x":3,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16735":{"stops":[{"__isSmartRef__":true,"id":16736},{"__isSmartRef__":true,"id":16738},{"__isSmartRef__":true,"id":16740},{"__isSmartRef__":true,"id":16742}],"vector":{"__isSmartRef__":true,"id":16699},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"16736":{"offset":0,"color":{"__isSmartRef__":true,"id":16737}},"16737":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16738":{"offset":0.4,"color":{"__isSmartRef__":true,"id":16739}},"16739":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16740":{"offset":0.6,"color":{"__isSmartRef__":true,"id":16741}},"16741":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16742":{"offset":1,"color":{"__isSmartRef__":true,"id":16743}},"16743":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16744":{"sourceObj":{"__isSmartRef__":true,"id":16717},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16659},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16745},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"16745":{"source":{"__isSmartRef__":true,"id":16717},"target":{"__isSmartRef__":true,"id":16659}},"16746":{"sourceObj":{"__isSmartRef__":true,"id":16717},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16659},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16747},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"16747":{"source":{"__isSmartRef__":true,"id":16717},"target":{"__isSmartRef__":true,"id":16659}},"16748":{"submorphs":[{"__isSmartRef__":true,"id":16749}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16759},"id":402,"renderContextTable":{"__isSmartRef__":true,"id":16763},"eventHandler":{"__isSmartRef__":true,"id":16764},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":16765},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":16690},"lighterFill":{"__isSmartRef__":true,"id":16766},"label":{"__isSmartRef__":true,"id":16749},"owner":{"__isSmartRef__":true,"id":16660},"layout":{"__isSmartRef__":true,"id":16775},"attributeConnections":[{"__isSmartRef__":true,"id":16776},{"__isSmartRef__":true,"id":16778}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"16749":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16750},"id":403,"renderContextTable":{"__isSmartRef__":true,"id":16754},"textChunks":[{"__isSmartRef__":true,"id":16755}],"eventHandler":{"__isSmartRef__":true,"id":16757},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":16683},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":16758},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16748},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"16750":{"_Position":{"__isSmartRef__":true,"id":16751},"renderContextTable":{"__isSmartRef__":true,"id":16752},"_Extent":{"__isSmartRef__":true,"id":16753},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16651},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16751":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16752":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16753":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16754":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"16755":{"style":{"__isSmartRef__":true,"id":16756},"chunkOwner":{"__isSmartRef__":true,"id":16749},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","_id":"_244","__LivelyClassName__":"lively.morphic.TextChunk"},"16756":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"16757":{"morph":{"__isSmartRef__":true,"id":16749},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16758":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16759":{"_Position":{"__isSmartRef__":true,"id":16760},"renderContextTable":{"__isSmartRef__":true,"id":16761},"_Extent":{"__isSmartRef__":true,"id":16762},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16689},"_Fill":{"__isSmartRef__":true,"id":16690},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16760":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16761":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16762":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16763":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"16764":{"morph":{"__isSmartRef__":true,"id":16748},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16765":{"x":461,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16766":{"stops":[{"__isSmartRef__":true,"id":16767},{"__isSmartRef__":true,"id":16769},{"__isSmartRef__":true,"id":16771},{"__isSmartRef__":true,"id":16773}],"vector":{"__isSmartRef__":true,"id":16699},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"16767":{"offset":0,"color":{"__isSmartRef__":true,"id":16768}},"16768":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16769":{"offset":0.4,"color":{"__isSmartRef__":true,"id":16770}},"16770":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16771":{"offset":0.6,"color":{"__isSmartRef__":true,"id":16772}},"16772":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16773":{"offset":1,"color":{"__isSmartRef__":true,"id":16774}},"16774":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16775":{"moveHorizontal":true},"16776":{"sourceObj":{"__isSmartRef__":true,"id":16748},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16659},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16777},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"16777":{"source":{"__isSmartRef__":true,"id":16748},"target":{"__isSmartRef__":true,"id":16659}},"16778":{"sourceObj":{"__isSmartRef__":true,"id":16748},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16659},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16779},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"16779":{"source":{"__isSmartRef__":true,"id":16748},"target":{"__isSmartRef__":true,"id":16659}},"16780":{"_Position":{"__isSmartRef__":true,"id":16781},"renderContextTable":{"__isSmartRef__":true,"id":16782},"_Extent":{"__isSmartRef__":true,"id":16783},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16784},"_Fill":{"__isSmartRef__":true,"id":16629},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16781":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16782":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16783":{"x":500,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16784":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16785":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"16786":{"morph":{"__isSmartRef__":true,"id":16660},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16787":{"resizeWidth":true,"adjustForNewBounds":true},"16788":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16789":{"renderContextTable":{"__isSmartRef__":true,"id":16790},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":16791},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16790":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16791":{"x":500,"y":222,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16792":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"16793":{"morph":{"__isSmartRef__":true,"id":16659},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16794":{"adjustForNewBounds":true},"16795":{"x":1234,"y":448,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16796":{"x":1478,"y":453,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16797":{"resizeWidth":true,"resizeHeight":true},"16798":{"submorphs":[{"__isSmartRef__":true,"id":16799},{"__isSmartRef__":true,"id":16812}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16934},"id":361,"renderContextTable":{"__isSmartRef__":true,"id":16938},"eventHandler":{"__isSmartRef__":true,"id":16939},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":16940},"LK2":true,"_Position":{"__isSmartRef__":true,"id":16941},"targetMorph":{"__isSmartRef__":true,"id":16799},"titleBar":{"__isSmartRef__":true,"id":16812},"contentOffset":{"__isSmartRef__":true,"id":16809},"collapsedTransform":{"__isSmartRef__":true,"id":16942},"collapsedExtent":{"__isSmartRef__":true,"id":16943},"expandedTransform":{"__isSmartRef__":true,"id":16944},"expandedExtent":{"__isSmartRef__":true,"id":16945},"ignoreEventsOnExpand":false,"owner":null,"showsHalos":false,"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":16946},"expandedPosition":{"__isSmartRef__":true,"id":16947},"state":"shutdown","collapsedPosition":{"__isSmartRef__":true,"id":16948},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"16799":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16800},"id":360,"renderContextTable":{"__isSmartRef__":true,"id":16805},"textChunks":[{"__isSmartRef__":true,"id":16806}],"eventHandler":{"__isSmartRef__":true,"id":16808},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":16657},"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,monospace","_Position":{"__isSmartRef__":true,"id":16809},"_MaxTextWidth":500,"_MaxTextHeight":0,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16798},"layout":{"__isSmartRef__":true,"id":16810},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":16811}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1307282796737,"accessibleInInactiveWindow":true,"eventsAreIgnored":false,"_HandStyle":"default","_PointerEvents":"auto","_Visible":true,"charsReplaced":"","lastFindLoc":15,"__SourceModuleName__":"Global.lively.morphic.TextCore","textString":"undefined","__LivelyClassName__":"lively.morphic.Text"},"16800":{"_Position":{"__isSmartRef__":true,"id":16801},"renderContextTable":{"__isSmartRef__":true,"id":16802},"_Extent":{"__isSmartRef__":true,"id":16803},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":16651},"_Fill":{"__isSmartRef__":true,"id":16804},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16801":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16802":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16803":{"x":500,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16804":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16805":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"16806":{"style":{"__isSmartRef__":true,"id":16807},"chunkOwner":{"__isSmartRef__":true,"id":16799},"_id":"_4","storedString":"undefined","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16807":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16808":{"morph":{"__isSmartRef__":true,"id":16799},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16809":{"x":0,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16810":{"resizeWidth":true,"resizeHeight":true},"16811":{"sourceObj":{"__isSmartRef__":true,"id":16799},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":16799},"targetMethodName":"highlightJavaScriptSyntax","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"16812":{"submorphs":[{"__isSmartRef__":true,"id":16813},{"__isSmartRef__":true,"id":16824},{"__isSmartRef__":true,"id":16856},{"__isSmartRef__":true,"id":16887}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16919},"id":362,"renderContextTable":{"__isSmartRef__":true,"id":16930},"eventHandler":{"__isSmartRef__":true,"id":16931},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":16932},"_Position":{"__isSmartRef__":true,"id":16933},"windowMorph":{"__isSmartRef__":true,"id":16798},"label":{"__isSmartRef__":true,"id":16813},"closeButton":{"__isSmartRef__":true,"id":16824},"menuButton":{"__isSmartRef__":true,"id":16856},"collapseButton":{"__isSmartRef__":true,"id":16887},"owner":{"__isSmartRef__":true,"id":16798},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.TitleBar"},"16813":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16814},"id":363,"renderContextTable":{"__isSmartRef__":true,"id":16818},"textChunks":[{"__isSmartRef__":true,"id":16819}],"eventHandler":{"__isSmartRef__":true,"id":16821},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":16670},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":16822},"_FontSize":10,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":16812},"_MaxTextWidth":441,"_MaxTextHeight":17,"_Position":{"__isSmartRef__":true,"id":16823},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"16814":{"_Position":{"__isSmartRef__":true,"id":16815},"renderContextTable":{"__isSmartRef__":true,"id":16816},"_Extent":{"__isSmartRef__":true,"id":16817},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16651},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16815":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16816":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16817":{"x":441,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16818":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"16819":{"style":{"__isSmartRef__":true,"id":16820},"chunkOwner":{"__isSmartRef__":true,"id":16813},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","_id":"_245","__LivelyClassName__":"lively.morphic.TextChunk"},"16820":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"16821":{"morph":{"__isSmartRef__":true,"id":16813},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16822":{"resizeWidth":true},"16823":{"x":20,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16824":{"submorphs":[{"__isSmartRef__":true,"id":16825}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16835},"id":364,"renderContextTable":{"__isSmartRef__":true,"id":16839},"eventHandler":{"__isSmartRef__":true,"id":16840},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":16841},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":16690},"lighterFill":{"__isSmartRef__":true,"id":16842},"label":{"__isSmartRef__":true,"id":16825},"owner":{"__isSmartRef__":true,"id":16812},"layout":{"__isSmartRef__":true,"id":16851},"attributeConnections":[{"__isSmartRef__":true,"id":16852},{"__isSmartRef__":true,"id":16854}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"16825":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16826},"id":365,"renderContextTable":{"__isSmartRef__":true,"id":16830},"textChunks":[{"__isSmartRef__":true,"id":16831}],"eventHandler":{"__isSmartRef__":true,"id":16833},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":16683},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":16834},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16824},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"16826":{"_Position":{"__isSmartRef__":true,"id":16827},"renderContextTable":{"__isSmartRef__":true,"id":16828},"_Extent":{"__isSmartRef__":true,"id":16829},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16651},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16827":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16828":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16829":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16830":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"16831":{"style":{"__isSmartRef__":true,"id":16832},"chunkOwner":{"__isSmartRef__":true,"id":16825},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","_id":"_246","__LivelyClassName__":"lively.morphic.TextChunk"},"16832":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"16833":{"morph":{"__isSmartRef__":true,"id":16825},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16834":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16835":{"_Position":{"__isSmartRef__":true,"id":16836},"renderContextTable":{"__isSmartRef__":true,"id":16837},"_Extent":{"__isSmartRef__":true,"id":16838},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16689},"_Fill":{"__isSmartRef__":true,"id":16690},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16836":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16837":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16838":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16839":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"16840":{"morph":{"__isSmartRef__":true,"id":16824},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16841":{"x":480,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16842":{"stops":[{"__isSmartRef__":true,"id":16843},{"__isSmartRef__":true,"id":16845},{"__isSmartRef__":true,"id":16847},{"__isSmartRef__":true,"id":16849}],"vector":{"__isSmartRef__":true,"id":16699},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"16843":{"offset":0,"color":{"__isSmartRef__":true,"id":16844}},"16844":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16845":{"offset":0.4,"color":{"__isSmartRef__":true,"id":16846}},"16846":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16847":{"offset":0.6,"color":{"__isSmartRef__":true,"id":16848}},"16848":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16849":{"offset":1,"color":{"__isSmartRef__":true,"id":16850}},"16850":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16851":{"moveHorizontal":true},"16852":{"sourceObj":{"__isSmartRef__":true,"id":16824},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16798},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16853},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"16853":{"source":{"__isSmartRef__":true,"id":16824},"target":{"__isSmartRef__":true,"id":16798}},"16854":{"sourceObj":{"__isSmartRef__":true,"id":16824},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16798},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16855},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"16855":{"source":{"__isSmartRef__":true,"id":16824},"target":{"__isSmartRef__":true,"id":16798}},"16856":{"submorphs":[{"__isSmartRef__":true,"id":16857}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16867},"id":366,"renderContextTable":{"__isSmartRef__":true,"id":16871},"eventHandler":{"__isSmartRef__":true,"id":16872},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":16873},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":16690},"lighterFill":{"__isSmartRef__":true,"id":16874},"label":{"__isSmartRef__":true,"id":16857},"owner":{"__isSmartRef__":true,"id":16812},"attributeConnections":[{"__isSmartRef__":true,"id":16883},{"__isSmartRef__":true,"id":16885}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"16857":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16858},"id":367,"renderContextTable":{"__isSmartRef__":true,"id":16862},"textChunks":[{"__isSmartRef__":true,"id":16863}],"eventHandler":{"__isSmartRef__":true,"id":16865},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":16683},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":16866},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16856},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"16858":{"_Position":{"__isSmartRef__":true,"id":16859},"renderContextTable":{"__isSmartRef__":true,"id":16860},"_Extent":{"__isSmartRef__":true,"id":16861},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16651},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16859":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16860":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16861":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16862":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"16863":{"style":{"__isSmartRef__":true,"id":16864},"chunkOwner":{"__isSmartRef__":true,"id":16857},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","_id":"_247","__LivelyClassName__":"lively.morphic.TextChunk"},"16864":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"16865":{"morph":{"__isSmartRef__":true,"id":16857},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16866":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16867":{"_Position":{"__isSmartRef__":true,"id":16868},"renderContextTable":{"__isSmartRef__":true,"id":16869},"_Extent":{"__isSmartRef__":true,"id":16870},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16689},"_Fill":{"__isSmartRef__":true,"id":16690},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16868":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16869":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16870":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16871":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"16872":{"morph":{"__isSmartRef__":true,"id":16856},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16873":{"x":3,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16874":{"stops":[{"__isSmartRef__":true,"id":16875},{"__isSmartRef__":true,"id":16877},{"__isSmartRef__":true,"id":16879},{"__isSmartRef__":true,"id":16881}],"vector":{"__isSmartRef__":true,"id":16699},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"16875":{"offset":0,"color":{"__isSmartRef__":true,"id":16876}},"16876":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16877":{"offset":0.4,"color":{"__isSmartRef__":true,"id":16878}},"16878":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16879":{"offset":0.6,"color":{"__isSmartRef__":true,"id":16880}},"16880":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16881":{"offset":1,"color":{"__isSmartRef__":true,"id":16882}},"16882":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16883":{"sourceObj":{"__isSmartRef__":true,"id":16856},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16798},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16884},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"16884":{"source":{"__isSmartRef__":true,"id":16856},"target":{"__isSmartRef__":true,"id":16798}},"16885":{"sourceObj":{"__isSmartRef__":true,"id":16856},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16798},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16886},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"16886":{"source":{"__isSmartRef__":true,"id":16856},"target":{"__isSmartRef__":true,"id":16798}},"16887":{"submorphs":[{"__isSmartRef__":true,"id":16888}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16898},"id":368,"renderContextTable":{"__isSmartRef__":true,"id":16902},"eventHandler":{"__isSmartRef__":true,"id":16903},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":16904},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":16690},"lighterFill":{"__isSmartRef__":true,"id":16905},"label":{"__isSmartRef__":true,"id":16888},"owner":{"__isSmartRef__":true,"id":16812},"layout":{"__isSmartRef__":true,"id":16914},"attributeConnections":[{"__isSmartRef__":true,"id":16915},{"__isSmartRef__":true,"id":16917}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"16888":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16889},"id":369,"renderContextTable":{"__isSmartRef__":true,"id":16893},"textChunks":[{"__isSmartRef__":true,"id":16894}],"eventHandler":{"__isSmartRef__":true,"id":16896},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":16683},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":16897},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16887},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"16889":{"_Position":{"__isSmartRef__":true,"id":16890},"renderContextTable":{"__isSmartRef__":true,"id":16891},"_Extent":{"__isSmartRef__":true,"id":16892},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16651},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16890":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16891":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16892":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16893":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"16894":{"style":{"__isSmartRef__":true,"id":16895},"chunkOwner":{"__isSmartRef__":true,"id":16888},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","_id":"_248","__LivelyClassName__":"lively.morphic.TextChunk"},"16895":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"16896":{"morph":{"__isSmartRef__":true,"id":16888},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16897":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16898":{"_Position":{"__isSmartRef__":true,"id":16899},"renderContextTable":{"__isSmartRef__":true,"id":16900},"_Extent":{"__isSmartRef__":true,"id":16901},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16689},"_Fill":{"__isSmartRef__":true,"id":16690},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16899":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16900":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16901":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16902":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"16903":{"morph":{"__isSmartRef__":true,"id":16887},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16904":{"x":461,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16905":{"stops":[{"__isSmartRef__":true,"id":16906},{"__isSmartRef__":true,"id":16908},{"__isSmartRef__":true,"id":16910},{"__isSmartRef__":true,"id":16912}],"vector":{"__isSmartRef__":true,"id":16699},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"16906":{"offset":0,"color":{"__isSmartRef__":true,"id":16907}},"16907":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16908":{"offset":0.4,"color":{"__isSmartRef__":true,"id":16909}},"16909":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16910":{"offset":0.6,"color":{"__isSmartRef__":true,"id":16911}},"16911":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16912":{"offset":1,"color":{"__isSmartRef__":true,"id":16913}},"16913":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16914":{"moveHorizontal":true},"16915":{"sourceObj":{"__isSmartRef__":true,"id":16887},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16798},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16916},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"16916":{"source":{"__isSmartRef__":true,"id":16887},"target":{"__isSmartRef__":true,"id":16798}},"16917":{"sourceObj":{"__isSmartRef__":true,"id":16887},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16798},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16918},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"16918":{"source":{"__isSmartRef__":true,"id":16887},"target":{"__isSmartRef__":true,"id":16798}},"16919":{"_Position":{"__isSmartRef__":true,"id":16920},"renderContextTable":{"__isSmartRef__":true,"id":16921},"_Extent":{"__isSmartRef__":true,"id":16922},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16784},"_Fill":{"__isSmartRef__":true,"id":16923},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16920":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16921":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16922":{"x":500,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16923":{"stops":[{"__isSmartRef__":true,"id":16924},{"__isSmartRef__":true,"id":16926},{"__isSmartRef__":true,"id":16928}],"vector":{"__isSmartRef__":true,"id":16699},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"16924":{"offset":0,"color":{"__isSmartRef__":true,"id":16925}},"16925":{"r":0.8600000000000001,"g":0.8600000000000001,"b":0.8600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16926":{"offset":0.6,"color":{"__isSmartRef__":true,"id":16927}},"16927":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16928":{"offset":1,"color":{"__isSmartRef__":true,"id":16929}},"16929":{"r":0.8600000000000001,"g":0.8600000000000001,"b":0.8600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16930":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"16931":{"morph":{"__isSmartRef__":true,"id":16812},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16932":{"resizeWidth":true,"adjustForNewBounds":true},"16933":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16934":{"renderContextTable":{"__isSmartRef__":true,"id":16935},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":16936},"_Position":{"__isSmartRef__":true,"id":16937},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16935":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16936":{"x":500,"y":222,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16937":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16938":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"16939":{"morph":{"__isSmartRef__":true,"id":16798},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16940":{"adjustForNewBounds":true},"16941":{"x":1131,"y":79,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16942":{"a":1,"b":0,"c":0,"d":1,"e":1131,"f":79,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"lively.morphic.Similitude"},"16943":{"x":500,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16944":{"a":1,"b":0,"c":0,"d":1,"e":1131,"f":79,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"lively.morphic.Similitude"},"16945":{"x":500,"y":222,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16946":{"x":1507,"y":76,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16947":{"x":1131,"y":79,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16948":{"x":1131,"y":79,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16949":{"x":377.6609726943286,"y":419.5142810783999,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16950":{"requiredModules":[],"migrationLevel":2,"partsSpaceName":"PartsBin/Tools","__SourceModuleName__":"Global.lively.PartsBin","comment":"Edit scripts and connections of a specific morph. Early version.","partName":"ObjectEditor","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"16951":{"submorphs":[],"scripts":[],"id":"A579984F-3D18-4B75-A7C9-3C408490DF8A","shape":{"__isSmartRef__":true,"id":16952},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":16959},"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,courier","_MaxTextWidth":689.0285365288845,"_MaxTextHeight":null,"textChunks":[{"__isSmartRef__":true,"id":16960},{"__isSmartRef__":true,"id":16963},{"__isSmartRef__":true,"id":16966},{"__isSmartRef__":true,"id":16968},{"__isSmartRef__":true,"id":16971},{"__isSmartRef__":true,"id":16973},{"__isSmartRef__":true,"id":16975},{"__isSmartRef__":true,"id":16977},{"__isSmartRef__":true,"id":16979},{"__isSmartRef__":true,"id":16981},{"__isSmartRef__":true,"id":16984},{"__isSmartRef__":true,"id":16986},{"__isSmartRef__":true,"id":16988},{"__isSmartRef__":true,"id":16990},{"__isSmartRef__":true,"id":16993},{"__isSmartRef__":true,"id":16995},{"__isSmartRef__":true,"id":16998},{"__isSmartRef__":true,"id":17000},{"__isSmartRef__":true,"id":17002},{"__isSmartRef__":true,"id":17004},{"__isSmartRef__":true,"id":17006},{"__isSmartRef__":true,"id":17008},{"__isSmartRef__":true,"id":17010},{"__isSmartRef__":true,"id":17012},{"__isSmartRef__":true,"id":17014},{"__isSmartRef__":true,"id":17016},{"__isSmartRef__":true,"id":17018},{"__isSmartRef__":true,"id":17020},{"__isSmartRef__":true,"id":17022},{"__isSmartRef__":true,"id":17024},{"__isSmartRef__":true,"id":17026},{"__isSmartRef__":true,"id":17028},{"__isSmartRef__":true,"id":17030},{"__isSmartRef__":true,"id":17032},{"__isSmartRef__":true,"id":17034},{"__isSmartRef__":true,"id":17036},{"__isSmartRef__":true,"id":17038},{"__isSmartRef__":true,"id":17040},{"__isSmartRef__":true,"id":17042},{"__isSmartRef__":true,"id":17044},{"__isSmartRef__":true,"id":17046},{"__isSmartRef__":true,"id":17048},{"__isSmartRef__":true,"id":17050},{"__isSmartRef__":true,"id":17052},{"__isSmartRef__":true,"id":17054},{"__isSmartRef__":true,"id":17056},{"__isSmartRef__":true,"id":17058},{"__isSmartRef__":true,"id":17060},{"__isSmartRef__":true,"id":17062},{"__isSmartRef__":true,"id":17064},{"__isSmartRef__":true,"id":17066},{"__isSmartRef__":true,"id":17068},{"__isSmartRef__":true,"id":17070},{"__isSmartRef__":true,"id":17072},{"__isSmartRef__":true,"id":17074},{"__isSmartRef__":true,"id":17076},{"__isSmartRef__":true,"id":17078},{"__isSmartRef__":true,"id":17080},{"__isSmartRef__":true,"id":17082},{"__isSmartRef__":true,"id":17084},{"__isSmartRef__":true,"id":17086},{"__isSmartRef__":true,"id":17088},{"__isSmartRef__":true,"id":17090},{"__isSmartRef__":true,"id":17092},{"__isSmartRef__":true,"id":17094},{"__isSmartRef__":true,"id":17096},{"__isSmartRef__":true,"id":17098},{"__isSmartRef__":true,"id":17100},{"__isSmartRef__":true,"id":17102},{"__isSmartRef__":true,"id":17104},{"__isSmartRef__":true,"id":17106},{"__isSmartRef__":true,"id":17108},{"__isSmartRef__":true,"id":17110},{"__isSmartRef__":true,"id":17112},{"__isSmartRef__":true,"id":17114},{"__isSmartRef__":true,"id":17116},{"__isSmartRef__":true,"id":17118},{"__isSmartRef__":true,"id":17120},{"__isSmartRef__":true,"id":17122},{"__isSmartRef__":true,"id":17124},{"__isSmartRef__":true,"id":17126},{"__isSmartRef__":true,"id":17128},{"__isSmartRef__":true,"id":17130},{"__isSmartRef__":true,"id":17132},{"__isSmartRef__":true,"id":17135},{"__isSmartRef__":true,"id":17137},{"__isSmartRef__":true,"id":17139},{"__isSmartRef__":true,"id":17141},{"__isSmartRef__":true,"id":17143},{"__isSmartRef__":true,"id":17145},{"__isSmartRef__":true,"id":17147},{"__isSmartRef__":true,"id":17149},{"__isSmartRef__":true,"id":17151},{"__isSmartRef__":true,"id":17153},{"__isSmartRef__":true,"id":17155},{"__isSmartRef__":true,"id":17157},{"__isSmartRef__":true,"id":17159},{"__isSmartRef__":true,"id":17161},{"__isSmartRef__":true,"id":17163},{"__isSmartRef__":true,"id":17165},{"__isSmartRef__":true,"id":17167},{"__isSmartRef__":true,"id":17169},{"__isSmartRef__":true,"id":17171},{"__isSmartRef__":true,"id":17173},{"__isSmartRef__":true,"id":17175},{"__isSmartRef__":true,"id":17177},{"__isSmartRef__":true,"id":17179},{"__isSmartRef__":true,"id":17181},{"__isSmartRef__":true,"id":17183},{"__isSmartRef__":true,"id":17185},{"__isSmartRef__":true,"id":17187},{"__isSmartRef__":true,"id":17189},{"__isSmartRef__":true,"id":17191},{"__isSmartRef__":true,"id":17193},{"__isSmartRef__":true,"id":17195},{"__isSmartRef__":true,"id":17197},{"__isSmartRef__":true,"id":17199},{"__isSmartRef__":true,"id":17201},{"__isSmartRef__":true,"id":17203},{"__isSmartRef__":true,"id":17205},{"__isSmartRef__":true,"id":17207},{"__isSmartRef__":true,"id":17209},{"__isSmartRef__":true,"id":17211},{"__isSmartRef__":true,"id":17213},{"__isSmartRef__":true,"id":17215},{"__isSmartRef__":true,"id":17217},{"__isSmartRef__":true,"id":17219},{"__isSmartRef__":true,"id":17221},{"__isSmartRef__":true,"id":17223},{"__isSmartRef__":true,"id":17225},{"__isSmartRef__":true,"id":17227},{"__isSmartRef__":true,"id":17229},{"__isSmartRef__":true,"id":17231},{"__isSmartRef__":true,"id":17233},{"__isSmartRef__":true,"id":17235},{"__isSmartRef__":true,"id":17237},{"__isSmartRef__":true,"id":17239},{"__isSmartRef__":true,"id":17241},{"__isSmartRef__":true,"id":17243},{"__isSmartRef__":true,"id":17245},{"__isSmartRef__":true,"id":17247},{"__isSmartRef__":true,"id":17249},{"__isSmartRef__":true,"id":17251},{"__isSmartRef__":true,"id":17253},{"__isSmartRef__":true,"id":17255},{"__isSmartRef__":true,"id":17257},{"__isSmartRef__":true,"id":17259}],"layout":{"__isSmartRef__":true,"id":17261},"showsHalos":false,"prevScroll":[0,0],"name":"ObjectEditorScriptPane","charsReplaced":"// changed at Mon Jul 30 2012 11:39:43 GMT+0200 (CEST) by timfelgentreff \nthis.addScript(function executeFightTurnAsking(asker, responder) {\n var menu = this.toolbox(\"FightMenu\"),\n worldCenter = rect(pt(0, 0), pt(window.innerWidth, window.innerHeight)).center(),\n talkTimeout = 4000,\n nextTurnCallback = function (answer, correctAnswer) {\n if (correctAnswer === answer) {\n // switch turns\n asker.executeFightTurnAsking(responder, asker)\n } else {\n responder.getHit()\n if (!responder.isDead()) {\n asker.executeFightTurnAsking(asker, responder)\n }\n }\n }\n\n // Check if the last looser is dead, first\n if (responder.isDead()) {\n responder.isBusy = false\n asker.isBusy = false\n asker.heal()\n asker.select()\n return\n }\n \n // Fight\n if (asker.character.isPlayer) {\n menu.setHeader(\"Choose your insult\")\n menu.setList(asker.randomQuestions(8), function (str) {\n menu.remove()\n asker.say(str)\n setTimeout(function () {\n // the npc has a 1/3 chance of answering right\n var response = responder.randomAnswersFor(str, 3)[Math.round(Math.random() * 2)],\n correctAnswer = responder.randomAnswersFor(str, 1)[0]\n responder.say(response)\n setTimeout(function () {\n nextTurnCallback(response, correctAnswer)\n }, talkTimeout)\n }, talkTimeout)\n })\n asker.map().addMorph(menu)\n menu.centerAt(worldCenter)\n } else {\n var question = asker.randomQuestions(1)[0],\n answer = asker.randomAnswersFor(question)[0]\n asker.say(question)\n setTimeout(function () {\n menu.setHeader(\"What do you reply to '\" + question + \"'?\")\n menu.setList(responder.randomAnswersFor(question, 7), function (str) {\n menu.remove()\n responder.say(str)\n setTimeout(function () {\n nextTurnCallback(str, answer)\n }, talkTimeout)\n })\n asker.map().addMorph(menu)\n menu.centerAt(worldCenter)\n }, talkTimeout)\n }\n}).tag([]);","lastFindLoc":0,"partsBinMetaInfo":{"__isSmartRef__":true,"id":17262},"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"auto","_FontSize":9,"lastSyntaxHighlightTime":501,"doitContext":{"__isSmartRef__":true,"id":17263},"savedTextString":"// changed at Mon Jul 30 2012 11:39:43 GMT+0200 (CEST) by timfelgentreff \nthis.addScript(function executeFightTurnAsking(asker, responder) {\n var menu = this.toolbox(\"FightMenu\"),\n worldCenter = rect(pt(0, 0), pt(window.innerWidth, window.innerHeight)).center(),\n talkTimeout = 4000,\n nextTurnCallback = function (answer, correctAnswer) {\n if (correctAnswer === answer) {\n // switch turns\n asker.executeFightTurnAsking(responder, asker)\n } else {\n responder.getHit()\n if (!responder.isDead()) {\n asker.executeFightTurnAsking(asker, responder)\n }\n }\n }\n\n // Check if the last looser is dead, first\n if (responder.isDead()) {\n responder.isBusy = false\n asker.isBusy = false\n asker.heal()\n asker.select()\n return\n }\n \n // Fight\n if (asker.character.isPlayer) {\n menu.setHeader(\"Choose your insult\")\n menu.setList(asker.randomQuestions(8), function (str) {\n menu.remove()\n asker.say(str)\n setTimeout(function () {\n // the npc has a 1/3 chance of answering right\n var response = responder.randomAnswersFor(str, 3)[Math.round(Math.random() * 2)],\n correctAnswer = responder.randomAnswersFor(str, 1)[0]\n responder.say(response)\n setTimeout(function () {\n nextTurnCallback(response, correctAnswer)\n }, talkTimeout)\n }, talkTimeout)\n })\n asker.map().addMorph(menu)\n menu.centerAt(worldCenter)\n } else {\n var question = asker.randomQuestions(1)[0],\n answer = asker.randomAnswersFor(question, 1)[0]\n asker.say(question)\n setTimeout(function () {\n menu.setHeader(\"What do you reply to '\" + question + \"'?\")\n menu.setList(responder.randomAnswersFor(question, 7), function (str) {\n menu.remove()\n responder.say(str)\n setTimeout(function () {\n nextTurnCallback(str, answer)\n }, talkTimeout)\n })\n asker.map().addMorph(menu)\n menu.centerAt(worldCenter)\n }, talkTimeout)\n }\n}).tag([]);","_Align":"left","renderContextTable":{"__isSmartRef__":true,"id":17295},"lastSearchString":"stringsformat","eventHandler":{"__isSmartRef__":true,"id":17296},"attributeConnections":[{"__isSmartRef__":true,"id":17297},{"__isSmartRef__":true,"id":17321}],"doNotSerialize":["$$textString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors"],"doNotCopyProperties":["$$textString"],"distanceToDragEvent":{"__isSmartRef__":true,"id":17322},"_MinTextWidth":689.0285365288845,"_MinTextHeight":null,"lastSaveSource":"// changed at Mon Jul 30 2012 12:48:41 GMT+0200 (CEST) by lauritz \nthis.addScript(function executeFightTurnAsking(asker, responder) {\n var menu = this.toolbox(\"FightMenu\"),\n worldCenter = rect(pt(0, 0), pt(window.innerWidth, window.innerHeight)).center(),\n talkTimeout = 4000,\n nextTurnCallback = function (answer, correctAnswer) {\n if (correctAnswer === answer) {\n // switch turns\n asker.executeFightTurnAsking(responder, asker)\n } else {\n responder.getHit()\n if (!responder.isDead()) {\n asker.executeFightTurnAsking(asker, responder)\n }\n }\n }\n\n // Check if the last looser is dead, first\n if (responder.isDead()) {\n responder.isBusy = false\n asker.isBusy = false\n asker.heal()\n asker.select()\n return\n }\n \n // Fight\n if (asker.character.isPlayer) {\n menu.setHeader(\"Choose your insult\")\n menu.setList(asker.randomQuestions(8), function (str) {\n menu.remove()\n asker.say(str)\n setTimeout(function () {\n // the npc has a 1/3 chance of answering right\n var response = responder.randomAnswersFor(str, 3)[Math.round(Math.random() * 2)],\n correctAnswer = responder.randomAnswersFor(str, 1)[0]\n responder.say(response)\n setTimeout(function () {\n nextTurnCallback(response, correctAnswer)\n }, talkTimeout)\n }, talkTimeout)\n })\n asker.map().addMorph(menu)\n menu.centerAt(worldCenter)\n } else {\n var question = asker.randomQuestions(1)[0],\n answer = asker.randomAnswersFor(question, 1)[0]\n asker.say(question)\n setTimeout(function () {\n menu.setHeader(\"What do you reply to '\" + question + \"'?\")\n menu.setList(responder.randomAnswersFor(question, 7), function (str) {\n menu.remove()\n responder.say(str)\n setTimeout(function () {\n nextTurnCallback(str, answer)\n }, talkTimeout)\n })\n asker.map().addMorph(menu)\n menu.centerAt(worldCenter)\n }, talkTimeout)\n }\n}).tag([]);","isBeingDragged":false,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":16485},"isCopyMorphRef":true,"morphRefId":151,"statusMorph":{"__isSmartRef__":true,"id":17323},"derivationIds":[219,"DD5046D0-C1D6-412A-83C9-CD7EE63D40E0","4D92BDFD-A599-4154-A197-A4B1292C1619","98551F68-B128-4262-9BC2-6B8AC7C8D7C0","47731662-FF8E-4C0F-A170-FD5C56A06021","3FC7FDE6-156F-4056-BB04-B76D8B6C5472","C1E8D5BB-56F9-47B3-A520-BEEFEF791823","115FC149-EEF9-415A-A5B7-AB0B9D0170A4","0D66FA39-01E7-4F16-840C-4FA0FA14DD10","B0A74693-DE3F-4867-8DC0-61B098A8F0D1","3547765B-E224-48EC-B58F-278C1DC7422E","8561ACCF-315A-46EC-9412-BC5D4C55D437","533D6602-9E1A-414A-9646-0FEF9ECCEBF7","5141CF81-6EA1-419B-97AC-62C22FEFC658","B9E83FD9-9781-4F00-8A07-0C96E0D29D3D","034F48B5-B4B1-4DF5-9FA5-9A9CFB99F43A","70FBC800-1914-4F9C-A8E4-2190F72E2902","64465644-E389-4AA2-BE05-93FB591B45D0","E80928FE-6AC8-4FE0-B0A2-7C7A0C7D5E85","E24E50AD-DCA6-4D01-A523-CC1E4FB09222","27E050B0-3192-426E-B01D-907ECF280A68","4123E0BE-7057-4869-81F7-B0B4DE09248F","783E47A8-10A6-422D-A9D4-4FBA027611D0","F8A2BDBC-B3B5-431F-B316-3DC9A39315A9","027BC3F2-8B54-4AA7-BB0A-17B9B3D6CE19","430D8167-76B1-4952-8AA9-F3116BAA6FD0","2C3D3825-D8E5-4696-9BB9-2651F54800B3","CD03FBEB-D99D-4211-A387-C65D591615EB","ABB0D602-4C5E-4D12-A95E-16D6EE44ADA7"],"_Position":{"__isSmartRef__":true,"id":17337},"owner":{"__isSmartRef__":true,"id":16485},"syntaxHighlightingWhileTyping":true,"#startLetters":"enable","_syntaxHighlightTimeout":null,"_Rotation":0,"_Scale":1,"previousSelection":[0,0],"textString":"// changed at Mon Jul 30 2012 12:48:41 GMT+0200 (CEST) by lauritz \nthis.addScript(function executeFightTurnAsking(asker, responder) {\n var menu = this.toolbox(\"FightMenu\"),\n worldCenter = rect(pt(0, 0), pt(window.innerWidth, window.innerHeight)).center(),\n talkTimeout = 4000,\n nextTurnCallback = function (answer, correctAnswer) {\n if (correctAnswer === answer) {\n // switch turns\n asker.executeFightTurnAsking(responder, asker)\n } else {\n responder.getHit()\n if (!responder.isDead()) {\n asker.executeFightTurnAsking(asker, responder)\n }\n }\n }\n\n // Check if the last looser is dead, first\n if (responder.isDead()) {\n responder.isBusy = false\n asker.isBusy = false\n asker.heal()\n asker.select()\n return\n }\n \n // Fight\n if (asker.character.isPlayer) {\n menu.setHeader(\"Choose your insult\")\n menu.setList(asker.randomQuestions(8), function (str) {\n menu.remove()\n asker.say(str)\n setTimeout(function () {\n // the npc has a 1/3 chance of answering right\n var response = responder.randomAnswersFor(str, 3)[Math.round(Math.random() * 2)],\n correctAnswer = responder.randomAnswersFor(str, 1)[0]\n responder.say(response)\n setTimeout(function () {\n nextTurnCallback(response, correctAnswer)\n }, talkTimeout)\n }, talkTimeout)\n })\n asker.map().addMorph(menu)\n menu.centerAt(worldCenter)\n } else {\n var question = asker.randomQuestions(1)[0],\n answer = asker.randomAnswersFor(question, 1)[0]\n asker.say(question)\n setTimeout(function () {\n menu.setHeader(\"What do you reply to '\" + question + \"'?\")\n menu.setList(responder.randomAnswersFor(question, 7), function (str) {\n menu.remove()\n responder.say(str)\n setTimeout(function () {\n nextTurnCallback(str, answer)\n }, talkTimeout)\n })\n asker.map().addMorph(menu)\n menu.centerAt(worldCenter)\n }, talkTimeout)\n }\n}).tag([]);","priorSelectionRange":[1512,1512],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17338},"__LivelyClassName__":"lively.morphic.Text"},"16952":{"_Position":{"__isSmartRef__":true,"id":16953},"_Extent":{"__isSmartRef__":true,"id":16954},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16955},"_Fill":{"__isSmartRef__":true,"id":16956},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":16957},"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"auto","_Padding":{"__isSmartRef__":true,"id":16958},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16953":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16954":{"x":691.0285365288845,"y":475.61253261443596,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16955":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16956":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16957":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"16958":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16959":{"x":2,"y":1,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16960":{"style":{"__isSmartRef__":true,"id":16961},"chunkOwner":{"__isSmartRef__":true,"id":16951},"_id":"_1384","storedString":"// changed at Mon Jul 30 2012 12:48:41 GMT+0200 (CEST) by lauritz","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16961":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16962":{"r":0,"g":0.5019607843137255,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16963":{"_id":"_1555","style":{"__isSmartRef__":true,"id":16964},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16964":{"color":{"__isSmartRef__":true,"id":16962},"backgroundColor":{"__isSmartRef__":true,"id":16965},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16965":{"r":0.8,"g":0.8,"b":0,"a":0.4,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16966":{"_id":"_1550","style":{"__isSmartRef__":true,"id":16967},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16967":{"backgroundColor":{"__isSmartRef__":true,"id":16965},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16968":{"_id":"_1522","style":{"__isSmartRef__":true,"id":16969},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16969":{"color":{"__isSmartRef__":true,"id":16970},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16970":{"r":0,"g":0,"b":0.5450980392156862,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16971":{"_id":"_1523","style":{"__isSmartRef__":true,"id":16972},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":".addScript(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16972":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16973":{"_id":"_1524","style":{"__isSmartRef__":true,"id":16974},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"function","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16974":{"color":{"__isSmartRef__":true,"id":16970},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16975":{"_id":"_1525","style":{"__isSmartRef__":true,"id":16976},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":" executeFightTurnAsking(asker, responder) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16976":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16977":{"_id":"_1436","style":{"__isSmartRef__":true,"id":16978},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16978":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16979":{"_id":"_1437","style":{"__isSmartRef__":true,"id":16980},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16980":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16981":{"_id":"_1492","style":{"__isSmartRef__":true,"id":16982},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16982":{"color":{"__isSmartRef__":true,"id":16983},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16983":{"r":0,"g":0,"b":0.5019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16984":{"_id":"_1493","style":{"__isSmartRef__":true,"id":16985},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":" menu = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16985":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16986":{"_id":"_1526","style":{"__isSmartRef__":true,"id":16987},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16987":{"color":{"__isSmartRef__":true,"id":16970},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16988":{"_id":"_1527","style":{"__isSmartRef__":true,"id":16989},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":".toolbox(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16989":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16990":{"_id":"_1542","style":{"__isSmartRef__":true,"id":16991},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\"FightMenu\"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16991":{"color":{"__isSmartRef__":true,"id":16992},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16992":{"r":0,"g":0.5019607843137255,"b":0.5019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16993":{"_id":"_1543","style":{"__isSmartRef__":true,"id":16994},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"),\n worldCenter = rect(pt(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16994":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16995":{"_id":"_1397","style":{"__isSmartRef__":true,"id":16996},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16996":{"color":{"__isSmartRef__":true,"id":16997},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16997":{"r":0,"g":0,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16998":{"_id":"_1398","style":{"__isSmartRef__":true,"id":16999},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":", ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16999":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17000":{"_id":"_1399","style":{"__isSmartRef__":true,"id":17001},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17001":{"color":{"__isSmartRef__":true,"id":16997},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17002":{"_id":"_1400","style":{"__isSmartRef__":true,"id":17003},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"), pt(window.innerWidth, window.innerHeight)).center(),\n talkTimeout = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17003":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17004":{"_id":"_1401","style":{"__isSmartRef__":true,"id":17005},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"4000","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17005":{"color":{"__isSmartRef__":true,"id":16997},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17006":{"_id":"_1402","style":{"__isSmartRef__":true,"id":17007},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":",\n nextTurnCallback = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17007":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17008":{"_id":"_1528","style":{"__isSmartRef__":true,"id":17009},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"function","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17009":{"color":{"__isSmartRef__":true,"id":16970},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17010":{"_id":"_1529","style":{"__isSmartRef__":true,"id":17011},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":" (answer, correctAnswer) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17011":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17012":{"_id":"_1438","style":{"__isSmartRef__":true,"id":17013},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17013":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17014":{"_id":"_1439","style":{"__isSmartRef__":true,"id":17015},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17015":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17016":{"_id":"_1494","style":{"__isSmartRef__":true,"id":17017},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17017":{"color":{"__isSmartRef__":true,"id":16983},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17018":{"_id":"_1495","style":{"__isSmartRef__":true,"id":17019},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":" (correctAnswer === answer) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17019":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17020":{"_id":"_1440","style":{"__isSmartRef__":true,"id":17021},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17021":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17022":{"_id":"_1441","style":{"__isSmartRef__":true,"id":17023},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17023":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17024":{"_id":"_1428","style":{"__isSmartRef__":true,"id":17025},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"// switch turns","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17025":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17026":{"_id":"_1551","style":{"__isSmartRef__":true,"id":17027},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\n asker.executeFightTurnAsking(responder, asker)\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17027":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17028":{"_id":"_1442","style":{"__isSmartRef__":true,"id":17029},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17029":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17030":{"_id":"_1443","style":{"__isSmartRef__":true,"id":17031},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17031":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17032":{"_id":"_1498","style":{"__isSmartRef__":true,"id":17033},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"else","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17033":{"color":{"__isSmartRef__":true,"id":16983},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17034":{"_id":"_1499","style":{"__isSmartRef__":true,"id":17035},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17035":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17036":{"_id":"_1444","style":{"__isSmartRef__":true,"id":17037},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17037":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17038":{"_id":"_1445","style":{"__isSmartRef__":true,"id":17039},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\n responder.getHit()\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17039":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17040":{"_id":"_1500","style":{"__isSmartRef__":true,"id":17041},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17041":{"color":{"__isSmartRef__":true,"id":16983},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17042":{"_id":"_1501","style":{"__isSmartRef__":true,"id":17043},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":" (!responder.isDead()) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17043":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17044":{"_id":"_1446","style":{"__isSmartRef__":true,"id":17045},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17045":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17046":{"_id":"_1447","style":{"__isSmartRef__":true,"id":17047},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\n asker.executeFightTurnAsking(asker, responder)\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17047":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17048":{"_id":"_1448","style":{"__isSmartRef__":true,"id":17049},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17049":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17050":{"_id":"_1449","style":{"__isSmartRef__":true,"id":17051},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17051":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17052":{"_id":"_1450","style":{"__isSmartRef__":true,"id":17053},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17053":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17054":{"_id":"_1451","style":{"__isSmartRef__":true,"id":17055},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17055":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17056":{"_id":"_1452","style":{"__isSmartRef__":true,"id":17057},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17057":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17058":{"_id":"_1453","style":{"__isSmartRef__":true,"id":17059},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\n\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17059":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17060":{"_id":"_1430","style":{"__isSmartRef__":true,"id":17061},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"// Check if the last looser is dead, first","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17061":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17062":{"_id":"_1552","style":{"__isSmartRef__":true,"id":17063},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17063":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17064":{"_id":"_1504","style":{"__isSmartRef__":true,"id":17065},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17065":{"color":{"__isSmartRef__":true,"id":16983},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17066":{"_id":"_1505","style":{"__isSmartRef__":true,"id":17067},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":" (responder.isDead()) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17067":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17068":{"_id":"_1454","style":{"__isSmartRef__":true,"id":17069},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17069":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17070":{"_id":"_1455","style":{"__isSmartRef__":true,"id":17071},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\n responder.isBusy = false\n asker.isBusy = false\n asker.heal()\n asker.select()\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17071":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17072":{"_id":"_1506","style":{"__isSmartRef__":true,"id":17073},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"return","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17073":{"color":{"__isSmartRef__":true,"id":16983},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17074":{"_id":"_1507","style":{"__isSmartRef__":true,"id":17075},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17075":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17076":{"_id":"_1456","style":{"__isSmartRef__":true,"id":17077},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17077":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17078":{"_id":"_1457","style":{"__isSmartRef__":true,"id":17079},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17079":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17080":{"_id":"_1556","style":{"__isSmartRef__":true,"id":17081},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":" \n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17081":{"backgroundColor":{"__isSmartRef__":true,"id":16965},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17082":{"_id":"_1557","style":{"__isSmartRef__":true,"id":17083},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17083":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17084":{"_id":"_1432","style":{"__isSmartRef__":true,"id":17085},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"// Fight","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17085":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17086":{"_id":"_1553","style":{"__isSmartRef__":true,"id":17087},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17087":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17088":{"_id":"_1508","style":{"__isSmartRef__":true,"id":17089},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17089":{"color":{"__isSmartRef__":true,"id":16983},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17090":{"_id":"_1509","style":{"__isSmartRef__":true,"id":17091},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":" (asker.character.isPlayer) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17091":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17092":{"_id":"_1458","style":{"__isSmartRef__":true,"id":17093},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17093":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17094":{"_id":"_1459","style":{"__isSmartRef__":true,"id":17095},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\n menu.setHeader(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17095":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17096":{"_id":"_1544","style":{"__isSmartRef__":true,"id":17097},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\"Choose your insult\"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17097":{"color":{"__isSmartRef__":true,"id":16992},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17098":{"_id":"_1545","style":{"__isSmartRef__":true,"id":17099},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":")\n menu.setList(asker.randomQuestions(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17099":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17100":{"_id":"_1403","style":{"__isSmartRef__":true,"id":17101},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"8","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17101":{"color":{"__isSmartRef__":true,"id":16997},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17102":{"_id":"_1404","style":{"__isSmartRef__":true,"id":17103},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"), ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17103":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17104":{"_id":"_1530","style":{"__isSmartRef__":true,"id":17105},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"function","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17105":{"color":{"__isSmartRef__":true,"id":16970},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17106":{"_id":"_1531","style":{"__isSmartRef__":true,"id":17107},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":" (str) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17107":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17108":{"_id":"_1460","style":{"__isSmartRef__":true,"id":17109},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17109":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17110":{"_id":"_1461","style":{"__isSmartRef__":true,"id":17111},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\n menu.remove()\n asker.say(str)\n setTimeout(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17111":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17112":{"_id":"_1532","style":{"__isSmartRef__":true,"id":17113},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"function","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17113":{"color":{"__isSmartRef__":true,"id":16970},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17114":{"_id":"_1533","style":{"__isSmartRef__":true,"id":17115},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":" () ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17115":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17116":{"_id":"_1462","style":{"__isSmartRef__":true,"id":17117},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17117":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17118":{"_id":"_1463","style":{"__isSmartRef__":true,"id":17119},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17119":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17120":{"_id":"_1434","style":{"__isSmartRef__":true,"id":17121},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"// the npc has a 1/3 chance of answering right","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17121":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17122":{"_id":"_1554","style":{"__isSmartRef__":true,"id":17123},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17123":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17124":{"_id":"_1510","style":{"__isSmartRef__":true,"id":17125},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17125":{"color":{"__isSmartRef__":true,"id":16983},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17126":{"_id":"_1511","style":{"__isSmartRef__":true,"id":17127},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":" response = responder.randomAnswersFor(str, ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17127":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17128":{"_id":"_1409","style":{"__isSmartRef__":true,"id":17129},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"3","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17129":{"color":{"__isSmartRef__":true,"id":16997},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17130":{"_id":"_1410","style":{"__isSmartRef__":true,"id":17131},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":")[","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17131":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17132":{"_id":"_1518","style":{"__isSmartRef__":true,"id":17133},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"Math","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17133":{"color":{"__isSmartRef__":true,"id":17134},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17134":{"r":1,"g":0.0784313725490196,"b":0.5764705882352941,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17135":{"_id":"_1519","style":{"__isSmartRef__":true,"id":17136},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":".round(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17136":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17137":{"_id":"_1520","style":{"__isSmartRef__":true,"id":17138},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"Math","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17138":{"color":{"__isSmartRef__":true,"id":17134},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17139":{"_id":"_1521","style":{"__isSmartRef__":true,"id":17140},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":".random() * ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17140":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17141":{"_id":"_1411","style":{"__isSmartRef__":true,"id":17142},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"2","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17142":{"color":{"__isSmartRef__":true,"id":16997},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17143":{"_id":"_1412","style":{"__isSmartRef__":true,"id":17144},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":")],\n correctAnswer = responder.randomAnswersFor(str, ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17144":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17145":{"_id":"_1413","style":{"__isSmartRef__":true,"id":17146},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"1","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17146":{"color":{"__isSmartRef__":true,"id":16997},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17147":{"_id":"_1414","style":{"__isSmartRef__":true,"id":17148},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":")[","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17148":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17149":{"_id":"_1415","style":{"__isSmartRef__":true,"id":17150},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17150":{"color":{"__isSmartRef__":true,"id":16997},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17151":{"_id":"_1416","style":{"__isSmartRef__":true,"id":17152},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"]\n responder.say(response)\n setTimeout(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17152":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17153":{"_id":"_1534","style":{"__isSmartRef__":true,"id":17154},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"function","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17154":{"color":{"__isSmartRef__":true,"id":16970},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17155":{"_id":"_1535","style":{"__isSmartRef__":true,"id":17156},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":" () ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17156":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17157":{"_id":"_1464","style":{"__isSmartRef__":true,"id":17158},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17158":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17159":{"_id":"_1465","style":{"__isSmartRef__":true,"id":17160},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\n nextTurnCallback(response, correctAnswer)\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17160":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17161":{"_id":"_1466","style":{"__isSmartRef__":true,"id":17162},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17162":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17163":{"_id":"_1467","style":{"__isSmartRef__":true,"id":17164},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":", talkTimeout)\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17164":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17165":{"_id":"_1468","style":{"__isSmartRef__":true,"id":17166},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17166":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17167":{"_id":"_1469","style":{"__isSmartRef__":true,"id":17168},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":", talkTimeout)\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17168":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17169":{"_id":"_1470","style":{"__isSmartRef__":true,"id":17170},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17170":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17171":{"_id":"_1471","style":{"__isSmartRef__":true,"id":17172},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":")\n asker.map().addMorph(menu)\n menu.centerAt(worldCenter)\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17172":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17173":{"_id":"_1472","style":{"__isSmartRef__":true,"id":17174},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17174":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17175":{"_id":"_1473","style":{"__isSmartRef__":true,"id":17176},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17176":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17177":{"_id":"_1512","style":{"__isSmartRef__":true,"id":17178},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"else","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17178":{"color":{"__isSmartRef__":true,"id":16983},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17179":{"_id":"_1513","style":{"__isSmartRef__":true,"id":17180},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17180":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17181":{"_id":"_1474","style":{"__isSmartRef__":true,"id":17182},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17182":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17183":{"_id":"_1475","style":{"__isSmartRef__":true,"id":17184},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17184":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17185":{"_id":"_1514","style":{"__isSmartRef__":true,"id":17186},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17186":{"color":{"__isSmartRef__":true,"id":16983},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17187":{"_id":"_1515","style":{"__isSmartRef__":true,"id":17188},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":" question = asker.randomQuestions(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17188":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17189":{"_id":"_1417","style":{"__isSmartRef__":true,"id":17190},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"1","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17190":{"color":{"__isSmartRef__":true,"id":16997},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17191":{"_id":"_1418","style":{"__isSmartRef__":true,"id":17192},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":")[","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17192":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17193":{"_id":"_1419","style":{"__isSmartRef__":true,"id":17194},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17194":{"color":{"__isSmartRef__":true,"id":16997},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17195":{"_id":"_1420","style":{"__isSmartRef__":true,"id":17196},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"],\n answer = asker.randomAnswersFor(question, ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17196":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17197":{"_id":"_1421","style":{"__isSmartRef__":true,"id":17198},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"1","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17198":{"color":{"__isSmartRef__":true,"id":16997},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17199":{"_id":"_1422","style":{"__isSmartRef__":true,"id":17200},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":")[","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17200":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17201":{"_id":"_1423","style":{"__isSmartRef__":true,"id":17202},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17202":{"color":{"__isSmartRef__":true,"id":16997},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17203":{"_id":"_1424","style":{"__isSmartRef__":true,"id":17204},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"]\n asker.say(question)\n setTimeout(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17204":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17205":{"_id":"_1536","style":{"__isSmartRef__":true,"id":17206},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"function","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17206":{"color":{"__isSmartRef__":true,"id":16970},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17207":{"_id":"_1537","style":{"__isSmartRef__":true,"id":17208},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":" () ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17208":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17209":{"_id":"_1476","style":{"__isSmartRef__":true,"id":17210},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17210":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17211":{"_id":"_1477","style":{"__isSmartRef__":true,"id":17212},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\n menu.setHeader(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17212":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17213":{"_id":"_1546","style":{"__isSmartRef__":true,"id":17214},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\"What do you reply to '\"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17214":{"color":{"__isSmartRef__":true,"id":16992},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17215":{"_id":"_1547","style":{"__isSmartRef__":true,"id":17216},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":" + question + ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17216":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17217":{"_id":"_1548","style":{"__isSmartRef__":true,"id":17218},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\"'?\"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17218":{"color":{"__isSmartRef__":true,"id":16992},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17219":{"_id":"_1549","style":{"__isSmartRef__":true,"id":17220},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":")\n menu.setList(responder.randomAnswersFor(question, ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17220":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17221":{"_id":"_1425","style":{"__isSmartRef__":true,"id":17222},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"7","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17222":{"color":{"__isSmartRef__":true,"id":16997},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17223":{"_id":"_1426","style":{"__isSmartRef__":true,"id":17224},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"), ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17224":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17225":{"_id":"_1538","style":{"__isSmartRef__":true,"id":17226},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"function","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17226":{"color":{"__isSmartRef__":true,"id":16970},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17227":{"_id":"_1539","style":{"__isSmartRef__":true,"id":17228},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":" (str) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17228":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17229":{"_id":"_1478","style":{"__isSmartRef__":true,"id":17230},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17230":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17231":{"_id":"_1479","style":{"__isSmartRef__":true,"id":17232},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\n menu.remove()\n responder.say(str)\n setTimeout(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17232":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17233":{"_id":"_1540","style":{"__isSmartRef__":true,"id":17234},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"function","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17234":{"color":{"__isSmartRef__":true,"id":16970},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17235":{"_id":"_1541","style":{"__isSmartRef__":true,"id":17236},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":" () ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17236":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17237":{"_id":"_1480","style":{"__isSmartRef__":true,"id":17238},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17238":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17239":{"_id":"_1481","style":{"__isSmartRef__":true,"id":17240},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\n nextTurnCallback(str, answer)\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17240":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17241":{"_id":"_1482","style":{"__isSmartRef__":true,"id":17242},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17242":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17243":{"_id":"_1483","style":{"__isSmartRef__":true,"id":17244},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":", talkTimeout)\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17244":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17245":{"_id":"_1484","style":{"__isSmartRef__":true,"id":17246},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17246":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17247":{"_id":"_1485","style":{"__isSmartRef__":true,"id":17248},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":")\n asker.map().addMorph(menu)\n menu.centerAt(worldCenter)\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17248":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17249":{"_id":"_1486","style":{"__isSmartRef__":true,"id":17250},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17250":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17251":{"_id":"_1487","style":{"__isSmartRef__":true,"id":17252},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":", talkTimeout)\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17252":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17253":{"_id":"_1488","style":{"__isSmartRef__":true,"id":17254},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17254":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17255":{"_id":"_1489","style":{"__isSmartRef__":true,"id":17256},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17256":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17257":{"_id":"_1490","style":{"__isSmartRef__":true,"id":17258},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17258":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17259":{"_id":"_1491","style":{"__isSmartRef__":true,"id":17260},"chunkOwner":{"__isSmartRef__":true,"id":16951},"storedString":").tag([]);","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17260":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17261":{"resizeWidth":true,"resizeHeight":true},"17262":{"requiredModules":[],"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"17263":{"__multi_selection_proxy__":true,"targets":[{"__isSmartRef__":true,"id":15750},{"__isSmartRef__":true,"id":3691},{"__isSmartRef__":true,"id":7158},{"__isSmartRef__":true,"id":8566}],"highlights":[],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17264}},"17264":{"setName":{"__isSmartRef__":true,"id":17265},"getName":{"__isSmartRef__":true,"id":17268},"push":{"__isSmartRef__":true,"id":17271},"getFunction":{"__isSmartRef__":true,"id":17274},"targetFunctions":{"__isSmartRef__":true,"id":17277},"privateTargetFunctions":{"__isSmartRef__":true,"id":17280},"highlight":{"__isSmartRef__":true,"id":17283},"removeHighlight":{"__isSmartRef__":true,"id":17286},"addScript":{"__isSmartRef__":true,"id":17289},"deleteSelectedScript":{"__isSmartRef__":true,"id":17292}},"17265":{"varMapping":{"__isSmartRef__":true,"id":17266},"source":"function (n) {\n this.name = n\n }","funcProperties":{"__isSmartRef__":true,"id":17267},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17266":{"this":{"__isSmartRef__":true,"id":17263}},"17267":{},"17268":{"varMapping":{"__isSmartRef__":true,"id":17269},"source":"function () {\n if (!this.name) {\n return \"Unnamed Group\" + \" [\" + this.targets.length + \"]\"\n } else {\n return this.name + \" [\" + this.targets.length + \"]\"\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17270},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17269":{"this":{"__isSmartRef__":true,"id":17263}},"17270":{},"17271":{"varMapping":{"__isSmartRef__":true,"id":17272},"source":"function (obj) {\n var idx = this.targets.indexOf(obj)\n if (idx < 0) {\n this.targets.push(obj)\n } else {\n this.targets.removeAt(idx)\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17273},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17272":{"this":{"__isSmartRef__":true,"id":17263}},"17273":{},"17274":{"varMapping":{"__isSmartRef__":true,"id":17275},"source":"function (name) {\n var funcs = this.privateTargetFunctions()\n return funcs.find(function(f) { return f[0] === name })[1]\n }","funcProperties":{"__isSmartRef__":true,"id":17276},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17275":{"this":{"__isSmartRef__":true,"id":17263}},"17276":{},"17277":{"varMapping":{"__isSmartRef__":true,"id":17278},"source":"function () {\n var funcs = this.privateTargetFunctions()\n return funcs.collect(function(f) { return f[0] });\n }","funcProperties":{"__isSmartRef__":true,"id":17279},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17278":{"this":{"__isSmartRef__":true,"id":17263}},"17279":{},"17280":{"varMapping":{"__isSmartRef__":true,"id":17281},"source":"function () {\n if (!this.targets.length)\n return []\n\n var that = this;\n var funcs = Functions.own(this.targets[0]).collect(function (fname) {\n return [fname, that.targets[0][fname]]\n })\n this.targets.each(function(target) {\n //debugger\n funcs = funcs.select(function(f){\n return Functions.own(target).include(f[0]) &&\n target[f[0]].toString() == f[1].toString();\n });\n });\n return funcs\n }","funcProperties":{"__isSmartRef__":true,"id":17282},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17281":{"this":{"__isSmartRef__":true,"id":17263}},"17282":{},"17283":{"varMapping":{"__isSmartRef__":true,"id":17284},"source":"function (rect) {\n this.removeHighlight()\n this.highlights = this.targets.collect(function (ea) {\n var r = rect.copy()\n ea.world().addMorph(r)\n r.update(ea)\n return r\n })\n }","funcProperties":{"__isSmartRef__":true,"id":17285},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17284":{"this":{"__isSmartRef__":true,"id":17263}},"17285":{},"17286":{"varMapping":{"__isSmartRef__":true,"id":17287},"source":"function () {\n this.highlights.each(function (h) {\n h.remove()\n })\n this.highlights = []\n }","funcProperties":{"__isSmartRef__":true,"id":17288},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17287":{"this":{"__isSmartRef__":true,"id":17263}},"17288":{},"17289":{"varMapping":{"__isSmartRef__":true,"id":17290},"source":"function (func) {\n var fs = []\n this.targets.each(function (t) {\n fs.push(t.addScript(func))\n })\n return {\n tag: function (t) {\n fs.each(function (f) { f.tag(t) })\n return true\n }\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17291},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17290":{"this":{"__isSmartRef__":true,"id":17263}},"17291":{},"17292":{"varMapping":{"__isSmartRef__":true,"id":17293},"source":"function (name) {\n this.targets.each(function (t) {\n delete t[name]\n })\n }","funcProperties":{"__isSmartRef__":true,"id":17294},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17293":{"this":{"__isSmartRef__":true,"id":17263}},"17294":{},"17295":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"17296":{"morph":{"__isSmartRef__":true,"id":16951},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"17297":{"sourceObj":{"__isSmartRef__":true,"id":16951},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":17298},"targetMethodName":"indicateUnsavedChanges","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"17298":{"submorphs":[],"scripts":[],"id":"9EFFBFC7-C59B-420F-999C-3E64E8258B50","shape":{"__isSmartRef__":true,"id":17299},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":17305},"showsHalos":false,"name":"ChangeIndicator","partsBinMetaInfo":{"__isSmartRef__":true,"id":17306},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":17307},"eventHandler":{"__isSmartRef__":true,"id":17308},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":16485},"layout":{"__isSmartRef__":true,"id":17309},"isBeingDragged":false,"savedColor":{"__isSmartRef__":true,"id":17302},"alarmColor":{"__isSmartRef__":true,"id":17310},"grabbingEnabled":false,"draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":17311},"isCopyMorphRef":true,"morphRefId":152,"derivationIds":[220,"EE491D24-F056-4AFE-A669-7B7048C6C3D1","3FA4A8C3-0FC0-43A0-8C00-00A96F9022E2","62DAD3C6-A81D-450F-B32F-601EA7E619D8","EEDB0C58-5990-481A-A7FF-ACB1A2DF08DD","16F708CB-1259-4A75-BAEF-1A5216C6CB19","97CA61D3-E09B-43CD-9880-D8B36FA303F3","0AF6BEEC-8A57-44FF-9D8D-40BA6CC6A0CD","AF2BEE76-C34F-457E-8699-9896327A4C07","5EC39FF0-602F-44A2-BE3A-04FCA127E5D1","44CEBF61-9A92-4E36-9576-425D5054B471","E9ACF86B-B775-4125-83BC-7E4500597D40","FE62294A-F891-45E4-AAE7-6F386B5A8CB5","8771140D-0D57-4CAF-A57B-857F858CCC73","BE774795-5889-4DB8-A366-1C774555761B","89DA16ED-5636-4C0D-B52F-A327A5526DD6","94DAC0EC-79E9-48E5-90D5-2BB59495BD0B","048AE915-30CF-4DE4-819B-F7D41CE99585","0417EEDD-6B12-4AF1-B7BC-875E32521980","5DFAFB2A-C915-429E-A58C-030C229C9AB8","BD996DFA-D248-4D9C-AF33-C5BA2511A09E","B26CF6CA-8BBF-4FE3-8EF7-A8B42FC84D7C","FB00E596-FBFA-45EA-AA29-B85E59703779","CE40B6B4-E615-40A8-97F1-517CF85F9160","EFB36362-AD16-4019-A3B5-C20C50DD8A8A","C2A8C003-FF35-4993-8468-29E1B0A7AD26","DFB7512A-4710-4412-87BD-4E9290448132","50791CF9-9488-4B81-B830-181D6542E168","4243FC9E-A79E-4EAF-B346-C02A7083E862"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17312},"__LivelyClassName__":"lively.morphic.Box"},"17299":{"position":{"__isSmartRef__":true,"id":17300},"_Extent":{"__isSmartRef__":true,"id":17301},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":17302},"_Fill":{"__isSmartRef__":true,"id":17302},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":17303},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":17304},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"17300":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17301":{"x":8.637782619743348,"y":9.712632235981744,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17302":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17303":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"17304":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"17305":{"x":883.0245425248855,"y":39.999999999999986,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17306":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph. A really blue one. Its amazing what you can build out of simple boxes.... Who needs stars when you got blue rectangles!","migrationLevel":2,"partName":"Rectangle","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"17307":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"17308":{"morph":{"__isSmartRef__":true,"id":17298},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"17309":{"moveHorizontal":true,"adjustForNewBounds":true},"17310":{"r":0.9411764705882353,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17311":{"x":37.328206296760186,"y":-17.53316489131697,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17312":{"indicateUnsavedChanges":{"__isSmartRef__":true,"id":17313},"setColors":{"__isSmartRef__":true,"id":17317}},"17313":{"varMapping":{"__isSmartRef__":true,"id":17314},"source":"function indicateUnsavedChanges() {\n if (this.owner.scriptPane.hasChanged()) {\n this.setColors(this.alarmColor);\n } else {\n this.setColors(this.savedColor);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17315},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17314":{"this":{"__isSmartRef__":true,"id":17298}},"17315":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":17316}},"17316":{"isSerializedDate":true,"string":"Tue Sep 27 2011 20:09:19 GMT+0200 (CEST)"},"17317":{"varMapping":{"__isSmartRef__":true,"id":17318},"source":"function setColors(color) {\n this.setFill(color);\n this.setBorderColor(color);\n}","funcProperties":{"__isSmartRef__":true,"id":17319},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17318":{"this":{"__isSmartRef__":true,"id":17298}},"17319":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":17320}},"17320":{"isSerializedDate":true,"string":"Tue Sep 27 2011 19:06:09 GMT+0200 (CEST)"},"17321":{"sourceObj":{"__isSmartRef__":true,"id":16951},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":16951},"targetMethodName":"highlightJavaScriptSyntax","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"17322":{"x":341.1979959929888,"y":-18.288721442524036,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17323":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17324},"id":553,"renderContextTable":{"__isSmartRef__":true,"id":17331},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":17332}],"eventHandler":{"__isSmartRef__":true,"id":17334},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":11,"_Position":{"__isSmartRef__":true,"id":17335},"_MaxTextWidth":90,"_MinTextWidth":90,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"_Align":"center","_VerticalAlign":"center","_TextColor":{"__isSmartRef__":true,"id":17336},"owner":null,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"17324":{"_Position":{"__isSmartRef__":true,"id":17325},"renderContextTable":{"__isSmartRef__":true,"id":17326},"_Extent":{"__isSmartRef__":true,"id":17327},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":17328},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":17329},"_Fill":{"__isSmartRef__":true,"id":17330},"_StrokeOpacity":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"17325":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17326":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"17327":{"x":100,"y":25,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17328":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"17329":{"r":0.8,"g":0.8,"b":0.8,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17330":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17331":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"17332":{"style":{"__isSmartRef__":true,"id":17333},"chunkOwner":{"__isSmartRef__":true,"id":17323},"_id":"_1209","storedString":"saved source","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17333":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17334":{"morph":{"__isSmartRef__":true,"id":17323},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"17335":{"x":295.51426826444225,"y":225.30626630721798,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17336":{"r":0,"g":0.8,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17337":{"x":200,"y":40,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17338":{"doSave":{"__isSmartRef__":true,"id":17339},"boundEval":{"__isSmartRef__":true,"id":17347},"reset":{"__isSmartRef__":true,"id":17355},"display":{"__isSmartRef__":true,"id":17359},"hasChanged":{"__isSmartRef__":true,"id":17363},"setTarget":{"__isSmartRef__":true,"id":17367},"displayStatus":{"__isSmartRef__":true,"id":17371}},"17339":{"varMapping":{"__isSmartRef__":true,"id":17340},"source":"function doSave() {\n $super();\n var saved = this.boundEval(this.getTextString());\n if (saved) {\n this.lastSaveSource = this.textString;\n this.owner.changeIndicator.indicateUnsavedChanges();\n this.owner.updateLists();\n this.owner.selectChangedContent(this.getTextString());\n this.displayStatus(\"saved source\", Color.green);\n } else {\n this.displayStatus(\"not saved\", Color.red);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17345},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17340":{"this":{"__isSmartRef__":true,"id":16951},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17341}},"17341":{"$super":{"__isSmartRef__":true,"id":17342}},"17342":{"varMapping":{"__isSmartRef__":true,"id":17343},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17344},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17343":{"obj":{"__isSmartRef__":true,"id":16951},"name":"doSave"},"17344":{},"17345":{"timestamp":{"__isSmartRef__":true,"id":17346},"user":"lauritz"},"17346":{"isSerializedDate":true,"string":"Thu Nov 17 2011 23:15:19 GMT+0100 (CET)"},"17347":{"varMapping":{"__isSmartRef__":true,"id":17348},"source":"function boundEval(str) {\n var result,\n that = this,\n ctx = that.getDoitContext()\n\n this.objectEditorPane.ensureAnnotationLayer();\n\n withLayers([ScriptAnnotationLayer], function() { \n if (that.getDoitContext().isMorph || !str.include(\"this\")) {\n result = $super(str);\n } else {\n var targets = ctx.targets\n result = targets.collect(function (t) {\n try {\n that.doitContext = t\n return $super(str)\n } catch(e) {\n return e\n } finally {\n that.doitContext = ctx\n }\n })\n }\n })\n return result\n}","funcProperties":{"__isSmartRef__":true,"id":17353},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17348":{"this":{"__isSmartRef__":true,"id":16951},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17349}},"17349":{"$super":{"__isSmartRef__":true,"id":17350}},"17350":{"varMapping":{"__isSmartRef__":true,"id":17351},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17352},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17351":{"obj":{"__isSmartRef__":true,"id":16951},"name":"boundEval"},"17352":{},"17353":{"timestamp":{"__isSmartRef__":true,"id":17354},"user":"timfelgentreff","tags":[]},"17354":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:42:56 GMT+0200 (CEST)"},"17355":{"varMapping":{"__isSmartRef__":true,"id":17356},"source":"function reset() {\n this.doitContext = null;\n this.lastSaveSource = \"\";\n this.textString = \"\";\n this.lastSaveSource = this.textString;\n this.enableSyntaxHighlighting();\n}","funcProperties":{"__isSmartRef__":true,"id":17357},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17356":{"this":{"__isSmartRef__":true,"id":16951}},"17357":{"timestamp":{"__isSmartRef__":true,"id":17358},"user":"cschuster","tags":[]},"17358":{"isSerializedDate":true,"string":"Wed May 16 2012 20:52:57 GMT+0200 (CEST)"},"17359":{"varMapping":{"__isSmartRef__":true,"id":17360},"source":"function display(jsCode) {\n this.lastSaveSource = jsCode;\n this.setTextString(jsCode);\n this.highlightJavaScriptSyntax();\n this.applyStyle({align: 'left'});\n}","funcProperties":{"__isSmartRef__":true,"id":17361},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17360":{"this":{"__isSmartRef__":true,"id":16951}},"17361":{"timestamp":{"__isSmartRef__":true,"id":17362},"user":"lauritz","categories":[]},"17362":{"isSerializedDate":true,"string":"Tue Sep 27 2011 19:47:57 GMT+0200 (CEST)"},"17363":{"varMapping":{"__isSmartRef__":true,"id":17364},"source":"function hasChanged() {\n var cleanText = function (string) {\n var source = string.trim();\n if (source.substring(0,2) === \"//\") {\n // removes annotation line\n source = source.substring(source.indexOf(\"\\n\"), source.length);\n source = source.trim();\n }\n if (source === 'undefined' || source === 'null') source = '';\n return source;\n }\n var cleanedTextString = cleanText(this.textString);\n var cleanedLastSource = cleanText(this.lastSaveSource);\n return cleanedTextString !== cleanedLastSource;\n}","funcProperties":{"__isSmartRef__":true,"id":17365},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17364":{"this":{"__isSmartRef__":true,"id":16951}},"17365":{"timestamp":{"__isSmartRef__":true,"id":17366},"user":"lauritz","categories":[]},"17366":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:29:45 GMT+0200 (CEST)"},"17367":{"varMapping":{"__isSmartRef__":true,"id":17368},"source":"function setTarget(target) {\n module('lively.ide.SyntaxHighlighting').load(true);\n this.doitContext = target;\n}","funcProperties":{"__isSmartRef__":true,"id":17369},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17368":{"this":{"__isSmartRef__":true,"id":16951}},"17369":{"timestamp":{"__isSmartRef__":true,"id":17370},"user":"timfelgentreff","tags":[]},"17370":{"isSerializedDate":true,"string":"Thu Jun 07 2012 09:46:09 GMT+0200 (CEST)"},"17371":{"varMapping":{"__isSmartRef__":true,"id":17372},"source":"function displayStatus(msg, color, delay) {\n if (!this.statusMorph) {\n this.statusMorph = new TextMorph(pt(100,25).extentAsRectangle());\n this.statusMorph.applyStyle({borderWidth: 1, strokeOpacity: 0, borderColor: Color.gray});\n this.statusMorph.setFill(this.owner.getFill());\n this.statusMorph.setFontSize(11);\n this.statusMorph.setAlign('center');\n this.statusMorph.setVerticalAlign('center');\n }\n this.statusMorph.setTextString(msg);\n this.statusMorph.centerAt(this.innerBounds().center());\n this.statusMorph.setTextColor(color || Color.black);\n this.addMorph(this.statusMorph);\n (function() { this.statusMorph.remove() }).bind(this).delay(delay || 2); \n}","funcProperties":{"__isSmartRef__":true,"id":17373},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17372":{"this":{"__isSmartRef__":true,"id":16951}},"17373":{"timestamp":{"__isSmartRef__":true,"id":17374},"user":"lauritz","categories":[]},"17374":{"isSerializedDate":true,"string":"Wed Nov 23 2011 18:23:05 GMT+0100 (CET)"},"17375":{"submorphs":[{"__isSmartRef__":true,"id":17376}],"scripts":[],"id":847,"shape":{"__isSmartRef__":true,"id":17389},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":17404},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":17392},"lighterFill":{"__isSmartRef__":true,"id":17405},"label":{"__isSmartRef__":true,"id":17376},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","_Rotation":0,"padding":{"__isSmartRef__":true,"id":17414},"name":"ObjectEditorClassButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":17415},"_Scale":1,"owner":null,"layout":{"__isSmartRef__":true,"id":17416},"renderContextTable":{"__isSmartRef__":true,"id":17417},"eventHandler":{"__isSmartRef__":true,"id":17418},"__LivelyClassName__":"lively.morphic.Button"},"17376":{"submorphs":[],"scripts":[],"id":848,"shape":{"__isSmartRef__":true,"id":17377},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":18,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":17382},"textColor":{"__isSmartRef__":true,"id":17380},"owner":{"__isSmartRef__":true,"id":17375},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":17383}],"padding":{"__isSmartRef__":true,"id":17385},"_Padding":{"__isSmartRef__":true,"id":17386},"prevScroll":[0,0],"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":17387},"eventHandler":{"__isSmartRef__":true,"id":17388},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"17377":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":17378},"_Extent":{"__isSmartRef__":true,"id":17379},"_BorderColor":{"__isSmartRef__":true,"id":17380},"renderContextTable":{"__isSmartRef__":true,"id":17381},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"17378":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17379":{"x":116,"y":18,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17380":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17381":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17382":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17383":{"style":{"__isSmartRef__":true,"id":17384},"chunkOwner":{"__isSmartRef__":true,"id":17376},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","_id":"_251","__LivelyClassName__":"lively.morphic.TextChunk"},"17384":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"17385":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"17386":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"17387":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"17388":{"morph":{"__isSmartRef__":true,"id":17376},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"17389":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":17390},"_Extent":{"__isSmartRef__":true,"id":17391},"_Fill":{"__isSmartRef__":true,"id":17392},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":17402},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":17403},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"17390":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17391":{"x":116,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17392":{"stops":[{"__isSmartRef__":true,"id":17393},{"__isSmartRef__":true,"id":17395},{"__isSmartRef__":true,"id":17397},{"__isSmartRef__":true,"id":17399}],"vector":{"__isSmartRef__":true,"id":17401},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"17393":{"offset":0,"color":{"__isSmartRef__":true,"id":17394}},"17394":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17395":{"offset":0.4,"color":{"__isSmartRef__":true,"id":17396}},"17396":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17397":{"offset":0.6,"color":{"__isSmartRef__":true,"id":17398}},"17398":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17399":{"offset":1,"color":{"__isSmartRef__":true,"id":17400}},"17400":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17401":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"17402":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17403":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17404":{"x":820,"y":8.999999999999972,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17405":{"stops":[{"__isSmartRef__":true,"id":17406},{"__isSmartRef__":true,"id":17408},{"__isSmartRef__":true,"id":17410},{"__isSmartRef__":true,"id":17412}],"vector":{"__isSmartRef__":true,"id":17401},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"17406":{"offset":0,"color":{"__isSmartRef__":true,"id":17407}},"17407":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17408":{"offset":0.4,"color":{"__isSmartRef__":true,"id":17409}},"17409":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17410":{"offset":0.6,"color":{"__isSmartRef__":true,"id":17411}},"17411":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17412":{"offset":1,"color":{"__isSmartRef__":true,"id":17413}},"17413":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17414":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"17415":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"17416":{"moveHorizontal":true},"17417":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"17418":{"morph":{"__isSmartRef__":true,"id":17375},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"17419":{"submorphs":[],"scripts":[],"id":"D26E6B10-9226-4289-A820-FC796B0578AA","shape":{"__isSmartRef__":true,"id":17420},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":17427},"itemList":["-- ALL --"],"selectedLineNo":1,"showsHalos":false,"name":"ObjectEditorConnectionList","partsBinMetaInfo":{"__isSmartRef__":true,"id":17428},"__SourceModuleName__":"Global.lively.morphic.Core","_ClipMode":"auto","owner":{"__isSmartRef__":true,"id":16485},"attributeConnections":[{"__isSmartRef__":true,"id":17429}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"prevScroll":[0,0],"layout":{"__isSmartRef__":true,"id":17434},"renderContextTable":{"__isSmartRef__":true,"id":17435},"eventHandler":{"__isSmartRef__":true,"id":17436},"_FontSize":10,"distanceToDragEvent":{"__isSmartRef__":true,"id":17437},"grabbingEnabled":false,"draggingEnabled":false,"isCopyMorphRef":true,"morphRefId":145,"derivationIds":[209,"3900F5DF-0FF7-4C94-8BDB-44AAE12B4A3E","35301083-B60D-4A43-8566-23860EEB4C04","9CC401CC-5A35-4643-935B-FD049C284E16","C9879D40-5E79-4C56-AA79-562ED82BF052","9F6F9261-EB76-4B58-B77D-7D70813A1ED7","8B59E237-F372-4F70-9768-7E9C1A7A021D","FC85F1B9-1978-42D2-850C-BD249981E8B4","D2B607C6-A89B-4B3F-91BB-720451EAB98D","CC361093-FF73-479B-9431-C645CB48F518","307D3B7C-C0E1-484F-8D7E-39FBA9D8EDA5","038AF132-861E-4A77-8756-E6B476413639","65B6CA87-98DE-4473-B4DD-F8763BC3B06A","0AA0E45B-6DCC-4AE0-938C-E53794A511DF","806ACC1C-1353-436B-B1FE-568846777C17","C74AE022-1184-4FDF-A53D-A17627FF61EA","686AF565-EEB0-4AB7-A12E-26727DAD9291","1102A5B3-9973-4471-9EDD-FD7AB802DEA6","BEB06225-53D0-4ACC-9154-DC2DEB5728B7","E32FE34B-7520-4612-B927-C8F9EDFC69BB","D21F598A-4E44-4752-B205-9595DF0E9AE3","DE3CDCB4-1752-406B-B953-7DDF31FE1128","7DBC310E-96B9-4448-9BFD-C31FC561D481","3F992934-03ED-4ACC-8C88-47A92707057B","0980E33C-3E42-410A-AA90-C4015B86D652","C1AB1EB8-AA44-46AF-980B-69B814E4DA3E","5472497C-690C-4A40-A41F-49C01358545F","F02BE6A3-D64D-48BC-B045-F95EDD786E07","458D9F84-8A74-4655-875D-764DEEA4B187"],"selection":null,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17438},"__LivelyClassName__":"lively.morphic.List"},"17420":{"position":{"__isSmartRef__":true,"id":17421},"_Extent":{"__isSmartRef__":true,"id":17422},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":17423},"_Fill":{"__isSmartRef__":true,"id":17424},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":17425},"_Opacity":1,"_BorderStyle":"solid","_Padding":{"__isSmartRef__":true,"id":17426},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"17421":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17422":{"x":180,"y":74,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17423":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17424":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17425":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"17426":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"17427":{"x":10,"y":441.5965565984398,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17428":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"17429":{"sourceObj":{"__isSmartRef__":true,"id":17419},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":16485},"targetMethodName":"displaySourceForConnection","converterString":"function (value) {\n if (!value) return;\n return (value === '-- ALL --') ? null : value[1];\n}","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17430},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17431},"__LivelyClassName__":"AttributeConnection"},"17430":{"source":{"__isSmartRef__":true,"id":17419},"target":{"__isSmartRef__":true,"id":16485}},"17431":{"converter":{"__isSmartRef__":true,"id":17432}},"17432":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":17430},"source":"function (value) {\n if (!value) return;\n return (value === '-- ALL --') ? null : value[1];\n}","funcProperties":{"__isSmartRef__":true,"id":17433},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17433":{},"17434":{"resizeHeight":false,"moveVertical":true},"17435":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateListContent":"updateListContentHTML","resizeList":"resizeListHTML","getItemIndexFromEvent":"getItemIndexFromEventHTML","getListExtent":"getListExtentHTML","setSize":"setSizeHTML","renderAsDropDownList":"renderAsDropDownListHTML","setFontSize":"setFontSizeHTML","setFontFamily":"setFontFamilyHTML","getSelectedIndexes":"getSelectedIndexesHTML","enableMultipleSelections":"enableMultipleSelectionsHTML","selectAllAt":"selectAllAtHTML","clearSelections":"clearSelectionsHTML","deselectAt":"deselectAtHTML"},"17436":{"morph":{"__isSmartRef__":true,"id":17419},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"17437":{"x":124.95989979964943,"y":-17.076643708895745,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17438":{"preselectItem":{"__isSmartRef__":true,"id":17439}},"17439":{"varMapping":{"__isSmartRef__":true,"id":17440},"source":"function preselectItem() {\n if (this.getList().size() === 2) {\n this.selectAt(1);\n } else {\n this.selectAt(0);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17441},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17440":{"this":{"__isSmartRef__":true,"id":17419}},"17441":{"timestamp":{"__isSmartRef__":true,"id":17442},"user":"lauritz"},"17442":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:12:58 GMT+0100 (CET)"},"17443":{"submorphs":[{"__isSmartRef__":true,"id":17444}],"scripts":[],"id":47,"shape":{"__isSmartRef__":true,"id":17456},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":17471},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":17459},"lighterFill":{"__isSmartRef__":true,"id":17472},"label":{"__isSmartRef__":true,"id":17444},"attributeConnections":[{"__isSmartRef__":true,"id":17481}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","_Rotation":0,"padding":{"__isSmartRef__":true,"id":17482},"name":"ObjectEditorTargetButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":17483},"_Scale":1,"owner":null,"renderContextTable":{"__isSmartRef__":true,"id":17484},"isCopyMorphRef":true,"morphRefId":1,"__LivelyClassName__":"lively.morphic.Button"},"17444":{"submorphs":[],"scripts":[],"id":48,"shape":{"__isSmartRef__":true,"id":17445},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":20,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":17450},"textColor":{"__isSmartRef__":true,"id":17448},"owner":{"__isSmartRef__":true,"id":17443},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":17451}],"padding":{"__isSmartRef__":true,"id":17453},"_Padding":{"__isSmartRef__":true,"id":17454},"prevScroll":[0,0],"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":17455},"__LivelyClassName__":"lively.morphic.Text"},"17445":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":17446},"_Extent":{"__isSmartRef__":true,"id":17447},"_BorderColor":{"__isSmartRef__":true,"id":17448},"renderContextTable":{"__isSmartRef__":true,"id":17449},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"17446":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17447":{"x":116,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17448":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17449":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setOpacity":"setOpacityHTML"},"17450":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17451":{"style":{"__isSmartRef__":true,"id":17452},"chunkOwner":{"__isSmartRef__":true,"id":17444},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","_id":"_252","__LivelyClassName__":"lively.morphic.TextChunk"},"17452":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"17453":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"17454":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"17455":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"17456":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":17457},"_Extent":{"__isSmartRef__":true,"id":17458},"_Fill":{"__isSmartRef__":true,"id":17459},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":17469},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":17470},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"17457":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17458":{"x":116,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17459":{"stops":[{"__isSmartRef__":true,"id":17460},{"__isSmartRef__":true,"id":17462},{"__isSmartRef__":true,"id":17464},{"__isSmartRef__":true,"id":17466}],"vector":{"__isSmartRef__":true,"id":17468},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"17460":{"offset":0,"color":{"__isSmartRef__":true,"id":17461}},"17461":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17462":{"offset":0.4,"color":{"__isSmartRef__":true,"id":17463}},"17463":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17464":{"offset":0.6,"color":{"__isSmartRef__":true,"id":17465}},"17465":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17466":{"offset":1,"color":{"__isSmartRef__":true,"id":17467}},"17467":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17468":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"17469":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17470":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setOpacity":"setOpacityHTML"},"17471":{"x":215,"y":35,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17472":{"stops":[{"__isSmartRef__":true,"id":17473},{"__isSmartRef__":true,"id":17475},{"__isSmartRef__":true,"id":17477},{"__isSmartRef__":true,"id":17479}],"vector":{"__isSmartRef__":true,"id":17468},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"17473":{"offset":0,"color":{"__isSmartRef__":true,"id":17474}},"17474":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17475":{"offset":0.4,"color":{"__isSmartRef__":true,"id":17476}},"17476":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17477":{"offset":0.6,"color":{"__isSmartRef__":true,"id":17478}},"17478":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17479":{"offset":1,"color":{"__isSmartRef__":true,"id":17480}},"17480":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17481":{"sourceObj":{"__isSmartRef__":true,"id":17443},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16502},"targetMethodName":"chooseTargetMorphMenu","__SourceModuleName__":"Global.lively.bindings","converter":null,"converterString":null,"updater":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection"},"17482":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"17483":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"17484":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"17485":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"17486":{"x":715.5,"y":73.89999999999998,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17487":{"submorphs":[],"scripts":[],"id":435,"shape":{"__isSmartRef__":true,"id":17488},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":17495},"_MaxTextWidth":218,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":17496},"showsHalos":false,"_FontSize":12,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":17497},"textChunks":[{"__isSmartRef__":true,"id":17498}],"charsReplaced":"","lastFindLoc":5,"priorSelectionRange":[15,15],"prevScroll":[0,0],"_ClipMode":"visible","list":[],"attributeConnections":[{"__isSmartRef__":true,"id":17500}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"listMorph":null,"_WhiteSpaceHandling":"pre-wrap","owner":null,"_Align":"left","renderContextTable":{"__isSmartRef__":true,"id":17502},"eventHandler":{"__isSmartRef__":true,"id":17503},"_MinTextWidth":218,"_MinTextHeight":null,"scriptAnnotations":{"__isSmartRef__":true,"id":17504},"selection":{"__isSmartRef__":true,"id":16484},"previousSelection":[0,13],"isCopyMorphRef":true,"morphRefId":1,"isBeingDragged":false,"draggingEnabled":false,"layout":{"__isSmartRef__":true,"id":17523},"_Rotation":0,"_Scale":1,"distanceToDragEvent":{"__isSmartRef__":true,"id":17524},"savedTextString":"100","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17525},"__LivelyClassName__":"lively.morphic.Text"},"17488":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":17489},"_Extent":{"__isSmartRef__":true,"id":17490},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":17491},"renderContextTable":{"__isSmartRef__":true,"id":17492},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":17493},"_BorderRadius":3.7000000000000006,"_Opacity":1,"_BorderStyle":"solid","_Fill":{"__isSmartRef__":true,"id":17494},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"17489":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17490":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17491":{"r":0.753,"g":0.753,"b":0.753,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17492":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"17493":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"17494":{"r":0.9548430751559654,"g":0.9548430751559654,"b":0.9548430751559654,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17495":{"x":200,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17496":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17497":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"17498":{"style":{"__isSmartRef__":true,"id":17499},"chunkOwner":{"__isSmartRef__":true,"id":17487},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","_id":"_253","__LivelyClassName__":"lively.morphic.TextChunk"},"17499":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"17500":{"sourceObj":{"__isSmartRef__":true,"id":17487},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":16485},"targetMethodName":"setTarget","converter":null,"converterString":"function (name) { return $world.get(name)}","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17501},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"17501":{"source":{"__isSmartRef__":true,"id":17487},"target":{"__isSmartRef__":true,"id":16485}},"17502":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"17503":{"morph":{"__isSmartRef__":true,"id":17487},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"17504":{"createListMorph":{"__isSmartRef__":true,"id":17505},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":17507},"onMouseUp":{"__isSmartRef__":true,"id":17509},"resetConnections":{"__isSmartRef__":true,"id":17511},"setTargetToListSelection":{"__isSmartRef__":true,"id":17513},"setTargetOfPane":{"__isSmartRef__":true,"id":17515},"onBlur":{"__isSmartRef__":true,"id":17517},"reset":{"__isSmartRef__":true,"id":17519},"onMouseDown":{"__isSmartRef__":true,"id":17521}},"17505":{"time":{"__isSmartRef__":true,"id":17506},"user":"lauritz"},"17506":{"isSerializedDate":true,"string":"Fri Oct 28 2011 05:27:29 GMT+0200 (CEST)"},"17507":{"time":{"__isSmartRef__":true,"id":17508},"user":"lauritz"},"17508":{"isSerializedDate":true,"string":"Fri Oct 14 2011 23:48:37 GMT+0200 (CEST)"},"17509":{"time":{"__isSmartRef__":true,"id":17510},"user":"lauritz"},"17510":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:51:14 GMT+0200 (CEST)"},"17511":{"time":{"__isSmartRef__":true,"id":17512},"user":"lauritz"},"17512":{"isSerializedDate":true,"string":"Wed Sep 28 2011 01:03:17 GMT+0200 (CEST)"},"17513":{"time":{"__isSmartRef__":true,"id":17514},"user":"lauritz"},"17514":{"isSerializedDate":true,"string":"Sat Oct 15 2011 00:00:58 GMT+0200 (CEST)"},"17515":{"time":{"__isSmartRef__":true,"id":17516},"user":"lauritz"},"17516":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:34:37 GMT+0200 (CEST)"},"17517":{"time":{"__isSmartRef__":true,"id":17518},"user":"lauritz"},"17518":{"isSerializedDate":true,"string":"Fri Oct 07 2011 19:24:18 GMT+0200 (CEST)"},"17519":{"time":{"__isSmartRef__":true,"id":17520},"user":"lauritz"},"17520":{"isSerializedDate":true,"string":"Fri Oct 07 2011 19:26:15 GMT+0200 (CEST)"},"17521":{"time":{"__isSmartRef__":true,"id":17522},"user":"lauritz"},"17522":{"isSerializedDate":true,"string":"Mon Oct 17 2011 19:49:00 GMT+0200 (CEST)"},"17523":{},"17524":{"x":153.8540395186758,"y":-23.74126935194758,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17525":{"getList":{"__isSmartRef__":true,"id":17526},"setList":{"__isSmartRef__":true,"id":17529},"reset":{"__isSmartRef__":true,"id":17532},"example":{"__isSmartRef__":true,"id":17535},"removeList":{"__isSmartRef__":true,"id":17538},"onBlur":{"__isSmartRef__":true,"id":17541},"createListMorph":{"__isSmartRef__":true,"id":17548},"resetConnections":{"__isSmartRef__":true,"id":17551},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":17554},"setTargetToListSelection":{"__isSmartRef__":true,"id":17557},"setTargetOfPane":{"__isSmartRef__":true,"id":17560},"onMouseDown":{"__isSmartRef__":true,"id":17563}},"17526":{"varMapping":{"__isSmartRef__":true,"id":17527},"source":"function getList() {\n return this.world().indentedListItemsOfMorphNames();\n}","funcProperties":{"__isSmartRef__":true,"id":17528},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17527":{"this":{"__isSmartRef__":true,"id":17487}},"17528":{},"17529":{"varMapping":{"__isSmartRef__":true,"id":17530},"source":"function setList(list) {\n return this.list = list;\n}","funcProperties":{"__isSmartRef__":true,"id":17531},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17530":{"this":{"__isSmartRef__":true,"id":17487}},"17531":{},"17532":{"varMapping":{"__isSmartRef__":true,"id":17533},"source":"function reset() {\n this.list = [];\n this.textString = 'empty';\n this.removeList();\n this.resetConnections();\n this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'})\n}","funcProperties":{"__isSmartRef__":true,"id":17534},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17533":{"this":{"__isSmartRef__":true,"id":17487}},"17534":{},"17535":{"varMapping":{"__isSmartRef__":true,"id":17536},"source":"function example() {\n/*\nthis.example()\nthis.getList()\n*/\n this.setList(Array.range(0,100));\n this.textString = 'empty';\n}","funcProperties":{"__isSmartRef__":true,"id":17537},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17536":{"this":{"__isSmartRef__":true,"id":17487}},"17537":{},"17538":{"varMapping":{"__isSmartRef__":true,"id":17539},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":17540},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17539":{"this":{"__isSmartRef__":true,"id":17487}},"17540":{},"17541":{"varMapping":{"__isSmartRef__":true,"id":17542},"source":"function onBlur() {\n $super();\n this.removeList();\n}","funcProperties":{"__isSmartRef__":true,"id":17547},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17542":{"this":{"__isSmartRef__":true,"id":17487},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17543}},"17543":{"$super":{"__isSmartRef__":true,"id":17544}},"17544":{"varMapping":{"__isSmartRef__":true,"id":17545},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17546},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17545":{"obj":{"__isSmartRef__":true,"id":17487},"name":"onBlur"},"17546":{},"17547":{},"17548":{"varMapping":{"__isSmartRef__":true,"id":17549},"source":"function createListMorph() {\n var list = new lively.morphic.List(new Rectangle(0,0, this.getExtent().x, 520));\n list.setList(this.getList());\n list.setFontSize(12);\n\n list.disableGrabbing();\n list.disableDragging();\n \n this.addMorph(list);\n list.setPosition(pt(0,0));\n\n connect(list, 'selection', this, 'setTargetToListSelection');\n \n return list;\n}","funcProperties":{"__isSmartRef__":true,"id":17550},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17549":{"this":{"__isSmartRef__":true,"id":17487}},"17550":{},"17551":{"varMapping":{"__isSmartRef__":true,"id":17552},"source":"function resetConnections() {\n disconnectAll(this);\n connect(this, 'savedTextString', this.owner, 'setTarget', {converter: \n\tfunction (name) { return $world.get(name)}});\n}","funcProperties":{"__isSmartRef__":true,"id":17553},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17552":{"this":{"__isSmartRef__":true,"id":17487}},"17553":{},"17554":{"varMapping":{"__isSmartRef__":true,"id":17555},"source":"function displayTopLevelMorphs() {\n if (this.listMorph) { this.removeList(); return true }\n var list = this.createListMorph(); \n this.addMorph(list);\n this.listMorph = list;\n}","funcProperties":{"__isSmartRef__":true,"id":17556},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17555":{"this":{"__isSmartRef__":true,"id":17487}},"17556":{},"17557":{"varMapping":{"__isSmartRef__":true,"id":17558},"source":"function setTargetToListSelection(selection) { \n this.removeList();\n if (!selection) return;\n if (this.owner.scriptPane.hasChanged()) {\n var that = this;\n var callback = function (confirmed) {\n if (confirmed) that.setTargetOfPane(selection);\n }\n this.owner.confirmUnsavedChanges(callback);\n } else {\n this.setTargetOfPane(selection);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17559},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17558":{"this":{"__isSmartRef__":true,"id":17487}},"17559":{},"17560":{"varMapping":{"__isSmartRef__":true,"id":17561},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.setTextString(selection.getName());\n this.removeList();\n}","funcProperties":{"__isSmartRef__":true,"id":17562},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17561":{"this":{"__isSmartRef__":true,"id":17487}},"17562":{},"17563":{"varMapping":{"__isSmartRef__":true,"id":17564},"source":"function onMouseDown(evt) {\n if (evt.isCommandKey() || evt.isRightMouseButtonDown()) return $super(evt);\n if (this.listMorph) {\n return false;\n } else {\n this.displayTopLevelMorphs();\n return true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17569},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17564":{"this":{"__isSmartRef__":true,"id":17487},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17565}},"17565":{"$super":{"__isSmartRef__":true,"id":17566}},"17566":{"varMapping":{"__isSmartRef__":true,"id":17567},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17568},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17567":{"obj":{"__isSmartRef__":true,"id":17487},"name":"onMouseDown"},"17568":{},"17569":{},"17570":{"morph":{"__isSmartRef__":true,"id":16502},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"17571":{"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":17572},"setTarget":{"__isSmartRef__":true,"id":17575},"generateSourceForScript":{"__isSmartRef__":true,"id":17578},"generateSourceForConnection":{"__isSmartRef__":true,"id":17581},"generateTargetCode":{"__isSmartRef__":true,"id":17584},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":17587},"displayJavaScriptSource":{"__isSmartRef__":true,"id":17590},"displaySourceForScript":{"__isSmartRef__":true,"id":17593},"displaySourceForConnection":{"__isSmartRef__":true,"id":17596},"newScript":{"__isSmartRef__":true,"id":17599},"newConnection":{"__isSmartRef__":true,"id":17602},"deleteSelectedScript":{"__isSmartRef__":true,"id":17605},"disconnectConnection":{"__isSmartRef__":true,"id":17608},"updateLists":{"__isSmartRef__":true,"id":17611},"displayInitialScript":{"__isSmartRef__":true,"id":17614},"reset":{"__isSmartRef__":true,"id":17617},"selectChangedContent":{"__isSmartRef__":true,"id":17620}},"17572":{"varMapping":{"__isSmartRef__":true,"id":17573},"source":"function sortedScriptNamesOfObj(obj) {\n if (!Functions.own(obj) || Functions.own(obj).size() == 0) return [];\n return Functions.own(obj)\n\t.select(function(name) { return obj[name].hasLivelyClosure })\n\t.sortBy(function(name) { return name.toLowerCase() });\n}","funcProperties":{"__isSmartRef__":true,"id":17574},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17573":{"this":{"__isSmartRef__":true,"id":16502}},"17574":{},"17575":{"varMapping":{"__isSmartRef__":true,"id":17576},"source":"function setTarget(morph) {\n this.reset();\n module('lively.ide.SyntaxHighlighting').load(true);\n this.target = morph;\n this.morphSelector.textString = (this.target.getName() || this.target.toString());\n this.scriptPane.doitContext = this.target;\n this.updateLists();\n this.displayInitialScript();\n}","funcProperties":{"__isSmartRef__":true,"id":17577},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17576":{"this":{"__isSmartRef__":true,"id":16502}},"17577":{},"17578":{"varMapping":{"__isSmartRef__":true,"id":17579},"source":"function generateSourceForScript(scriptName) {\n var script = this.target[scriptName].getOriginal();\n return Strings.format('this.addScript(%s);' ,script)\n}","funcProperties":{"__isSmartRef__":true,"id":17580},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17579":{"this":{"__isSmartRef__":true,"id":16502}},"17580":{},"17581":{"varMapping":{"__isSmartRef__":true,"id":17582},"source":"function generateSourceForConnection(connection) {\n var c = connection, targetObject = this.target;\n\tif (!c.getTargetObj() || !c.getTargetObj().name || \n\t\t!c.getSourceObj() || !c.getSourceObj().name) return String(c);\n\n\tvar optConfig = []\n\tif (c.converterString)\n\t\toptConfig.push(\"converter: \\n\\t\" + c.converterString)\n\tif (c.updaterString)\n\t\toptConfig.push(\"updater: \\n\\t\" + c.updaterString)\n\treturn Strings.format('connect(%s, \"%s\", %s, \"%s\", {%s});', \n\t\t\tthis.generateTargetCode(targetObject, c.getSourceObj()),\n\t\t\tc.getSourceAttrName(),\n\t\t\tthis.generateTargetCode(targetObject, c.getTargetObj()),\n\t\t\tc.getTargetMethodName(),\n\t\t\toptConfig.join(','));\n\n}","funcProperties":{"__isSmartRef__":true,"id":17583},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17582":{"this":{"__isSmartRef__":true,"id":16502}},"17583":{},"17584":{"varMapping":{"__isSmartRef__":true,"id":17585},"source":"function generateTargetCode(baseObject, targetObject) {\n\tvar name = targetObject.name;\n\tif (baseObject === targetObject) \n\t\treturn \"this\";\n\telse if (baseObject[name] === targetObject) \n\t\treturn \"this.\" + name;\n\telse if (baseObject.testObject === targetObject) \n\t\treturn \"this.testObject\";\n\telse if (baseObject.get(name) === targetObject) \n\t\treturn 'this.get(\"' + name + '\")';\n\telse if (targetObject instanceof Morph) \n\t\treturn '$morph(\"' + name + '\")';\n\telse \n\t\treturn \"????\";\n}","funcProperties":{"__isSmartRef__":true,"id":17586},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17585":{"this":{"__isSmartRef__":true,"id":16502}},"17586":{},"17587":{"varMapping":{"__isSmartRef__":true,"id":17588},"source":"function sortedConnectionNamesOfObj(obj) {\n if (\"attributeConnections\" in obj) {\n return obj.attributeConnections\n .sortBy(function(each) {return name.toLowerCase() })\n .collect(function(each) {return [each.getSourceAttrName(), each]});\n } else {\n return [];\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17589},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17588":{"this":{"__isSmartRef__":true,"id":16502}},"17589":{},"17590":{"varMapping":{"__isSmartRef__":true,"id":17591},"source":"function displayJavaScriptSource(jsCode) {\n this.scriptPane.setTextString(jsCode);\n this.scriptPane.highlightJavaScriptSyntax();\n}","funcProperties":{"__isSmartRef__":true,"id":17592},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17591":{"this":{"__isSmartRef__":true,"id":16502}},"17592":{},"17593":{"varMapping":{"__isSmartRef__":true,"id":17594},"source":"function displaySourceForScript(scriptName) {\n if (!scriptName) return;\n var code = \"\", that = this;\n if (scriptName === \"-- ALL --\") {\n this.sortedScriptNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForScript(each)).concat(\"\\n\\n\");\n });\n } else {\n code = this.generateSourceForScript(scriptName); \n }\n this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":17595},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17594":{"this":{"__isSmartRef__":true,"id":16502}},"17595":{},"17596":{"varMapping":{"__isSmartRef__":true,"id":17597},"source":"function displaySourceForConnection(connection) {\n if (!connection) return;\n var code = \"\", that = this;\n if ((typeof connection === \"string\") && connection === \"-- ALL --\") {\n this.sortedConnectionNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForConnection(each[1])).concat(\"\\n\\n\");\n })\n } else {\n code = this.generateSourceForConnection(connection);\n }\n this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":17598},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17597":{"this":{"__isSmartRef__":true,"id":16502}},"17598":{},"17599":{"varMapping":{"__isSmartRef__":true,"id":17600},"source":"function newScript() {\n if (this.target) {\n var code = \"this.addScript(function SCRIPTNAME() {\\n\\t\\n});\";\n this.displayJavaScriptSource(code);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17601},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17600":{"this":{"__isSmartRef__":true,"id":16502}},"17601":{},"17602":{"varMapping":{"__isSmartRef__":true,"id":17603},"source":"function newConnection() {\n if (this.target) {\n var code = \"connect(SOURCE, SOURCE_PROPERTY, TARGET, TARGET_PROPERTY);\";\n this.displayJavaScriptSource(code);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17604},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17603":{"this":{"__isSmartRef__":true,"id":16502}},"17604":{},"17605":{"varMapping":{"__isSmartRef__":true,"id":17606},"source":"function deleteSelectedScript() {\n if (this.scriptList.selection && this.target) {\n if (!this.target.hasOwnProperty(this.scriptList.selection)) return;\n delete this.target[this.scriptList.selection];\n this.updateLists();\n this.displayInitialScript();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17607},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17606":{"this":{"__isSmartRef__":true,"id":16502}},"17607":{},"17608":{"varMapping":{"__isSmartRef__":true,"id":17609},"source":"function disconnectConnection() {\n var selection = this.connectionList.selection;\n if (selection && \n (typeof selection !== \"string\") &&\n this.target.attributeConnections.indexOf(selection[1]) > -1) {\n var c = this.connectionList.selection[1];\n disconnect(c.sourceObj, c.sourceAttrName, c.targetObj, c.targetMethodName);\n this.updateLists();\n this.displayInitialScript();\n } \n}","funcProperties":{"__isSmartRef__":true,"id":17610},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17609":{"this":{"__isSmartRef__":true,"id":16502}},"17610":{},"17611":{"varMapping":{"__isSmartRef__":true,"id":17612},"source":"function updateLists() {\n this.scriptList.setList(this.sortedScriptNamesOfObj(this.target));\n var scriptListItems = this.scriptList.getList();\n scriptListItems.unshift(\"-- ALL --\");\n this.scriptList.setList(scriptListItems);\n\n this.connectionList.setList(this.sortedConnectionNamesOfObj(this.target));\n var connectionListItems = this.connectionList.getList();\n connectionListItems.unshift(\"-- ALL --\");\n this.connectionList.setList(connectionListItems);\n}","funcProperties":{"__isSmartRef__":true,"id":17613},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17612":{"this":{"__isSmartRef__":true,"id":16502}},"17613":{},"17614":{"varMapping":{"__isSmartRef__":true,"id":17615},"source":"function displayInitialScript() {\n if (this.scriptList.getList().size() > 1) {\n this.scriptList.selectAt(0);\n } else if (this.connectionList.getList().size() > 1) {\n this.connectionList.selectAt(0);\n } else {\n this.scriptList.selectAt(0);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17616},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17615":{"this":{"__isSmartRef__":true,"id":16502}},"17616":{},"17617":{"varMapping":{"__isSmartRef__":true,"id":17618},"source":"function reset() {\n this.target = null;\n this.scriptPane.doitContext = null;\n this.scriptList.setList();\n this.connectionList.setList();\n this.scriptPane.setTextString(\"\");\n this.morphSelector.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":17619},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17618":{"this":{"__isSmartRef__":true,"id":16502}},"17619":{},"17620":{"varMapping":{"__isSmartRef__":true,"id":17621},"source":"function selectChangedContent(source) {\n\n var addScriptRegex = /this\\.addScript\\s*\\(\\s*function\\s*([^\\(]*)/g;\n var addScriptMatches = [];\n var addScriptMatch = addScriptRegex.exec(source);\n while (addScriptMatch) {\n addScriptMatches.push(addScriptMatch[1]);\n addScriptMatch = addScriptRegex.exec(source);\n }\n \n // if scripts were added, select either a specific one or all\n if (addScriptMatches.length > 0) { \n if (addScriptMatches.length === 1) {\n var index = this.scriptList.getList().indexOf(addScriptMatches[0]);\n if (index > -1) { \n return this.scriptList.selectAt(index);\n }\n }\n return this.scriptList.selectAt(0);\n }\n\n var connectionRegex = \n /connect\\(\\s*([^,]*)\\s*,\\s*\"([^,]*)\"\\s*,\\s*([^,]*)\\s*,\\s*\"([^,]*)\"/g;\n var connectionMatches = [];\n var connectionMatch = connectionRegex.exec(source);\n while (connectionMatch) {\n connectionMatches.push(connectionMatch);\n connectionMatch = connectionRegex.exec(source);\n }\n\n // if connections were made, select either a specific one or all\n if (connectionMatches.length > 0) {\n if (connectionMatches.length === 1) {\n var match = connectionMatches[0];\n for (var i=0; i -1) {\n var c = selection[1];\n disconnect(c.sourceObj, c.sourceAttrName, c.targetObj, c.targetMethodName);\n editor.updateLists();\n editor.displayInitialScript();\n } \n }\n\n var message = 'Disconnect \"' + selection[0] +'\" connection?';\n var callback = disconnectConnection;\n\n var dialog = new lively.morphic.ConfirmDialog(message, callback);\n\n return this.world().openDialog(dialog);\n}","funcProperties":{"__isSmartRef__":true,"id":17822},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17821":{"this":{"__isSmartRef__":true,"id":17770}},"17822":{"timestamp":{"__isSmartRef__":true,"id":17823},"user":"lauritz","categories":[]},"17823":{"isSerializedDate":true,"string":"Fri Nov 11 2011 01:46:54 GMT+0100 (CET)"},"17824":{"submorphs":[{"__isSmartRef__":true,"id":17825}],"scripts":[],"id":"70318DA0-D6CE-4110-9D7C-527DD219DCA5","shape":{"__isSmartRef__":true,"id":17838},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":17851},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":17852},"lighterFill":{"__isSmartRef__":true,"id":17862},"label":{"__isSmartRef__":true,"id":17825},"attributeConnections":[{"__isSmartRef__":true,"id":17871}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":17873},"name":"ObjectEditorRemoveScriptButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":17874},"renderContextTable":{"__isSmartRef__":true,"id":17875},"owner":{"__isSmartRef__":true,"id":16485},"eventHandler":{"__isSmartRef__":true,"id":17876},"isCopyMorphRef":true,"morphRefId":150,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":16485},"distanceToDragEvent":{"__isSmartRef__":true,"id":17877},"derivationIds":[217,"FDC10087-12CF-4570-9211-8309CB6A9AA3","E18FC530-4B1F-4F08-8DA6-3866A3519E56","04A2AAC3-6A9E-40BB-9408-EBB2567EE63B","8C1A42CE-840C-4AAE-BD79-C93A445B9EBF","61FC11FA-B87E-4EFE-BD15-564D3178B68B","ED34F9B5-9E00-41B3-8313-D9C3D6B3B231","A7481F4B-D444-4B4F-BDA2-4F9F03AEC24D","7DDF7175-34FC-4521-A7C3-580A8BE63351","DEA39C05-FAD7-4882-AB3D-0EE12C3408F9","99186A50-1411-4B6F-B1CB-FF0742C20D7D","10F3E467-6BB8-4D07-BD17-8C50593FD6B8","7260818C-6472-4288-8BDD-1E7798A543F3","DEBB5BDB-018D-4BA1-9FB9-73DC84C51D89","D75BCAED-3029-46EB-B944-4A102BB1BC0F","9A977DA2-B325-4DFA-9683-3DC9ECEFAAC0","48A5078F-B4A5-4F4E-884D-84CCDFFBE6F0","33905494-AA01-4311-8398-1F6C3D4F1BAC","5D7201A7-1374-49AD-851F-E3167EFED99E","9B69B6C6-71F2-402E-89D1-E97FC2D3AE13","DA1B3A74-F4A6-427B-8FBD-3D2E9D8CD866","C95FA3DE-F426-47A6-9E2B-729E096507D3","DF844255-EC02-4BBC-994C-07160984805C","67C9CCFA-D656-4238-A068-C9BFD7145A52","AB8DBCF5-5F66-433B-9875-660ECDA176B9","5C14050C-6B3E-436E-9AF9-CE0C7A0F7E92","F13CEC46-E3AA-46DC-BCD2-BAA111B823AD","EF5B92BB-F519-4AE1-9F04-2531B40BF044","B08E3848-7948-4ED1-ACF3-5E1CFC402729"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"isPressed":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17878},"__LivelyClassName__":"lively.morphic.Button"},"17825":{"submorphs":[],"scripts":[],"id":"92305957-4A47-4EE2-9DB7-7FB6CB93201E","shape":{"__isSmartRef__":true,"id":17826},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":25,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":17831},"textColor":{"__isSmartRef__":true,"id":17829},"owner":{"__isSmartRef__":true,"id":17824},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":17832}],"padding":{"__isSmartRef__":true,"id":17834},"_Padding":{"__isSmartRef__":true,"id":17835},"prevScroll":[0,0],"_FontFamily":"Helvetica, Sans-Serif","renderContextTable":{"__isSmartRef__":true,"id":17836},"_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":17837},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":25,"_MinTextHeight":null,"draggingEnabled":false,"derivationIds":[218,"852A7BD9-52EE-4708-A2D5-1BDECF33C958","7B4F173E-9726-472A-9B30-530D4AA92AD9","CBA217F6-2832-4213-9ABE-47753C1A4180","E6B97D1D-95D5-4644-9359-1D08D42A51F4","4391A57E-70C2-4628-9828-DD668CCE546E","F0C6C298-3B8B-42B2-B5E9-E5B82F607B01","DF0CAF75-4247-4797-B1A0-AD7444391E2A","B4C4F09B-F663-47A1-B85F-461D5452F5F8","FD966AB1-4685-4151-9A38-B1B21B0237EF","CA91FC2C-D7CC-4123-AFD2-108F8F0C2E97","88F1581A-7AEF-4646-B7F9-3890CDDB8494","DC577877-7F00-4238-9246-08C2A10C0CC9","818C9467-71A2-44D6-B01F-1523A0CD5476","C0CF3DDB-AA12-49E0-B12A-6B620552BB47","853E19A1-E97D-463D-A24F-0148671EB696","0203CA4C-E523-4F7D-824B-F09BA3914BDD","18B98A59-6C8E-4386-B3EF-A17259C51C0F","24D84E0A-FA16-47DE-934D-E60729EEB227","7035F1EB-4B8C-4F20-B3AC-966403F55C0A","69831817-0662-4848-8481-44558987D21D","A84FAF10-435C-46F8-ADFA-FB68548EF3B1","79691D41-3337-4099-ACD9-B46BE30230B9","D9F18605-574D-40EE-985E-4FC48307F0C9","B75AD1E4-8294-4568-A7A6-A47C2421AEC3","553F0506-F7C1-4D48-A424-4F9816F84194","B0250470-21BF-401B-8D01-AD7D9B639E1D","9556AD0A-DCE4-4AE0-8C4E-096077092074","B2C20FE0-8C39-4F0D-A208-ED95F0622030"],"_Scale":1,"_TextColor":{"__isSmartRef__":true,"id":17727},"__LivelyClassName__":"lively.morphic.Text"},"17826":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":17827},"_Extent":{"__isSmartRef__":true,"id":17828},"_BorderColor":{"__isSmartRef__":true,"id":17829},"renderContextTable":{"__isSmartRef__":true,"id":17830},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":17719},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"17827":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17828":{"x":25,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17829":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17830":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"17831":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17832":{"style":{"__isSmartRef__":true,"id":17833},"chunkOwner":{"__isSmartRef__":true,"id":17825},"storedString":"-","__SourceModuleName__":"Global.lively.morphic.TextCore","_id":"_259","__LivelyClassName__":"lively.morphic.TextChunk"},"17833":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis"},"17834":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"17835":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"17836":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"17837":{"morph":{"__isSmartRef__":true,"id":17825},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"17838":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":17839},"_Extent":{"__isSmartRef__":true,"id":17840},"_Fill":{"__isSmartRef__":true,"id":17841},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":17848},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":17849},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":17850},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"17839":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17840":{"x":25,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17841":{"stops":[{"__isSmartRef__":true,"id":17842},{"__isSmartRef__":true,"id":17844},{"__isSmartRef__":true,"id":17845},{"__isSmartRef__":true,"id":17846}],"vector":{"__isSmartRef__":true,"id":17739},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"17842":{"offset":0,"color":{"__isSmartRef__":true,"id":17843}},"17843":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17844":{"offset":0.3,"color":{"__isSmartRef__":true,"id":17735}},"17845":{"offset":0.7,"color":{"__isSmartRef__":true,"id":17735}},"17846":{"offset":1,"color":{"__isSmartRef__":true,"id":17847}},"17847":{"r":0.7973333333333334,"g":0.7973333333333334,"b":0.7973333333333334,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17848":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17849":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"17850":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"17851":{"x":160,"y":40,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17852":{"stops":[{"__isSmartRef__":true,"id":17853},{"__isSmartRef__":true,"id":17855},{"__isSmartRef__":true,"id":17857},{"__isSmartRef__":true,"id":17859}],"vector":{"__isSmartRef__":true,"id":17861},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"17853":{"offset":0,"color":{"__isSmartRef__":true,"id":17854}},"17854":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17855":{"offset":0.4,"color":{"__isSmartRef__":true,"id":17856}},"17856":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17857":{"offset":0.6,"color":{"__isSmartRef__":true,"id":17858}},"17858":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17859":{"offset":1,"color":{"__isSmartRef__":true,"id":17860}},"17860":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17861":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"17862":{"stops":[{"__isSmartRef__":true,"id":17863},{"__isSmartRef__":true,"id":17865},{"__isSmartRef__":true,"id":17867},{"__isSmartRef__":true,"id":17869}],"vector":{"__isSmartRef__":true,"id":17861},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"17863":{"offset":0,"color":{"__isSmartRef__":true,"id":17864}},"17864":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17865":{"offset":0.4,"color":{"__isSmartRef__":true,"id":17866}},"17866":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17867":{"offset":0.6,"color":{"__isSmartRef__":true,"id":17868}},"17868":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17869":{"offset":1,"color":{"__isSmartRef__":true,"id":17870}},"17870":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17871":{"sourceObj":{"__isSmartRef__":true,"id":17824},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":17824},"targetMethodName":"deleteSelectedScript","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17872},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"17872":{"source":{"__isSmartRef__":true,"id":17824},"target":{"__isSmartRef__":true,"id":17824}},"17873":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"17874":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"17875":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"17876":{"morph":{"__isSmartRef__":true,"id":17824},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"17877":{"x":33.35839679439101,"y":-21.324811622839547,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17878":{"deleteSelectedScript":{"__isSmartRef__":true,"id":17879}},"17879":{"varMapping":{"__isSmartRef__":true,"id":17880},"source":"function deleteSelectedScript() {\n\n var editor = this.objectEditorPane;\n var selection = editor.scriptList.selection;\n\n if (!editor.target || editor.scriptList.getList().size() < 2) \n return; \n\n var deleteScript = function (confirmed) {\n if (!confirmed) return;\n \n if (selection && editor.target) {\n if (editor.target.isMorph) {\n if (!editor.target.hasOwnProperty(selection)) \n return;\n delete editor.target[selection];\n } else {\n editor.target.deleteSelectedScript(selection)\n }\n editor.updateLists();\n editor.displayInitialScript();\n }\n }\n\n var message = 'Delete \"' + selection + '\" script?';\n var callback = deleteScript;\n\n var dialog = new lively.morphic.ConfirmDialog(message, callback);\n\n return this.world().openDialog(dialog);\n}","funcProperties":{"__isSmartRef__":true,"id":17881},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17880":{"this":{"__isSmartRef__":true,"id":17824}},"17881":{"timestamp":{"__isSmartRef__":true,"id":17882},"user":"timfelgentreff","tags":[]},"17882":{"isSerializedDate":true,"string":"Wed Jul 18 2012 10:57:21 GMT+0200 (CEST)"},"17883":{"submorphs":[],"scripts":[],"id":"38712DF7-6022-461C-A0B6-713F834556DD","shape":{"__isSmartRef__":true,"id":17884},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":17890},"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":17887},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorScriptsText2","partsBinMetaInfo":{"__isSmartRef__":true,"id":17891},"textChunks":[{"__isSmartRef__":true,"id":17892}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"renderContextTable":{"__isSmartRef__":true,"id":17894},"eventHandler":{"__isSmartRef__":true,"id":17895},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":17896},"eventsAreIgnored":true,"isCopyMorphRef":true,"morphRefId":155,"owner":{"__isSmartRef__":true,"id":16485},"derivationIds":[224,"35EF8FE5-067D-45B6-AF21-77040F11D340","80DC09DD-22D4-4089-B5C3-857B32C9BE9B","EF080074-E6B9-47F3-A87F-26313B40C430","F6977801-C1A7-445C-9BF1-8A1019E202FB","8C9157AE-0343-4CFB-8186-1D5E05D2ECBE","DD3C23F8-6463-4EAE-959B-C486E27D9BDA","1E8D3752-D212-41F8-BC63-B094E0C80707","75C07D11-AE5D-4A36-B2D0-F2A6EA414E72","494AB1C0-2C09-49DE-B4AA-1F24DC7495FF","25199967-E3BA-4763-A704-37BD3152A5F7","8E4A5937-D1FA-4AF7-BD8D-B542C636CEF9","DDB23EF0-540C-4046-AD4D-C001E8A5F20C","FF45AAB3-E5C7-42A0-A704-F068DB2E2AF9","52850E3E-BE46-467C-A381-902F5E4859FD","147F9160-7168-44A4-9EA4-A36466EE1F52","8E4FB238-FC20-4DA7-AC9F-6921EBBD5609","3D09A998-5E60-4E94-9C6A-B08E7D98F02A","B8986B95-68A4-4212-8560-C86C8F7B3B3C","81BAFCDC-090F-4A92-8AD6-C3127620CCF4","3663625F-2BB0-494C-A467-04148A441F42","E317B4A8-7C61-4596-A167-756C64AC682E","5581215C-BCA6-4A31-ABCA-2AF175BD09F8","2B5DB134-BF72-4EC1-90C6-7FB656E73A2D","D48D0C9C-E593-449E-A190-63D932A254F6","9B669FE3-8FE7-481D-A520-AA432DBF4A8C","9302F656-F958-4685-AC86-2499CFC8917F","9A6F935C-827A-45B2-8ED2-697A36454ABD","422EF354-50A7-4B81-8402-242B2AE973D5"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"17884":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":17885},"_Extent":{"__isSmartRef__":true,"id":17886},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":17887},"renderContextTable":{"__isSmartRef__":true,"id":17888},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":17889},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"17885":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17886":{"x":64.8979476392384,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17887":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17888":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"17889":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"17890":{"x":10,"y":12.911539589749026,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17891":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"17892":{"style":{"__isSmartRef__":true,"id":17893},"chunkOwner":{"__isSmartRef__":true,"id":17883},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Tag:","_id":"_260","__LivelyClassName__":"lively.morphic.TextChunk"},"17893":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"17894":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"17895":{"morph":{"__isSmartRef__":true,"id":17883},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"17896":{"x":45.76052154281416,"y":-27.783027415339603,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17897":{"submorphs":[{"__isSmartRef__":true,"id":17898}],"scripts":[],"id":"30D3050A-36BB-4740-8C00-5F0093BB2026","shape":{"__isSmartRef__":true,"id":17913},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":17929},"value":true,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":17930},"lighterFill":{"__isSmartRef__":true,"id":17916},"label":{"__isSmartRef__":true,"id":17898},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":17939},"name":"ObjectEditorTagChooser","partsBinMetaInfo":{"__isSmartRef__":true,"id":17940},"listMorph":null,"list":[],"renderContextTable":{"__isSmartRef__":true,"id":17941},"eventHandler":{"__isSmartRef__":true,"id":17942},"distanceToDragEvent":{"__isSmartRef__":true,"id":17943},"textString":"PartsBinBrowser","selection":"","_ClipMode":"visible","prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":16485},"setTargetToListSelection":"all","savedTextString":"all","derivationIds":[225,"7F83847B-D0B1-4A31-8601-43424B97C858","E08FC110-71D7-4FFD-B4A8-08F8147B95BA","5534107D-C5C9-48DD-A1ED-B87E9D9B672C","0B89FA7A-768C-4062-98AE-C455E8DAFF19","799320C6-CFBA-40E7-B03D-64BFE9B78248","9B650AA3-271B-4E72-B230-51C6F64B7462","C95D3672-724C-4C2C-9CDD-EF308062F627","C66EBEEC-B7CE-4DD9-8BDF-905F071F965D","D68B143A-A712-4FD0-8803-62CCB4C7F763","ED802271-AE5C-4BE9-AC4E-7CED44BC864B","1BD989CB-146C-431F-8B15-9199C4CD5D32","42172AA4-1B06-4C5B-9BB7-FAED1206CF34","32DFAF99-E6F8-426B-829D-FD6C2BCB8FAA","9B4BF2BE-49D5-4B9D-8F38-1692443069A9","FCAB3690-731A-45E7-984F-843DFE705AF1","94B10A66-8219-43AD-B902-DA999A66222D","BB0E2EB7-ABCE-44C7-96E7-6679FB2981D1","2FCEE551-302B-46C9-B646-3B9BE9187182","B4267F52-1ACC-42A1-904D-E9F7D485D8AB","14770110-045A-4BE4-BCF2-7C886DF70F7D","9E7D94CF-0B6B-46CF-8E70-02E592FCCBE4","4F77F8B2-B1EF-4DDF-B172-458AC265465D","35C172F2-543B-4550-97F4-4EE4052AA2D5","14A14196-D28C-4A5A-BB9B-25C54418282B","9734A2F2-A400-43FF-85D8-0866922AA625","75644687-CE10-4681-82D8-9CA530C3978C","14AA9D20-15F5-4DA4-AB5A-4F052D327C49","F14799B5-3A5D-4AB3-9D4B-9F37E5C9A88A"],"isCopyMorphRef":true,"morphRefId":156,"_Rotation":0,"_Scale":1,"isPressed":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17944},"__LivelyClassName__":"lively.morphic.Button"},"17898":{"submorphs":[],"scripts":[],"id":"74DEC6CD-4941-439F-BAD3-CB7E1647BF90","shape":{"__isSmartRef__":true,"id":17899},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":130,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":17905},"textColor":{"__isSmartRef__":true,"id":17902},"owner":{"__isSmartRef__":true,"id":17897},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":17906}],"padding":{"__isSmartRef__":true,"id":17908},"_Padding":{"__isSmartRef__":true,"id":17908},"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":17909}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"renderContextTable":{"__isSmartRef__":true,"id":17910},"eventHandler":{"__isSmartRef__":true,"id":17911},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":130,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":10,"derivationIds":[226,"03DBF3F8-8EA2-4426-BA64-C4297DDAB015","B8F87302-BEC3-48CD-9BBA-6C7DBB6287E1","4AA6AE51-338B-4E3E-814B-9F99C693A2D5","08F6CE56-AD91-4C27-9429-C3DEA313696C","D39C963C-FD24-4498-A6D8-71E5102CE58A","132C2A9E-3466-4051-AAEA-6E485A91F408","DB8BC4A1-ED41-446B-AB6C-7E73DD857B5D","567FC668-A57C-41CB-8252-8912826B3144","D0B0775F-C8E7-49EB-BBB2-C7BB7DD464BF","AABED87D-D7C0-494A-8803-26F4601E35FF","696C3A2A-C695-4D17-A044-41A73436AB8D","206A0BFD-6997-4E0E-9193-089D1F66B22A","F2F1F966-6C41-4EBA-AFCE-FAE8C79AA696","64A754E9-7083-4CAE-B5C2-7B436EFFE4BA","64737503-A352-42CC-A249-667DA2B42746","9218F1CA-E23F-4E1A-89C3-DB19DE720861","CF7EAC38-1041-4B83-B087-359885B8528B","84469C7C-C93D-4F16-ACAA-0045A4A37FCA","9D3DD447-66A0-4B4A-B378-FB864D8C1468","163D1C2B-EDE9-4F8F-B466-EF9F4CB14384","6CE3BAA4-D4EB-4CFA-970B-64F206F8B8E0","CF1EF55F-FFF2-4B96-A3ED-C4B74ECD878D","F03ED5DA-63A4-4555-9AF2-5CBE36B5D265","2E3C41C1-B84B-4CCB-928F-C0F1D90D19C8","C0AA4FAB-9105-4459-A90F-97D3E7145B9A","9AE44ACB-F6EB-45BE-B75A-75070FA3F930","C7F0A877-150B-4685-827E-03F387B33BA1","668FB868-5E6B-4E4D-A891-19E58BB15BD0"],"_TextColor":{"__isSmartRef__":true,"id":17912},"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"17899":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":17900},"_Extent":{"__isSmartRef__":true,"id":17901},"_BorderColor":{"__isSmartRef__":true,"id":17902},"renderContextTable":{"__isSmartRef__":true,"id":17903},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":17904},"_BorderWidth":0,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"17900":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17901":{"x":130,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17902":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17903":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"17904":{"x":0,"y":3,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"17905":{"x":2,"y":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17906":{"style":{"__isSmartRef__":true,"id":17907},"chunkOwner":{"__isSmartRef__":true,"id":17898},"_id":"_842","storedString":"all","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"17907":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"17908":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"17909":{"sourceObj":{"__isSmartRef__":true,"id":17898},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":17897},"targetMethodName":"selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"17910":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"17911":{"morph":{"__isSmartRef__":true,"id":17898},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"17912":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17913":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":17914},"_Extent":{"__isSmartRef__":true,"id":17915},"_Fill":{"__isSmartRef__":true,"id":17916},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":17926},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":17927},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":17928},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"17914":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17915":{"x":130,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17916":{"stops":[{"__isSmartRef__":true,"id":17917},{"__isSmartRef__":true,"id":17919},{"__isSmartRef__":true,"id":17921},{"__isSmartRef__":true,"id":17923}],"vector":{"__isSmartRef__":true,"id":17925},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"17917":{"offset":0,"color":{"__isSmartRef__":true,"id":17918}},"17918":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17919":{"offset":0.4,"color":{"__isSmartRef__":true,"id":17920}},"17920":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17921":{"offset":0.6,"color":{"__isSmartRef__":true,"id":17922}},"17922":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17923":{"offset":1,"color":{"__isSmartRef__":true,"id":17924}},"17924":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17925":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"17926":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17927":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"17928":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"17929":{"x":39.12381412396891,"y":10.000000000000057,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17930":{"stops":[{"__isSmartRef__":true,"id":17931},{"__isSmartRef__":true,"id":17933},{"__isSmartRef__":true,"id":17935},{"__isSmartRef__":true,"id":17937}],"vector":{"__isSmartRef__":true,"id":17925},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"17931":{"offset":0,"color":{"__isSmartRef__":true,"id":17932}},"17932":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17933":{"offset":0.4,"color":{"__isSmartRef__":true,"id":17934}},"17934":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17935":{"offset":0.6,"color":{"__isSmartRef__":true,"id":17936}},"17936":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17937":{"offset":1,"color":{"__isSmartRef__":true,"id":17938}},"17938":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17939":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"17940":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"17941":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"17942":{"morph":{"__isSmartRef__":true,"id":17897},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"17943":{"x":85.7442776093583,"y":-11.582832083333244,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17944":{"createListMorph":{"__isSmartRef__":true,"id":17945},"getList":{"__isSmartRef__":true,"id":17949},"removeList":{"__isSmartRef__":true,"id":17953},"reset":{"__isSmartRef__":true,"id":17957},"onMouseUp":{"__isSmartRef__":true,"id":17961},"onBlur":{"__isSmartRef__":true,"id":17969},"setTag":{"__isSmartRef__":true,"id":17977}},"17945":{"varMapping":{"__isSmartRef__":true,"id":17946},"source":"function createListMorph() {\n var items = this.getList();\n\n var height = Math.min(this.owner.getExtent().y, items.length * 17);\n var extent = new Rectangle(0, this.getExtent().y, this.getExtent().x, height);\n\n var listMorph = new lively.morphic.List(extent);\n listMorph.setList(items);\n listMorph.setFontSize(10);\n\n listMorph.disableGrabbing();\n listMorph.disableDragging();\n \n connect(listMorph, 'selection', this, 'setTag');\n \n return listMorph;\n}","funcProperties":{"__isSmartRef__":true,"id":17947},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17946":{"this":{"__isSmartRef__":true,"id":17897}},"17947":{"timestamp":{"__isSmartRef__":true,"id":17948},"user":"lauritz","categories":[]},"17948":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:35:59 GMT+0100 (CET)"},"17949":{"varMapping":{"__isSmartRef__":true,"id":17950},"source":"function getList() {\n if (!this.owner.target) return [''];\n\n var target = this.owner.target;\n\n var tags = Functions.own(target).collect(function (each) {\n return target[each].tags || [];\n }).flatten().uniq();\n\n var sortedTags = tags.sortBy(function(name) { \n return name.toLowerCase() \n });\n \n sortedTags.unshift('all'); \n return sortedTags;\n}","funcProperties":{"__isSmartRef__":true,"id":17951},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17950":{"this":{"__isSmartRef__":true,"id":17897}},"17951":{"timestamp":{"__isSmartRef__":true,"id":17952},"user":"lauritz","tags":[]},"17952":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:25 GMT+0100 (CET)"},"17953":{"varMapping":{"__isSmartRef__":true,"id":17954},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":17955},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17954":{"this":{"__isSmartRef__":true,"id":17897}},"17955":{"timestamp":{"__isSmartRef__":true,"id":17956},"user":"lauritz","categories":[]},"17956":{"isSerializedDate":true,"string":"Thu Nov 17 2011 19:06:51 GMT+0100 (CET)"},"17957":{"varMapping":{"__isSmartRef__":true,"id":17958},"source":"function reset() {\n this.list = [];\n this.setLabel('all');\n this.label.setAlign('left');\n this.removeList();\n this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'})\n}","funcProperties":{"__isSmartRef__":true,"id":17959},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17958":{"this":{"__isSmartRef__":true,"id":17897}},"17959":{"timestamp":{"__isSmartRef__":true,"id":17960},"user":"lauritz","tags":[]},"17960":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:53 GMT+0100 (CET)"},"17961":{"varMapping":{"__isSmartRef__":true,"id":17962},"source":"function onMouseUp(evt) {\n if (evt.isCommandKey() || evt.isRightMouseButtonDown()) return $super(evt);\n if (this.listMorph) {\n this.removeList();\n return true;\n } \n if (this.getList().size() < 2) return;\n var list = this.createListMorph();\n this.addMorph(list);\n this.listMorph = list;\n return true;\n}","funcProperties":{"__isSmartRef__":true,"id":17967},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17962":{"this":{"__isSmartRef__":true,"id":17897},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17963}},"17963":{"$super":{"__isSmartRef__":true,"id":17964}},"17964":{"varMapping":{"__isSmartRef__":true,"id":17965},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17966},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17965":{"obj":{"__isSmartRef__":true,"id":17897},"name":"onMouseUp"},"17966":{},"17967":{"timestamp":{"__isSmartRef__":true,"id":17968},"user":"lauritz","categories":[]},"17968":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:59:16 GMT+0100 (CET)"},"17969":{"varMapping":{"__isSmartRef__":true,"id":17970},"source":"function onBlur(evt) {\n $super(evt);\n \n // workaround - otherwise other morphs get this event\n var clickedMorph = evt && evt.world && evt.world.clickedOnMorph;\n if (clickedMorph && (clickedMorph !== this && clickedMorph !== this.listMorph)) {\n this.removeList();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":17975},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17970":{"this":{"__isSmartRef__":true,"id":17897},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17971}},"17971":{"$super":{"__isSmartRef__":true,"id":17972}},"17972":{"varMapping":{"__isSmartRef__":true,"id":17973},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17974},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17973":{"obj":{"__isSmartRef__":true,"id":17897},"name":"onBlur"},"17974":{},"17975":{"timestamp":{"__isSmartRef__":true,"id":17976},"user":"lauritz","categories":[]},"17976":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:10:03 GMT+0100 (CET)"},"17977":{"varMapping":{"__isSmartRef__":true,"id":17978},"source":"function setTag(tag) {\n this.setLabel(tag || '');\n this.label.setAlign('left');\n this.owner.setTag(tag);\n}","funcProperties":{"__isSmartRef__":true,"id":17979},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"17978":{"this":{"__isSmartRef__":true,"id":17897}},"17979":{"timestamp":{"__isSmartRef__":true,"id":17980},"user":"lauritz","categories":[]},"17980":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:36:12 GMT+0100 (CET)"},"17981":{"submorphs":[{"__isSmartRef__":true,"id":17982}],"scripts":[],"id":"E75404D8-7F13-4A6D-AA3C-C895615E9C22","shape":{"__isSmartRef__":true,"id":17996},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":18000},"lighterFill":{"__isSmartRef__":true,"id":18012},"label":{"__isSmartRef__":true,"id":17982},"name":"Button","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":18021},"attributeConnections":[{"__isSmartRef__":true,"id":18022}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","renderContextTable":{"__isSmartRef__":true,"id":18058},"eventHandler":{"__isSmartRef__":true,"id":18059},"distanceToDragEvent":{"__isSmartRef__":true,"id":18060},"derivationIds":[7251,"BE69DA70-C9C3-4495-A6B5-413BD2FFA0D1","79FE3D3F-77C4-4B39-8243-D672185B416D","A4D2FEDF-2654-4381-AB43-8F89B9CA2E86","87E42FF6-3862-481D-97D6-643676E15F32","4F370A81-5A80-4821-8ECC-D52B56F31E15","1C6D1DC9-2F9B-4DC4-B453-1CA45B17C516","0E8EC0BF-934B-410B-AEC2-0ECA8C8F774D","97086CE7-CD46-4035-A371-02A41D555A66","E342B91D-F54B-4DA8-8AE7-10C59CE22B41","A838C48E-4033-4688-8DCF-20659BD824FF","E9BBC453-FFF6-4EE8-BDB0-605D5D4557AE","B6FB81D1-145B-40F9-ACF1-17276DA45EBA","09C79781-5461-4815-88DE-22FB67558136","85A5FA10-01D9-4051-8D56-29DB02CF8817","6E2F44D0-D69A-4DD7-91AD-0B0E1E871633","66FB4A47-82E6-417D-8248-4038D0CBBF5A","3CDC67E7-CAC7-4636-B7FF-50D008C6EB0D","4475CB12-8CFB-41DB-9399-EC6B68E18BA3","7F85A497-E12D-4AF0-9F99-2BD0F786B67B","49D5CDCC-00C1-4169-BEF2-1D34B02505A3","B30B4A09-78F4-4AB0-803D-16EE863F1E36","C9AE90CC-CC89-4ED2-A639-73588D305687","EE940AEC-4664-46DB-A3FB-C942C4AF886E","4B9BB3C1-20D6-4267-ABBF-06297806A262","18FCA2C2-33CE-4479-A223-80C8BB96B4B5","E5DD31A6-D661-4B26-BBAB-24A4F7CA4C7C"],"_Position":{"__isSmartRef__":true,"id":18061},"owner":{"__isSmartRef__":true,"id":16485},"layout":{"__isSmartRef__":true,"id":18062},"_ClipMode":"visible","isCopyMorphRef":true,"morphRefId":157,"_Rotation":0,"_Scale":0.994014980014994,"isPressed":false,"__LivelyClassName__":"lively.morphic.Button"},"17982":{"submorphs":[],"scripts":[],"id":"FF9FA5F6-C96B-4AEC-823A-CC3E3DF249D8","shape":{"__isSmartRef__":true,"id":17983},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":17989},"_MaxTextWidth":81.90968415810595,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":17990},"_Padding":{"__isSmartRef__":true,"id":17991},"owner":{"__isSmartRef__":true,"id":17981},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":17992}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":17994},"eventHandler":{"__isSmartRef__":true,"id":17995},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"E0EF3EFE-3ADF-4E46-8705-7BF444E4BCED","307A3596-1175-4EA6-AA27-5BA4C9D95AB7","0EF99131-C569-4C2C-B613-E0D8423C1334","BA4EC8D2-AB29-4F9F-B5A0-715A4746A4C4","56735895-BA99-4D98-9866-AA5DBD86237E","81041CF7-31DB-4F65-BB39-FE438A4F266F","D03829B3-268E-40A0-A440-3E4BAC344F30","714637F0-714A-4833-909B-BA4AF1B4628B","DC956E73-7398-4CAF-B6F2-9A226E344396","C1F72D31-1F49-4C0C-ACF3-C3AD7E698D2F","39386C7E-9099-4159-BFE9-80AD37319211","2764FB6E-70D1-4BC5-B3CB-9979A48B8205","C55C8A7C-412C-453E-A99F-CE78C2AADB94","4BD9A8D4-2EC1-40AC-A1CE-5F1347B0152D","3450EAEB-E3D2-4FAF-98DF-354B3B8715D6","C906736E-48DF-4054-BA5A-A089610456D7","DE5C59FB-90A6-4DD4-AC39-5CC8B3912969","5830FB93-49A1-4A31-A687-69C4579D5FA7","7889CED9-02AC-42C5-B990-2807E18E67F9","98C118A0-098D-4EF3-876E-AF538259D430","127417C3-9163-4912-BBC0-D6A4D31F1C74","16312680-F116-4EC7-A121-380C146DA953","E45444EC-7AB2-4FB5-B37B-3B263F8E14E6","BEE41622-741C-4085-921B-C149E4D90B7B","24E559ED-CF61-4C8D-8FE2-70C7FF8B9FA2","22804C4C-D28F-4FDE-B073-9C03838F2C01"],"_MinTextWidth":81.90968415810595,"_MinTextHeight":null,"__LivelyClassName__":"lively.morphic.Text"},"17983":{"position":{"__isSmartRef__":true,"id":17984},"_Extent":{"__isSmartRef__":true,"id":17985},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":17986},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":17987},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":17988},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"17984":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17985":{"x":85.90968415810595,"y":20.99999999999992,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17986":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"17987":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"17988":{"x":2,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"17989":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17990":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"17991":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"17992":{"style":{"__isSmartRef__":true,"id":17993},"chunkOwner":{"__isSmartRef__":true,"id":17982},"storedString":"run","__SourceModuleName__":"Global.lively.morphic.TextCore","_id":"_262","__LivelyClassName__":"lively.morphic.TextChunk"},"17993":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis"},"17994":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"17995":{"morph":{"__isSmartRef__":true,"id":17982},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"17996":{"position":{"__isSmartRef__":true,"id":17997},"_Extent":{"__isSmartRef__":true,"id":17998},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":17999},"_Fill":{"__isSmartRef__":true,"id":18000},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":18010},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":18011},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"17997":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17998":{"x":85.90968415810595,"y":20.99999999999992,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17999":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18000":{"stops":[{"__isSmartRef__":true,"id":18001},{"__isSmartRef__":true,"id":18003},{"__isSmartRef__":true,"id":18005},{"__isSmartRef__":true,"id":18007}],"vector":{"__isSmartRef__":true,"id":18009},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"18001":{"offset":0,"color":{"__isSmartRef__":true,"id":18002}},"18002":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18003":{"offset":0.4,"color":{"__isSmartRef__":true,"id":18004}},"18004":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18005":{"offset":0.6,"color":{"__isSmartRef__":true,"id":18006}},"18006":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18007":{"offset":1,"color":{"__isSmartRef__":true,"id":18008}},"18008":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18009":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18010":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"18011":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18012":{"stops":[{"__isSmartRef__":true,"id":18013},{"__isSmartRef__":true,"id":18015},{"__isSmartRef__":true,"id":18017},{"__isSmartRef__":true,"id":18019}],"vector":{"__isSmartRef__":true,"id":18009},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"18013":{"offset":0,"color":{"__isSmartRef__":true,"id":18014}},"18014":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18015":{"offset":0.4,"color":{"__isSmartRef__":true,"id":18016}},"18016":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18017":{"offset":0.6,"color":{"__isSmartRef__":true,"id":18018}},"18018":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18019":{"offset":1,"color":{"__isSmartRef__":true,"id":18020}},"18020":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18021":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"18022":{"sourceObj":{"__isSmartRef__":true,"id":17981},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16485},"targetMethodName":"runScript","visualConnector":{"__isSmartRef__":true,"id":18023},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"18023":{"submorphs":[{"__isSmartRef__":true,"id":18024}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18039},"derivationIds":[null],"id":"C89B50A0-17E7-4D22-AE1D-5112520DAEE7","renderContextTable":{"__isSmartRef__":true,"id":18046},"eventHandler":{"__isSmartRef__":true,"id":18047},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":18048},{"__isSmartRef__":true,"id":18049}],"con":{"__isSmartRef__":true,"id":18022},"showsMorphMenu":true,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18050},"__LivelyClassName__":"lively.morphic.Path"},"18024":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18025},"derivationIds":[null],"id":"2A71BE9E-6820-46AF-ACED-3C9BDCC918AF","renderContextTable":{"__isSmartRef__":true,"id":18036},"eventHandler":{"__isSmartRef__":true,"id":18037},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":18038},"owner":{"__isSmartRef__":true,"id":18023},"_Rotation":-3.130064002485303,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"18025":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":18026},{"__isSmartRef__":true,"id":18027},{"__isSmartRef__":true,"id":18028},{"__isSmartRef__":true,"id":18029}],"renderContextTable":{"__isSmartRef__":true,"id":18030},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":18031},"_Extent":{"__isSmartRef__":true,"id":18032},"_Padding":{"__isSmartRef__":true,"id":18033},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":18034},"_Fill":{"__isSmartRef__":true,"id":18035},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"18026":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"18027":{"isAbsolute":true,"x":-12,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"18028":{"isAbsolute":true,"x":4,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"18029":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"18030":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"18031":{"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18032":{"x":16,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18033":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18034":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18035":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18036":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18037":{"morph":{"__isSmartRef__":true,"id":18024},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18038":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18039":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":18040},{"__isSmartRef__":true,"id":18041}],"renderContextTable":{"__isSmartRef__":true,"id":18042},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":18043},"_Extent":{"__isSmartRef__":true,"id":18044},"_Padding":{"__isSmartRef__":true,"id":18045},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":18034},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"18040":{"isAbsolute":true,"x":829.7085000406639,"y":9.565843617262885,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"18041":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"18042":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"18043":{"x":-1,"y":-1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18044":{"x":831,"y":11,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18045":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18046":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18047":{"morph":{"__isSmartRef__":true,"id":18023},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18048":{"morph":{"__isSmartRef__":true,"id":18023},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"18049":{"morph":{"__isSmartRef__":true,"id":18023},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":18024},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"18050":{"morphMenuItems":{"__isSmartRef__":true,"id":18051}},"18051":{"varMapping":{"__isSmartRef__":true,"id":18052},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString ||\n 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter:\n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true,\n fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(),\n visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":18057},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18052":{"this":{"__isSmartRef__":true,"id":18023},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18053}},"18053":{"$super":{"__isSmartRef__":true,"id":18054}},"18054":{"varMapping":{"__isSmartRef__":true,"id":18055},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18056},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18055":{"obj":{"__isSmartRef__":true,"id":18023},"name":"morphMenuItems"},"18056":{},"18057":{},"18058":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"18059":{"morph":{"__isSmartRef__":true,"id":17981},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18060":{"x":65.36007260115605,"y":-14.046886175395628,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18061":{"x":802.663037127869,"y":9.568322570781788,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18062":{"centeredHorizontal":false,"moveHorizontal":true},"18063":{"submorphs":[{"__isSmartRef__":true,"id":18064}],"scripts":[],"id":"611FFFC1-9860-4F4F-BE05-2691070EE87E","shape":{"__isSmartRef__":true,"id":18078},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":18082},"lighterFill":{"__isSmartRef__":true,"id":18094},"label":{"__isSmartRef__":true,"id":18064},"name":"saveButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":18103},"attributeConnections":[{"__isSmartRef__":true,"id":18104}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","renderContextTable":{"__isSmartRef__":true,"id":18140},"eventHandler":{"__isSmartRef__":true,"id":18141},"distanceToDragEvent":{"__isSmartRef__":true,"id":18142},"derivationIds":[7251,"BE69DA70-C9C3-4495-A6B5-413BD2FFA0D1","79FE3D3F-77C4-4B39-8243-D672185B416D","A4D2FEDF-2654-4381-AB43-8F89B9CA2E86","D686F0CB-027B-4CA9-8B8D-9306389B219D","F51327CB-803E-4234-BFB3-6F5252D1C936","A79280E8-6AE3-4016-AF47-CE78F71924C6","B05829EB-D452-4D81-983B-E2CE425C8260","32B117E5-52D8-4843-B80E-090B9817E099","49AC923E-5272-4E3C-8F02-4F2AED2BC4E9","85AAEA9C-5E12-4DEC-8994-9A5FE655A740","2A7FF9BF-85D3-4962-8EB4-0F7016C672EB","3BB17748-B91B-43F5-84BE-2537402A6382","8BA10BD3-43C5-4A41-B9D9-DCD8C74EA208","8BADA640-EDC1-41B2-BEF3-0F2520EA25DD","CAFB5342-EFD3-483E-AE4A-343D211653EF","C3DC8C6F-A36C-4456-AF34-B0A318C1AAD8","88093937-29BB-43FC-AD82-4A0A4BDC349F","27E1FA12-CE4A-4C1F-891F-EEEF92BD672F","A12311D6-23C1-4711-9271-5B582F89F15B","D3CD03E2-4D6E-45C8-B377-27AD2E7F03FE","9F886CE3-5F38-441E-A12D-211DF2E22FF7","49B7B62E-2D66-455C-B5A2-5CCED2BDE9DF","C51C9F33-AF29-408D-AC6A-10CDC09915F3","FDF8D771-6D29-4E4C-A938-117DA61A518F","953C112F-629E-4F49-8657-3CF2DADEA7DA","07C29B93-3020-4951-BBCA-9AF7AFC2C4B6","867881DE-2B8D-4E1C-8E9D-A9C3E36463C0"],"layout":{"__isSmartRef__":true,"id":18143},"_Position":{"__isSmartRef__":true,"id":18144},"owner":{"__isSmartRef__":true,"id":16485},"_ClipMode":"visible","isCopyMorphRef":true,"morphRefId":158,"_Rotation":0,"_Scale":0.9880657804942089,"isPressed":false,"__LivelyClassName__":"lively.morphic.Button"},"18064":{"submorphs":[],"scripts":[],"id":"305AD101-56DE-4B29-82C7-90FC25DE229D","shape":{"__isSmartRef__":true,"id":18065},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":18071},"_MaxTextWidth":78.78258942335096,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":18072},"_Padding":{"__isSmartRef__":true,"id":18073},"owner":{"__isSmartRef__":true,"id":18063},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":18074}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":18076},"eventHandler":{"__isSmartRef__":true,"id":18077},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"E0EF3EFE-3ADF-4E46-8705-7BF444E4BCED","307A3596-1175-4EA6-AA27-5BA4C9D95AB7","0EF99131-C569-4C2C-B613-E0D8423C1334","9AECBFB8-25A5-483F-86AD-D7CF9ABC9A25","918C6CC4-3540-4341-BAFD-B195F7807FEE","5AABB138-5EE8-40A5-AB3C-5A9625D0A353","4529D79B-4CC5-467E-91F8-661C3A5F49F8","1E5E570C-FD42-45E3-A7F6-768BB14ACD14","A13FB4E0-72F2-4E7C-A861-EDCBA1393860","B8E4C964-4FFF-4A9F-B0A9-612546B1DC8C","002A2173-D26D-4EED-8906-A489C1E158C0","63362D04-B829-41E6-9E68-5B8DB03D382F","996B60A4-8698-448F-A35F-79C768B4976B","F0727398-A1F0-47F5-92CF-BB9677FA05FA","38707063-D664-49A0-B2FB-F0666EC532D5","0402FB51-915F-4491-8FA1-553F0D8F7F35","5A35285D-C6A5-4830-97D9-0890A3F33F39","53121F0B-7DA5-4622-AC08-DD4805D53374","6C84E15D-112D-4C04-87C1-937691E296A7","7A4CC818-03C7-45D0-B138-245483387166","2B7B25EF-775E-4809-A470-9E52336F8DBD","1DE44564-3D45-4620-B4E6-0B0239180C65","CCCF55E9-750A-45D9-AD42-21333052C5F8","46ADBDE8-6149-4CAF-BBF6-8AEB2C161F08","BBAE9210-C641-4189-BDC9-F55EDF7AC7CA","ADC668C2-0BB1-4CEC-8C7E-C21512E9F2DF","8F66F040-831D-451C-9D0A-0B8935E99CBE"],"_MinTextWidth":78.78258942335096,"_MinTextHeight":null,"__LivelyClassName__":"lively.morphic.Text"},"18065":{"position":{"__isSmartRef__":true,"id":18066},"_Extent":{"__isSmartRef__":true,"id":18067},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":18068},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":18069},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":18070},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"18066":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18067":{"x":82.78258942335096,"y":20.99999999999999,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18068":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18069":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"18070":{"x":2,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18071":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18072":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18073":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18074":{"style":{"__isSmartRef__":true,"id":18075},"chunkOwner":{"__isSmartRef__":true,"id":18064},"storedString":"save","__SourceModuleName__":"Global.lively.morphic.TextCore","_id":"_263","__LivelyClassName__":"lively.morphic.TextChunk"},"18075":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis"},"18076":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"18077":{"morph":{"__isSmartRef__":true,"id":18064},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18078":{"position":{"__isSmartRef__":true,"id":18079},"_Extent":{"__isSmartRef__":true,"id":18080},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":18081},"_Fill":{"__isSmartRef__":true,"id":18082},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":18092},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":18093},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"18079":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18080":{"x":82.78258942335096,"y":20.99999999999999,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18081":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18082":{"stops":[{"__isSmartRef__":true,"id":18083},{"__isSmartRef__":true,"id":18085},{"__isSmartRef__":true,"id":18087},{"__isSmartRef__":true,"id":18089}],"vector":{"__isSmartRef__":true,"id":18091},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"18083":{"offset":0,"color":{"__isSmartRef__":true,"id":18084}},"18084":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18085":{"offset":0.4,"color":{"__isSmartRef__":true,"id":18086}},"18086":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18087":{"offset":0.6,"color":{"__isSmartRef__":true,"id":18088}},"18088":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18089":{"offset":1,"color":{"__isSmartRef__":true,"id":18090}},"18090":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18091":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18092":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"18093":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18094":{"stops":[{"__isSmartRef__":true,"id":18095},{"__isSmartRef__":true,"id":18097},{"__isSmartRef__":true,"id":18099},{"__isSmartRef__":true,"id":18101}],"vector":{"__isSmartRef__":true,"id":18091},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"18095":{"offset":0,"color":{"__isSmartRef__":true,"id":18096}},"18096":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18097":{"offset":0.4,"color":{"__isSmartRef__":true,"id":18098}},"18098":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18099":{"offset":0.6,"color":{"__isSmartRef__":true,"id":18100}},"18100":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18101":{"offset":1,"color":{"__isSmartRef__":true,"id":18102}},"18102":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18103":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"18104":{"sourceObj":{"__isSmartRef__":true,"id":18063},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16951},"targetMethodName":"doSave","visualConnector":{"__isSmartRef__":true,"id":18105},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"18105":{"submorphs":[{"__isSmartRef__":true,"id":18106}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18121},"derivationIds":[null],"id":"F46012D5-C8BE-4E52-BF98-D052FDAAE17A","renderContextTable":{"__isSmartRef__":true,"id":18128},"eventHandler":{"__isSmartRef__":true,"id":18129},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":18130},{"__isSmartRef__":true,"id":18131}],"con":{"__isSmartRef__":true,"id":18104},"showsMorphMenu":true,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18132},"__LivelyClassName__":"lively.morphic.Path"},"18106":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18107},"derivationIds":[null],"id":"A2A83C78-09B8-473C-829B-198206D7A9E4","renderContextTable":{"__isSmartRef__":true,"id":18118},"eventHandler":{"__isSmartRef__":true,"id":18119},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":18120},"owner":{"__isSmartRef__":true,"id":18105},"_Rotation":3.077607197692381,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"18107":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":18108},{"__isSmartRef__":true,"id":18109},{"__isSmartRef__":true,"id":18110},{"__isSmartRef__":true,"id":18111}],"renderContextTable":{"__isSmartRef__":true,"id":18112},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":18113},"_Extent":{"__isSmartRef__":true,"id":18114},"_Padding":{"__isSmartRef__":true,"id":18115},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":18116},"_Fill":{"__isSmartRef__":true,"id":18117},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"18108":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"18109":{"isAbsolute":true,"x":-12,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"18110":{"isAbsolute":true,"x":4,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"18111":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"18112":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"18113":{"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18114":{"x":16,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18115":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18116":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18117":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18118":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18119":{"morph":{"__isSmartRef__":true,"id":18106},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18120":{"x":201.20421122525056,"y":40.24084224505009,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18121":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":18122},{"__isSmartRef__":true,"id":18123}],"renderContextTable":{"__isSmartRef__":true,"id":18124},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":18125},"_Extent":{"__isSmartRef__":true,"id":18126},"_Padding":{"__isSmartRef__":true,"id":18127},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":18116},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"18122":{"isAbsolute":true,"x":679.4857209639925,"y":9.595948897894004,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"18123":{"isAbsolute":true,"x":201.20421122525056,"y":40.24084224505009,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"18124":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"18125":{"x":200,"y":9,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18126":{"x":480,"y":32,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18127":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18128":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18129":{"morph":{"__isSmartRef__":true,"id":18105},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18130":{"morph":{"__isSmartRef__":true,"id":18105},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"18131":{"morph":{"__isSmartRef__":true,"id":18105},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":18106},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"18132":{"morphMenuItems":{"__isSmartRef__":true,"id":18133}},"18133":{"varMapping":{"__isSmartRef__":true,"id":18134},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString ||\n 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter:\n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true,\n fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(),\n visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":18139},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18134":{"this":{"__isSmartRef__":true,"id":18105},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18135}},"18135":{"$super":{"__isSmartRef__":true,"id":18136}},"18136":{"varMapping":{"__isSmartRef__":true,"id":18137},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18138},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18137":{"obj":{"__isSmartRef__":true,"id":18105},"name":"morphMenuItems"},"18138":{},"18139":{},"18140":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"18141":{"morph":{"__isSmartRef__":true,"id":18063},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18142":{"x":62.581934788626654,"y":-18.016780854503224,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18143":{"centeredHorizontal":false,"moveHorizontal":true},"18144":{"x":717.2995239070133,"y":9.53851695196505,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18145":{"submorphs":[{"__isSmartRef__":true,"id":18146}],"scripts":[],"id":"B2668183-3753-49F8-BE48-A907E4F3DE83","shape":{"__isSmartRef__":true,"id":18160},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":18176},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":18164},"lighterFill":{"__isSmartRef__":true,"id":18177},"label":{"__isSmartRef__":true,"id":18146},"name":"openTestsButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":18186},"attributeConnections":[{"__isSmartRef__":true,"id":18187}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","renderContextTable":{"__isSmartRef__":true,"id":18188},"eventHandler":{"__isSmartRef__":true,"id":18189},"distanceToDragEvent":{"__isSmartRef__":true,"id":18190},"derivationIds":[7251,"84054D2E-8176-440D-B413-279956A34FC2","79434046-F834-490E-B705-0CE871D9E8B3","FF38CA79-C0DF-4F2F-8FC3-407571EF6A54","B1D50332-9F4F-4F7C-AC3F-95DC6C73EAA4","5B8D7C39-987A-4849-BFFD-3F316CE03852","F7C30F5C-7270-44B1-ADFF-7473F2012DB0","5142302E-3E9A-476B-AB24-B2448DA6D3E4","FEA3C508-593D-4BC7-B645-8B5630CF2EDE","34DBC442-E1DE-42D7-8C63-BA9A1890C994","4F9067A3-5A5C-4637-A76F-7E590CEE2BDA","ADF74818-537A-4669-A455-9509BA7BD7E5","AFCD7FA7-5429-4B1A-B8B8-AB03C18ABA08","604C352D-0347-4329-A299-EAA3FF90B543","46C5ED11-DE03-428F-A758-5308B3D323B5","7C978B2A-9109-42E1-95C5-A59CC74BD31B","C430AEC4-38F4-4647-8D54-13438ED97580","E8E28FBC-2406-4CD2-9C9C-5C4D7E210715","922479BC-DB5B-43B3-AC50-04518BC24F9A","1CC80D43-AF76-47B7-BE05-909397789E0D","D4C0B1DB-1A53-41C3-BAFB-F86F4A30F309","93F88D8D-58DA-42CD-87BE-89746E6E9FF7","79A2D2F7-E412-4BB1-8D69-F38AD608620B","A546F5F1-A8A8-43B7-A324-978C49851763"],"owner":{"__isSmartRef__":true,"id":16485},"_ClipMode":"visible","isCopyMorphRef":true,"morphRefId":159,"_Rotation":0,"_Scale":0.9940149800149939,"isPressed":false,"__LivelyClassName__":"lively.morphic.Button"},"18146":{"submorphs":[],"scripts":[],"id":"C4183160-85B1-4D0A-8689-694042E9AC48","shape":{"__isSmartRef__":true,"id":18147},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":18153},"_MaxTextWidth":75.8735578213487,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":18154},"_Padding":{"__isSmartRef__":true,"id":18155},"owner":{"__isSmartRef__":true,"id":18145},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":18156}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":18158},"eventHandler":{"__isSmartRef__":true,"id":18159},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"0A0A6CB1-BD92-4F39-A425-2EB3D2D4CBA2","CB475566-05CE-43E2-B04D-EE32BC4CB718","6BB077CE-92E6-47BE-BE88-9A48488562D1","9E359973-2FDB-417B-BB06-AB34D52BD310","58F098ED-A190-44F2-B73E-80802B2CF2F6","AEA84B35-B349-4307-92C6-8F229705DFC2","A677CADF-24FF-4177-9A3A-FE9AAE7D60FE","0F875AD9-E54C-4735-9BA9-7B89574233A1","840EBE92-3BC2-42EC-819E-3CD002576490","78C4969D-2C33-4B17-9027-89B411B9F496","C9A3D112-C2BC-43A3-A3CA-A68F41A0E4CF","78CF2F1A-6697-4D03-AB2B-CAF862B4EDD6","8B416918-CA4B-46D1-8A3C-40F8A754E44D","01510710-A85B-4054-B0ED-7F2F02434806","8ABD23FB-E90C-4EEB-BF53-DF3C6ACF2BD4","8067199F-A419-4C5F-81C9-07B6053CF148","6C15584F-EEE8-4EBC-AA81-2722E5D85CD2","B9B088C4-9B58-412E-AF54-965225059B64","5159D73E-5845-46B5-A67C-DAAC7FBE8A94","E8C6AD05-AB83-4B59-8D83-D061720EBF2F","8B133FDB-79E8-461D-B96F-08C41BAD5F6B","F2805510-40B4-4F17-9FAB-E7AC4F8F5632","48532853-7A70-4085-A665-1CE08428C4C9"],"_MinTextWidth":75.8735578213487,"_MinTextHeight":null,"__LivelyClassName__":"lively.morphic.Text"},"18147":{"position":{"__isSmartRef__":true,"id":18148},"_Extent":{"__isSmartRef__":true,"id":18149},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":18150},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":18151},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":18152},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"18148":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18149":{"x":79.8735578213487,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18150":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18151":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"18152":{"x":2,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18153":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18154":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18155":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18156":{"style":{"__isSmartRef__":true,"id":18157},"chunkOwner":{"__isSmartRef__":true,"id":18146},"storedString":"Tests","__SourceModuleName__":"Global.lively.morphic.TextCore","_id":"_264","__LivelyClassName__":"lively.morphic.TextChunk"},"18157":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis"},"18158":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"18159":{"morph":{"__isSmartRef__":true,"id":18146},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18160":{"position":{"__isSmartRef__":true,"id":18161},"_Extent":{"__isSmartRef__":true,"id":18162},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":18163},"_Fill":{"__isSmartRef__":true,"id":18164},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":18174},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":18175},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"18161":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18162":{"x":79.8735578213487,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18163":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18164":{"stops":[{"__isSmartRef__":true,"id":18165},{"__isSmartRef__":true,"id":18167},{"__isSmartRef__":true,"id":18169},{"__isSmartRef__":true,"id":18171}],"vector":{"__isSmartRef__":true,"id":18173},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"18165":{"offset":0,"color":{"__isSmartRef__":true,"id":18166}},"18166":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18167":{"offset":0.4,"color":{"__isSmartRef__":true,"id":18168}},"18168":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18169":{"offset":0.6,"color":{"__isSmartRef__":true,"id":18170}},"18170":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18171":{"offset":1,"color":{"__isSmartRef__":true,"id":18172}},"18172":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18173":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18174":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"18175":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18176":{"x":634.015908798265,"y":9,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18177":{"stops":[{"__isSmartRef__":true,"id":18178},{"__isSmartRef__":true,"id":18180},{"__isSmartRef__":true,"id":18182},{"__isSmartRef__":true,"id":18184}],"vector":{"__isSmartRef__":true,"id":18173},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"18178":{"offset":0,"color":{"__isSmartRef__":true,"id":18179}},"18179":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18180":{"offset":0.4,"color":{"__isSmartRef__":true,"id":18181}},"18181":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18182":{"offset":0.6,"color":{"__isSmartRef__":true,"id":18183}},"18183":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18184":{"offset":1,"color":{"__isSmartRef__":true,"id":18185}},"18185":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18186":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"18187":{"sourceObj":{"__isSmartRef__":true,"id":18145},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16485},"targetMethodName":"openPartTestRunner","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"18188":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"18189":{"morph":{"__isSmartRef__":true,"id":18145},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18190":{"x":59.70298502940375,"y":-12.472848995726281,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18191":{"submorphs":[{"__isSmartRef__":true,"id":18192},{"__isSmartRef__":true,"id":18207}],"scripts":[],"id":"60F63EBE-4EF1-4B9E-99B8-DBC3DF7FE900","shape":{"__isSmartRef__":true,"id":18217},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":18230},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":18231},"lighterFill":{"__isSmartRef__":true,"id":18241},"label":{"__isSmartRef__":true,"id":18192},"name":"MagnifierButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":18250},"attributeConnections":[{"__isSmartRef__":true,"id":18253}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","renderContextTable":{"__isSmartRef__":true,"id":18254},"eventHandler":{"__isSmartRef__":true,"id":18255},"derivationIds":[2588,"22797D34-67DE-4A06-81F0-4DF0A87ADBBC","81CB4C12-BCF0-4097-8B6D-D9419046367A","0767A57D-9BB2-48C6-9654-753D2B9D00A6","42871246-6725-4E41-A2C1-5A5BCF041097","BCE6E775-B5DF-4D6B-9F06-CDC02C1B1D0F","797EC165-A639-42D9-A059-669F6BEB92A7","FA498EFD-E50E-4CE0-9FA8-9AE2E8AE9580","4B68C371-CB37-45B4-910A-611E5FFC23DD","94E374B9-7ED4-4E39-96F1-6FD4E7AC3428","34D63515-7CC7-43FB-B7BB-87AFCA377D63","67A96A4E-2E4C-40E5-959C-15E197EE61CD","173C362F-825D-4E15-B245-DE2055328912","CAFD3EE8-16FC-40A4-91DE-6C8DD5F66466","9156AC94-8C9C-49C4-B4E4-9F6152590C77","F110F000-E5B3-4B91-A63A-4327DD75C89B","66371D2F-EDBD-4D17-81BB-F3F2D64B234A","865769D5-F845-4624-98BB-58E03979D895","592529D3-E8D7-4CCC-951E-B9336AB171DB"],"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":16485},"distanceToDragEvent":{"__isSmartRef__":true,"id":18256},"highlightRectangle":{"__isSmartRef__":true,"id":18257},"isCopyMorphRef":true,"morphRefId":1,"#startLetters":"highlightRectangle","prevScroll":[0,0],"_Rotation":0,"_Scale":0.9920279440699439,"isPressed":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18347},"__LivelyClassName__":"lively.morphic.Button"},"18192":{"submorphs":[],"scripts":[],"id":"C3A7DE8C-D968-450E-BDDF-72B3073B45BA","shape":{"__isSmartRef__":true,"id":18193},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":18198},"_MaxTextWidth":24,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":18199},"_Padding":{"__isSmartRef__":true,"id":18200},"owner":{"__isSmartRef__":true,"id":18191},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":18201},{"__isSmartRef__":true,"id":18203}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":18205},"eventHandler":{"__isSmartRef__":true,"id":18206},"_HandStyle":"default","_PointerEvents":"none","derivationIds":[2589,"024C5ADE-C4CF-4E8E-BEC5-F93AD4839702","A2CC4D56-B9D8-4A48-B6FF-DDDD85ACDC2E","5AC5C4DE-00B0-43DB-B7F1-765674CE818B","750A11C6-766E-4B48-AE32-D71DE811EB4A","66A7B56E-A94E-44AE-8AED-C0C1B07554D4","CA8596D3-2D4F-453B-BE1B-DCEC8F85389B","4D7DC32F-79CB-4AF8-8B21-AB4F1809D4A8","439DE430-7651-470E-97D8-00E7F96B04DA","DAC920E6-217B-4515-AC09-2F9DCBA7375C","BD48C003-0502-451D-B6AA-7369FF3D1030","C977E5FA-5232-4FC5-B382-D72524B6BB34","2ABBA1E6-13DB-446C-B0BD-38CB9D11DBCF","81109613-52B1-4F19-8B26-421ACD9B89BE","CAB6C69D-EF50-4302-B1DE-CCA7D8E6AD8A","9D34F01C-B74B-47D2-9EE8-EE4D4D526933","81DC8598-D5A3-460A-9D86-2475A0E54C9E","72B0A339-7A2B-4BD6-8D62-1A3D82F558C3","C817A495-E845-42E9-9A74-6C3CF89D0BA5"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":24,"_MinTextHeight":null,"_FontSize":10,"_TextColor":{"__isSmartRef__":true,"id":17727},"__LivelyClassName__":"lively.morphic.Text"},"18193":{"position":{"__isSmartRef__":true,"id":18194},"_Extent":{"__isSmartRef__":true,"id":18195},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":18196},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":18197},"_Padding":{"__isSmartRef__":true,"id":17719},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"18194":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18195":{"x":24,"y":24,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18196":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18197":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"18198":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18199":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18200":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18201":{"style":{"__isSmartRef__":true,"id":18202},"chunkOwner":{"__isSmartRef__":true,"id":18192},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","_id":"_265","__LivelyClassName__":"lively.morphic.TextChunk"},"18202":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"18203":{"style":{"__isSmartRef__":true,"id":18204},"chunkOwner":{"__isSmartRef__":true,"id":18192},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","_id":"_266","__LivelyClassName__":"lively.morphic.TextChunk"},"18204":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"18205":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"18206":{"morph":{"__isSmartRef__":true,"id":18192},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18207":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18208},"derivationIds":[null,"29E543E0-AE93-493A-A694-FC1C330D0544","F0366E4C-E97F-4C77-BEE4-340A0668ADD5","347F6028-5092-4F54-9A34-3EFF3FF0B815","BF7387E7-BCD7-4A5B-B9D2-C14ECF59EFCA","85BA370B-966E-41F7-8C2F-F3A926EC2AA2","1652172B-339A-43A1-9589-70E68B35A28E","705524F7-129B-4102-834E-2A1A45985BB5","5707DF70-CD77-4D53-96ED-5A0AEB227FB7","257E62CE-C668-4317-B5B7-8D394BDC3F6C","F7F01311-6C1F-435B-ABC2-08492D3F0EB3","5971C26F-D761-4186-8783-1D4AAC607CEE","C017A337-898A-4ABA-81C9-3D25BCEA4E7F","58F7AD25-24B1-4B4F-A6EA-38BB0F553AB1","BF398A3B-2A8F-4DDD-BA52-2DBDFA951ED2","1F07B41A-AB4F-48FC-A2D5-895508D73C9B","4AD7ED47-DEE2-48F2-95D0-DFAA83095FB3","48A97940-C0AC-4609-9FAA-9E78ABBCE67F"],"id":"9443E918-9D10-49EE-8147-72A15EB9AD07","renderContextTable":{"__isSmartRef__":true,"id":18213},"eventHandler":{"__isSmartRef__":true,"id":18214},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":18215},"owner":{"__isSmartRef__":true,"id":18191},"name":"leftpointing_magnifying_glass.png","isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":18216},"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.Widgets","isCopyMorphRef":true,"morphRefId":161,"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Image"},"18208":{"_Position":{"__isSmartRef__":true,"id":18209},"renderContextTable":{"__isSmartRef__":true,"id":18210},"_Extent":{"__isSmartRef__":true,"id":18211},"_ImageURL":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAABAAAAAQBPJcTWAAAALnRFWHRUaXRsZQBMRUZULVBPSU5USU5HIE1BR05JRllJTkcgR0xBU1MgKFUrMUY1MEQpw88haQAAABV0RVh0QXV0aG9yAEFuZHJldyBNYXJjdXNl5zc3gwAAAC90RVh0U29mdHdhcmUAaW5mby5maWxlZm9ybWF0LmRhdGEuVW5pY29kZVBuZ1NlcnZsZXRoAX8wAAAAQ3RFWHREZXNjcmlwdGlvbgBodHRwOi8vd3d3LmZpbGVmb3JtYXQuaW5mby9pbmZvL3VuaWNvZGUvMWY1MGQvaW5kZXguaHRtk2hNQgAAADt0RVh0Q29weXJpZ2h0AGh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LW5jLXNhLzIuMC9siJKDAAAIDklEQVR42u1daWxVRRQeCi0tIqCAQCTIUtEIGlk0ilqEkEbiQhSKGAyCooIIggsiQuMWZNGwVMUFNIhKZBMobZClgK1FwAU3wIpSREDcUFZFEM/JOzf3vPHet9ze1/eYe77k+zNzl5nz3ZlzZntPKYFAcHojDXimmKH6cQbwZuBM4HLgx8A9wBPAU8BjwJ3ADcDFwMnArsCaYjr/0BB4DwlwjAwfL38DzgX2AdYWk3pDJnAM8E/NuN8BpwEHAq8DXgpsCswANgN2APak/BeBu7T7sQX1A9YQE8fuDwYAf2BG/JrEaefxmSjaeOAO9syNwBwxd2Q0o/7fMhr6h8Fx+oBIX346cATwF/aON6Qbc0ZH4G4y0lHgOGAdD8/Be/KAs4AFwKsdrqkHnAA8Tu8rAzYWCWz0Bh5hraKTT11fL+AH1FXlA8/SrsEu61fmW9qLFEqNAv5LRsEw9twEvKMzcAvwJ3LoHG2AW+n9B4HdgixGHhNjiccuKlbUp9aC7yoGnqflraa8A8C2QRTjMvIVaITyKI61BjnkqiILWEjvPAwcxvLqAj+nvAqH7s1oNAfupcpjeNskhnvQOQ/xYfxQCziHRVl3sjxsNfspvYSuNR4Ywn5ClT5CA7lYkUPRU0YVy4CivkVlOE7TKxa6AP+ivKlBEORe9nUO8XD/QhWay6oqmlK3dYoirTYs70FK/wd4ocli1KVIByu7XXmb9BsOPEmj76riSfZxbAM2oPQMmqLB9GUmC/I0M8AtHp9xCd3/rM8fCHISy+vH0ruaOi3Coyqv6ETPKPSpXEOZ4X9XoSl+y89sovTNJgoyklW8rw8+aKFP5apFo3SrbMNcWsnFpgmylkU19R3yY4mc0mk0j88Z62PZ5jHDV7DQugE5dkx/3CQxzlb2qt6aCF1HtJH6BHoGju4v97F8+Sp8zeRGlldCaZtMEmQAq+zICL5hpUvrwfXy19gzZvhcvj6aILNZ3ij2ETQzRZA3WWU7RrgOfQsu05YCnyLxcFS9h91fTlMgfqKdJsg6lteBpQ8wRZASVqmmUa7txvwEJ/qe8SoxGxYymK+wpnMsNGHpxviRbVShkzEatAb5iEHUSrqzQVuiUMkMf5IFGWnM/71giiAHqEL7U7iMf2gtkk/B7/M51E4qMlklvzwNymgxl+VvobQPTRCkMavkDpaelkJlbOkgyDUsv0LZu19Oe/A++BBLvyIB0ZJX9HIQhHdZBymt1BQfso9V1Jorag28PUXKN8tBkHqUV4elLTJFkM9YpVqzllOcAmXDiG6vJsZhlt+Kpc80RZBiF2eJK4fZSS5bd4fWUcTyc1n6Y6YIMpVVii+LTgFOTHLZNjoIMpTlT2fpXUwRpIcKn021gHuwcDN0ss525Cnn3fIt2DXfK3vPljGbHtK1gdcFmkNdkYTK4gz0Tgcxytg1fI6rUBkGvubA54Ta0lTFK9VYFhS/xKV18PEHX3MfYpogfPUND9DwuamFlP5oNZXlZRcxlmsDWutsCl/aNQYZWhfBnTlOceNsLq459E1wyyhwEeNvFb7ZusClrEbhNlbJoyp8Y3UejehxPWS08v/MBrbIlcr92BvfwZit7KMKOC3f3FRBcBC2mRlBnz0dpOzN17gvqrdP7+2p7PkoJz7Hrq2pCfeqMhzXasbI1/KHa/m4Y93reRFcU1mrIh8IXaLCJzpnsLyfKRozHrNZpbFF9NHyx2pGw2tWAZ8H3gW8UjmvvWdSlIQb3raq6Kdzp6vwBbOhWn5/FRCggy9lFcdN1521ax5Q0Y9B41o7nkn8Rv1/gSkS0T/crb0vV4Uv465UAUNjLerCkfAN2jUXKef19apwnYP4AynK4tfNU6m1ZlMtaK/stQZrLXu0Q6g6OIpTjoVfAK/Xnp1GDp1fhy0th1rwHLqmEbXYHkEQJYcGitwouG2onoPx0Ne8q+yDmtGIs8lPUFCgH/Q5R4XPQlt8nfKzKB9/ouNHLT/ddFEw7t+uGQbPko90GY+gOHgcoRc5+YeBj1DY3JPyGrq8qy6JdMhBDAyz8azhZLq2JRuP4HE3a6f8KhNH7k4Dt9UORqoE3qGqfiAUo7L7lX1kjfMd4H0UHGTTFMpLzH8VUAS3iN2znsQ1GugvprCvkvMYdSFouBYxPu98FdoKusblmZXUoiz0J1FuYgPUfCrXAof7S4MgimXIRVH8wwHq5vBLna9Cs8ULyEgVWrCg8zAJ79TtjGDXjSMx5kd4Fk7XB+a3uq5Sob1QfoW86JzxR2zcjjyj3/mKTafUpCAi2nPLVcB+QA379YdoGuWEBxEwars1hujIOpZQQS1jWhzvKXeIDAOBRhT+YgQ2kcYK71NLwgOauAKJ50jwpFW8J2jHKHvLKwYBuENmVxyibAiqKIlCOkVY1g8HZHkQ5SOXeTaBR9RW9vT7agp34xVlo4jiL7KoG0TjriCR4hVlk0r8EYrAtZQiZa+14wx1qzhF2Syi+C+K5VOWko8RUVJIlPc8irIhKCP6ZItSqeJbh8kSU/qHDCbKMuZT4hFlrpgxcaIUUcuJR5TdYsLEiFLIQuLMOESZJOZLnCjLyMhrabqkZRRR1qsArDQmW5SlZOxPVWhJ2E2UNRJlVQ/wi19CRv9WhXbJoCh8zb+IujVBNYqymIyPP55ZxsQoVvK78kkBrp28rXVThSJGcoE7YZ5RoTMlc8SBpw7kj2IEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgSAZ+A+0ucC4BysctgAAAABJRU5ErkJggg==","_Padding":{"__isSmartRef__":true,"id":18212},"_NodeClass":["image"],"_NodeId":"29E543E0-AE93-493A-A694-FC1C330D0544","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"18209":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18210":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"18211":{"x":29,"y":29,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18212":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18213":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"18214":{"morph":{"__isSmartRef__":true,"id":18207},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18215":{"x":-3.024108360992159,"y":0.008036120330757512,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18216":{"x":39.935711037353485,"y":-9.032144481323257,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18217":{"position":{"__isSmartRef__":true,"id":18218},"_Extent":{"__isSmartRef__":true,"id":18219},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":18220},"_Fill":{"__isSmartRef__":true,"id":18221},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":18228},"_Padding":{"__isSmartRef__":true,"id":18229},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"18218":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18219":{"x":24,"y":24,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18220":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18221":{"stops":[{"__isSmartRef__":true,"id":18222},{"__isSmartRef__":true,"id":18224},{"__isSmartRef__":true,"id":18225},{"__isSmartRef__":true,"id":18226}],"vector":{"__isSmartRef__":true,"id":17739},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"18222":{"offset":0,"color":{"__isSmartRef__":true,"id":18223}},"18223":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18224":{"offset":0.3,"color":{"__isSmartRef__":true,"id":17735}},"18225":{"offset":0.7,"color":{"__isSmartRef__":true,"id":17735}},"18226":{"offset":1,"color":{"__isSmartRef__":true,"id":18227}},"18227":{"r":0.7973333333333334,"g":0.7973333333333334,"b":0.7973333333333334,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18228":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"18229":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18230":{"x":464.5087747493862,"y":8.483242611655214,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18231":{"stops":[{"__isSmartRef__":true,"id":18232},{"__isSmartRef__":true,"id":18234},{"__isSmartRef__":true,"id":18236},{"__isSmartRef__":true,"id":18238}],"vector":{"__isSmartRef__":true,"id":18240},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"18232":{"offset":0,"color":{"__isSmartRef__":true,"id":18233}},"18233":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18234":{"offset":0.4,"color":{"__isSmartRef__":true,"id":18235}},"18235":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18236":{"offset":0.6,"color":{"__isSmartRef__":true,"id":18237}},"18237":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18238":{"offset":1,"color":{"__isSmartRef__":true,"id":18239}},"18239":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18240":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18241":{"stops":[{"__isSmartRef__":true,"id":18242},{"__isSmartRef__":true,"id":18244},{"__isSmartRef__":true,"id":18246},{"__isSmartRef__":true,"id":18248}],"vector":{"__isSmartRef__":true,"id":18240},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"18242":{"offset":0,"color":{"__isSmartRef__":true,"id":18243}},"18243":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18244":{"offset":0.4,"color":{"__isSmartRef__":true,"id":18245}},"18245":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18246":{"offset":0.6,"color":{"__isSmartRef__":true,"id":18247}},"18247":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18248":{"offset":1,"color":{"__isSmartRef__":true,"id":18249}},"18249":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18250":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"partName":"ScriptableButton","comment":"Has a script that is called on button press","changes":[{"__isSmartRef__":true,"id":18251}],"revisionOnLoad":154251,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"18251":{"date":{"__isSmartRef__":true,"id":18252},"author":"robertkrahn","message":"no comment","id":"0366C0A2-0C8E-4AEB-AAC3-120434134545"},"18252":{"isSerializedDate":true,"string":"Sat Apr 21 2012 14:10:10 GMT+0200 (CEST)"},"18253":{"sourceObj":{"__isSmartRef__":true,"id":18191},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":18191},"targetMethodName":"onFire","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"18254":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"18255":{"morph":{"__isSmartRef__":true,"id":18191},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18256":{"x":37.935711037353656,"y":-7.943747157684584,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18257":{"submorphs":[],"scripts":[],"id":"364FF344-E489-461B-BC8C-ED45E4823ED4","shape":{"__isSmartRef__":true,"id":18258},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":18265},"showsHalos":false,"name":"HighlightRectangle","partsBinMetaInfo":{"__isSmartRef__":true,"id":18266},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":18307},"eventHandler":{"__isSmartRef__":true,"id":18308},"attributeConnections":[{"__isSmartRef__":true,"id":18309},{"__isSmartRef__":true,"id":18310},{"__isSmartRef__":true,"id":18311}],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","F38439A3-2F4E-4AC2-BF73-2633C00B1393","6748F5B5-2284-4748-A6EE-F1A261CBAD0B","6FECB598-D130-4242-BF1B-E18767608129","0B23F218-078F-4912-A262-31B957885F41","C56BA290-B836-4946-B4EF-DBB6FBA2368C","61176BAF-CFE6-4F2C-9F0A-971AAD6595A1","CB4127B2-0AA5-4B50-9978-F1FF39924A82","113050BB-CF0E-4193-91C6-9C25FC857EE8","EFF939E4-317B-4662-943F-77A6E6F65BD0","AA288E7F-3972-4F0D-87DD-61E4BD9C9C97","903E8C60-1158-42D5-85D2-DF134DA6CEC1","28FD6210-A549-4A11-9178-04E77FF556C0","B3312E29-D786-469F-865E-91FD69475A52","D947A1C1-DCBE-4485-A33D-DF549F6978E0","56CE0E60-45BE-43FF-9C6C-296D8AC326B6","CC61E3F8-8C8D-4F24-A591-023D3C88DEC8"],"partTests":{"__isSmartRef__":true,"id":18312},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"prevScroll":[0,0],"#startLetters":"","eventsAreDisabled":false,"_HandStyle":"default","_PointerEvents":"auto","distanceToDragEvent":{"__isSmartRef__":true,"id":18317},"_Rotation":0,"_Scale":1.0060210561262526,"owner":null,"magnifierButton":{"__isSmartRef__":true,"id":18191},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18318},"__LivelyClassName__":"lively.morphic.Box"},"18258":{"position":{"__isSmartRef__":true,"id":18259},"_Extent":{"__isSmartRef__":true,"id":18260},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":18261},"_Fill":{"__isSmartRef__":true,"id":18262},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":18263},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":18264},"_BorderRadius":0,"_Opacity":0.2597,"_BorderStyle":"hidden","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"18259":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18260":{"x":5000,"y":4000,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18261":{"r":0.8,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18262":{"r":0.227,"g":0,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18263":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","setComputedStyles":"setComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"18264":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18265":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18266":{"partsSpaceName":"PartsBin/Tools","__SourceModuleName__":"Global.lively.PartsBin","comment":"A rectangle which highlights the object under the first hand of the world","migrationLevel":4,"partName":"HighlightRectangle","changes":[{"__isSmartRef__":true,"id":18267},{"__isSmartRef__":true,"id":18269},{"__isSmartRef__":true,"id":18271},{"__isSmartRef__":true,"id":18273},{"__isSmartRef__":true,"id":18275},{"__isSmartRef__":true,"id":18277},{"__isSmartRef__":true,"id":18279},{"__isSmartRef__":true,"id":18281},{"__isSmartRef__":true,"id":18283},{"__isSmartRef__":true,"id":18285},{"__isSmartRef__":true,"id":18287},{"__isSmartRef__":true,"id":18289},{"__isSmartRef__":true,"id":18291},{"__isSmartRef__":true,"id":18293},{"__isSmartRef__":true,"id":18295},{"__isSmartRef__":true,"id":18297},{"__isSmartRef__":true,"id":18299},{"__isSmartRef__":true,"id":18301},{"__isSmartRef__":true,"id":18303},{"__isSmartRef__":true,"id":18305}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"18267":{"date":{"__isSmartRef__":true,"id":18268},"author":"timfelgentreff","message":"no comment","id":"3DB7DB40-210A-4BED-91FD-9287005703EC"},"18268":{"isSerializedDate":true,"string":"Thu May 24 2012 17:04:54 GMT+0200 (CEST)"},"18269":{"date":{"__isSmartRef__":true,"id":18270},"author":"tessi","message":"no comment","id":"23D7AA12-66A9-4C3B-B494-131256C291AC"},"18270":{"isSerializedDate":true,"string":"Thu May 24 2012 16:57:13 GMT+0200 (CEST)"},"18271":{"date":{"__isSmartRef__":true,"id":18272},"author":"tessi","message":"no comment","id":"2C30B7CA-388F-4F51-B4CF-A2E50E381148"},"18272":{"isSerializedDate":true,"string":"Thu May 24 2012 16:23:11 GMT+0200 (CEST)"},"18273":{"date":{"__isSmartRef__":true,"id":18274},"author":"tessi","message":"diable events","id":"7C1F71A3-FDAC-470A-B9A9-E1F2C9FEF18E"},"18274":{"isSerializedDate":true,"string":"Thu May 24 2012 14:46:08 GMT+0200 (CEST)"},"18275":{"date":{"__isSmartRef__":true,"id":18276},"author":"tessi","message":"no comment","id":"01996A33-11BC-4C15-96D7-B7D219E2E961"},"18276":{"isSerializedDate":true,"string":"Thu May 24 2012 14:39:50 GMT+0200 (CEST)"},"18277":{"date":{"__isSmartRef__":true,"id":18278},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"18278":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"18279":{"date":{"__isSmartRef__":true,"id":18280},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"18280":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"18281":{"date":{"__isSmartRef__":true,"id":18282},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"18282":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"18283":{"date":{"__isSmartRef__":true,"id":18284},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"18284":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"18285":{"date":{"__isSmartRef__":true,"id":18286},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"18286":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"18287":{"date":{"__isSmartRef__":true,"id":18288},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"18288":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"18289":{"date":{"__isSmartRef__":true,"id":18290},"author":"tessi","message":"no comment","id":"4B982A01-25B3-455A-848D-89C2C3C471D7"},"18290":{"isSerializedDate":true,"string":"Thu May 24 2012 13:58:01 GMT+0200 (CEST)"},"18291":{"date":{"__isSmartRef__":true,"id":18292},"author":"tessi","message":"no comment","id":"2FD6CB7B-3BC7-4666-98B4-AACF1001954D"},"18292":{"isSerializedDate":true,"string":"Thu May 24 2012 14:07:32 GMT+0200 (CEST)"},"18293":{"date":{"__isSmartRef__":true,"id":18294},"author":"tessi","message":"no comment","id":"09CF5ECF-2C87-4B66-A164-39848628596F"},"18294":{"isSerializedDate":true,"string":"Thu May 24 2012 15:34:59 GMT+0200 (CEST)"},"18295":{"date":{"__isSmartRef__":true,"id":18296},"author":"tessi","message":"no comment","id":"252A3EB5-DB00-4CF9-BF38-2927DD1C5229"},"18296":{"isSerializedDate":true,"string":"Thu May 24 2012 16:34:29 GMT+0200 (CEST)"},"18297":{"date":{"__isSmartRef__":true,"id":18298},"author":"tessi","message":"no comment","id":"81534551-62C1-4FC9-96CB-A5AC6642CA1E"},"18298":{"isSerializedDate":true,"string":"Thu May 24 2012 16:45:49 GMT+0200 (CEST)"},"18299":{"date":{"__isSmartRef__":true,"id":18300},"author":"tessi","message":"no comment","id":"5125DE3A-D50E-4621-8490-F3A9D99C2C4C"},"18300":{"isSerializedDate":true,"string":"Thu May 24 2012 16:47:20 GMT+0200 (CEST)"},"18301":{"date":{"__isSmartRef__":true,"id":18302},"author":"tessi","message":"no comment","id":"C81A2FBF-CB0B-4A0B-9D63-F9AEDFCB5DA6"},"18302":{"isSerializedDate":true,"string":"Thu May 24 2012 16:51:06 GMT+0200 (CEST)"},"18303":{"date":{"__isSmartRef__":true,"id":18304},"author":"tessi","message":"no comment","id":"DC8EF5EC-7563-45B6-816D-20E2DC218525"},"18304":{"isSerializedDate":true,"string":"Thu May 24 2012 16:52:10 GMT+0200 (CEST)"},"18305":{"date":{"__isSmartRef__":true,"id":18306},"author":"timfelgentreff","message":"no comment","id":"E7515DFB-DE7D-4E1F-A2C3-85166DCE4942"},"18306":{"isSerializedDate":true,"string":"Thu May 24 2012 16:59:39 GMT+0200 (CEST)"},"18307":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"18308":{"morph":{"__isSmartRef__":true,"id":18257},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18309":{"sourceObj":{"__isSmartRef__":true,"id":18257},"sourceAttrName":"onMouseMove","targetObj":{"__isSmartRef__":true,"id":18257},"targetMethodName":"updateOnMove","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"18310":{"sourceObj":{"__isSmartRef__":true,"id":18257},"sourceAttrName":"onMouseUp","targetObj":{"__isSmartRef__":true,"id":18191},"targetMethodName":"setTarget","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"18311":{"sourceObj":{"__isSmartRef__":true,"id":18257},"sourceAttrName":"onKeyPress","targetObj":{"__isSmartRef__":true,"id":18191},"targetMethodName":"onRectangleKeyPress","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"18312":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18313}},"18313":{"test01IsMorph":{"__isSmartRef__":true,"id":18314}},"18314":{"varMapping":{"__isSmartRef__":true,"id":18315},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":18316},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18315":{"this":{"__isSmartRef__":true,"id":18312}},"18316":{},"18317":{"x":43.995993991989735,"y":-14.012018024029999,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18318":{"update":{"__isSmartRef__":true,"id":18319},"coveredMorph":{"__isSmartRef__":true,"id":18323},"updateOnMove":{"__isSmartRef__":true,"id":18327},"bringToFront":{"__isSmartRef__":true,"id":18331},"onKeyUp":{"__isSmartRef__":true,"id":18339}},"18319":{"varMapping":{"__isSmartRef__":true,"id":18320},"source":"function update(morph) {\n if (!morph) {\n return\n }\n\n if (morph === this.magnifierButton ||\n this.magnifierButton.submorphs.indexOf(morph) >= 0) {\n this.setExtent(pt(0,0))\n } else {\n this.setPosition(morph.getPositionInWorld())\n this.setExtent(morph.getExtent())\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18321},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18320":{"this":{"__isSmartRef__":true,"id":18257}},"18321":{"timestamp":{"__isSmartRef__":true,"id":18322},"user":"timfelgentreff","tags":[]},"18322":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:09:28 GMT+0200 (CEST)"},"18323":{"varMapping":{"__isSmartRef__":true,"id":18324},"source":"function coveredMorph() {\n var that = this\n return $world.morphsContainingPoint($world.firstHand().getPosition()).detect(\n function(ea) {\n return !ea.isPlaceholder &&\n !ea.isHalo &&\n (!ea.owner || !ea.owner.isHalo) &&\n !(ea === that);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":18325},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18324":{"this":{"__isSmartRef__":true,"id":18257}},"18325":{"timestamp":{"__isSmartRef__":true,"id":18326},"user":"timfelgentreff","tags":[]},"18326":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:33:40 GMT+0200 (CEST)"},"18327":{"varMapping":{"__isSmartRef__":true,"id":18328},"source":"function updateOnMove() {\n this.update(this.coveredMorph())\n this.bringToFront()\n\n if (window.event.shiftKey) {\n this.magnifierButton.startHighlighting()\n } else {\n this.magnifierButton.stopHighlighting()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18329},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18328":{"this":{"__isSmartRef__":true,"id":18257}},"18329":{"timestamp":{"__isSmartRef__":true,"id":18330},"user":"tessi","tags":[]},"18330":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:56:41 GMT+0200 (CEST)"},"18331":{"varMapping":{"__isSmartRef__":true,"id":18332},"source":"function bringToFront() {\n this.renderContext().morphNode.style.zIndex= 1000\n}","funcProperties":{"__isSmartRef__":true,"id":18337},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18332":{"this":{"__isSmartRef__":true,"id":18257},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18333}},"18333":{"$super":{"__isSmartRef__":true,"id":18334}},"18334":{"varMapping":{"__isSmartRef__":true,"id":18335},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18336},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18335":{"obj":{"__isSmartRef__":true,"id":18257},"name":"bringToFront"},"18336":{},"18337":{"timestamp":{"__isSmartRef__":true,"id":18338},"user":"lauritz","tags":[]},"18338":{"isSerializedDate":true,"string":"Wed Jun 06 2012 17:28:10 GMT+0200 (CEST)"},"18339":{"varMapping":{"__isSmartRef__":true,"id":18340},"source":"function onKeyUp(evt) {\n if (evt.keyCode == 27) {\n this.magnifierButton.stopTracking()\n this.magnifierButton.stopHighlighting();\n }\n return true\n}","funcProperties":{"__isSmartRef__":true,"id":18345},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18340":{"this":{"__isSmartRef__":true,"id":18257},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18341}},"18341":{"$super":{"__isSmartRef__":true,"id":18342}},"18342":{"varMapping":{"__isSmartRef__":true,"id":18343},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18344},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18343":{"obj":{"__isSmartRef__":true,"id":18257},"name":"onKeyUp"},"18344":{},"18345":{"timestamp":{"__isSmartRef__":true,"id":18346},"user":"tessi","tags":[]},"18346":{"isSerializedDate":true,"string":"Wed Jun 13 2012 17:01:10 GMT+0200 (CEST)"},"18347":{"onFire":{"__isSmartRef__":true,"id":18348},"onMouseMove":{"__isSmartRef__":true,"id":18352},"onMouseOut":{"__isSmartRef__":true,"id":18360},"reset":{"__isSmartRef__":true,"id":18368},"isTracking":{"__isSmartRef__":true,"id":18372},"isHighlighting":{"__isSmartRef__":true,"id":18376},"currentTarget":{"__isSmartRef__":true,"id":18380},"setTarget":{"__isSmartRef__":true,"id":18384},"currentTargetIsMultiSelection":{"__isSmartRef__":true,"id":18388},"newMultiSelection":{"__isSmartRef__":true,"id":18392},"newGreenRectangle":{"__isSmartRef__":true,"id":18396},"stopTracking":{"__isSmartRef__":true,"id":18400},"startTracking":{"__isSmartRef__":true,"id":18404},"stopHighlighting":{"__isSmartRef__":true,"id":18408},"startHighlighting":{"__isSmartRef__":true,"id":18412},"onRectangleKeyPress":{"__isSmartRef__":true,"id":18416}},"18348":{"varMapping":{"__isSmartRef__":true,"id":18349},"source":"function onFire() {\n this.stopHighlighting()\n if (this.isTracking()) {\n this.stopTracking()\n } else {\n this.startTracking()\n }\n this.onMouseMove()\n}","funcProperties":{"__isSmartRef__":true,"id":18350},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18349":{"this":{"__isSmartRef__":true,"id":18191}},"18350":{"timestamp":{"__isSmartRef__":true,"id":18351},"user":"timfelgentreff","tags":[]},"18351":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:10:52 GMT+0200 (CEST)"},"18352":{"varMapping":{"__isSmartRef__":true,"id":18353},"source":"function onMouseMove(evt) {\n if (!this.isHighlighting()) {\n this.startHighlighting()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18358},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18353":{"this":{"__isSmartRef__":true,"id":18191},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18354}},"18354":{"$super":{"__isSmartRef__":true,"id":18355}},"18355":{"varMapping":{"__isSmartRef__":true,"id":18356},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18357},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18356":{"obj":{"__isSmartRef__":true,"id":18191},"name":"onMouseMove"},"18357":{},"18358":{"timestamp":{"__isSmartRef__":true,"id":18359},"user":"timfelgentreff","tags":[]},"18359":{"isSerializedDate":true,"string":"Thu Jun 07 2012 10:53:50 GMT+0200 (CEST)"},"18360":{"varMapping":{"__isSmartRef__":true,"id":18361},"source":"function onMouseOut() {\n this.stopHighlighting()\n}","funcProperties":{"__isSmartRef__":true,"id":18366},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18361":{"this":{"__isSmartRef__":true,"id":18191},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18362}},"18362":{"$super":{"__isSmartRef__":true,"id":18363}},"18363":{"varMapping":{"__isSmartRef__":true,"id":18364},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18365},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18364":{"obj":{"__isSmartRef__":true,"id":18191},"name":"onMouseOut"},"18365":{},"18366":{"timestamp":{"__isSmartRef__":true,"id":18367},"user":"timfelgentreff","tags":[]},"18367":{"isSerializedDate":true,"string":"Thu Jun 07 2012 10:55:09 GMT+0200 (CEST)"},"18368":{"varMapping":{"__isSmartRef__":true,"id":18369},"source":"function reset() {\n var rect = this.highlightRectangle\n rect.attributeConnections = []\n connect(rect, \"onMouseMove\", rect, \"updateOnMove\")\n connect(rect, \"onMouseUp\", this, \"setTarget\")\n}","funcProperties":{"__isSmartRef__":true,"id":18370},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18369":{"this":{"__isSmartRef__":true,"id":18191}},"18370":{"timestamp":{"__isSmartRef__":true,"id":18371},"user":"tessi","tags":[]},"18371":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:54:48 GMT+0200 (CEST)"},"18372":{"varMapping":{"__isSmartRef__":true,"id":18373},"source":"function isTracking() {\n return !!this.world().firstHand().highlightConnection\n}","funcProperties":{"__isSmartRef__":true,"id":18374},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18373":{"this":{"__isSmartRef__":true,"id":18191}},"18374":{"timestamp":{"__isSmartRef__":true,"id":18375},"user":"lauritz","tags":["state"]},"18375":{"isSerializedDate":true,"string":"Wed Jun 06 2012 18:04:17 GMT+0200 (CEST)"},"18376":{"varMapping":{"__isSmartRef__":true,"id":18377},"source":"function isHighlighting() {\n return !!this.greenRectangle\n}","funcProperties":{"__isSmartRef__":true,"id":18378},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18377":{"this":{"__isSmartRef__":true,"id":18191}},"18378":{"timestamp":{"__isSmartRef__":true,"id":18379},"user":"timfelgentreff","tags":["state"]},"18379":{"isSerializedDate":true,"string":"Thu Jun 07 2012 10:52:02 GMT+0200 (CEST)"},"18380":{"varMapping":{"__isSmartRef__":true,"id":18381},"source":"function currentTarget() {\n return this.owner.target;\n}","funcProperties":{"__isSmartRef__":true,"id":18382},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18381":{"this":{"__isSmartRef__":true,"id":18191}},"18382":{"timestamp":{"__isSmartRef__":true,"id":18383},"user":"lauritz","tags":[]},"18383":{"isSerializedDate":true,"string":"Wed Jun 06 2012 18:26:02 GMT+0200 (CEST)"},"18384":{"varMapping":{"__isSmartRef__":true,"id":18385},"source":"function setTarget() {\n var e = window.event,\n shiftPressed = e.shiftKey,\n target = this.highlightRectangle.coveredMorph()\n\n if (shiftPressed) {\n if (this.currentTargetIsMultiSelection()) {\n this.currentTarget().push(target)\n target = this.currentTarget()\n } else {\n var selection = this.newMultiSelection()\n selection.push(this.currentTarget())\n selection.push(target)\n target = selection\n }\n }\n\n this.stopTracking()\n this.stopHighlighting()\n this.owner.setTarget(target)\n\n if (shiftPressed) {\n this.startTracking()\n this.startHighlighting()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18386},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18385":{"this":{"__isSmartRef__":true,"id":18191}},"18386":{"timestamp":{"__isSmartRef__":true,"id":18387},"user":"timfelgentreff","tags":["selecting"]},"18387":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:38:48 GMT+0200 (CEST)"},"18388":{"varMapping":{"__isSmartRef__":true,"id":18389},"source":"function currentTargetIsMultiSelection() {\n return !!(this.currentTarget() && this.currentTarget().__multi_selection_proxy__)\n}","funcProperties":{"__isSmartRef__":true,"id":18390},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18389":{"this":{"__isSmartRef__":true,"id":18191}},"18390":{"timestamp":{"__isSmartRef__":true,"id":18391},"user":"tessi","tags":[]},"18391":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:31:43 GMT+0200 (CEST)"},"18392":{"varMapping":{"__isSmartRef__":true,"id":18393},"source":"function newMultiSelection() {\n var ms = {\n __multi_selection_proxy__: true,\n targets: [],\n highlights: [],\n setName: function (n) {\n this.name = n\n },\n getName: function () {\n if (!this.name) {\n return \"Unnamed Group\" + \" [\" + this.targets.length + \"]\"\n } else {\n return this.name + \" [\" + this.targets.length + \"]\"\n }\n },\n push: function (obj) {\n var idx = this.targets.indexOf(obj)\n if (idx < 0) {\n this.targets.push(obj)\n } else {\n this.targets.removeAt(idx)\n }\n },\n getFunction: function (name) {\n var funcs = this.privateTargetFunctions()\n return funcs.find(function(f) { return f[0] === name })[1]\n },\n targetFunctions: function () {\n var funcs = this.privateTargetFunctions()\n return funcs.collect(function(f) { return f[0] });\n },\n privateTargetFunctions: function () {\n if (!this.targets.length)\n return []\n\n var that = this;\n var funcs = Functions.own(this.targets[0]).collect(function (fname) {\n return [fname, that.targets[0][fname]]\n })\n this.targets.each(function(target) {\n //debugger\n funcs = funcs.select(function(f){\n return Functions.own(target).include(f[0]) &&\n target[f[0]].toString() == f[1].toString();\n });\n });\n return funcs\n },\n highlight: function (rect) {\n this.removeHighlight()\n this.highlights = this.targets.collect(function (ea) {\n var r = rect.copy()\n ea.world().addMorph(r)\n r.update(ea)\n return r\n })\n },\n removeHighlight: function () {\n this.highlights.each(function (h) {\n h.remove()\n })\n this.highlights = []\n },\n addScript: function (func) {\n var fs = []\n this.targets.each(function (t) {\n fs.push(t.addScript(func))\n })\n return {\n tag: function (t) {\n fs.each(function (f) { f.tag(t) })\n return true\n }\n }\n },\n deleteSelectedScript: function (name) {\n this.targets.each(function (t) {\n delete t[name]\n })\n }\n }\n\n Functions.own(ms).each(function (name) { ms[name].asScriptOf(ms, name) })\n return ms\n}","funcProperties":{"__isSmartRef__":true,"id":18394},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18393":{"this":{"__isSmartRef__":true,"id":18191}},"18394":{"timestamp":{"__isSmartRef__":true,"id":18395},"user":"timfelgentreff","tags":[]},"18395":{"isSerializedDate":true,"string":"Wed Jul 18 2012 10:56:22 GMT+0200 (CEST)"},"18396":{"varMapping":{"__isSmartRef__":true,"id":18397},"source":"function newGreenRectangle() {\n var rect = this.highlightRectangle.copy()\n rect.setFill(Color.rgba(0,58,0,128))\n rect.disableEvents()\n rect.isHalo = true\n return rect\n}","funcProperties":{"__isSmartRef__":true,"id":18398},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18397":{"this":{"__isSmartRef__":true,"id":18191}},"18398":{"timestamp":{"__isSmartRef__":true,"id":18399},"user":"timfelgentreff","tags":["hovering"]},"18399":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:33:50 GMT+0200 (CEST)"},"18400":{"varMapping":{"__isSmartRef__":true,"id":18401},"source":"function stopTracking() {\n var hand = this.world().firstHand(),\n rect = this.highlightRectangle\n \n if (rect) {\n rect.remove()\n }\n hand.attributeConnections.removeAt(\n hand.attributeConnections.indexOf(hand.highlightConnection))\n hand.highlightConnection = null\n this.owner.focus()\n}","funcProperties":{"__isSmartRef__":true,"id":18402},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18401":{"this":{"__isSmartRef__":true,"id":18191}},"18402":{"timestamp":{"__isSmartRef__":true,"id":18403},"user":"tessi","tags":[]},"18403":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:47:06 GMT+0200 (CEST)"},"18404":{"varMapping":{"__isSmartRef__":true,"id":18405},"source":"function startTracking() {\n var hand = this.world().firstHand(),\n rect = this.highlightRectangle\n\n this.world().addMorph(rect)\n if (!hand.highlightConnection) {\n hand.highlightConnection = connect(hand, \"scrollFocusMorph\", rect, \"update\")\n }\n rect.bringToFront()\n rect.focus()\n}","funcProperties":{"__isSmartRef__":true,"id":18406},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18405":{"this":{"__isSmartRef__":true,"id":18191}},"18406":{"timestamp":{"__isSmartRef__":true,"id":18407},"user":"tessi","tags":[]},"18407":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:45:33 GMT+0200 (CEST)"},"18408":{"varMapping":{"__isSmartRef__":true,"id":18409},"source":"function stopHighlighting() {\n if (this.greenRectangle) {\n this.greenRectangle.remove()\n delete this.greenRectangle\n }\n if (this.currentTargetIsMultiSelection()) {\n this.currentTarget().removeHighlight()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18410},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18409":{"this":{"__isSmartRef__":true,"id":18191}},"18410":{"timestamp":{"__isSmartRef__":true,"id":18411},"user":"timfelgentreff","tags":["hovering"]},"18411":{"isSerializedDate":true,"string":"Thu Jun 07 2012 12:07:19 GMT+0200 (CEST)"},"18412":{"varMapping":{"__isSmartRef__":true,"id":18413},"source":"function startHighlighting() {\n if (!this.currentTarget()) {\n return\n }\n // start only if neccessary\n if (!this.greenRectangle) {\n var rect = this.newGreenRectangle(),\n target = this.currentTarget()\n\n if (this.currentTargetIsMultiSelection()) {\n target.highlight(rect)\n } else {\n rect.update(target)\n this.world().addMorph(rect)\n rect.bringToFront()\n }\n this.greenRectangle = rect\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18414},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18413":{"this":{"__isSmartRef__":true,"id":18191}},"18414":{"timestamp":{"__isSmartRef__":true,"id":18415},"user":"tessi","tags":["hovering"]},"18415":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:30:59 GMT+0200 (CEST)"},"18416":{"varMapping":{"__isSmartRef__":true,"id":18417},"source":"function onRectangleKeyPress() {\n debugger\n}","funcProperties":{"__isSmartRef__":true,"id":18418},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18417":{"this":{"__isSmartRef__":true,"id":18191}},"18418":{"timestamp":{"__isSmartRef__":true,"id":18419},"user":"tessi","tags":[]},"18419":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:40:02 GMT+0200 (CEST)"},"18420":{"submorphs":[{"__isSmartRef__":true,"id":18421},{"__isSmartRef__":true,"id":18434}],"scripts":[],"id":"8875BC1F-84C5-42DE-9465-0471C10DA211","shape":{"__isSmartRef__":true,"id":18444},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":18457},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":18458},"lighterFill":{"__isSmartRef__":true,"id":18468},"label":{"__isSmartRef__":true,"id":18421},"name":"NameGroupButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":18477},"attributeConnections":[{"__isSmartRef__":true,"id":18482}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","renderContextTable":{"__isSmartRef__":true,"id":18483},"eventHandler":{"__isSmartRef__":true,"id":18484},"derivationIds":[2588,"22797D34-67DE-4A06-81F0-4DF0A87ADBBC","11C83D57-E873-4516-9585-B62D3DF729A3","8E161AB6-CEB1-4993-B81A-94A59114005E","2F620ADA-09C2-420E-A5CD-A6F8D3E31D8D","3AA42C7C-0734-4F4B-A604-C0D5FA0F06EF","D0F3611A-53F9-4995-996F-E49E21D1AC10","90D64A7D-714C-43E6-A082-69FFC0689CC7","FBAA1361-847D-489E-BC30-80490288D128","2CC76200-BA09-4BE2-9D60-E30E3B1DB993","F920879C-826E-4E92-896E-1AFA6A1CD3EB"],"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":16485},"distanceToDragEvent":{"__isSmartRef__":true,"id":18485},"_Visible":true,"isCopyMorphRef":true,"morphRefId":162,"_Rotation":0,"_Scale":0.990044880209748,"isPressed":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18486},"__LivelyClassName__":"lively.morphic.Button"},"18421":{"submorphs":[],"scripts":[],"id":"E45A2474-9EC2-4444-ACFD-14212511108F","shape":{"__isSmartRef__":true,"id":18422},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":18427},"_MaxTextWidth":106.05027610358519,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":18428},"_Padding":{"__isSmartRef__":true,"id":18429},"owner":{"__isSmartRef__":true,"id":18420},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":18430}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":18432},"eventHandler":{"__isSmartRef__":true,"id":18433},"_HandStyle":"default","_PointerEvents":"none","derivationIds":[2589,"024C5ADE-C4CF-4E8E-BEC5-F93AD4839702","14B58111-F7FC-48C0-B90D-92C2C566AD98","B6252EA2-DF44-4D7B-9976-ACEC742FEBF7","B333DC78-5941-48C2-B69A-FCCF9F8B8A2C","AFFE9117-3F98-4763-B2E1-1F6F354C86ED","B7C73214-57FC-4888-AF8D-058F3959D17E","007F3267-D6A9-45EE-A0A1-C597BFC0CBBC","5E7CFA25-381E-4152-BE2D-90447228DB55","917D67E3-2C69-4476-91B7-86C62446C0E9","ABDDF5BC-386B-4E20-B6D1-312CD2417F38"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":106.05027610358519,"_MinTextHeight":null,"_FontSize":10,"_TextColor":{"__isSmartRef__":true,"id":17727},"__LivelyClassName__":"lively.morphic.Text"},"18422":{"position":{"__isSmartRef__":true,"id":18423},"_Extent":{"__isSmartRef__":true,"id":18424},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":18425},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":18426},"_Padding":{"__isSmartRef__":true,"id":17719},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"18423":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18424":{"x":106.05027610358519,"y":21.000000000000057,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18425":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18426":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"18427":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18428":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18429":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18430":{"style":{"__isSmartRef__":true,"id":18431},"chunkOwner":{"__isSmartRef__":true,"id":18421},"storedString":" Name group","__SourceModuleName__":"Global.lively.morphic.TextCore","_id":"_267","__LivelyClassName__":"lively.morphic.TextChunk"},"18431":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"18432":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"18433":{"morph":{"__isSmartRef__":true,"id":18421},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18434":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18435},"derivationIds":[null,"59B9C10F-5E4E-48BE-AC11-E220B20EA1A9","6D62AF0B-53FD-42BF-A88B-D2E547A364F1","8D560BB3-D273-4254-8671-22E828288124","C3AB4E52-B0E0-48C8-B9C7-0B760F4C4B82","23CB95B6-7C1D-47D9-B722-B538FFC4FE1D","D43E3E4E-9612-4A57-BCB6-B75B818AC68F","F8ED790A-78A9-4AEF-A1F2-43442B51727A","3F66C38F-6768-4DF4-9014-480A45DB5977"],"id":"884BC1D1-3661-42E5-BA92-688C86189198","renderContextTable":{"__isSmartRef__":true,"id":18440},"eventHandler":{"__isSmartRef__":true,"id":18441},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":18442},"owner":{"__isSmartRef__":true,"id":18420},"name":"document_rename.png","showsHalos":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":18443},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__SourceModuleName__":"Global.lively.morphic.Widgets","isCopyMorphRef":true,"morphRefId":163,"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Image"},"18435":{"_Position":{"__isSmartRef__":true,"id":18436},"renderContextTable":{"__isSmartRef__":true,"id":18437},"_Extent":{"__isSmartRef__":true,"id":18438},"_ImageURL":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAApdJREFUeNqMU01IVFEU/t6bN86MMwOOMIkWSUkbdVOSuQxbuMgSdFyMWGuhrRW0UHHlIjclYdJqEAQJjVqIShFEaaE2YAmZIqOOqcxo4zg/zLx5t3Pu/GBE0YHDgXPu+b77nXuu4unpwUlTFOUGhXL8294YhrFmZDLQ1ubmUNXQUKgIISp8vb3DKSqm2Q0DGSE4L+t+vx++2dku5iL/rjLAu9FRMFrOFYOb0mnpqWQSiVgMx8fHiEajMj7v7x+mc9cI4IKpqKgIkVAI4c1NnK6uZqbLnsbG60sLC5idmoKqqng9PS3Z3WVlWFlZwaflZZxzu5tfzczsw+FwyEPs7spKNHd334mn0+JnPC4OYjExMDgofkQiYiMUEt92d8XXnR3xJRgUgaMjwWc1s9nsLS4uPssMiXAYC+PjZ56Ul0vNUjXJ8Y2M4FRFBa42NQG6Dp1ybDrJ1Wpra8t8Pt/A38Y9NjYGr9eLD/PzsJrN2SSB0Gsho+uK5na7M1arFQ+eqQgENrC9HaSiHaWl5zHx0IlEIgGu2+12mE2mArApC6BqJSUlBkmgVPIPds4n6RU42mw2qNSUBzFR1BnA6XQaXHx630ZpF/ml30AYgOsWi0UCsDGIiYauswRCD/b19XXlG45Sqapb7e13RXarpITFpSW4XK4CQEFCOq1qNIyX/IRsB3T4YzB471F9PXiZGOTx0BAu1tXBIDAjN33k1pAlqPlEOB7H+0BAXouLkxMT6OzowM2WFtzu7MSLycnsvlA171ICN+/Tir5dXc1jyZzH40FbW5tkbm1tlVH+B+akmzAJrbimLa6vw0/MJ8xy4mdKJm5UcpGvbBCIQh45PLRoUe0KnA4L9vY+53/jlqOmZgD/YQSy9UuAAQDK5EM/6vIOCwAAAABJRU5ErkJggg==","_Padding":{"__isSmartRef__":true,"id":18439},"_NodeClass":["morph","image"],"_NodeId":"morph-59b9c10f-5e4e-48be-ac11-e220b20ea1a9","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Image"},"18436":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18437":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"18438":{"x":16,"y":16,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18439":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18440":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"18441":{"morph":{"__isSmartRef__":true,"id":18434},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18442":{"x":-0.8692821306790393,"y":2.969834337849022,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18443":{"x":39,"y":-10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18444":{"position":{"__isSmartRef__":true,"id":18445},"_Extent":{"__isSmartRef__":true,"id":18446},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":18447},"_Fill":{"__isSmartRef__":true,"id":18448},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":18455},"_Padding":{"__isSmartRef__":true,"id":18456},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"18445":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18446":{"x":106.05027610358519,"y":21.000000000000057,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18447":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18448":{"stops":[{"__isSmartRef__":true,"id":18449},{"__isSmartRef__":true,"id":18451},{"__isSmartRef__":true,"id":18452},{"__isSmartRef__":true,"id":18453}],"vector":{"__isSmartRef__":true,"id":17739},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"18449":{"offset":0,"color":{"__isSmartRef__":true,"id":18450}},"18450":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18451":{"offset":0.3,"color":{"__isSmartRef__":true,"id":17735}},"18452":{"offset":0.7,"color":{"__isSmartRef__":true,"id":17735}},"18453":{"offset":1,"color":{"__isSmartRef__":true,"id":18454}},"18454":{"r":0.7973333333333334,"g":0.7973333333333334,"b":0.7973333333333334,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18455":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"18456":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18457":{"x":490.0359264595939,"y":9.49203779350779,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18458":{"stops":[{"__isSmartRef__":true,"id":18459},{"__isSmartRef__":true,"id":18461},{"__isSmartRef__":true,"id":18463},{"__isSmartRef__":true,"id":18465}],"vector":{"__isSmartRef__":true,"id":18467},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"18459":{"offset":0,"color":{"__isSmartRef__":true,"id":18460}},"18460":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18461":{"offset":0.4,"color":{"__isSmartRef__":true,"id":18462}},"18462":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18463":{"offset":0.6,"color":{"__isSmartRef__":true,"id":18464}},"18464":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18465":{"offset":1,"color":{"__isSmartRef__":true,"id":18466}},"18466":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18467":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18468":{"stops":[{"__isSmartRef__":true,"id":18469},{"__isSmartRef__":true,"id":18471},{"__isSmartRef__":true,"id":18473},{"__isSmartRef__":true,"id":18475}],"vector":{"__isSmartRef__":true,"id":18467},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"18469":{"offset":0,"color":{"__isSmartRef__":true,"id":18470}},"18470":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18471":{"offset":0.4,"color":{"__isSmartRef__":true,"id":18472}},"18472":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18473":{"offset":0.6,"color":{"__isSmartRef__":true,"id":18474}},"18474":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18475":{"offset":1,"color":{"__isSmartRef__":true,"id":18476}},"18476":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18477":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"partName":"ScriptableButton","comment":"Has a script that is called on button press","changes":[{"__isSmartRef__":true,"id":18478},{"__isSmartRef__":true,"id":18480}],"revisionOnLoad":170561,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"18478":{"date":{"__isSmartRef__":true,"id":18479},"author":"robertkrahn","message":"no comment","id":"0366C0A2-0C8E-4AEB-AAC3-120434134545"},"18479":{"isSerializedDate":true,"string":"Sat Apr 21 2012 14:10:10 GMT+0200 (CEST)"},"18480":{"date":{"__isSmartRef__":true,"id":18481},"author":"huberthesse","message":"Restore scriptable button","id":"7DCED89C-C162-4A42-94E3-6B4D2CBA4932"},"18481":{"isSerializedDate":true,"string":"Tue Jun 12 2012 11:12:07 GMT+0200 (CEST)"},"18482":{"sourceObj":{"__isSmartRef__":true,"id":18420},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":18420},"targetMethodName":"onFire","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"18483":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"18484":{"morph":{"__isSmartRef__":true,"id":18420},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18485":{"x":69.13071786932096,"y":-13.969834337848965,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18486":{"onFire":{"__isSmartRef__":true,"id":18487}},"18487":{"varMapping":{"__isSmartRef__":true,"id":18488},"source":"function onFire() {\n if (!(this.owner.target && this.owner.target.targets)) {\n return\n }\n var that = this\n var oldName = this.owner.target.name\n this.world().prompt(\"Please enter a name for this group\", function (newName) {\n if (newName !== oldName) {\n that.owner.target.targets.each(function (target) {\n if (!target.behaviorGroups) {\n target.behaviorGroups = []\n } else {\n var idx = target.behaviorGroups.indexOf(oldName)\n if (idx > -1) {\n target.behaviorGroups.removeAt(idx)\n }\n }\n if (newName !== \"\") {\n target.behaviorGroups.push(newName)\n }\n })\n if (newName !== \"\") {\n that.owner.target.setName(newName)\n } else {\n that.owner.target.setName(undefined)\n }\n }\n that.get(\"ObjectEditorMorphSelector\").setTarget(that.owner.target)\n }, oldName)\n}","funcProperties":{"__isSmartRef__":true,"id":18489},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18488":{"this":{"__isSmartRef__":true,"id":18420}},"18489":{"timestamp":{"__isSmartRef__":true,"id":18490},"user":"timfelgentreff","tags":[]},"18490":{"isSerializedDate":true,"string":"Thu Jun 14 2012 13:04:34 GMT+0200 (CEST)"},"18491":{"submorphs":[{"__isSmartRef__":true,"id":18492}],"scripts":[],"id":"3A7E169C-0C6A-46CD-94A7-2BA479234D22","shape":{"__isSmartRef__":true,"id":18505},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":18521},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":18508},"lighterFill":{"__isSmartRef__":true,"id":18522},"label":{"__isSmartRef__":true,"id":18492},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":18531},"name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":18532},"list":[],"renderContextTable":{"__isSmartRef__":true,"id":18533},"eventHandler":{"__isSmartRef__":true,"id":18534},"distanceToDragEvent":{"__isSmartRef__":true,"id":18535},"owner":{"__isSmartRef__":true,"id":16485},"textString":"","selection":{"__isSmartRef__":true,"id":18536},"_ClipMode":"visible","prevScroll":[0,0],"listMorph":null,"derivationIds":[221,"4AC64FBA-95AC-42B2-A078-B6DA97889093","E26ED0E6-C4CE-4C82-94D5-175270E8459E","D292F2FC-C2B6-48AE-B779-8CC5868FFA49","53A862EB-032C-4BF0-9B21-58C7E0C0A9B2","CC4D188B-510F-48DE-A0E1-EC8D2CD63F9F","0CD057F2-3517-4849-A69E-1EF79B05ACE8","66EBBB7D-8FA7-4D43-AE78-A18DA3B970BA","A50C1893-4138-4E29-865B-92F53F76D08A","1EC5D2B9-3539-419A-8DD6-CE82DEABB02C","95DC06D5-F4C7-49E2-8A01-110D1B0AFBD0","672DEFAB-2BE5-4C60-9779-3B44694FBEB1","E3476213-5872-492C-BE29-0C6A5A150ED8","AA2F6ABE-1CCB-403D-94DD-8FB371F3DDCE","54B67D51-AB19-40A0-A2A6-EC51F3171CAC","1CF44342-896F-4ACB-847F-7CB3CD10ED5A","279A9257-1667-4E0C-844B-A4E0D02462F0","DDCBD835-4B3F-4B8F-9623-696DA76C3A2C","D2CB17F3-5DD0-4E97-BF99-40A95ABF976B","FA519665-2394-43D3-8DCF-802A158F3291","90519BB5-7419-46E0-B7E3-4C26304F3414","F00DD026-0E85-4DEB-86FB-2031DFA461ED","FBA9015C-2798-45CF-900E-E3D23EC916E4","32F05083-55BF-4399-9E9A-CF165ECCD2B2","504C2B12-3C53-4EC7-9E22-D909EF687B3C","2B60BF9B-64A5-409F-937E-109C1401494E","67F6065A-C7B5-458E-AF96-4016FE633106","32EC019E-E06B-448D-8D35-212E2251F039","1C056D23-1597-4877-B313-88E8B186DE57"],"#startLetters":"getBounds()","isCopyMorphRef":true,"morphRefId":153,"_Rotation":0,"_Scale":1.0000000000000002,"isPressed":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18552},"__LivelyClassName__":"lively.morphic.Button"},"18492":{"submorphs":[],"scripts":[],"id":"0FD4B8D2-1D9E-4C27-85AA-867618D795A9","shape":{"__isSmartRef__":true,"id":18493},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":220,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":18498},"textColor":{"__isSmartRef__":true,"id":18496},"owner":{"__isSmartRef__":true,"id":18491},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":18499}],"padding":{"__isSmartRef__":true,"id":18501},"_Padding":{"__isSmartRef__":true,"id":18501},"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":18502}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"renderContextTable":{"__isSmartRef__":true,"id":18503},"eventHandler":{"__isSmartRef__":true,"id":18504},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":220,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":10,"derivationIds":[222,"30F054A3-7658-405B-8098-B7D87AA8A9ED","556D6E07-45B7-42EC-A486-DE275EF0B034","06B0B080-467A-46CC-8B0D-9C0A9B9A71F1","5E2D96C9-BB9B-4735-8673-A79847435197","B48AA022-2022-4A2A-9090-4D884FB3DFD3","8B2F743A-98C5-45E1-B03C-5019114EAC47","D09C56C3-A2DC-4BDF-B8A1-6365138ECD01","74158C3D-B79E-43E7-B111-48701B10ACE2","B19E117B-E40F-4B9F-86AC-BFB2AAFD5336","4E3B3D72-E52C-44ED-AE32-78939BA1ECFD","2459D1F0-E49C-4882-AB4C-D78C1A496962","3D8D3B02-0459-45C1-A606-D0DB4B07958C","78AAE288-D261-4BEA-9436-C8C31B890B44","2E10F795-9892-4BF7-9A46-BCB90FD6112E","DE32EFA9-C920-42F6-9F2E-7EDABEC006AF","23FBFC79-1927-48FD-8C1C-09FFD7539784","3409506C-9BAE-43DA-BCAF-94392F9646DF","ED94289E-98FC-4126-9EED-25FDC98D5BFC","63C2F1D8-3A1B-464B-9945-1F661D4CFE26","782AAB82-32E9-4A37-9DC0-3118636C2CCE","3F0D9196-2772-4BDE-94B3-D27495D0F5A9","43E52AFA-6C8B-4114-9932-288A4E291FFE","7CFF28F6-178C-4760-9712-E831A19951BF","3DDD7FFF-0E2F-4BE2-B958-B14354BCC295","E4E7E159-9DD3-4A75-9DEC-71BA990EFE63","1EE19927-EDB0-45AB-91BD-68AD6AD28D18","7880FE55-1E59-40AE-B2F0-D330B5E727B4","6F8AF53B-FE73-47C0-A533-8958C48FAE00"],"_TextColor":{"__isSmartRef__":true,"id":17912},"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"18493":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":18494},"_Extent":{"__isSmartRef__":true,"id":18495},"_BorderColor":{"__isSmartRef__":true,"id":18496},"renderContextTable":{"__isSmartRef__":true,"id":18497},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":17904},"_BorderWidth":0,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"18494":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18495":{"x":220,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18496":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18497":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"18498":{"x":2,"y":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18499":{"style":{"__isSmartRef__":true,"id":18500},"chunkOwner":{"__isSmartRef__":true,"id":18492},"_id":"_843","storedString":"Unnamed Group [4]","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"18500":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"18501":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18502":{"sourceObj":{"__isSmartRef__":true,"id":18492},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":18491},"targetMethodName":"selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"18503":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"18504":{"morph":{"__isSmartRef__":true,"id":18492},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18505":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":18506},"_Extent":{"__isSmartRef__":true,"id":18507},"_Fill":{"__isSmartRef__":true,"id":18508},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":18518},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":18519},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":18520},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"18506":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18507":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18508":{"stops":[{"__isSmartRef__":true,"id":18509},{"__isSmartRef__":true,"id":18511},{"__isSmartRef__":true,"id":18513},{"__isSmartRef__":true,"id":18515}],"vector":{"__isSmartRef__":true,"id":18517},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"18509":{"offset":0,"color":{"__isSmartRef__":true,"id":18510}},"18510":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18511":{"offset":0.4,"color":{"__isSmartRef__":true,"id":18512}},"18512":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18513":{"offset":0.6,"color":{"__isSmartRef__":true,"id":18514}},"18514":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18515":{"offset":1,"color":{"__isSmartRef__":true,"id":18516}},"18516":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18517":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18518":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18519":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"18520":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18521":{"x":237.16073103818724,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18522":{"stops":[{"__isSmartRef__":true,"id":18523},{"__isSmartRef__":true,"id":18525},{"__isSmartRef__":true,"id":18527},{"__isSmartRef__":true,"id":18529}],"vector":{"__isSmartRef__":true,"id":18517},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"18523":{"offset":0,"color":{"__isSmartRef__":true,"id":18524}},"18524":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18525":{"offset":0.4,"color":{"__isSmartRef__":true,"id":18526}},"18526":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18527":{"offset":0.6,"color":{"__isSmartRef__":true,"id":18528}},"18528":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18529":{"offset":1,"color":{"__isSmartRef__":true,"id":18530}},"18530":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18531":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18532":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"18533":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"18534":{"morph":{"__isSmartRef__":true,"id":18491},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18535":{"x":122.93118375058827,"y":-11.582832083333244,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18536":{"submorphs":[],"scripts":[],"id":181,"shape":{"__isSmartRef__":true,"id":18537},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":18543},"_MaxTextWidth":580,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":18544},"showsHalos":false,"_FontSize":28,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Title","partsBinMetaInfo":{"__isSmartRef__":true,"id":18545},"_TextColor":{"__isSmartRef__":true,"id":18546},"renderContextTable":{"__isSmartRef__":true,"id":18547},"textChunks":[{"__isSmartRef__":true,"id":18548}],"eventHandler":{"__isSmartRef__":true,"id":18550},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":580,"_MinTextHeight":null,"_Rotation":0,"_Scale":1.002003004005006,"previousSelection":[35,35],"priorSelectionRange":[23,23],"charsReplaced":"WIP / Proof of Concept","lastFindLoc":22,"distanceToDragEvent":{"__isSmartRef__":true,"id":18551},"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","isCopyMorphRef":true,"morphRefId":2,"prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.Text"},"18537":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":18538},"_Extent":{"__isSmartRef__":true,"id":18539},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":18540},"renderContextTable":{"__isSmartRef__":true,"id":18541},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":18542},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"18538":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18539":{"x":580,"y":43,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18540":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18541":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"18542":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18543":{"x":37,"y":23,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18544":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18545":{"partsSpaceName":"PartsBin/Worlds/","__SourceModuleName__":"Global.lively.PartsBin","comment":"For example a world title.","partName":"Title","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"18546":{"r":0,"g":0.309,"b":0.595,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18547":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"18548":{"style":{"__isSmartRef__":true,"id":18549},"chunkOwner":{"__isSmartRef__":true,"id":18536},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","_id":"_269","__LivelyClassName__":"lively.morphic.TextChunk"},"18549":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"18550":{"morph":{"__isSmartRef__":true,"id":18536},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18551":{"x":221,"y":-12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18552":{"createListMorph":{"__isSmartRef__":true,"id":18553},"removeList":{"__isSmartRef__":true,"id":18557},"reset":{"__isSmartRef__":true,"id":18561},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":18565},"onMouseDown":{"__isSmartRef__":true,"id":18569},"setTargetOfPane":{"__isSmartRef__":true,"id":18577},"setTargetToListSelection":{"__isSmartRef__":true,"id":18581},"onBlur":{"__isSmartRef__":true,"id":18585},"setTarget":{"__isSmartRef__":true,"id":18593},"setTargetOnSelection":{"__isSmartRef__":true,"id":18597},"getItems":{"__isSmartRef__":true,"id":18601},"createGroupTree":{"__isSmartRef__":true,"id":18605},"createWorldTree":{"__isSmartRef__":true,"id":18609},"highlightCurrentTarget":{"__isSmartRef__":true,"id":18613},"setHighlight":{"__isSmartRef__":true,"id":18617},"removeHighlight":{"__isSmartRef__":true,"id":18621}},"18553":{"varMapping":{"__isSmartRef__":true,"id":18554},"source":"function createListMorph() {\n var items = this.getItems(),\n height = this.owner.getExtent().y,\n bounds = new Rectangle(0, this.getExtent().y, this.getExtent().x, height),\n that = this\n\n var listMorph = new lively.morphic.Tree();\n listMorph.setName(\"MorphSelectorTree\")\n listMorph.getLayouter().defer()\n listMorph.setItem(items);\n listMorph.setBounds(bounds)\n listMorph.disableGrabbing()\n listMorph.disableDragging()\n listMorph.setBorderWidth(1)\n listMorph.setBorderColor(Color.rgb(150,150,150))\n listMorph.childNodes.each(function (n) {\n n.expand()\n })\n this.highlightCurrentTarget(listMorph)\n\n return listMorph;\n}","funcProperties":{"__isSmartRef__":true,"id":18555},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18554":{"this":{"__isSmartRef__":true,"id":18491}},"18555":{"timestamp":{"__isSmartRef__":true,"id":18556},"user":"lauritz","tags":[]},"18556":{"isSerializedDate":true,"string":"Sat Jun 23 2012 00:49:08 GMT+0200 (CEST)"},"18557":{"varMapping":{"__isSmartRef__":true,"id":18558},"source":"function removeList() {\n if (this.listMorph && !this.listMorph.stayUp) {\n this.listMorph.remove()\n this.listMorph = null\n } else {\n this.listMorph && delete this.listMorph.stayUp\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18559},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18558":{"this":{"__isSmartRef__":true,"id":18491}},"18559":{"timestamp":{"__isSmartRef__":true,"id":18560},"user":"timfelgentreff","tags":[]},"18560":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:43:28 GMT+0200 (CEST)"},"18561":{"varMapping":{"__isSmartRef__":true,"id":18562},"source":"function reset() {\n this.list = [];\n this.setLabel('empty');\n this.label.setAlign('left');\n this.removeList();\n this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'});\n}","funcProperties":{"__isSmartRef__":true,"id":18563},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18562":{"this":{"__isSmartRef__":true,"id":18491}},"18563":{"timestamp":{"__isSmartRef__":true,"id":18564},"user":"lauritz","tags":[]},"18564":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:34:06 GMT+0100 (CET)"},"18565":{"varMapping":{"__isSmartRef__":true,"id":18566},"source":"function displayTopLevelMorphs() {\n var listMorph = this.createListMorph();\n listMorph.setVisible(false)\n this.addMorph(listMorph)\n this.listMorph = listMorph\n\n // need temp here, doesn't work otherwise, strange errors... Javascript WAT\n var layouting = function() {\n listMorph.setVisible(true)\n listMorph.getLayouter().resume()\n }\n layouting.morphicDelay(1)\n}","funcProperties":{"__isSmartRef__":true,"id":18567},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18566":{"this":{"__isSmartRef__":true,"id":18491}},"18567":{"timestamp":{"__isSmartRef__":true,"id":18568},"user":"timfelgentreff","tags":[]},"18568":{"isSerializedDate":true,"string":"Tue Jun 19 2012 11:22:44 GMT+0200 (CEST)"},"18569":{"varMapping":{"__isSmartRef__":true,"id":18570},"source":"function onMouseDown(evt) {\n if (evt.isCommandKey() || evt.isRightMouseButtonDown()) return $super(evt);\n if (this.listMorph) {\n // clicked on morph, not the list, not the list's scrollbar\n if (evt.target === this.renderContext().shapeNode)\n this.removeList();\n } else {\n this.displayTopLevelMorphs();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18575},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18570":{"this":{"__isSmartRef__":true,"id":18491},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18571}},"18571":{"$super":{"__isSmartRef__":true,"id":18572}},"18572":{"varMapping":{"__isSmartRef__":true,"id":18573},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18574},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18573":{"obj":{"__isSmartRef__":true,"id":18491},"name":"onMouseDown"},"18574":{},"18575":{"timestamp":{"__isSmartRef__":true,"id":18576},"user":"timfelgentreff","tags":[]},"18576":{"isSerializedDate":true,"string":"Mon Jun 18 2012 21:03:45 GMT+0200 (CEST)"},"18577":{"varMapping":{"__isSmartRef__":true,"id":18578},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.label.setAlign('left');\n}","funcProperties":{"__isSmartRef__":true,"id":18579},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18578":{"this":{"__isSmartRef__":true,"id":18491}},"18579":{"timestamp":{"__isSmartRef__":true,"id":18580},"user":"lauritz","tags":[]},"18580":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:30:42 GMT+0100 (CET)"},"18581":{"varMapping":{"__isSmartRef__":true,"id":18582},"source":"function setTargetToListSelection() { \n var selection = this.listMorph.selection;\n this.removeList();\n if (!selection) return;\n if (this.owner.scriptPane.hasChanged()) {\n var that = this;\n var callback = function (confirmed) {\n if (confirmed) that.setTargetOfPane(selection);\n }\n this.owner.confirmUnsavedChanges(callback);\n } else {\n this.setTargetOfPane(selection);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18583},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18582":{"this":{"__isSmartRef__":true,"id":18491}},"18583":{"timestamp":{"__isSmartRef__":true,"id":18584},"user":"lauritz","tags":[]},"18584":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:06:48 GMT+0100 (CET)"},"18585":{"varMapping":{"__isSmartRef__":true,"id":18586},"source":"function onBlur(evt) {\n $super(evt);\n \n // workaround - otherwise other morphs get this event\n var target = evt.world.clickedOnMorph\n if (!this.listMorph || !this.listMorph.isAncestorOf(target)) {\n this.removeList();\n } else {\n this.focus()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18591},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18586":{"this":{"__isSmartRef__":true,"id":18491},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18587}},"18587":{"$super":{"__isSmartRef__":true,"id":18588}},"18588":{"varMapping":{"__isSmartRef__":true,"id":18589},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18590},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18589":{"obj":{"__isSmartRef__":true,"id":18491},"name":"onBlur"},"18590":{},"18591":{"timestamp":{"__isSmartRef__":true,"id":18592},"user":"timfelgentreff","tags":[]},"18592":{"isSerializedDate":true,"string":"Tue Jun 19 2012 11:01:12 GMT+0200 (CEST)"},"18593":{"varMapping":{"__isSmartRef__":true,"id":18594},"source":"function setTarget(target) {\n this.label.setTextString(target.getName() || target.toString());\n}","funcProperties":{"__isSmartRef__":true,"id":18595},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18594":{"this":{"__isSmartRef__":true,"id":18491}},"18595":{"timestamp":{"__isSmartRef__":true,"id":18596},"user":"lauritz","tags":[]},"18596":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:29:39 GMT+0100 (CET)"},"18597":{"varMapping":{"__isSmartRef__":true,"id":18598},"source":"function setTargetOnSelection() {\n if (this.listMorph && this.listMorph.renderContext() && this.listMorph.renderContext().listNode.value) {\n this.setTargetToListSelection();\n this.stopStepping();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18599},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18598":{"this":{"__isSmartRef__":true,"id":18491}},"18599":{"timestamp":{"__isSmartRef__":true,"id":18600},"user":"lauritz","tags":[]},"18600":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:12:06 GMT+0100 (CET)"},"18601":{"varMapping":{"__isSmartRef__":true,"id":18602},"source":"function getItems() {\n var worldEntry = this.createWorldTree(),\n groups = this.createGroupTree()\n\n return {children: [groups, worldEntry]};\n}","funcProperties":{"__isSmartRef__":true,"id":18603},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18602":{"this":{"__isSmartRef__":true,"id":18491}},"18603":{"timestamp":{"__isSmartRef__":true,"id":18604},"user":"timfelgentreff","tags":[]},"18604":{"isSerializedDate":true,"string":"Mon Jun 18 2012 20:56:14 GMT+0200 (CEST)"},"18605":{"varMapping":{"__isSmartRef__":true,"id":18606},"source":"function createGroupTree() {\n // groups\n var morphList = this.world().indentedListItemsOfMorphNames(),\n that = this,\n children = morphList.collect(function (element) {\n return element.value.behaviorGroups\n }).compact().flatten().uniq().sort().collect(function (groupName) {\n var selection = that.get(\"MagnifierButton\").newMultiSelection()\n selection.targets = morphList.select(function (element) {\n return element.value.behaviorGroups &&\n element.value.behaviorGroups.indexOf(groupName) >= 0\n }).collect(function (element) {\n return element.value\n })\n selection.setName(groupName)\n var listName = groupName + \" [\" + selection.targets.length + \"]\"\n return {\n isListItem: true,\n selectionString: listName,\n name: listName,\n editorPane: that.owner,\n value: selection\n }\n })\n \n children.each(function (c) {\n Object.addScript(c, function onSelect() {\n this.editorPane.setTarget(this.value)\n })\n })\n \n if (children.length === 0) {\n children = null\n }\n \n return {\n isListItem: true,\n selectionString: 'Groups',\n name: 'Groups',\n value: 'groups',\n children: children\n };\n}","funcProperties":{"__isSmartRef__":true,"id":18607},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18606":{"this":{"__isSmartRef__":true,"id":18491}},"18607":{"timestamp":{"__isSmartRef__":true,"id":18608},"user":"timfelgentreff","tags":[]},"18608":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:27:07 GMT+0200 (CEST)"},"18609":{"varMapping":{"__isSmartRef__":true,"id":18610},"source":"function createWorldTree() {\n var scripts = [\n function onSelect(tree) {\n if (window.event.isShiftDown()) {\n this.editorPane.get(\"MorphSelectorTree\").stayUp = true\n if (!this.editorPane.target) {\n var targets = []\n } else if (this.editorPane.target.isMorph) {\n var targets = [this.editorPane.target]\n } else {\n var targets = this.editorPane.target.targets\n }\n var idx = targets.indexOf(this.value)\n if (idx >= 0) {\n this.selector.removeHighlight(tree)\n targets.removeAt(idx)\n } else {\n this.selector.setHighlight(tree)\n targets.push(this.value)\n }\n if (targets.length === 0) {\n this.editorPane.reset()\n } else {\n this.editorPane.setTarget(targets)\n }\n } else {\n this.editorPane.setTarget(this.value)\n }\n }\n ],\n properties = {\n editorPane: this.owner,\n selector: this\n }\n \n return {\n name: 'World',\n value: this.world(),\n editorPane: this.owner,\n selector: this,\n onSelect: scripts[0],\n children: this.world().submorphs.invoke('treeItemsOfMorphNames',\n {scripts: scripts,\n properties: properties,\n showUnnamed: true}).compact()\n };\n}","funcProperties":{"__isSmartRef__":true,"id":18611},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18610":{"this":{"__isSmartRef__":true,"id":18491}},"18611":{"timestamp":{"__isSmartRef__":true,"id":18612},"user":"timfelgentreff","tags":[]},"18612":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:48:12 GMT+0200 (CEST)"},"18613":{"varMapping":{"__isSmartRef__":true,"id":18614},"source":"function highlightCurrentTarget(tree) {\n var target = this.owner.target,\n nodes = tree.childNodes,\n highlightNode\n\n if (!target) {\n return\n } else if (target.isMorph) {\n var expandables = [target],\n nextOwner = target,\n currentNode\n while (nextOwner.owner) {\n expandables.push(nextOwner.owner)\n nextOwner = nextOwner.owner\n }\n expandables.reverse().each(function (m) {\n currentNode = nodes.detect(function (n) {\n return n.item.value === m\n })\n if (currentNode) {\n nodes = currentNode.childNodes\n if (!nodes && currentNode.item.children) {\n currentNode.expand()\n nodes = currentNode.childNodes\n }\n } else {\n return\n }\n })\n if (currentNode && currentNode.item.value === target) {\n highlightNode = currentNode\n }\n } else {\n var groupNodes = nodes.detect(function (n) {\n return n.item.value === 'groups'\n }).childNodes\n highlightNode = groupNodes.detect(function (n) {\n // group names are unique\n return n.item.value.name === target.name\n })\n }\n\n if (highlightNode) {\n this.setHighlight(highlightNode)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18615},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18614":{"this":{"__isSmartRef__":true,"id":18491}},"18615":{"timestamp":{"__isSmartRef__":true,"id":18616},"user":"timfelgentreff","tags":[]},"18616":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:41:55 GMT+0200 (CEST)"},"18617":{"varMapping":{"__isSmartRef__":true,"id":18618},"source":"function setHighlight(tree) {\n tree.submorphs[0].setFill(Color.rgb(218,218,218))\n}","funcProperties":{"__isSmartRef__":true,"id":18619},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18618":{"this":{"__isSmartRef__":true,"id":18491}},"18619":{"timestamp":{"__isSmartRef__":true,"id":18620},"user":"timfelgentreff","tags":[]},"18620":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:42:05 GMT+0200 (CEST)"},"18621":{"varMapping":{"__isSmartRef__":true,"id":18622},"source":"function removeHighlight(tree) {\n tree.submorphs[0].setFill(Color.rgb(255,255,255))\n}","funcProperties":{"__isSmartRef__":true,"id":18623},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18622":{"this":{"__isSmartRef__":true,"id":18491}},"18623":{"timestamp":{"__isSmartRef__":true,"id":18624},"user":"timfelgentreff","tags":[]},"18624":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:46:05 GMT+0200 (CEST)"},"18625":{"target":{"__isSmartRef__":true,"id":16485},"selector":"update","args":[],"stopped":false,"tickTime":500,"suspended":false,"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.TargetScript"},"18626":{"position":{"__isSmartRef__":true,"id":18627},"_Extent":{"__isSmartRef__":true,"id":18628},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":18629},"_Fill":{"__isSmartRef__":true,"id":18630},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":18631},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":18632},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"18627":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18628":{"x":909.0285365288845,"y":526.612532614436,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18629":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18630":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18631":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"18632":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18633":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"Edit scripts and connections of a specific morph.","migrationLevel":4,"partName":"ObjectEditorPane","changes":[{"__isSmartRef__":true,"id":18634}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"18634":{"date":{"__isSmartRef__":true,"id":18635},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"18635":{"isSerializedDate":true,"string":"Fri Oct 21 2011 00:39:30 GMT+0200 (CEST)"},"18636":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"18637":{"morph":{"__isSmartRef__":true,"id":16485},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18638":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"18639":{"x":350.2386236582805,"y":-3.2455173507596555,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18640":{"x":0.971126750461849,"y":21.45669012569269,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18641":{},"18642":{"displayInitialScript":{"__isSmartRef__":true,"id":18643},"displayJavaScriptSource":{"__isSmartRef__":true,"id":18647},"displaySourceForConnection":{"__isSmartRef__":true,"id":18651},"displaySourceForScript":{"__isSmartRef__":true,"id":18655},"generateSourceForConnection":{"__isSmartRef__":true,"id":18659},"generateSourceForScript":{"__isSmartRef__":true,"id":18663},"generateTargetCode":{"__isSmartRef__":true,"id":18667},"newConnection":{"__isSmartRef__":true,"id":18671},"newScript":{"__isSmartRef__":true,"id":18675},"reset":{"__isSmartRef__":true,"id":18679},"selectChangedContent":{"__isSmartRef__":true,"id":18683},"setTarget":{"__isSmartRef__":true,"id":18687},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":18691},"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":18695},"updateLists":{"__isSmartRef__":true,"id":18699},"onShutdown":{"__isSmartRef__":true,"id":18703},"confirmUnsavedChanges":{"__isSmartRef__":true,"id":18707},"update":{"__isSmartRef__":true,"id":18711},"ensureAnnotationLayer":{"__isSmartRef__":true,"id":18715},"migrateOldScriptAnnotations":{"__isSmartRef__":true,"id":18719},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":18723},"printTags":{"__isSmartRef__":true,"id":18731},"setTag":{"__isSmartRef__":true,"id":18735},"runScript":{"__isSmartRef__":true,"id":18739},"openPartTestRunner":{"__isSmartRef__":true,"id":18743}},"18643":{"varMapping":{"__isSmartRef__":true,"id":18644},"source":"function displayInitialScript() {\n if (this.scriptList.getList().size() > 1) {\n this.scriptList.preselectItem();\n } else if (this.connectionList.getList().size() > 1) {\n this.connectionList.preselectItem();\n } else {\n this.scriptList.selectAt(0);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18645},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18644":{"this":{"__isSmartRef__":true,"id":16485}},"18645":{"timestamp":{"__isSmartRef__":true,"id":18646},"user":"lauritz","tags":[]},"18646":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:13:43 GMT+0100 (CET)"},"18647":{"varMapping":{"__isSmartRef__":true,"id":18648},"source":"function displayJavaScriptSource(jsCode) {\n if (this.scriptPane.hasChanged()) {\n var that = this;\n var callback = function(confirmed) {\n if (confirmed) that.scriptPane.display(jsCode)\n };\n this.confirmUnsavedChanges(callback);\n } else {\n this.scriptPane.display(jsCode);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18649},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18648":{"this":{"__isSmartRef__":true,"id":16485}},"18649":{"timestamp":{"__isSmartRef__":true,"id":18650},"user":"lauritz","tags":[]},"18650":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"18651":{"varMapping":{"__isSmartRef__":true,"id":18652},"source":"function displaySourceForConnection(connection) {\n var code = \"\", that = this;\n if (connection === undefined) return;\n if (connection === null) {\n this.sortedConnectionNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForConnection(each[1])).concat(\"\\n\\n\");\n });\n code = code.substring(0, code.length - \"\\n\\n\".length - 1);\n } else {\n code = this.generateSourceForConnection(connection);\n }\n this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":18653},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18652":{"this":{"__isSmartRef__":true,"id":16485}},"18653":{"timestamp":{"__isSmartRef__":true,"id":18654},"user":"conradcalmez","tags":[]},"18654":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:59:30 GMT+0100 (CET)"},"18655":{"varMapping":{"__isSmartRef__":true,"id":18656},"source":"function displaySourceForScript(scriptName) {\n var code = \"\",\n that = this;\n if (scriptName === null) {\n this.sortedScriptNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForScript(each)).concat(\"\\n\\n\\n\");\n });\n code = code.substring(0, code.length - \"\\n\\n\\n\".length - 1);\n } else {\n code = this.generateSourceForScript(scriptName); \n }\n this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":18657},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18656":{"this":{"__isSmartRef__":true,"id":16485}},"18657":{"timestamp":{"__isSmartRef__":true,"id":18658},"user":"lauritz","tags":[]},"18658":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:51:37 GMT+0100 (CET)"},"18659":{"varMapping":{"__isSmartRef__":true,"id":18660},"source":"function generateSourceForConnection(connection) {\n var c = connection, targetObject = this.target;\n\tif (!c.getTargetObj() || !c.getTargetObj().name || \n\t\t!c.getSourceObj() || !c.getSourceObj().name) return String(c);\n\n\tvar optConfig = []\n\tif (c.converterString)\n\t\toptConfig.push(\"converter: \\n\\t\" + c.converterString)\n\tif (c.updaterString)\n\t\toptConfig.push(\"updater: \\n\\t\" + c.updaterString)\n\treturn Strings.format('connect(%s, \"%s\", %s, \"%s\", {%s});', \n\t\t\tthis.generateTargetCode(targetObject, c.getSourceObj()),\n\t\t\tc.getSourceAttrName(),\n\t\t\tthis.generateTargetCode(targetObject, c.getTargetObj()),\n\t\t\tc.getTargetMethodName(),\n\t\t\toptConfig.join(','));\n\n}","funcProperties":{"__isSmartRef__":true,"id":18661},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18660":{"this":{"__isSmartRef__":true,"id":16485}},"18661":{"timestamp":{"__isSmartRef__":true,"id":18662},"user":"lauritz","tags":[]},"18662":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"18663":{"varMapping":{"__isSmartRef__":true,"id":18664},"source":"function generateSourceForScript(scriptName) {\n var script = this.target[scriptName],\n annotation = '',\n scriptSource = '',\n tagScript = '';\n\n if (!script && !this.target.isMorph) {\n script = this.target.getFunction(scriptName)\n }\n\n if (script.timestamp && script.user) \n annotation = Strings.format('// changed at %s by %s \\n', script.timestamp, script.user);\n scriptSource = Strings.format('this.addScript(%s)', script.getOriginal());\n tagScript = Strings.format('.tag(%s);', this.printTags(script));\n\n return annotation + scriptSource + tagScript;\n}","funcProperties":{"__isSmartRef__":true,"id":18665},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18664":{"this":{"__isSmartRef__":true,"id":16485}},"18665":{"timestamp":{"__isSmartRef__":true,"id":18666},"user":"tessi","tags":[]},"18666":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:17:15 GMT+0200 (CEST)"},"18667":{"varMapping":{"__isSmartRef__":true,"id":18668},"source":"function generateTargetCode(baseObject, targetObject) {\n\tvar name = targetObject.name;\n\tif (baseObject === targetObject) \n\t\treturn \"this\";\n\telse if (baseObject[name] === targetObject) \n\t\treturn \"this.\" + name;\n\telse if (baseObject.testObject === targetObject) \n\t\treturn \"this.testObject\";\n\telse if (baseObject.get(name) === targetObject) \n\t\treturn 'this.get(\"' + name + '\")';\n\telse if (targetObject instanceof Morph) \n\t\treturn '$morph(\"' + name + '\")';\n\telse \n\t\treturn \"????\";\n}","funcProperties":{"__isSmartRef__":true,"id":18669},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18668":{"this":{"__isSmartRef__":true,"id":16485}},"18669":{"timestamp":{"__isSmartRef__":true,"id":18670},"user":"lauritz","tags":[]},"18670":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"18671":{"varMapping":{"__isSmartRef__":true,"id":18672},"source":"function newConnection() {\n if (this.target) {\n var code = \"connect(SOURCE, SOURCE_PROPERTY, TARGET, TARGET_PROPERTY);\";\n this.displayJavaScriptSource(code);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18673},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18672":{"this":{"__isSmartRef__":true,"id":16485}},"18673":{"timestamp":{"__isSmartRef__":true,"id":18674},"user":"lauritz","tags":[]},"18674":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"18675":{"varMapping":{"__isSmartRef__":true,"id":18676},"source":"function newScript() {\n if (this.target) {\n var code = \"this.addScript(function SCRIPTNAME() {\\n \\n}).tag([]);\";\n this.displayJavaScriptSource(code);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18677},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18676":{"this":{"__isSmartRef__":true,"id":16485}},"18677":{"timestamp":{"__isSmartRef__":true,"id":18678},"user":"lauritz","tags":[]},"18678":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:24:25 GMT+0100 (CET)"},"18679":{"varMapping":{"__isSmartRef__":true,"id":18680},"source":"function reset() {\n this.scriptPane = this.get('ObjectEditorScriptPane')\n this.scriptList = this.get('ObjectEditorScriptList')\n this.connectionList = this.get('ObjectEditorConnectionList')\n this.morphSelector = this.get('ObjectEditorMorphSelector')\n this.target = null;\n this.scriptPane.reset();\n this.scriptList.setList();\n this.scriptList.selection = null;\n this.connectionList.setList();\n this.connectionList.selection = null;\n this.morphSelector.reset();\n this.tagChooser.reset();\n this.currentTag = null;\n this.stopStepping();\n}","funcProperties":{"__isSmartRef__":true,"id":18681},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18680":{"this":{"__isSmartRef__":true,"id":16485}},"18681":{"timestamp":{"__isSmartRef__":true,"id":18682},"user":"conradcalmez","tags":[]},"18682":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:57:50 GMT+0100 (CET)"},"18683":{"varMapping":{"__isSmartRef__":true,"id":18684},"source":"function selectChangedContent(source) {\n\n var addScriptRegex = /this\\.addScript\\s*\\(\\s*function\\s*([^\\(]*)/g;\n var addScriptMatches = [];\n var addScriptMatch = addScriptRegex.exec(source);\n while (addScriptMatch) {\n addScriptMatches.push(addScriptMatch[1]);\n addScriptMatch = addScriptRegex.exec(source);\n }\n \n // if scripts were added, select either a specific one or all\n if (addScriptMatches.length > 0) { \n if (addScriptMatches.length === 1) {\n return this.scriptList.selectAddedScript(addScriptMatches[0]);\n }\n return this.scriptList.selectAt(0);\n }\n\n var connectionRegex = \n /connect\\(\\s*([^,]*)\\s*,\\s*\"([^,]*)\"\\s*,\\s*([^,]*)\\s*,\\s*\"([^,]*)\"/g;\n var connectionMatches = [];\n var connectionMatch = connectionRegex.exec(source);\n while (connectionMatch) {\n connectionMatches.push(connectionMatch);\n connectionMatch = connectionRegex.exec(source);\n }\n\n // if connections were made, select either a specific one or all\n if (connectionMatches.length > 0) {\n if (connectionMatches.length === 1) {\n var match = connectionMatches[0];\n for (var i=0; i 0 && morph.all(function (e) {\n return e.isMorph\n })) {\n var group = this.get(\"MagnifierButton\").newMultiSelection()\n group.targets = morph\n this.target = morph = group\n }\n\n this.migrateOldScriptAnnotations();\n\n this.morphSelector.setTarget(morph);\n this.scriptPane.setTarget(morph);\n\n this.updateLists();\n this.displayInitialScript();\n\n this.startStepping(500/*ms*/, 'update'); \n}","funcProperties":{"__isSmartRef__":true,"id":18689},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18688":{"this":{"__isSmartRef__":true,"id":16485}},"18689":{"timestamp":{"__isSmartRef__":true,"id":18690},"user":"timfelgentreff","tags":[]},"18690":{"isSerializedDate":true,"string":"Mon Jun 18 2012 18:44:44 GMT+0200 (CEST)"},"18691":{"varMapping":{"__isSmartRef__":true,"id":18692},"source":"function sortedConnectionNamesOfObj(obj) {\n if (\"attributeConnections\" in obj) {\n return obj.attributeConnections.\n sortBy(function(each) {return name.toLowerCase() }).\n collect(function(each) {return [each.getSourceAttrName(), each]});\n } else {\n return [];\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18693},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18692":{"this":{"__isSmartRef__":true,"id":16485}},"18693":{"timestamp":{"__isSmartRef__":true,"id":18694},"user":"lauritz","tags":[]},"18694":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"18695":{"varMapping":{"__isSmartRef__":true,"id":18696},"source":"function sortedScriptNamesOfObj(obj) {\n\n if (!obj)\n return [];\n\n if (obj && obj.isMorph) {\n \n if (!Functions.own(obj) || Functions.own(obj).size() == 0) return [];\n\n var selectedScripts = Functions.own(obj).\n \tselect(function(name) { return obj[name].getOriginal().hasLivelyClosure }).\n \tsortBy(function(name) { return name.toLowerCase() });\n\n if (!this.currentTag) return selectedScripts;\n\n var that = this;\n var selectedScripts = selectedScripts.select(function(scriptName) {\n return obj[scriptName].tags && \n obj[scriptName].tags.include(that.currentTag);\n });\n\n return selectedScripts;\n } else {\n // obj is a multiselection-target group \n return obj.targetFunctions();\n }\n\n \n}","funcProperties":{"__isSmartRef__":true,"id":18697},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18696":{"this":{"__isSmartRef__":true,"id":16485}},"18697":{"timestamp":{"__isSmartRef__":true,"id":18698},"user":"lauritz","tags":[]},"18698":{"isSerializedDate":true,"string":"Thu Jun 07 2012 15:55:01 GMT+0200 (CEST)"},"18699":{"varMapping":{"__isSmartRef__":true,"id":18700},"source":"function updateLists() {\n\n var scriptListItems = this.sortedScriptNamesOfObj(this.target);\n scriptListItems.unshift(\"-- ALL --\");\n if (!Arrays.equal(scriptListItems, this.scriptList.getList())) {\n this.scriptList.setList(scriptListItems);\n }\n \n var connectionListItems = this.sortedConnectionNamesOfObj(this.target);\n connectionListItems.unshift(\"-- ALL --\");\n if (!Arrays.equal(connectionListItems, this.connectionList.getList())) {\n this.connectionList.setList(connectionListItems);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":18701},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18700":{"this":{"__isSmartRef__":true,"id":16485}},"18701":{"timestamp":{"__isSmartRef__":true,"id":18702},"user":"lauritz","tags":[]},"18702":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"18703":{"varMapping":{"__isSmartRef__":true,"id":18704},"source":"function onShutdown() {\n if (this.scriptPane.hasChanged()) {\n var that = this;\n // callback is executed asynchronously since waits on user input.\n // however, the editor should not be closed before input\n // therefore, we patch the remove method until the user reacted\n this.owner.remove = function() {};\n var callback = function(confirmed) {\n if (that.owner.state === \"shutdown\") delete that.owner.state;\n that.owner.remove = that.owner.__proto__.remove;\n if (confirmed) that.owner.remove();\n }\n this.confirmUnsavedChanges(callback);\n } \n}","funcProperties":{"__isSmartRef__":true,"id":18705},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18704":{"this":{"__isSmartRef__":true,"id":16485}},"18705":{"timestamp":{"__isSmartRef__":true,"id":18706},"user":"lauritz","tags":[]},"18706":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"18707":{"varMapping":{"__isSmartRef__":true,"id":18708},"source":"function confirmUnsavedChanges(callback) {\n var message = \"Discard unsaved changes?\";\n var dialog = new lively.morphic.ConfirmDialog(message, callback);\n\n return this.world().openDialog(dialog);\n}","funcProperties":{"__isSmartRef__":true,"id":18709},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18708":{"this":{"__isSmartRef__":true,"id":16485}},"18709":{"timestamp":{"__isSmartRef__":true,"id":18710},"user":"lauritz","tags":[]},"18710":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:52:56 GMT+0100 (CET)"},"18711":{"varMapping":{"__isSmartRef__":true,"id":18712},"source":"function update() {\n // alias to conform to convention\n this.updateLists();\n}","funcProperties":{"__isSmartRef__":true,"id":18713},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18712":{"this":{"__isSmartRef__":true,"id":16485}},"18713":{"timestamp":{"__isSmartRef__":true,"id":18714},"user":"lauritz","tags":[]},"18714":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"18715":{"varMapping":{"__isSmartRef__":true,"id":18716},"source":"function ensureAnnotationLayer() {\n module('lively.LayerableMorphs').load(true);\n\n if (\"ScriptAnnotationLayer\" in Global) return;\n \n cop.create(\"ScriptAnnotationLayer\");\n ScriptAnnotationLayer.refineClass(\n lively.morphic.Morph,{\n \n addScript: function(funcOrString) {\n var func = Function.fromString(funcOrString),\n oldFunction = this[func.name],\n changed = oldFunction && oldFunction.toString() !== func.toString();\n \n var result = cop.proceed.apply(this, arguments);\n\n if (oldFunction && !changed) {\n this[func.name].setTimestampAndUser(oldFunction.timestamp, oldFunction.user);\n } else {\n this[func.name].setTimestampAndUser();\n }\n return result;\n },\n\n tagScript: function(scriptName, tags) {\n return this[scriptName].tag(tags);\n }\n\n }); \n ScriptAnnotationLayer.refineObject(\n Function.prototype,{\n\n setTimestampAndUser: function(timestamp, user) {\n this.setProperty('timestamp', timestamp || new Date());\n this.setProperty('user', user || (lively.LocalStorage && lively.LocalStorage.get('UserName')));\n },\n \n tag: function(tags) {\n var tags = (typeof tags === 'string') ? [tags] : tags;\n this.setProperty(\"tags\", tags);\n return true; \n } \n });\n\n}","funcProperties":{"__isSmartRef__":true,"id":18717},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18716":{"this":{"__isSmartRef__":true,"id":16485}},"18717":{"timestamp":{"__isSmartRef__":true,"id":18718},"user":"lauritz","tags":[]},"18718":{"isSerializedDate":true,"string":"Tue Dec 13 2011 22:03:17 GMT+0100 (CET)"},"18719":{"varMapping":{"__isSmartRef__":true,"id":18720},"source":"function migrateOldScriptAnnotations() {\n var target = this.target;\n\n if (!target) return;\n\n if (target.scriptAnnotations) {\n Functions.own(target).forEach(function (scriptName){\n var scriptAnnotation = target.scriptAnnotations[scriptName];\n if (!scriptAnnotation) return;\n if (scriptAnnotation.user) {\n target[scriptName].setProperty('user', scriptAnnotation.user);\n }\n if (scriptAnnotation.time) {\n target[scriptName].setProperty('timestamp', scriptAnnotation.time);\n }\n if (scriptAnnotation.categories) {\n target[scriptName].setProperty('tags', scriptAnnotation.categories);\n }\n });\n delete target.scriptAnnotations;\n } \n\n Functions.own(target).forEach(function (scriptName) {\n if (target[scriptName].categories) {\n target[scriptName].tags = target[scriptName].categories;\n delete target[scriptName].categories;\n } \n });\n\n}","funcProperties":{"__isSmartRef__":true,"id":18721},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18720":{"this":{"__isSmartRef__":true,"id":16485}},"18721":{"timestamp":{"__isSmartRef__":true,"id":18722},"user":"lauritz","tags":[]},"18722":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:41:00 GMT+0100 (CET)"},"18723":{"varMapping":{"__isSmartRef__":true,"id":18724},"source":"function copyToPartsBinWithUserRequest() {\n this.owner.copyToPartsBinWithUserRequest();\n}","funcProperties":{"__isSmartRef__":true,"id":18729},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18724":{"this":{"__isSmartRef__":true,"id":16485},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18725}},"18725":{"$super":{"__isSmartRef__":true,"id":18726}},"18726":{"varMapping":{"__isSmartRef__":true,"id":18727},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18728},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18727":{"obj":{"__isSmartRef__":true,"id":16485},"name":"copyToPartsBinWithUserRequest"},"18728":{},"18729":{"timestamp":{"__isSmartRef__":true,"id":18730},"user":"lauritz","tags":[]},"18730":{"isSerializedDate":true,"string":"Thu Nov 17 2011 20:04:19 GMT+0100 (CET)"},"18731":{"varMapping":{"__isSmartRef__":true,"id":18732},"source":"function printTags(script) {\n if (!script.tags) return \"[]\";\n\n var printString = '[';\n for (var i=0; i < script.tags.length; i++) {\n if (i !== 0) printString += ', ';\n printString += '\"' + script.tags[i] + '\"';\n }\n printString += ']';\n return printString;\n}","funcProperties":{"__isSmartRef__":true,"id":18733},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18732":{"this":{"__isSmartRef__":true,"id":16485}},"18733":{"timestamp":{"__isSmartRef__":true,"id":18734},"user":"lauritz","tags":[]},"18734":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:33:20 GMT+0100 (CET)"},"18735":{"varMapping":{"__isSmartRef__":true,"id":18736},"source":"function setTag(tag) {\n if (tag === 'all') {\n this.currentTag = '';\n } else {\n this.currentTag = tag;\n }\n this.updateLists();\n this.displayInitialScript();\n}","funcProperties":{"__isSmartRef__":true,"id":18737},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18736":{"this":{"__isSmartRef__":true,"id":16485}},"18737":{"timestamp":{"__isSmartRef__":true,"id":18738},"user":"lauritz","tags":[]},"18738":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:35 GMT+0100 (CET)"},"18739":{"varMapping":{"__isSmartRef__":true,"id":18740},"source":"function runScript() {\n var scriptName = this.get(\"ObjectEditorScriptList\").selection;\n if (!scriptName || !this.target) return;\n this.target[scriptName]();\n}","funcProperties":{"__isSmartRef__":true,"id":18741},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18740":{"this":{"__isSmartRef__":true,"id":16485}},"18741":{"timestamp":{"__isSmartRef__":true,"id":18742},"user":"conradcalmez","tags":[]},"18742":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:53:29 GMT+0100 (CET)"},"18743":{"varMapping":{"__isSmartRef__":true,"id":18744},"source":"function openPartTestRunner() {\n module('lively.PartsTestFramework').load();\n var runner = $part('PartTestRunner', 'PartsBin/Tools');\n runner.setPartUnderTest(this.target);\n runner.openInWorld();\n runner.align(runner.bounds().topLeft(),\n this.owner.bounds().topLeft().addPt(pt(30,30)))\n}","funcProperties":{"__isSmartRef__":true,"id":18745},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18744":{"this":{"__isSmartRef__":true,"id":16485}},"18745":{"timestamp":{"__isSmartRef__":true,"id":18746},"user":"jenslincke","tags":[]},"18746":{"isSerializedDate":true,"string":"Wed Mar 14 2012 15:48:07 GMT+0100 (CET)"},"18747":{"submorphs":[],"scripts":[],"id":"E1DDE493-6587-4E23-B0FB-90EBC08AB349","shape":{"__isSmartRef__":true,"id":18748},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":18755},"showsHalos":false,"name":"ResizeCorner4","partsBinMetaInfo":{"__isSmartRef__":true,"id":18756},"__SourceModuleName__":"Global.lively.morphic.Core","__layered_draggingEnabled__":true,"dragStartPoint":null,"originalExtent":{"__isSmartRef__":true,"id":18757},"originalTargetExtent":null,"renderContextTable":{"__isSmartRef__":true,"id":18758},"eventHandler":{"__isSmartRef__":true,"id":18759},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"distanceToDragEvent":{"__isSmartRef__":true,"id":18760},"owner":{"__isSmartRef__":true,"id":16484},"isCopyMorphRef":true,"morphRefId":164,"prevScroll":[0,0],"derivationIds":[227,"83D58336-D35B-44FB-9AB1-4467EC058CFA","0141EF2D-898D-4A88-93BF-1B9FEE7E56E6","F343780D-46A1-490F-8347-08939D52329C","DCD3B012-B22F-4037-B24A-FCF858D154D4","E6EDFE95-F114-4F7E-84D5-60B3212BC420","D39E5489-4C7C-4BB7-8D11-83F82F09FF84","B262116A-CEFD-4CEF-AAE0-BE2BED9E7CAF","C289A2CC-E646-4E9C-8715-EAECD92D3C9B","6596C37A-0FA3-441B-87A8-14A6496C6A1C","9BA1ABBC-4195-4B48-8D5C-680E4B57802D","ECCB7823-3C66-42F2-AF0D-71D4BB066366","27021602-5080-41C9-90D6-29FA6E1C12E7","6D098B01-3779-46A2-811A-07B035970C89","5B2B7668-A71F-4123-ACF0-54EC44AF40BF","91F121EF-0A48-4F3C-9D6E-676727E6BE47","B2204956-B9D3-45E2-A5E5-C775FDF24ACC","75F56068-8646-41D2-899F-94DE5CEF3263","8189ED29-38FA-4DF8-8C08-D1956D240917","506C8857-B65B-4EF9-8970-8DA8BC1A7077","E5262413-3A41-4EFB-B2FF-8CC3641D1147","A85C775C-7FB2-430A-AB8D-3553CC5249B2","18CA7403-F30E-491B-8932-85009272CB3D","FBD721AA-88BD-4EAC-ADCD-BE7232B997B8","F689AFB2-E41E-4FAE-A4C1-E4079C28BC4B","3C6552AC-FE78-434A-B272-05D31922B937","79F05780-0F43-4147-AFC5-FD6A02E10C7D","3FF5F05B-F456-4534-9B04-1A80A95262BC","B66E3FC2-97D1-4CBA-BD52-E3A9B41E9A16"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18761},"__LivelyClassName__":"lively.morphic.Box"},"18748":{"position":{"__isSmartRef__":true,"id":18749},"_Extent":{"__isSmartRef__":true,"id":18750},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":18751},"_Fill":{"__isSmartRef__":true,"id":18752},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":18753},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":18754},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"18749":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18750":{"x":13,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18751":{"r":0.568,"g":0.568,"b":0.568,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18752":{"r":0.258,"g":0.258,"b":0.258,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18753":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"18754":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18755":{"x":896,"y":533,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18756":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"18757":{"x":239,"y":138,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18758":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"18759":{"morph":{"__isSmartRef__":true,"id":18747},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18760":{"x":42.327599102410886,"y":-22.830104041830054,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18761":{"onDrag":{"__isSmartRef__":true,"id":18762},"onDragEnd":{"__isSmartRef__":true,"id":18770},"onDragStart":{"__isSmartRef__":true,"id":18778}},"18762":{"varMapping":{"__isSmartRef__":true,"id":18763},"source":"function onDrag(evt) {\n var moveDelta = evt.mousePoint.subPt(this.dragStartPoint)\n if (evt.isShiftDown()) {\n var maxDelta = Math.max(moveDelta.x, moveDelta.y);\n\tmoveDelta = pt(maxDelta, maxDelta);\n }\n this.owner.setExtent(this.originalTargetExtent.addPt(moveDelta));\n this.align(this.bounds().bottomRight(), this.owner.getExtent())\n}","funcProperties":{"__isSmartRef__":true,"id":18768},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18763":{"this":{"__isSmartRef__":true,"id":18747},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18764}},"18764":{"$super":{"__isSmartRef__":true,"id":18765}},"18765":{"varMapping":{"__isSmartRef__":true,"id":18766},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18767},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18766":{"obj":{"__isSmartRef__":true,"id":18747},"name":"onDrag"},"18767":{},"18768":{"timestamp":{"__isSmartRef__":true,"id":18769},"user":"lauritz"},"18769":{"isSerializedDate":true,"string":"Thu Nov 17 2011 05:05:30 GMT+0100 (CET)"},"18770":{"varMapping":{"__isSmartRef__":true,"id":18771},"source":"function onDragEnd(evt) {\n this.dragStartPoint = null;\n this.originalTargetExtent = null;\n}","funcProperties":{"__isSmartRef__":true,"id":18776},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18771":{"this":{"__isSmartRef__":true,"id":18747},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18772}},"18772":{"$super":{"__isSmartRef__":true,"id":18773}},"18773":{"varMapping":{"__isSmartRef__":true,"id":18774},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18775},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18774":{"obj":{"__isSmartRef__":true,"id":18747},"name":"onDragEnd"},"18775":{},"18776":{"timestamp":{"__isSmartRef__":true,"id":18777},"user":"lauritz"},"18777":{"isSerializedDate":true,"string":"Thu Nov 17 2011 05:05:30 GMT+0100 (CET)"},"18778":{"varMapping":{"__isSmartRef__":true,"id":18779},"source":"function onDragStart(evt) {\n this.dragStartPoint = evt.mousePoint;\n this.originalTargetExtent = this.owner.getExtent();\n}","funcProperties":{"__isSmartRef__":true,"id":18784},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18779":{"this":{"__isSmartRef__":true,"id":18747},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18780}},"18780":{"$super":{"__isSmartRef__":true,"id":18781}},"18781":{"varMapping":{"__isSmartRef__":true,"id":18782},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18783},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"18782":{"obj":{"__isSmartRef__":true,"id":18747},"name":"onDragStart"},"18783":{},"18784":{"timestamp":{"__isSmartRef__":true,"id":18785},"user":"lauritz"},"18785":{"isSerializedDate":true,"string":"Thu Nov 17 2011 05:05:35 GMT+0100 (CET)"},"18786":{"submorphs":[{"__isSmartRef__":true,"id":18787},{"__isSmartRef__":true,"id":18801},{"__isSmartRef__":true,"id":18846},{"__isSmartRef__":true,"id":18886}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18920},"id":"7A10E349-1FC8-4B94-A65B-E04CF786977F","renderContextTable":{"__isSmartRef__":true,"id":18932},"eventHandler":{"__isSmartRef__":true,"id":18933},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":18934},"_Position":{"__isSmartRef__":true,"id":18935},"windowMorph":{"__isSmartRef__":true,"id":16484},"label":{"__isSmartRef__":true,"id":18787},"closeButton":{"__isSmartRef__":true,"id":18801},"menuButton":{"__isSmartRef__":true,"id":18846},"collapseButton":{"__isSmartRef__":true,"id":18886},"owner":{"__isSmartRef__":true,"id":16484},"prevScroll":[0,0],"__SourceModuleName__":"Global.lively.morphic.Widgets","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"derivationIds":[228,"084DFF55-BC61-4772-8BF7-F6A87C08DE9F","D22EFB93-AC9B-4FCE-9464-3B314FFA4C11","A5F9692A-C657-42B0-B8AA-D2E922A1DE8D","C47683FE-BA01-4AAB-BDE0-4862C049BCE7","BD427B66-7BE7-4205-84EC-825840E59F49","9C39A352-DBDD-48CE-BEB0-99806EDB5253","E813CB65-A28C-4433-BBE5-EB70FBBB3289","33484DF7-DDF3-465F-96EE-215BEC4B3FAD","F96A68D7-1FC3-472C-BADB-56A6682C39E1","817A94F6-2E25-4C40-9602-8B67B1078AAA","2E8EBC07-1155-469B-BFFC-11C498DCC0A1","FCBF2B5C-35B5-47CB-9184-3E1943DD9898","7492FC87-6C18-4F4E-9D77-44DA5F83A458","7FCB8A47-9567-494E-9413-88D13A955736","DD21FC02-8A2F-4CA6-84C0-CEBF0851C41E","CB786813-3A97-4AAA-9264-F52F6020D029","A30DDD23-6D03-4EE7-B98B-4E494F72481C","E46F8E20-617D-4CF6-90BB-9087D55742DD","92AC1F5C-A086-406B-AE6C-91646CA339D5","EC73968A-5BB2-43BD-9125-C2183767648C","5F271576-2935-47DB-89A3-E99620E1C5F8","4D639D53-78CD-4B68-B56F-246E177046F3","22AE7C15-0370-4F34-8965-EC1230857C28","82496F83-D620-4F21-BC40-96B8A83FCD01","FA56F7D5-5329-4CEA-8F67-2F78A44BC4EB","CAC7EF8B-28AF-4E73-B156-E20E4EB5D416","9C2EFA4E-68DB-4224-B80C-917F2538B92A","3DCAC3A7-B53A-4CF2-BDD7-D482B7808DD8"],"_ClipMode":"visible","_Scale":1,"#startLetters":"","__LivelyClassName__":"lively.morphic.TitleBar"},"18787":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18788},"id":"265EB4EE-F7DB-49C6-A7BC-684CCE4D3572","renderContextTable":{"__isSmartRef__":true,"id":18794},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":18795}],"eventHandler":{"__isSmartRef__":true,"id":18797},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":18798},"_Align":"center","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":18786},"_MaxTextWidth":850,"_MinTextWidth":850,"_MaxTextHeight":null,"_MinTextHeight":null,"_Position":{"__isSmartRef__":true,"id":18799},"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[229,"D760A244-216E-4A66-8201-25AFC3AB6CC3","D0DE1BA6-E69D-4C19-A257-9D846EA6D12C","7590D64D-7524-4378-BB7E-845EC8CAE745","8996B9DB-C10E-41E4-8286-056BBCF8E151","18942143-8626-4D26-A7D9-153295EE4B23","A410C3F9-F31A-4BC9-A998-ABA33334F720","BEEB144B-EFF3-4E29-A539-41264A731D6C","28B7F25C-B8D9-4D07-B94A-C4A9A35D67B2","395D4415-072D-4BEC-AA6C-195D1347972A","EC2D8014-4D60-448C-A874-3BD6C9604EA7","DE4577EA-7D34-4421-AAC8-83F47657C444","57A9B659-D46C-4300-8F2D-74D46571698A","B1883C55-5E91-4942-A525-4CAB01379672","7633C47A-9577-4388-B87C-2C2E46E21037","A2C35D16-8A3E-4500-B2C8-5FAEC09E0486","B7396D6C-0BDE-4089-80A5-6E455C618AD9","7A868C2D-ECF3-4D77-AA1F-A97215694CA4","610C16AD-4536-41E8-9E5C-449629544F55","C0B1955F-45B1-4142-8A7C-8E5E73E0A112","99A6416E-FA95-491C-8EF1-5E74BBE1BBC9","B7054C33-3E84-4DF0-BCF8-BEB3DB4FF5B3","3F87AEB2-A623-47BD-A6D4-9139C1F12911","50880DF9-1F30-4572-8C2A-BDEA3FCEDBE0","D6CB7789-16FF-4267-A763-C2735077FB7E","DCCADBAA-D7AE-4DFB-BF18-72953BFBF258","3A48780E-4ED6-40F5-A797-468115E79FF3","3F2BBE07-3501-43D2-887A-61FFE323EE00","66A54ED9-C64C-42BB-AA90-43E0138DB4D6"],"_TextColor":{"__isSmartRef__":true,"id":18800},"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"18788":{"_Position":{"__isSmartRef__":true,"id":18789},"renderContextTable":{"__isSmartRef__":true,"id":18790},"_Extent":{"__isSmartRef__":true,"id":18791},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":18792},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":18793},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"18789":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18790":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"18791":{"x":850,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18792":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18793":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18794":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"18795":{"style":{"__isSmartRef__":true,"id":18796},"chunkOwner":{"__isSmartRef__":true,"id":18787},"_id":"_10","storedString":"ObjectEditor (WebDev'12)","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18796":{"fontWeight":"normal","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18797":{"morph":{"__isSmartRef__":true,"id":18787},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18798":{"resizeWidth":true},"18799":{"x":20,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18800":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18801":{"submorphs":[{"__isSmartRef__":true,"id":18802}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18813},"id":"0185B0A2-4726-44A0-A18A-56CE07ABF52D","renderContextTable":{"__isSmartRef__":true,"id":18829},"eventHandler":{"__isSmartRef__":true,"id":18830},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":18831},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":18819},"lighterFill":{"__isSmartRef__":true,"id":18832},"label":{"__isSmartRef__":true,"id":18802},"owner":{"__isSmartRef__":true,"id":18786},"layout":{"__isSmartRef__":true,"id":18841},"attributeConnections":[{"__isSmartRef__":true,"id":18842},{"__isSmartRef__":true,"id":18844}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","derivationIds":[230,"EE58E329-4B81-4ABE-A8D6-A3E1AA5BF908","418BD036-5123-49E3-A68D-B2CA74DD4EBA","AB2EC618-F852-4DB4-8601-C98F851F983A","84444904-5A59-41A9-9200-77C2DFC28F0A","BCDE4CA6-1D56-45F5-980B-4BF689C874DD","C3377671-C2BC-4F1B-93B3-CF0083C27FC9","F8D02126-AD53-4ED0-9EA5-6EB71D788E14","CD6A0659-264E-4175-8900-DC5D9CD9CAE6","25A69395-9A9F-46AD-9D7B-BE62EC93A84D","4A50008D-7B6C-4077-AD8A-F0ABFEE54609","D027A273-D3F7-4C76-8EC8-A657761EF2A6","CC29371C-6136-4432-A14B-8CDE6D0E356A","0D2F3233-0176-4B81-8060-39FFD170E6C1","08587E9E-6A99-4A75-B242-B131DF1F7D4B","B8BC3EB3-F857-4A8A-8EA3-04705684668B","39E80212-8228-40CF-A2A5-4BD9A18D63DF","B91C0DA6-57B6-440D-835B-963BFF5EB71C","DEFD70A9-7FF0-4020-A24E-3751C70D1F40","9B0FCB3B-5AE3-4B7A-B18A-38A98826CD26","133BF7B0-0741-4F09-9D15-091FAC6FD6F2","D6C646C6-3DEE-44C6-AC2E-B0718291B0D2","CB196CAC-C00E-424D-AEC2-604735B56481","E3CAF15B-A67B-4360-A080-51A3452E8C2B","B7783F97-EDDE-4566-9602-85BA2CA22809","8602212C-72C4-47EA-AF9C-DCE503ECE77D","B46EDE98-2463-4569-84E2-CF9B0BD68E9F","B62136A7-395C-46E2-953A-F939EC7C50D0","49D57CC4-D5C6-4052-90CC-8DCC28F61867"],"_ClipMode":"visible","showsHalos":false,"_Scale":1,"isPressed":false,"__LivelyClassName__":"lively.morphic.WindowControl"},"18802":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18803},"id":"98C9F29B-2D9F-413A-8644-4FCA069CB736","renderContextTable":{"__isSmartRef__":true,"id":18808},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":18809}],"eventHandler":{"__isSmartRef__":true,"id":18811},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":18812},"_MaxTextWidth":13,"_MinTextWidth":13,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":18801},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[231,"8DB42E03-8473-4B83-81E2-61EE04DF890A","B50E6B6E-F836-4B3E-8AD1-2B34DA86CE3B","60439D94-5083-4977-8470-BD8843FF782A","5EC44375-A7D5-4BD3-AFC7-C507DF8D60C8","5BDCC4F6-C579-4A6F-96BB-2F59131EFD32","712DF12F-50C4-4EEB-9C4C-47A4DC15E968","6A46E35D-28F8-4F0F-B812-E79D2A1994B3","5A9F3A61-DA02-432F-B92D-90126253AD44","EF5811A8-74EC-4FA1-B994-FC261C7FD3F3","52AE2953-CEAB-4A6A-8F94-7B47368D663D","11A1DAEC-0A39-4089-8294-98ADB33B5E50","2D286778-5885-4888-91BF-35075D2F972B","A48CDD90-B0F1-46D9-928F-DA44C16A8B77","CF0E7690-780A-45E1-BADB-CE246971030C","A7AACEA7-EFAA-4F3E-B8EC-279EA4C34BC6","59706A46-7F3B-4643-8C45-BDEF14AD5040","015990FD-76AE-4D22-808E-1245F0C80C7B","3D6823A4-A7BF-4BD2-BDAC-8631E9C915BA","C03FEC40-C900-4685-8975-7005C6693E82","94666091-57DC-4032-AE34-F499206CAF00","07BEDF28-CCAC-46F4-B011-29D69EEEB5BF","9ED6670F-10BB-4E07-A8B5-F0DEED6C038A","1FC55B0E-9C46-4D23-A367-AAF8929BD112","77448A8D-E3E3-4E3D-92D6-514DF9EE23DB","793AF6CB-ECEC-4A59-B7E8-994C0FCB2B40","33419BD4-7A21-43DD-A9B0-2C2CA91318B3","40371C09-7E37-4C7D-9621-DB94387C8A3D","B8FC505F-69B7-4CCF-BA30-E153FF0ACB36"],"showsHalos":false,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"18803":{"_Position":{"__isSmartRef__":true,"id":18804},"renderContextTable":{"__isSmartRef__":true,"id":18805},"_Extent":{"__isSmartRef__":true,"id":18806},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":18807},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":18793},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"18804":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18805":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"18806":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18807":{"x":2,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18808":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"18809":{"style":{"__isSmartRef__":true,"id":18810},"chunkOwner":{"__isSmartRef__":true,"id":18802},"storedString":"X","__SourceModuleName__":"Global.lively.morphic.TextCore","_id":"_271","__LivelyClassName__":"lively.morphic.TextChunk"},"18810":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis"},"18811":{"morph":{"__isSmartRef__":true,"id":18802},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18812":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18813":{"_Position":{"__isSmartRef__":true,"id":18814},"renderContextTable":{"__isSmartRef__":true,"id":18815},"_Extent":{"__isSmartRef__":true,"id":18816},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":18817},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":18818},"_Fill":{"__isSmartRef__":true,"id":18819},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"18814":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18815":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"18816":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18817":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18818":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18819":{"stops":[{"__isSmartRef__":true,"id":18820},{"__isSmartRef__":true,"id":18822},{"__isSmartRef__":true,"id":18824},{"__isSmartRef__":true,"id":18826}],"vector":{"__isSmartRef__":true,"id":18828},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"18820":{"offset":0,"color":{"__isSmartRef__":true,"id":18821}},"18821":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18822":{"offset":0.4,"color":{"__isSmartRef__":true,"id":18823}},"18823":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18824":{"offset":0.6,"color":{"__isSmartRef__":true,"id":18825}},"18825":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18826":{"offset":1,"color":{"__isSmartRef__":true,"id":18827}},"18827":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18828":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18829":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"18830":{"morph":{"__isSmartRef__":true,"id":18801},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18831":{"x":889,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18832":{"stops":[{"__isSmartRef__":true,"id":18833},{"__isSmartRef__":true,"id":18835},{"__isSmartRef__":true,"id":18837},{"__isSmartRef__":true,"id":18839}],"vector":{"__isSmartRef__":true,"id":18828},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"18833":{"offset":0,"color":{"__isSmartRef__":true,"id":18834}},"18834":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18835":{"offset":0.4,"color":{"__isSmartRef__":true,"id":18836}},"18836":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18837":{"offset":0.6,"color":{"__isSmartRef__":true,"id":18838}},"18838":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18839":{"offset":1,"color":{"__isSmartRef__":true,"id":18840}},"18840":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18841":{"moveHorizontal":true},"18842":{"sourceObj":{"__isSmartRef__":true,"id":18801},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16484},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":18843},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"18843":{"source":{"__isSmartRef__":true,"id":18801},"target":{"__isSmartRef__":true,"id":16484}},"18844":{"sourceObj":{"__isSmartRef__":true,"id":18801},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16484},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":18845},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"18845":{"source":{"__isSmartRef__":true,"id":18801},"target":{"__isSmartRef__":true,"id":16484}},"18846":{"submorphs":[{"__isSmartRef__":true,"id":18847}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18858},"id":"A801F72F-A70D-4F18-9515-E05C47A7A1C7","renderContextTable":{"__isSmartRef__":true,"id":18870},"eventHandler":{"__isSmartRef__":true,"id":18871},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":18872},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":18819},"lighterFill":{"__isSmartRef__":true,"id":18873},"label":{"__isSmartRef__":true,"id":18847},"owner":{"__isSmartRef__":true,"id":18786},"attributeConnections":[{"__isSmartRef__":true,"id":18882},{"__isSmartRef__":true,"id":18884}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","derivationIds":[232,"F393CBFF-A15D-4D1D-A3A3-DA0C7EF93B66","5BC57B43-1661-4C92-827E-E6CCB6E519E1","DDA3D28B-E4EA-4F17-9B68-D6964E9A2524","93D34CE0-A8E8-43DA-AA3B-3B32912E0BC1","93EA3F6A-3D2D-41E5-8FBD-16CDD8BD7946","C32E10BE-5DA5-46B4-B508-BDA50452B006","39B24C04-E0C8-46B6-91D3-A7CB1A79DF2A","33E45199-4C9B-4815-8760-E9BB50B17AE7","C25CBD71-C31B-4AA9-A244-4F689F7343B9","320E4A47-80DF-45B8-8997-6F8BD9D14C16","6D5959E7-D752-47B3-8F18-DB1D38739937","9F07D24A-8FD4-4B5C-B1B7-0204B89741E5","B3AC0AD0-2563-413C-A675-C3667C27B889","0F42ECA6-D7C4-4D66-8962-0BF4E60600EB","01EC08C0-C205-4B5B-BF9F-501946C17F89","17021EB0-BD8D-4B7E-8AF0-9DFBBE68A4D3","DB0C7576-12EA-44DA-BB28-CBA69177BAA6","864EE754-794E-4DBF-82C6-E83D0A1E4CA3","80FA2D1D-193A-4B70-BFBF-1E7DEAF545B4","40C3676B-76F6-43D5-AA8C-A99A422D3B1B","6EAC5696-45D0-41F0-8A88-B5CE8FF64EB4","199F87F9-24A3-48D2-8886-D96B169864F2","2DE73502-B54C-4280-B021-3648E0FC1F12","D2D92A29-450D-4AA9-A9DE-E578B251F91A","A6682DDB-4CF5-4F53-A8DE-B3E4C99EEF21","2CCF379F-BC69-476F-88FF-507808DD3F29","3AB02A88-9188-4B7D-ABC9-34B0FDEFB363","87FE120A-41E8-4882-9C10-B36C4F8EC064"],"_ClipMode":"visible","_Scale":1,"isPressed":false,"__LivelyClassName__":"lively.morphic.WindowControl"},"18847":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18848},"id":"9266A4F6-E8D3-437E-BDB8-6F81D76AC741","renderContextTable":{"__isSmartRef__":true,"id":18853},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":18854}],"eventHandler":{"__isSmartRef__":true,"id":18856},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":18857},"_MaxTextWidth":13,"_MinTextWidth":13,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":18846},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[233,"E1DC624A-DE6A-4680-92DA-803BFFE6CD54","2EB42409-E0C2-408B-8F84-EDF9EBFB2590","0684F49F-5338-4D44-82C9-5A4E2D62EE72","0B73719D-BC87-4B8D-890D-30C0714B5584","90D2BAAA-EB9D-45AF-8770-9616421A5762","1FAA3617-0517-49D7-ADCB-15357C49A9BB","F746D14F-BC62-4FAC-A5F0-DCC9D1DF650A","6F027012-81B2-4760-B5ED-11342DEAAE72","922D9F59-AB45-4279-9919-69D11CA2CC2D","1BE57CCE-1EE8-4CBF-9989-873B82709981","F3EB613F-A6B4-4174-906A-FD347063B359","65712D5D-80A0-461C-BC56-3C771CEC295C","8CDF04CC-3F0F-43B9-B953-DEA8D0C8AE8E","C953211B-F2ED-4E67-B40F-802E801928F0","32060BF7-DF78-4F32-8570-DFB1C2DE1AD4","0BC6F0C8-A974-426A-86CA-4E1FABFE62BE","D2BF2C89-051D-49B6-83DC-A731C64B821B","9987DC1E-083F-4D9B-AC9F-EF6A05FE454A","E5DEA953-C609-4B8E-A794-E09AF75A1BA8","39598890-B08D-4E68-9D4A-9298FCFE00A6","DF733510-8567-4643-9186-51E0A23E54AC","4D7A5034-5494-4A0B-9B4C-B4596950A4BF","46BB26A5-565F-45CD-BCB3-B8263E313F39","204888A7-A3FD-4C84-B818-DB221A67CAC6","6E9F1D3E-2A82-465C-8A52-33AC1F6FC85A","678D082A-0F02-499F-8671-F4A967F7F2E4","34C2942D-6E96-495A-A1AE-64CE207CE649","0947927A-617E-4E1F-80A0-CF2727B0025E"],"_Scale":1,"_TextColor":{"__isSmartRef__":true,"id":17727},"__LivelyClassName__":"lively.morphic.Text"},"18848":{"_Position":{"__isSmartRef__":true,"id":18849},"renderContextTable":{"__isSmartRef__":true,"id":18850},"_Extent":{"__isSmartRef__":true,"id":18851},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":18852},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":18793},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"18849":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18850":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"18851":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18852":{"x":2,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18853":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"18854":{"style":{"__isSmartRef__":true,"id":18855},"chunkOwner":{"__isSmartRef__":true,"id":18847},"storedString":"M","__SourceModuleName__":"Global.lively.morphic.TextCore","_id":"_272","__LivelyClassName__":"lively.morphic.TextChunk"},"18855":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis"},"18856":{"morph":{"__isSmartRef__":true,"id":18847},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18857":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18858":{"_Position":{"__isSmartRef__":true,"id":18859},"renderContextTable":{"__isSmartRef__":true,"id":18860},"_Extent":{"__isSmartRef__":true,"id":18861},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":18862},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":18818},"_Fill":{"__isSmartRef__":true,"id":18863},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"18859":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18860":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"18861":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18862":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18863":{"stops":[{"__isSmartRef__":true,"id":18864},{"__isSmartRef__":true,"id":18866},{"__isSmartRef__":true,"id":18867},{"__isSmartRef__":true,"id":18868}],"vector":{"__isSmartRef__":true,"id":17739},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"18864":{"offset":0,"color":{"__isSmartRef__":true,"id":18865}},"18865":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18866":{"offset":0.3,"color":{"__isSmartRef__":true,"id":17735}},"18867":{"offset":0.7,"color":{"__isSmartRef__":true,"id":17735}},"18868":{"offset":1,"color":{"__isSmartRef__":true,"id":18869}},"18869":{"r":0.7973333333333334,"g":0.7973333333333334,"b":0.7973333333333334,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18870":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"18871":{"morph":{"__isSmartRef__":true,"id":18846},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18872":{"x":3,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18873":{"stops":[{"__isSmartRef__":true,"id":18874},{"__isSmartRef__":true,"id":18876},{"__isSmartRef__":true,"id":18878},{"__isSmartRef__":true,"id":18880}],"vector":{"__isSmartRef__":true,"id":18828},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"18874":{"offset":0,"color":{"__isSmartRef__":true,"id":18875}},"18875":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18876":{"offset":0.4,"color":{"__isSmartRef__":true,"id":18877}},"18877":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18878":{"offset":0.6,"color":{"__isSmartRef__":true,"id":18879}},"18879":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18880":{"offset":1,"color":{"__isSmartRef__":true,"id":18881}},"18881":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18882":{"sourceObj":{"__isSmartRef__":true,"id":18846},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16484},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":18883},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"18883":{"source":{"__isSmartRef__":true,"id":18846},"target":{"__isSmartRef__":true,"id":16484}},"18884":{"sourceObj":{"__isSmartRef__":true,"id":18846},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16484},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":18885},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"18885":{"source":{"__isSmartRef__":true,"id":18846},"target":{"__isSmartRef__":true,"id":16484}},"18886":{"submorphs":[{"__isSmartRef__":true,"id":18887}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18898},"id":"78DCE59E-CC6D-4DCA-92F4-4461C2BD78BD","renderContextTable":{"__isSmartRef__":true,"id":18903},"eventHandler":{"__isSmartRef__":true,"id":18904},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":18905},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":18819},"lighterFill":{"__isSmartRef__":true,"id":18906},"label":{"__isSmartRef__":true,"id":18887},"owner":{"__isSmartRef__":true,"id":18786},"layout":{"__isSmartRef__":true,"id":18915},"attributeConnections":[{"__isSmartRef__":true,"id":18916},{"__isSmartRef__":true,"id":18918}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","derivationIds":[234,"EC7EDE8E-294A-46CF-85BB-BBC525336E13","F24B29EE-0964-499D-834F-E3D087DC6003","F6F3659F-9229-46AA-9B9E-46627A7062B2","A88C4D93-582A-4C0D-9F97-F2F0E291BB7E","AA05682F-3E98-433C-8C01-422A46068DFC","A12AF6EA-E1A6-4527-8E16-D276C19A3A0E","4C7D6ACD-B49F-4877-889E-F26C1CC71D95","7AB2CBD2-B47B-4414-8053-0488FB51D18C","47BF14A4-BBD6-42CA-AF7A-9A29CD80DE50","CC8F7059-EA26-45D8-B311-D21333B72ED9","247902EB-2D95-48A7-890A-5F22856E0397","11F20F21-5097-47F4-B440-94CB42631F86","C823344E-DCF7-4940-818A-35F6706F9FE9","B22E1C30-F84F-4C87-A019-F9246469158E","9995E9C7-FB6C-4B86-A5A9-C2C67D9A0C13","737A2985-745C-4E84-8C7C-8A1D07E58867","D37F954E-6ADB-4D71-971D-3F0A919B675D","5229284B-E4D1-4459-847F-4D97AB4BBC7A","E1D480F8-C039-418B-889B-8B3A7C4792CC","A2FE4C89-F1B6-4D31-9FD2-B5B7489C5EF4","DAD2B9B2-D5BC-4576-8DE4-B4BC3A8174BE","B147013B-F447-4AC4-93AA-F8A95452FE3F","89356302-166E-4C84-821C-6A5266E28A32","0133F852-7995-40E7-A552-DFC80A4A132E","75CEF9E7-D448-41EE-A5C0-A67E8240E36B","7BE0708B-4A8E-42A7-B8C2-F44D39755022","2726B091-03FD-427B-BC8D-85106BC32ADD","DD620F27-8E5A-4F81-BB85-10F8E5B904EC"],"_ClipMode":"visible","_Scale":1,"isPressed":false,"__LivelyClassName__":"lively.morphic.WindowControl"},"18887":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18888},"id":"EBEACADF-A5A3-4405-99C6-6A5D69A5C7C6","renderContextTable":{"__isSmartRef__":true,"id":18893},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":18894}],"eventHandler":{"__isSmartRef__":true,"id":18896},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":18897},"_MaxTextWidth":13,"_MinTextWidth":13,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":18886},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[235,"F92ECC97-5F5B-4CDA-A829-270D000F0D88","A7CDAD5D-BCA1-4AF0-A092-9E81DF1F5C1B","35639FEE-51E8-4469-BB0E-5D1650F1E695","65EBC411-8078-4C93-9A62-F3E8D325DBA7","3F66B345-86BE-4AF4-84FC-BA468E960283","5CA475ED-1D1C-4934-9671-012AA9BAA280","CAC47AC8-FBAF-42E5-9BDA-15414CDFBDDE","8B27F43D-0C2C-4217-9FBC-EC95AE8A708D","6B04D1E4-D30D-4CF1-B117-D3BDEE6BA8AD","C3C98596-F14C-4BDD-A87A-73B964C92577","D1D0BD50-D401-411A-B179-6C1620DBFF84","602DCA3B-3172-420D-9C12-CD36CD749955","E8C5C4F0-759B-4AB5-9062-386DFF130EC7","F4C99B11-335B-4C4F-B817-2999228A3675","CB7DF7B3-E657-494E-83D2-19F7E68563D1","63BBF733-1096-47D3-A8EA-35B045B12F63","455938D2-B6E9-4BAA-BC62-C256BE04B003","B8552CAD-F213-45DA-B5DB-0DAF15CF7F07","F43A5C46-A593-47FF-8828-790035C27A85","8EE687B1-98FB-4F8B-B1EF-9D5AA904955A","E13EE8FA-627F-4D26-AEAA-51ABB585B61A","ADAD2682-E2AC-43D5-AB29-8B5F9FCDEE15","DE69BAC3-317F-4451-B405-ECE63B9464AC","ECAC6A68-1678-4C61-BE82-8ADC100A483A","502F7537-6ACB-4C48-866C-5CB3941DE07C","F3EB2E90-5AD5-43E6-86E6-FF7165AC8A22","AF54ABDD-4507-4F3B-BD8F-EF7517C01E1D","E54D6962-2BC5-4D37-8FA9-24A9A07DEADE"],"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"18888":{"_Position":{"__isSmartRef__":true,"id":18889},"renderContextTable":{"__isSmartRef__":true,"id":18890},"_Extent":{"__isSmartRef__":true,"id":18891},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":18892},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":18793},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"18889":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18890":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"18891":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18892":{"x":2,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18893":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"18894":{"style":{"__isSmartRef__":true,"id":18895},"chunkOwner":{"__isSmartRef__":true,"id":18887},"storedString":"–","__SourceModuleName__":"Global.lively.morphic.TextCore","_id":"_273","__LivelyClassName__":"lively.morphic.TextChunk"},"18895":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis"},"18896":{"morph":{"__isSmartRef__":true,"id":18887},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18897":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18898":{"_Position":{"__isSmartRef__":true,"id":18899},"renderContextTable":{"__isSmartRef__":true,"id":18900},"_Extent":{"__isSmartRef__":true,"id":18901},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":18902},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":18818},"_Fill":{"__isSmartRef__":true,"id":18819},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"18899":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18900":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"18901":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18902":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18903":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"18904":{"morph":{"__isSmartRef__":true,"id":18886},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18905":{"x":870,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18906":{"stops":[{"__isSmartRef__":true,"id":18907},{"__isSmartRef__":true,"id":18909},{"__isSmartRef__":true,"id":18911},{"__isSmartRef__":true,"id":18913}],"vector":{"__isSmartRef__":true,"id":18828},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"18907":{"offset":0,"color":{"__isSmartRef__":true,"id":18908}},"18908":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18909":{"offset":0.4,"color":{"__isSmartRef__":true,"id":18910}},"18910":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18911":{"offset":0.6,"color":{"__isSmartRef__":true,"id":18912}},"18912":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18913":{"offset":1,"color":{"__isSmartRef__":true,"id":18914}},"18914":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18915":{"moveHorizontal":true},"18916":{"sourceObj":{"__isSmartRef__":true,"id":18886},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16484},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":18917},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"18917":{"source":{"__isSmartRef__":true,"id":18886},"target":{"__isSmartRef__":true,"id":16484}},"18918":{"sourceObj":{"__isSmartRef__":true,"id":18886},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16484},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":18919},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"18919":{"source":{"__isSmartRef__":true,"id":18886},"target":{"__isSmartRef__":true,"id":16484}},"18920":{"_Position":{"__isSmartRef__":true,"id":18921},"renderContextTable":{"__isSmartRef__":true,"id":18922},"_Extent":{"__isSmartRef__":true,"id":18923},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":18924},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":18925},"_Fill":{"__isSmartRef__":true,"id":18926},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"18921":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18922":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"18923":{"x":909,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18924":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18925":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"18926":{"stops":[{"__isSmartRef__":true,"id":18927},{"__isSmartRef__":true,"id":18929}],"vector":{"__isSmartRef__":true,"id":18931},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18927":{"offset":0,"color":{"__isSmartRef__":true,"id":18928}},"18928":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18929":{"offset":1,"color":{"__isSmartRef__":true,"id":18930}},"18930":{"r":0.6400000000000001,"g":0.6400000000000001,"b":0.6400000000000001,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18931":{"x":0,"y":0,"width":0,"height":1,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18932":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"18933":{"morph":{"__isSmartRef__":true,"id":18786},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18934":{"resizeWidth":true,"adjustForNewBounds":true},"18935":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18936":{"renderContextTable":{"__isSmartRef__":true,"id":18937},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":18938},"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":18939},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":18940},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"18937":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"18938":{"x":909,"y":547,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18939":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18940":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"18941":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"18942":{"morph":{"__isSmartRef__":true,"id":16484},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18943":{"adjustForNewBounds":true},"18944":{"x":0,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18945":{"a":1,"b":0,"c":0,"d":1,"e":21,"f":92.89999999999998,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"lively.morphic.Similitude"},"18946":{"x":723,"y":268,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18947":{"a":1.0040100200350561,"b":0,"c":0,"d":1.0040100200350561,"e":25.958169966165087,"f":125.02070906988553,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"lively.morphic.Similitude"},"18948":{"x":729,"y":365,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18949":{"migrationLevel":4,"partsSpaceName":"PartsBin/Tools","__SourceModuleName__":"Global.lively.PartsBin","comment":"Edit scripts and connections of a morph, or a group of morphs.","partName":"ObjectGroupEditor","changes":[{"__isSmartRef__":true,"id":18950},{"__isSmartRef__":true,"id":18952},{"__isSmartRef__":true,"id":18954},{"__isSmartRef__":true,"id":18956},{"__isSmartRef__":true,"id":18958},{"__isSmartRef__":true,"id":18960},{"__isSmartRef__":true,"id":18962},{"__isSmartRef__":true,"id":18964},{"__isSmartRef__":true,"id":18966},{"__isSmartRef__":true,"id":18968},{"__isSmartRef__":true,"id":18970},{"__isSmartRef__":true,"id":18972},{"__isSmartRef__":true,"id":18974},{"__isSmartRef__":true,"id":18976},{"__isSmartRef__":true,"id":18978},{"__isSmartRef__":true,"id":18980},{"__isSmartRef__":true,"id":18982},{"__isSmartRef__":true,"id":18984},{"__isSmartRef__":true,"id":18986},{"__isSmartRef__":true,"id":18988},{"__isSmartRef__":true,"id":18990},{"__isSmartRef__":true,"id":18992},{"__isSmartRef__":true,"id":18994},{"__isSmartRef__":true,"id":18996},{"__isSmartRef__":true,"id":18998},{"__isSmartRef__":true,"id":19000},{"__isSmartRef__":true,"id":19002},{"__isSmartRef__":true,"id":19004},{"__isSmartRef__":true,"id":19006},{"__isSmartRef__":true,"id":19008},{"__isSmartRef__":true,"id":19010},{"__isSmartRef__":true,"id":19012},{"__isSmartRef__":true,"id":19014},{"__isSmartRef__":true,"id":19016},{"__isSmartRef__":true,"id":19018},{"__isSmartRef__":true,"id":19020},{"__isSmartRef__":true,"id":19022},{"__isSmartRef__":true,"id":19024},{"__isSmartRef__":true,"id":19026},{"__isSmartRef__":true,"id":19028},{"__isSmartRef__":true,"id":19030},{"__isSmartRef__":true,"id":19032},{"__isSmartRef__":true,"id":19034},{"__isSmartRef__":true,"id":19036},{"__isSmartRef__":true,"id":19038},{"__isSmartRef__":true,"id":19040},{"__isSmartRef__":true,"id":19042},{"__isSmartRef__":true,"id":19044},{"__isSmartRef__":true,"id":19046},{"__isSmartRef__":true,"id":19048},{"__isSmartRef__":true,"id":19050},{"__isSmartRef__":true,"id":19052},{"__isSmartRef__":true,"id":19054},{"__isSmartRef__":true,"id":19056},{"__isSmartRef__":true,"id":19058},{"__isSmartRef__":true,"id":19060},{"__isSmartRef__":true,"id":19062},{"__isSmartRef__":true,"id":19064},{"__isSmartRef__":true,"id":19066},{"__isSmartRef__":true,"id":19068},{"__isSmartRef__":true,"id":19070},{"__isSmartRef__":true,"id":19072},{"__isSmartRef__":true,"id":19074},{"__isSmartRef__":true,"id":19076},{"__isSmartRef__":true,"id":19078},{"__isSmartRef__":true,"id":19080},{"__isSmartRef__":true,"id":19082},{"__isSmartRef__":true,"id":19084},{"__isSmartRef__":true,"id":19086},{"__isSmartRef__":true,"id":19088},{"__isSmartRef__":true,"id":19090},{"__isSmartRef__":true,"id":19092},{"__isSmartRef__":true,"id":19094},{"__isSmartRef__":true,"id":19096},{"__isSmartRef__":true,"id":19098},{"__isSmartRef__":true,"id":19100}],"revisionOnLoad":175313,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"18950":{"date":{"__isSmartRef__":true,"id":18951},"author":"timfelgentreff","message":"resize initially","id":"6D0DAD13-A4E6-4FC7-AB01-0CBD3CBE6FEE"},"18951":{"isSerializedDate":true,"string":"Tue Jun 19 2012 11:26:37 GMT+0200 (CEST)"},"18952":{"date":{"__isSmartRef__":true,"id":18953},"author":"tessi","message":"select target-dropwdownlist instead of \"Target\"-Label when clicking on the dropdownlist","id":"8744030E-7C35-4B0D-9619-DDF542E951E3"},"18953":{"isSerializedDate":true,"string":"Tue Jun 19 2012 10:21:25 GMT+0200 (CEST)"},"18954":{"date":{"__isSmartRef__":true,"id":18955},"author":"lauritz","message":"added cschusters's Widget.js module to this part's PartsBinMetaInfo.requiredModules","id":"CDFDF35E-A6AC-4ABC-8ADC-567B3CC55F6B"},"18955":{"isSerializedDate":true,"string":"Tue Jun 19 2012 10:11:02 GMT+0200 (CEST)"},"18956":{"date":{"__isSmartRef__":true,"id":18957},"author":"timfelgentreff","message":"Add a magnifiying glass to select target (similar to developer tools DOM selection)","id":"D9409D32-738F-4916-BA02-82C040C9891B"},"18957":{"isSerializedDate":true,"string":"Thu May 24 2012 17:21:39 GMT+0200 (CEST)"},"18958":{"date":{"__isSmartRef__":true,"id":18959},"author":"timfelgentreff","message":"no comment","id":"6D83027E-EC28-4497-A29F-E48051BD74FA"},"18959":{"isSerializedDate":true,"string":"Thu May 24 2012 16:54:16 GMT+0200 (CEST)"},"18960":{"date":{"__isSmartRef__":true,"id":18961},"author":"robertkrahn","message":"restored old version for addressing immediate save problems","id":"63323F27-08DC-499B-80D6-A700A30FE6BA"},"18961":{"isSerializedDate":true,"string":"Thu Apr 26 2012 22:03:48 GMT+0200 (CEST)"},"18962":{"date":{"__isSmartRef__":true,"id":18963},"author":"fbo","message":"No more addScript and better support for Firefox","id":"1BC8E4F5-9621-43E1-9451-35E018A8B06F"},"18963":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:16:30 GMT+0200 (CEST)"},"18964":{"date":{"__isSmartRef__":true,"id":18965},"author":"robertkrahn","message":"- Tags text morph now is a input line, fixed a bug in generateSourceForScript()","id":"485A3064-009C-4A89-875B-D3BF1B1C0606"},"18965":{"isSerializedDate":true,"string":"Thu Mar 08 2012 19:12:32 GMT+0100 (CET)"},"18966":{"date":{"__isSmartRef__":true,"id":18967},"author":"fabian","message":"","id":"50D90B40-1175-48A3-AC0E-10AC8884288A"},"18967":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:51:00 GMT+0100 (CET)"},"18968":{"date":{"__isSmartRef__":true,"id":18969},"author":"fabian","message":"","id":"E39C79D4-9E74-47BA-A6EA-D0B861EB411D"},"18969":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:46:13 GMT+0100 (CET)"},"18970":{"date":{"__isSmartRef__":true,"id":18971},"author":"fabian","message":"","id":"0714BC73-548D-4AF3-9A61-32FEE36C9B1F"},"18971":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:34:16 GMT+0100 (CET)"},"18972":{"date":{"__isSmartRef__":true,"id":18973},"author":"fabian","message":"","id":"AEB64F75-685C-4BB8-8C69-D8EC60CBA91D"},"18973":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:14:57 GMT+0100 (CET)"},"18974":{"date":{"__isSmartRef__":true,"id":18975},"author":"fabian","message":"","id":"EE9D6061-DD05-4FC8-B53A-21B93B9F5535"},"18975":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:57:12 GMT+0100 (CET)"},"18976":{"date":{"__isSmartRef__":true,"id":18977},"author":"fabian","message":"","id":"112A906B-C79A-4CF2-BD2A-EEF9A6731634"},"18977":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:42:40 GMT+0100 (CET)"},"18978":{"date":{"__isSmartRef__":true,"id":18979},"author":"fabian","message":"","id":"6FF4CD6F-6C92-449F-B2CA-20BFACE54E7A"},"18979":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:37:11 GMT+0100 (CET)"},"18980":{"date":{"__isSmartRef__":true,"id":18981},"author":"sstamm","message":"added save button","id":"3A85D0AF-64E0-40C7-8C4E-61CD462F3971"},"18981":{"isSerializedDate":true,"string":"Fri Feb 03 2012 11:45:18 GMT+0100 (CET)"},"18982":{"date":{"__isSmartRef__":true,"id":18983},"author":"bsiegmund","message":"Run Button now moving when window is resized","id":"9ECA7B2B-8322-42C5-8EFA-49AC432960B4"},"18983":{"isSerializedDate":true,"string":"Thu Feb 02 2012 17:36:10 GMT+0100 (CET)"},"18984":{"date":{"__isSmartRef__":true,"id":18985},"author":"lauritz","message":"changed label \"Category:\" to \"Tag:\".","id":"DBC877ED-0328-44A8-A46D-FE83C935797F"},"18985":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:50:45 GMT+0100 (CET)"},"18986":{"date":{"__isSmartRef__":true,"id":18987},"author":"lauritz","message":"adapted layout of notifications","id":"1C01FAB9-AD9A-44B5-BAF1-EC06408A767E"},"18987":{"isSerializedDate":true,"string":"Wed Nov 23 2011 18:26:48 GMT+0100 (CET)"},"18988":{"date":{"__isSmartRef__":true,"id":18989},"author":"lauritz","message":"fixed a bug (onBlur event handling) and added the world to the target chooser","id":"A8C151D4-0767-44E0-B586-090EA305BDF5"},"18989":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:14:00 GMT+0100 (CET)"},"18990":{"date":{"__isSmartRef__":true,"id":18991},"author":"jenslincke","message":"- reset title bar and borders","id":"8CE7DA3C-5C83-4151-A3A7-7B41D1C555BD"},"18991":{"isSerializedDate":true,"string":"Fri Nov 18 2011 15:26:49 GMT+0100 (CET)"},"18992":{"date":{"__isSmartRef__":true,"id":18993},"author":"lauritz","message":"Refactoring of script annotations (now at scripts not morphs). Added category tagging. Layout changes.","id":"1A9DA32B-8A1D-4CCF-92CB-47462F8CF117"},"18993":{"isSerializedDate":true,"string":"Thu Nov 17 2011 23:22:54 GMT+0100 (CET)"},"18994":{"date":{"__isSmartRef__":true,"id":18995},"author":"lauritz","message":"layout adaptions","id":"6F1AEBDC-EED3-4CE0-B84C-F4DD4DA784C5"},"18995":{"isSerializedDate":true,"string":"Wed Nov 16 2011 02:12:15 GMT+0100 (CET)"},"18996":{"date":{"__isSmartRef__":true,"id":18997},"author":"lauritz","message":"two more checks on attempts to remove scripts or connections.","id":"ED9F0090-C36C-4BC6-8FD2-A6FB60C7A0B2"},"18997":{"isSerializedDate":true,"string":"Fri Nov 11 2011 01:47:27 GMT+0100 (CET)"},"18998":{"date":{"__isSmartRef__":true,"id":18999},"author":"lauritz","message":"added confirmation before removal of scripts or connections.","id":"00B5B7BA-FC00-4B1C-A967-B8A38B05EEA8"},"18999":{"isSerializedDate":true,"string":"Fri Nov 11 2011 01:42:28 GMT+0100 (CET)"},"19000":{"date":{"__isSmartRef__":true,"id":19001},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"19001":{"isSerializedDate":true,"string":"Fri Oct 21 2011 00:40:22 GMT+0200 (CEST)"},"19002":{"date":{"__isSmartRef__":true,"id":19003},"author":"lauritz","message":"Locked down submorphs of the editor pane. Grabbing and dragging disabled. "},"19003":{"isSerializedDate":true,"string":"Fri Oct 28 2011 05:36:22 GMT+0200 (CEST)"},"19004":{"date":{"__isSmartRef__":true,"id":19005},"author":"jenslincke","message":"bring resize handle to front","id":"996D26BC-8567-486E-B114-A9041230543D"},"19005":{"isSerializedDate":true,"string":"Fri Nov 04 2011 13:41:36 GMT+0100 (CET)"},"19006":{"date":{"__isSmartRef__":true,"id":19007},"author":"jenslincke","message":"set min extent to pt(500,300)","id":"20634435-660B-4E80-93FF-8B8C4F5E0453"},"19007":{"isSerializedDate":true,"string":"Fri Nov 04 2011 13:44:45 GMT+0100 (CET)"},"19008":{"date":{"__isSmartRef__":true,"id":19009},"author":"lauritz","message":"set a minExtent","id":"85B641E5-15C6-4C6D-BE9A-F4F96E347258"},"19009":{"isSerializedDate":true,"string":"Tue Nov 15 2011 20:12:45 GMT+0100 (CET)"},"19010":{"date":{"__isSmartRef__":true,"id":19011},"author":"lauritz","message":"removed a missed debugger statement. corrected setting of target.","id":"BD747202-2BE7-4560-8EB2-DBA586BAD46F"},"19011":{"isSerializedDate":true,"string":"Fri Nov 18 2011 20:19:07 GMT+0100 (CET)"},"19012":{"date":{"__isSmartRef__":true,"id":19013},"author":"lauritz","message":"added a border to notifications, centered notification text","id":"D1DDACFE-EC70-45FB-8178-0A93C8DC81F1"},"19013":{"isSerializedDate":true,"string":"Tue Nov 22 2011 23:02:14 GMT+0100 (CET)"},"19014":{"date":{"__isSmartRef__":true,"id":19015},"author":"lauritz","message":"renamed .categorize to .tag","id":"470CD024-16F9-4221-B2D7-87FAC17B198B"},"19015":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:44:44 GMT+0100 (CET)"},"19016":{"date":{"__isSmartRef__":true,"id":19017},"author":"lauritz","message":"fixed a defect (weeeeeird property caused an error on deserialization of copies)","id":"F6F92336-29F4-4FB4-B597-B8EF12E2922E"},"19017":{"isSerializedDate":true,"string":"Wed Nov 30 2011 23:55:11 GMT+0100 (CET)"},"19018":{"date":{"__isSmartRef__":true,"id":19019},"author":"lauritz","message":"fixed a bug regarding anonymous morphs.","id":"30C42CB6-324C-455D-8B3E-828A80325027"},"19019":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:31:58 GMT+0100 (CET)"},"19020":{"date":{"__isSmartRef__":true,"id":19021},"author":"lauritz","message":"workaround for issue #161 - target morph list is scrollable","id":"7D5DAE37-46E2-4C63-8008-AA553CD6B1E9"},"19021":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:13:13 GMT+0100 (CET)"},"19022":{"date":{"__isSmartRef__":true,"id":19023},"author":"lauritz","message":"removed a workaround","id":"9AC9A97B-E63C-4C24-BCAF-6DC61C3A677C"},"19023":{"isSerializedDate":true,"string":"Tue Dec 13 2011 18:56:45 GMT+0100 (CET)"},"19024":{"date":{"__isSmartRef__":true,"id":19025},"author":"lauritz","message":"tries to get user directly from localStorage now. if there's no user set, then we don't call CGI - logging into trac should not be necessary for developing parts.","id":"0F65058D-3BF4-4538-8B89-1267B58DE137"},"19025":{"isSerializedDate":true,"string":"Tue Dec 13 2011 22:04:53 GMT+0100 (CET)"},"19026":{"date":{"__isSmartRef__":true,"id":19027},"author":"lauritz","message":"sorted tag list.","id":"597DB7EB-1788-42DC-A64F-E061D7B831EC"},"19027":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:23:14 GMT+0100 (CET)"},"19028":{"date":{"__isSmartRef__":true,"id":19029},"author":"lauritz","message":"top-most entry of the tag list is \"all\" now.","id":"62D12D9E-7F42-40CC-BB5B-162130454572"},"19029":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:28:30 GMT+0100 (CET)"},"19030":{"date":{"__isSmartRef__":true,"id":19031},"author":"lauritz","message":"","id":"72E0F00D-53A7-43E9-AD7B-E34F485BC75E"},"19031":{"isSerializedDate":true,"string":"Fri Jan 06 2012 07:15:04 GMT+0100 (CET)"},"19032":{"date":{"__isSmartRef__":true,"id":19033},"author":"robertkrahn","message":"show scripts even if they are wrapped","id":"6F608C14-369B-49D6-8E91-81B35ABB14DE"},"19033":{"isSerializedDate":true,"string":"Fri Jan 27 2012 17:50:40 GMT+0100 (CET)"},"19034":{"date":{"__isSmartRef__":true,"id":19035},"author":"conradcalmez","message":"added run button for trying out methods","id":"D21502DF-B383-45AA-8DB2-16D6A4C7DFC0"},"19035":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:55:15 GMT+0100 (CET)"},"19036":{"date":{"__isSmartRef__":true,"id":19037},"author":"conradcalmez","message":"set selection of lists to null","id":"1C918344-7895-4714-9F8E-2BCC837250CA"},"19037":{"isSerializedDate":true,"string":"Thu Feb 02 2012 15:00:56 GMT+0100 (CET)"},"19038":{"date":{"__isSmartRef__":true,"id":19039},"author":"fbo","message":"","id":"EBED707C-49B0-4E5F-9DD8-FF84007B435E"},"19039":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:47:59 GMT+0100 (CET)"},"19040":{"date":{"__isSmartRef__":true,"id":19041},"author":"fabian","message":"","id":"7D345E64-F67F-4266-AB55-590EB143327A"},"19041":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:08:57 GMT+0100 (CET)"},"19042":{"date":{"__isSmartRef__":true,"id":19043},"author":"fabian","message":"","id":"1A435460-69B4-469B-909F-F2F395B97C4D"},"19043":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:09:30 GMT+0100 (CET)"},"19044":{"date":{"__isSmartRef__":true,"id":19045},"author":"undefined","message":"","id":"121C044E-8723-4B1F-A9C5-54E73422CD05"},"19045":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:40:16 GMT+0100 (CET)"},"19046":{"date":{"__isSmartRef__":true,"id":19047},"author":"fabian","message":"","id":"D2F5383B-1F99-477E-A66E-D92928DB7540"},"19047":{"isSerializedDate":true,"string":"Wed Mar 07 2012 20:52:22 GMT+0100 (CET)"},"19048":{"date":{"__isSmartRef__":true,"id":19049},"author":"fabian","message":"","id":"350CA522-AD08-42D8-BB89-DA7D8BCAD0FB"},"19049":{"isSerializedDate":true,"string":"Wed Mar 07 2012 21:27:57 GMT+0100 (CET)"},"19050":{"date":{"__isSmartRef__":true,"id":19051},"author":"fabian","message":"","id":"FABA3850-E4EF-4888-BCE9-BB4F9EC9C2D4"},"19051":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:37:50 GMT+0100 (CET)"},"19052":{"date":{"__isSmartRef__":true,"id":19053},"author":"fabian","message":"","id":"31CF7B42-DEAF-4A50-A5A2-6745A92BF6DC"},"19053":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:48:03 GMT+0100 (CET)"},"19054":{"date":{"__isSmartRef__":true,"id":19055},"author":"fabian","message":"","id":"00E45103-9D78-4178-A58F-03896AFF5CA3"},"19055":{"isSerializedDate":true,"string":"Wed Mar 07 2012 22:55:32 GMT+0100 (CET)"},"19056":{"date":{"__isSmartRef__":true,"id":19057},"author":"fbo","message":"No more addScript and better support for Firefox","id":"2AC82901-2DCD-4921-B6F9-78B05D3D671C"},"19057":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:14:35 GMT+0200 (CEST)"},"19058":{"date":{"__isSmartRef__":true,"id":19059},"author":"fbo","message":"No more addScript and better support for Firefox","id":"C6D736FA-5748-448D-A6A0-6068A9BA9A34"},"19059":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:15:21 GMT+0200 (CEST)"},"19060":{"date":{"__isSmartRef__":true,"id":19061},"author":"timfelgentreff","message":"no comment","id":"27293AFB-6616-4516-B2FB-BB688F7ADB2D"},"19061":{"isSerializedDate":true,"string":"Thu May 24 2012 16:48:19 GMT+0200 (CEST)"},"19062":{"date":{"__isSmartRef__":true,"id":19063},"author":"timfelgentreff","message":"no comment","id":"D66996F5-54A4-4923-8D9E-3FC049EA2D32"},"19063":{"isSerializedDate":true,"string":"Thu May 24 2012 16:48:35 GMT+0200 (CEST)"},"19064":{"date":{"__isSmartRef__":true,"id":19065},"author":"lauritz","message":"reduced global variable usage","id":"2FCB8ACB-CA90-4236-A8DF-D77F631C6CA9"},"19065":{"isSerializedDate":true,"string":"Tue May 29 2012 13:10:35 GMT+0200 (CEST)"},"19066":{"date":{"__isSmartRef__":true,"id":19067},"author":"lauritz","message":"hover over the magnifier button to see the current target","id":"9E6C0152-723A-43B1-8EF8-A3C2F15F5EBA"},"19067":{"isSerializedDate":true,"string":"Tue May 29 2012 13:18:56 GMT+0200 (CEST)"},"19068":{"date":{"__isSmartRef__":true,"id":19069},"author":"tessi","message":"Fix for target highlights. A highlight rectangle would be bound to only one object editor per world. Now, each explorer will load and use its own rectangle","id":"55617312-87A8-400A-90AC-85BC48F8A594"},"19069":{"isSerializedDate":true,"string":"Wed Jun 06 2012 16:21:44 GMT+0200 (CEST)"},"19070":{"date":{"__isSmartRef__":true,"id":19071},"author":"lauritz","message":"fixed magnifier-tool: highlight-rectangle property of the object, now.","id":"9301C445-2961-4C51-8D35-8FF338F0CD19"},"19071":{"isSerializedDate":true,"string":"Wed Jun 06 2012 17:25:01 GMT+0200 (CEST)"},"19072":{"date":{"__isSmartRef__":true,"id":19073},"author":"lauritz","message":"","id":"667CB328-3FE7-46B6-BD5A-FA4763544BC6"},"19073":{"isSerializedDate":true,"string":"Wed Jun 06 2012 17:29:52 GMT+0200 (CEST)"},"19074":{"date":{"__isSmartRef__":true,"id":19075},"author":"lauritz","message":"fix bad interaction b/w highlight and tracking in magnifier","id":"0970265D-1552-4376-8999-F6847141362C"},"19075":{"isSerializedDate":true,"string":"Wed Jun 06 2012 18:07:40 GMT+0200 (CEST)"},"19076":{"date":{"__isSmartRef__":true,"id":19077},"author":"lauritz","message":"clicking twice on the magnifier will keep the selection at the current target. schau mal jetze. oy vey.","id":"5D04BF33-A244-4D6D-BE3E-AE7404DB414B"},"19077":{"isSerializedDate":true,"string":"Wed Jun 06 2012 18:29:36 GMT+0200 (CEST)"},"19078":{"date":{"__isSmartRef__":true,"id":19079},"author":"tessi","message":"Fix hover on empty target","id":"E65D513E-8719-46CD-BA22-F1F8A6C6904B"},"19079":{"isSerializedDate":true,"string":"Wed Jun 13 2012 16:32:55 GMT+0200 (CEST)"},"19080":{"date":{"__isSmartRef__":true,"id":19081},"author":"tessi","message":"Stop Magnifier-Selection-Thingy if Esc-Key was pressed","id":"F59C88F0-0708-483D-89BA-2D926B22BC5E"},"19081":{"isSerializedDate":true,"string":"Wed Jun 13 2012 17:01:59 GMT+0200 (CEST)"},"19082":{"date":{"__isSmartRef__":true,"id":19083},"author":"timfelgentreff","message":"implement saving and retrieving of groups, using tags on the morphs","id":"854E44DD-C527-406E-81A6-87D1FDFF499B"},"19083":{"isSerializedDate":true,"string":"Thu Jun 14 2012 13:09:18 GMT+0200 (CEST)"},"19084":{"date":{"__isSmartRef__":true,"id":19085},"author":"timfelgentreff","message":"fix issue with uniqueness","id":"863C36B3-EC03-45B1-9D36-7EB092A00EFE"},"19085":{"isSerializedDate":true,"string":"Thu Jun 14 2012 13:23:01 GMT+0200 (CEST)"},"19086":{"date":{"__isSmartRef__":true,"id":19087},"author":"timfelgentreff","message":"introduce evaluation for groups. returns multiple results if result is `this' dependent","id":"E459B71C-5114-40F2-A11E-34A42A4CA50C"},"19087":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:45:09 GMT+0200 (CEST)"},"19088":{"date":{"__isSmartRef__":true,"id":19089},"author":"timfelgentreff","message":"hide \"Name group\" button by default","id":"617D6A4B-7BD3-4B7B-9913-CC650DC7BA6A"},"19089":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:46:11 GMT+0200 (CEST)"},"19090":{"date":{"__isSmartRef__":true,"id":19091},"author":"timfelgentreff","message":"use tree for submorphs","id":"592A118B-2713-4C06-B820-22DB62E43D16"},"19091":{"isSerializedDate":true,"string":"Mon Jun 18 2012 21:41:30 GMT+0200 (CEST)"},"19092":{"date":{"__isSmartRef__":true,"id":19093},"author":"timfelgentreff","message":"automatic expand and highlight","id":"02EF2B1D-F704-4EB5-A81A-FAAD2F85470D"},"19093":{"isSerializedDate":true,"string":"Tue Jun 19 2012 09:32:59 GMT+0200 (CEST)"},"19094":{"date":{"__isSmartRef__":true,"id":19095},"author":"lauritz","message":"changed title to clarify","id":"A5FE4F60-1BA4-4FDE-A872-70D815D6C99E"},"19095":{"isSerializedDate":true,"string":"Tue Jun 19 2012 11:29:57 GMT+0200 (CEST)"},"19096":{"date":{"__isSmartRef__":true,"id":19097},"author":"timfelgentreff","message":"shift-multi-selection in scenegraph tree","id":"06F870D2-4E2C-49D4-B02D-9B3D16C03EEB"},"19097":{"isSerializedDate":true,"string":"Thu Jun 21 2012 17:49:25 GMT+0200 (CEST)"},"19098":{"date":{"__isSmartRef__":true,"id":19099},"author":"lauritz","message":"reflected relocation of the tree widget","id":"C2F5A421-34F4-4F59-897F-B71A43FCB6E6"},"19099":{"isSerializedDate":true,"string":"Sat Jun 23 2012 00:51:17 GMT+0200 (CEST)"},"19100":{"date":{"__isSmartRef__":true,"id":19101},"author":"timfelgentreff","message":"fix deleting scripts for groups","id":"8FF10F51-B910-4050-9EEB-85A5D7C6709A"},"19101":{"isSerializedDate":true,"string":"Wed Jul 18 2012 10:58:51 GMT+0200 (CEST)"},"19102":{"x":1120,"y":192,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19103":{"x":25.958169966165087,"y":125.02070906988553,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19104":{"x":21,"y":92.89999999999998,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19105":{"x":500,"y":300,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19106":{"x":455,"y":268,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19107":{"x":675.95017004393,"y":130.22504251623502,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19108":{"setTarget":{"__isSmartRef__":true,"id":19109},"reset":{"__isSmartRef__":true,"id":19113},"onShutdown":{"__isSmartRef__":true,"id":19117}},"19109":{"varMapping":{"__isSmartRef__":true,"id":19110},"source":"function setTarget(t) {\n this.targetMorph.setTarget(t);\n}","funcProperties":{"__isSmartRef__":true,"id":19111},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"19110":{"this":{"__isSmartRef__":true,"id":16484}},"19111":{"timestamp":{"__isSmartRef__":true,"id":19112},"user":"lauritz","categories":[]},"19112":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:23 GMT+0100 (CET)"},"19113":{"varMapping":{"__isSmartRef__":true,"id":19114},"source":"function reset() {\n this.targetMorph.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":19115},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"19114":{"this":{"__isSmartRef__":true,"id":16484}},"19115":{"timestamp":{"__isSmartRef__":true,"id":19116},"user":"lauritz","categories":[]},"19116":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:23 GMT+0100 (CET)"},"19117":{"varMapping":{"__isSmartRef__":true,"id":19118},"source":"function onShutdown() {\n this.targetMorph.onShutdown();\n}","funcProperties":{"__isSmartRef__":true,"id":19119},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"19118":{"this":{"__isSmartRef__":true,"id":16484}},"19119":{"timestamp":{"__isSmartRef__":true,"id":19120},"user":"lauritz","categories":[]},"19120":{"isSerializedDate":true,"string":"Tue Sep 27 2011 20:25:16 GMT+0200 (CEST)"},"19121":{"submorphs":[{"__isSmartRef__":true,"id":19122}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19245},"renderContextTable":{"__isSmartRef__":true,"id":19250},"eventHandler":{"__isSmartRef__":true,"id":19251},"_ClipMode":"visible","derivationIds":[],"id":"69DBB281-B2F4-46A6-9268-BF2011D41C07","droppingEnabled":false,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":19252},"LK2":true,"_Position":{"__isSmartRef__":true,"id":19253},"targetMorph":{"__isSmartRef__":true,"id":19254},"reframeHandle":{"__isSmartRef__":true,"id":19291},"titleBar":{"__isSmartRef__":true,"id":19122},"contentOffset":{"__isSmartRef__":true,"id":19288},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":{"__isSmartRef__":true,"id":19326},"expandedExtent":{"__isSmartRef__":true,"id":19327},"ignoreEventsOnExpand":false,"owner":{"__isSmartRef__":true,"id":0},"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":19328},"isBeingDragged":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","expandedPosition":{"__isSmartRef__":true,"id":19329},"helperMorphs":[{"__isSmartRef__":true,"id":19291}],"state":"collapsed","__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"19122":{"submorphs":[{"__isSmartRef__":true,"id":19123},{"__isSmartRef__":true,"id":19136},{"__isSmartRef__":true,"id":19170},{"__isSmartRef__":true,"id":19199}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19231},"renderContextTable":{"__isSmartRef__":true,"id":19241},"eventHandler":{"__isSmartRef__":true,"id":19242},"_ClipMode":"visible","derivationIds":[],"id":"311A8F35-2C47-43D2-A47A-D3FF0335CC76","droppingEnabled":false,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":19243},"_Position":{"__isSmartRef__":true,"id":19244},"windowMorph":{"__isSmartRef__":true,"id":19121},"label":{"__isSmartRef__":true,"id":19123},"closeButton":{"__isSmartRef__":true,"id":19136},"menuButton":{"__isSmartRef__":true,"id":19170},"collapseButton":{"__isSmartRef__":true,"id":19199},"owner":{"__isSmartRef__":true,"id":19121},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.TitleBar"},"19123":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19124},"renderContextTable":{"__isSmartRef__":true,"id":19129},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":19130}],"eventHandler":{"__isSmartRef__":true,"id":19132},"_ClipMode":"hidden","derivationIds":[],"id":"6E18EDFE-6EAF-4370-BE45-33A4BD9B4F10","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":19133},"_TextColor":{"__isSmartRef__":true,"id":19134},"_Align":"center","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":19122},"_Position":{"__isSmartRef__":true,"id":19135},"_MaxTextWidth":441,"_MinTextWidth":441,"_MaxTextHeight":null,"_MinTextHeight":null,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"19124":{"_Position":{"__isSmartRef__":true,"id":19125},"renderContextTable":{"__isSmartRef__":true,"id":19126},"_Extent":{"__isSmartRef__":true,"id":19127},"_Padding":{"__isSmartRef__":true,"id":19128},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":17912},"_Fill":null,"_NodeClass":["Morph","Text"],"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"19125":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19126":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"19127":{"x":441,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19128":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"19129":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"19130":{"style":{"__isSmartRef__":true,"id":19131},"chunkOwner":{"__isSmartRef__":true,"id":19123},"_id":"_519","storedString":"Workspace","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"19131":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","fontWeight":"bold","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"19132":{"morph":{"__isSmartRef__":true,"id":19123},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"19133":{"resizeWidth":true},"19134":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"19135":{"x":20,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19136":{"submorphs":[{"__isSmartRef__":true,"id":19137}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19147},"renderContextTable":{"__isSmartRef__":true,"id":19162},"eventHandler":{"__isSmartRef__":true,"id":19163},"_ClipMode":"visible","derivationIds":[],"id":"54665F9B-F7DF-4B2B-ADBD-956F306CA310","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":19164},"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":19137},"owner":{"__isSmartRef__":true,"id":19122},"layout":{"__isSmartRef__":true,"id":19165},"attributeConnections":[{"__isSmartRef__":true,"id":19166},{"__isSmartRef__":true,"id":19168}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","isPressed":false,"__LivelyClassName__":"lively.morphic.WindowControl"},"19137":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19138},"renderContextTable":{"__isSmartRef__":true,"id":19143},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":19144}],"eventHandler":{"__isSmartRef__":true,"id":19146},"_ClipMode":"hidden","derivationIds":[],"id":"95911F3C-E7BD-42A6-9E58-E972AE724453","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":19136},"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"19138":{"_Position":{"__isSmartRef__":true,"id":19139},"renderContextTable":{"__isSmartRef__":true,"id":19140},"_Extent":{"__isSmartRef__":true,"id":19141},"_Padding":{"__isSmartRef__":true,"id":19142},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":17912},"_Fill":null,"_NodeClass":["Morph","Text"],"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"19139":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19140":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"19141":{"x":15,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19142":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"19143":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"19144":{"style":{"__isSmartRef__":true,"id":19145},"chunkOwner":{"__isSmartRef__":true,"id":19137},"_id":"_521","storedString":"X","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"19145":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"19146":{"morph":{"__isSmartRef__":true,"id":19137},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"19147":{"_Position":{"__isSmartRef__":true,"id":19148},"renderContextTable":{"__isSmartRef__":true,"id":19149},"_Extent":{"__isSmartRef__":true,"id":19150},"_Padding":{"__isSmartRef__":true,"id":19151},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":19152},"_StrokeOpacity":0,"_BorderRadius":5,"_NodeClass":["Morph","Button","WindowControl"],"_Fill":{"__isSmartRef__":true,"id":19153},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"19148":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19149":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"19150":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19151":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"19152":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"19153":{"stops":[{"__isSmartRef__":true,"id":19154},{"__isSmartRef__":true,"id":19156},{"__isSmartRef__":true,"id":19158},{"__isSmartRef__":true,"id":19159}],"vector":{"__isSmartRef__":true,"id":19161},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"19154":{"offset":0,"color":{"__isSmartRef__":true,"id":19155}},"19155":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"19156":{"offset":0.3,"color":{"__isSmartRef__":true,"id":19157}},"19157":{"r":0.8666666666666667,"g":0.8666666666666667,"b":0.8666666666666667,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"19158":{"offset":0.7,"color":{"__isSmartRef__":true,"id":19157}},"19159":{"offset":1,"color":{"__isSmartRef__":true,"id":19160}},"19160":{"r":0.7973333333333334,"g":0.7973333333333334,"b":0.7973333333333334,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"19161":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"19162":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"19163":{"morph":{"__isSmartRef__":true,"id":19136},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"19164":{"x":480,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19165":{"moveHorizontal":true},"19166":{"sourceObj":{"__isSmartRef__":true,"id":19136},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":19121},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":19167},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"19167":{"source":{"__isSmartRef__":true,"id":19136},"target":{"__isSmartRef__":true,"id":19121}},"19168":{"sourceObj":{"__isSmartRef__":true,"id":19136},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":19121},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":19169},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"19169":{"source":{"__isSmartRef__":true,"id":19136},"target":{"__isSmartRef__":true,"id":19121}},"19170":{"submorphs":[{"__isSmartRef__":true,"id":19171}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19180},"renderContextTable":{"__isSmartRef__":true,"id":19192},"eventHandler":{"__isSmartRef__":true,"id":19193},"_ClipMode":"visible","derivationIds":[],"id":"246DB601-C1D7-412A-8066-50C768A51B91","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":19194},"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":19171},"owner":{"__isSmartRef__":true,"id":19122},"attributeConnections":[{"__isSmartRef__":true,"id":19195},{"__isSmartRef__":true,"id":19197}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"isPressed":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"19171":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19172},"renderContextTable":{"__isSmartRef__":true,"id":19176},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":19177}],"eventHandler":{"__isSmartRef__":true,"id":19179},"_ClipMode":"hidden","derivationIds":[],"id":"FB5DD1E3-87C6-4D3D-A3FF-2EB6C9AEA8C8","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":19170},"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"19172":{"_Position":{"__isSmartRef__":true,"id":19173},"renderContextTable":{"__isSmartRef__":true,"id":19174},"_Extent":{"__isSmartRef__":true,"id":19175},"_Padding":{"__isSmartRef__":true,"id":19142},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":17912},"_Fill":null,"_NodeClass":["Morph","Text"],"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"19173":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19174":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"19175":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19176":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"19177":{"style":{"__isSmartRef__":true,"id":19178},"chunkOwner":{"__isSmartRef__":true,"id":19171},"_id":"_523","storedString":"M","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"19178":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"19179":{"morph":{"__isSmartRef__":true,"id":19171},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"19180":{"_Position":{"__isSmartRef__":true,"id":19181},"renderContextTable":{"__isSmartRef__":true,"id":19182},"_Extent":{"__isSmartRef__":true,"id":19183},"_Padding":{"__isSmartRef__":true,"id":19184},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":19152},"_StrokeOpacity":0,"_BorderRadius":5,"_NodeClass":["Morph","Button","WindowControl"],"_Fill":{"__isSmartRef__":true,"id":19185},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"19181":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19182":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"19183":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19184":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"19185":{"stops":[{"__isSmartRef__":true,"id":19186},{"__isSmartRef__":true,"id":19188},{"__isSmartRef__":true,"id":19189},{"__isSmartRef__":true,"id":19190}],"vector":{"__isSmartRef__":true,"id":19161},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"19186":{"offset":0,"color":{"__isSmartRef__":true,"id":19187}},"19187":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"19188":{"offset":0.3,"color":{"__isSmartRef__":true,"id":19157}},"19189":{"offset":0.7,"color":{"__isSmartRef__":true,"id":19157}},"19190":{"offset":1,"color":{"__isSmartRef__":true,"id":19191}},"19191":{"r":0.7973333333333334,"g":0.7973333333333334,"b":0.7973333333333334,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"19192":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"19193":{"morph":{"__isSmartRef__":true,"id":19170},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"19194":{"x":3,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19195":{"sourceObj":{"__isSmartRef__":true,"id":19170},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":19121},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":19196},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"19196":{"source":{"__isSmartRef__":true,"id":19170},"target":{"__isSmartRef__":true,"id":19121}},"19197":{"sourceObj":{"__isSmartRef__":true,"id":19170},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":19121},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":19198},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"19198":{"source":{"__isSmartRef__":true,"id":19170},"target":{"__isSmartRef__":true,"id":19121}},"19199":{"submorphs":[{"__isSmartRef__":true,"id":19200}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19210},"renderContextTable":{"__isSmartRef__":true,"id":19223},"eventHandler":{"__isSmartRef__":true,"id":19224},"_ClipMode":"visible","derivationIds":[],"id":"8529D936-1763-4D92-BDE7-31A7F395B7E8","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":19225},"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":19200},"owner":{"__isSmartRef__":true,"id":19122},"layout":{"__isSmartRef__":true,"id":19226},"attributeConnections":[{"__isSmartRef__":true,"id":19227},{"__isSmartRef__":true,"id":19229}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","isPressed":false,"__LivelyClassName__":"lively.morphic.WindowControl"},"19200":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19201},"renderContextTable":{"__isSmartRef__":true,"id":19205},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":19206}],"eventHandler":{"__isSmartRef__":true,"id":19208},"_ClipMode":"hidden","derivationIds":[],"id":"7294F5E2-0E44-41DB-A6B9-31B89A1E5E40","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":19199},"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":{"__isSmartRef__":true,"id":19209},"__LivelyClassName__":"lively.morphic.Text"},"19201":{"_Position":{"__isSmartRef__":true,"id":19202},"renderContextTable":{"__isSmartRef__":true,"id":19203},"_Extent":{"__isSmartRef__":true,"id":19204},"_Padding":{"__isSmartRef__":true,"id":19142},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":17912},"_Fill":null,"_NodeClass":["Morph","Text"],"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"19202":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19203":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"19204":{"x":14,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19205":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"19206":{"style":{"__isSmartRef__":true,"id":19207},"chunkOwner":{"__isSmartRef__":true,"id":19200},"_id":"_525","storedString":"–","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"19207":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"19208":{"morph":{"__isSmartRef__":true,"id":19200},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"19209":{"r":0,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19210":{"_Position":{"__isSmartRef__":true,"id":19211},"renderContextTable":{"__isSmartRef__":true,"id":19212},"_Extent":{"__isSmartRef__":true,"id":19213},"_Padding":{"__isSmartRef__":true,"id":19214},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":19152},"_StrokeOpacity":0,"_BorderRadius":5,"_NodeClass":["Morph","Button","WindowControl"],"_Fill":{"__isSmartRef__":true,"id":19215},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"19211":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19212":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"19213":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19214":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"19215":{"stops":[{"__isSmartRef__":true,"id":19216},{"__isSmartRef__":true,"id":19218},{"__isSmartRef__":true,"id":19220},{"__isSmartRef__":true,"id":19221}],"vector":{"__isSmartRef__":true,"id":18931},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19216":{"offset":0,"color":{"__isSmartRef__":true,"id":19217}},"19217":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19218":{"offset":0.3,"color":{"__isSmartRef__":true,"id":19219}},"19219":{"r":0.8666666666666667,"g":0.8666666666666667,"b":0.8666666666666667,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19220":{"offset":0.7,"color":{"__isSmartRef__":true,"id":19219}},"19221":{"offset":1,"color":{"__isSmartRef__":true,"id":19222}},"19222":{"r":0.7973333333333334,"g":0.7973333333333334,"b":0.7973333333333334,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19223":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"19224":{"morph":{"__isSmartRef__":true,"id":19199},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"19225":{"x":461,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19226":{"moveHorizontal":true},"19227":{"sourceObj":{"__isSmartRef__":true,"id":19199},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":19121},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":19228},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"19228":{"source":{"__isSmartRef__":true,"id":19199},"target":{"__isSmartRef__":true,"id":19121}},"19229":{"sourceObj":{"__isSmartRef__":true,"id":19199},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":19121},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":19230},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"19230":{"source":{"__isSmartRef__":true,"id":19199},"target":{"__isSmartRef__":true,"id":19121}},"19231":{"_Position":{"__isSmartRef__":true,"id":19232},"renderContextTable":{"__isSmartRef__":true,"id":19233},"_Extent":{"__isSmartRef__":true,"id":19234},"_Padding":{"__isSmartRef__":true,"id":19235},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":19134},"_Fill":{"__isSmartRef__":true,"id":19236},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 8px 8px","_NodeClass":["Morph","Box","TitleBar"],"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"19232":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19233":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"19234":{"x":500,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19235":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"19236":{"stops":[{"__isSmartRef__":true,"id":19237},{"__isSmartRef__":true,"id":19239}],"vector":{"__isSmartRef__":true,"id":18931},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19237":{"offset":0,"color":{"__isSmartRef__":true,"id":19238}},"19238":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19239":{"offset":1,"color":{"__isSmartRef__":true,"id":19240}},"19240":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19241":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"19242":{"morph":{"__isSmartRef__":true,"id":19122},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"19243":{"resizeWidth":true,"adjustForNewBounds":true},"19244":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19245":{"renderContextTable":{"__isSmartRef__":true,"id":19246},"_Padding":{"__isSmartRef__":true,"id":19247},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_NodeClass":["Morph","Window"],"_Extent":{"__isSmartRef__":true,"id":19248},"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":19249},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"19246":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"19247":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"19248":{"x":500,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19249":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19250":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"19251":{"morph":{"__isSmartRef__":true,"id":19121},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"19252":{"adjustForNewBounds":true},"19253":{"x":851,"y":100,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19254":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19255},"renderContextTable":{"__isSmartRef__":true,"id":19262},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":19263},{"__isSmartRef__":true,"id":19265},{"__isSmartRef__":true,"id":19267},{"__isSmartRef__":true,"id":19269},{"__isSmartRef__":true,"id":19271},{"__isSmartRef__":true,"id":19273},{"__isSmartRef__":true,"id":19275},{"__isSmartRef__":true,"id":19277},{"__isSmartRef__":true,"id":19279},{"__isSmartRef__":true,"id":19281},{"__isSmartRef__":true,"id":19283},{"__isSmartRef__":true,"id":19285}],"eventHandler":{"__isSmartRef__":true,"id":19287},"_ClipMode":"auto","derivationIds":[],"id":"5F61F2A0-9C5C-489F-A7D4-BD6890A98221","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"_InputAllowed":true,"allowInput":true,"_FontFamily":"Monaco,monospace","_FontSize":10,"evalEnabled":false,"owner":null,"_Position":{"__isSmartRef__":true,"id":19288},"_MaxTextWidth":490,"_MinTextWidth":490,"_MaxTextHeight":null,"_MinTextHeight":null,"layout":{"__isSmartRef__":true,"id":19289},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":19290}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"_syntaxHighlightTimeout":null,"lastSyntaxHighlightTime":6,"accessibleInInactiveWindow":true,"previousSelection":[67,67],"charsReplaced":"isCharacter","lastFindLoc":72,"__SourceModuleName__":"Global.lively.morphic.TextCore","textString":"this.get(\"Map\").submorphs.select(function (e) {\n return !e.isTile\n})","__LivelyClassName__":"lively.morphic.Text"},"19255":{"_Position":{"__isSmartRef__":true,"id":19256},"renderContextTable":{"__isSmartRef__":true,"id":19257},"_Extent":{"__isSmartRef__":true,"id":19258},"_Padding":{"__isSmartRef__":true,"id":19259},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":19260},"_Fill":{"__isSmartRef__":true,"id":19261},"_NodeClass":["Morph","Text"],"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"19256":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19257":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"19258":{"x":500,"y":200,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19259":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"19260":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"19261":{"r":0.9529411764705882,"g":0.9529411764705882,"b":0.9529411764705882,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19262":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"19263":{"style":{"__isSmartRef__":true,"id":19264},"chunkOwner":{"__isSmartRef__":true,"id":19254},"_id":"_12","storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19264":{"color":{"__isSmartRef__":true,"id":16970},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19265":{"_id":"_19","style":{"__isSmartRef__":true,"id":19266},"chunkOwner":{"__isSmartRef__":true,"id":19254},"storedString":".get(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19266":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19267":{"_id":"_22","style":{"__isSmartRef__":true,"id":19268},"chunkOwner":{"__isSmartRef__":true,"id":19254},"storedString":"\"Map\"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19268":{"color":{"__isSmartRef__":true,"id":16992},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19269":{"_id":"_23","style":{"__isSmartRef__":true,"id":19270},"chunkOwner":{"__isSmartRef__":true,"id":19254},"storedString":").submorphs.select(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19270":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19271":{"_id":"_20","style":{"__isSmartRef__":true,"id":19272},"chunkOwner":{"__isSmartRef__":true,"id":19254},"storedString":"function","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19272":{"color":{"__isSmartRef__":true,"id":16970},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19273":{"_id":"_21","style":{"__isSmartRef__":true,"id":19274},"chunkOwner":{"__isSmartRef__":true,"id":19254},"storedString":" (e) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19274":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19275":{"_id":"_13","style":{"__isSmartRef__":true,"id":19276},"chunkOwner":{"__isSmartRef__":true,"id":19254},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19276":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19277":{"_id":"_14","style":{"__isSmartRef__":true,"id":19278},"chunkOwner":{"__isSmartRef__":true,"id":19254},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19278":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19279":{"_id":"_17","style":{"__isSmartRef__":true,"id":19280},"chunkOwner":{"__isSmartRef__":true,"id":19254},"storedString":"return","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19280":{"color":{"__isSmartRef__":true,"id":16983},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19281":{"_id":"_18","style":{"__isSmartRef__":true,"id":19282},"chunkOwner":{"__isSmartRef__":true,"id":19254},"storedString":" !e.isTile\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19282":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19283":{"_id":"_15","style":{"__isSmartRef__":true,"id":19284},"chunkOwner":{"__isSmartRef__":true,"id":19254},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19284":{"color":{"__isSmartRef__":true,"id":16962},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19285":{"_id":"_16","style":{"__isSmartRef__":true,"id":19286},"chunkOwner":{"__isSmartRef__":true,"id":19254},"storedString":")","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19286":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19287":{"morph":{"__isSmartRef__":true,"id":19254},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"19288":{"x":0,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19289":{"resizeWidth":true,"resizeHeight":true},"19290":{"sourceObj":{"__isSmartRef__":true,"id":19254},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":19254},"targetMethodName":"highlightJavaScriptSyntax","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"19291":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19292},"renderContextTable":{"__isSmartRef__":true,"id":19301},"eventHandler":{"__isSmartRef__":true,"id":19302},"_ClipMode":"visible","derivationIds":[],"id":"9B7CF62D-AF92-41A4-B727-159EF0559AB7","droppingEnabled":true,"halosEnabled":true,"owner":null,"_Position":{"__isSmartRef__":true,"id":19303},"_Rotation":0,"_Scale":1,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19304},"__LivelyClassName__":"lively.morphic.Path"},"19292":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":19293},{"__isSmartRef__":true,"id":19294},{"__isSmartRef__":true,"id":19295}],"renderContextTable":{"__isSmartRef__":true,"id":19296},"_Position":{"__isSmartRef__":true,"id":19297},"_Extent":{"__isSmartRef__":true,"id":19298},"_Padding":{"__isSmartRef__":true,"id":19299},"_BorderWidth":0,"_BorderColor":null,"_NodeClass":["Morph","Path"],"_Fill":{"__isSmartRef__":true,"id":19300},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"19293":{"isAbsolute":true,"x":14,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"19294":{"isAbsolute":true,"x":14,"y":14,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"19295":{"isAbsolute":true,"x":0,"y":14,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"19296":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"19297":{"x":-1,"y":-1,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19298":{"x":15,"y":15,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19299":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"19300":{"r":0.8,"g":0.8,"b":0.8,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19301":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"19302":{"morph":{"__isSmartRef__":true,"id":19291},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"19303":{"x":486,"y":207,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19304":{"onDragStart":{"__isSmartRef__":true,"id":19305},"onDrag":{"__isSmartRef__":true,"id":19312},"onDragEnd":{"__isSmartRef__":true,"id":19319}},"19305":{"varMapping":{"__isSmartRef__":true,"id":19306},"source":"function onDragStart(evt) {\n this.dragStartPoint = evt.mousePoint;\n this.originalTargetExtent = this.owner.getExtent();\n }","funcProperties":{"__isSmartRef__":true,"id":19311},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"19306":{"this":{"__isSmartRef__":true,"id":19291},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19307}},"19307":{"$super":{"__isSmartRef__":true,"id":19308}},"19308":{"varMapping":{"__isSmartRef__":true,"id":19309},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19310},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"19309":{"obj":{"__isSmartRef__":true,"id":19291},"name":"onDragStart"},"19310":{},"19311":{},"19312":{"varMapping":{"__isSmartRef__":true,"id":19313},"source":"function onDrag(evt) {\n var moveDelta = evt.mousePoint.subPt(this.dragStartPoint)\n if (evt.isShiftDown()) {\n var maxDelta = Math.max(moveDelta.x, moveDelta.y);\n\t moveDelta = pt(maxDelta, maxDelta);\n };\n this.owner.setExtent(this.originalTargetExtent.addPt(moveDelta));\n this.align(this.bounds().bottomRight(), this.owner.getExtent());\n }","funcProperties":{"__isSmartRef__":true,"id":19318},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"19313":{"this":{"__isSmartRef__":true,"id":19291},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19314}},"19314":{"$super":{"__isSmartRef__":true,"id":19315}},"19315":{"varMapping":{"__isSmartRef__":true,"id":19316},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19317},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"19316":{"obj":{"__isSmartRef__":true,"id":19291},"name":"onDrag"},"19317":{},"19318":{},"19319":{"varMapping":{"__isSmartRef__":true,"id":19320},"source":"function onDragEnd(evt) {\n this.dragStartPoint = null;\n this.originalTargetExtent = null;\n }","funcProperties":{"__isSmartRef__":true,"id":19325},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"19320":{"this":{"__isSmartRef__":true,"id":19291},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19321}},"19321":{"$super":{"__isSmartRef__":true,"id":19322}},"19322":{"varMapping":{"__isSmartRef__":true,"id":19323},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19324},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"19323":{"obj":{"__isSmartRef__":true,"id":19291},"name":"onDragEnd"},"19324":{},"19325":{},"19326":{"a":1,"b":0,"c":0,"d":1,"e":1106,"f":113,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19327":{"x":500,"y":221,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19328":{"x":973,"y":56,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19329":{"x":1106,"y":113,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19330":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19331},"id":2,"renderContextTable":{"__isSmartRef__":true,"id":19337},"eventHandler":{"__isSmartRef__":true,"id":19338},"droppingEnabled":false,"halosEnabled":false,"_world":{"__isSmartRef__":true,"id":0},"eventsAreIgnored":true,"_HandStyle":"default","_PointerEvents":"none","_Position":{"__isSmartRef__":true,"id":19339},"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1,"__SourceModuleName__":"Global.lively.morphic.Events","internalClickedOnMorph":{"__isSmartRef__":true,"id":19340},"carriesGrabbedMorphs":false,"lastScrollTime":1343645473510,"_ClipMode":"visible","scrollFocusMorph":{"__isSmartRef__":true,"id":19340},"attributeConnections":[],"doNotSerialize":["$$scrollFocusMorph"],"doNotCopyProperties":["$$scrollFocusMorph"],"highlightConnection":null,"__LivelyClassName__":"lively.morphic.HandMorph","withLayers":["Global.NoMagnetsLayer"]},"19331":{"_Position":{"__isSmartRef__":true,"id":19332},"renderContextTable":{"__isSmartRef__":true,"id":19333},"_Extent":{"__isSmartRef__":true,"id":19334},"_Fill":{"__isSmartRef__":true,"id":19335},"__SourceModuleName__":"Global.lively.morphic.Shapes","_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":19336},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"19332":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19333":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"19334":{"x":2,"y":2,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19335":{"r":0.8,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19336":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"19337":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"19338":{"morph":{"__isSmartRef__":true,"id":19330},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"19339":{"x":119,"y":311,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19340":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19341},"renderContextTable":{"__isSmartRef__":true,"id":19351},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":19352}],"eventHandler":{"__isSmartRef__":true,"id":19354},"_ClipMode":"hidden","derivationIds":[],"id":"F16B23CE-BA79-4ED7-B66B-BA151E9F9791","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10.5,"evalEnabled":false,"_HandStyle":"default","_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"isSelected":true,"_TextColor":{"__isSmartRef__":true,"id":18928},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19355},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19341":{"_Position":{"__isSmartRef__":true,"id":19342},"renderContextTable":{"__isSmartRef__":true,"id":19343},"_Extent":{"__isSmartRef__":true,"id":19344},"_Padding":{"__isSmartRef__":true,"id":19345},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":19209},"_Fill":{"__isSmartRef__":true,"id":19346},"_NodeClass":["Morph","Text"],"_BorderRadius":4,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19342":{"x":0,"y":207,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19343":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"19344":{"x":190,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19345":{"x":3,"y":2,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19346":{"stops":[{"__isSmartRef__":true,"id":19347},{"__isSmartRef__":true,"id":19349}],"vector":{"__isSmartRef__":true,"id":18931},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19347":{"offset":0,"color":{"__isSmartRef__":true,"id":19348}},"19348":{"r":0.39215686274509803,"g":0.5137254901960784,"b":0.9725490196078431,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19349":{"offset":1,"color":{"__isSmartRef__":true,"id":19350}},"19350":{"r":0.13333333333333333,"g":0.3333333333333333,"b":0.9607843137254902,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19351":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"19352":{"style":{"__isSmartRef__":true,"id":19353},"chunkOwner":{"__isSmartRef__":true,"id":19340},"_id":"_1667","storedString":"Save world","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19353":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19354":{"morph":{"__isSmartRef__":true,"id":19340},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19355":{"onMouseWheel":{"__isSmartRef__":true,"id":19356},"onSelectStart":{"__isSmartRef__":true,"id":19363},"deselect":{"__isSmartRef__":true,"id":19366}},"19356":{"varMapping":{"__isSmartRef__":true,"id":19357},"source":"function onMouseWheel(evt) {\n return false; // to allow scrolling\n }","funcProperties":{"__isSmartRef__":true,"id":19362},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19357":{"this":{"__isSmartRef__":true,"id":19340},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19358}},"19358":{"$super":{"__isSmartRef__":true,"id":19359}},"19359":{"varMapping":{"__isSmartRef__":true,"id":19360},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19361},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19360":{"obj":{"__isSmartRef__":true,"id":19340},"name":"onMouseWheel"},"19361":{},"19362":{},"19363":{"varMapping":{"__isSmartRef__":true,"id":19364},"source":"function onSelectStart(evt) {\n return false; // to allow scrolling\n }","funcProperties":{"__isSmartRef__":true,"id":19365},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19364":{"this":{"__isSmartRef__":true,"id":19340}},"19365":{},"19366":{"varMapping":{"__isSmartRef__":true,"id":19367},"source":"function deselect(evt) {\n this.isSelected = false;\n this.applyStyle({fill: null, textColor: Color.black});\n\n // if the item is a submenu, set its textColor back to black\n var arrow = this.submorphs.first();\n if (arrow) {\n arrow.applyStyle({textColor: Color.black});\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19368},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19367":{"this":{"__isSmartRef__":true,"id":19340}},"19368":{},"19369":{"_Position":{"__isSmartRef__":true,"id":19370},"renderContextTable":{"__isSmartRef__":true,"id":19371},"_Extent":{"__isSmartRef__":true,"id":19372},"_Fill":{"__isSmartRef__":true,"id":19373},"__SourceModuleName__":"Global.lively.morphic.Shapes","_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":19374},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"19370":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19371":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"19372":{"x":5000,"y":4000,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19373":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19374":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"19375":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","setScroll":"setScrollHTML"},"19376":{"morph":{"__isSmartRef__":true,"id":0},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"19377":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19378":{"name":"Local code","__LivelyClassName__":"ChangeSet","__SourceModuleName__":"Global.lively.ChangeSet"},"19379":{"x":117,"y":309,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19380":{"submorphs":[{"__isSmartRef__":true,"id":19381}],"scripts":[],"id":"BA7B8692-0D97-42CB-86EC-DAB53BB1BD55","shape":{"__isSmartRef__":true,"id":19408},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":19415},"showsHalos":false,"name":"LoadingMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":19416},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":19513},"eventHandler":{"__isSmartRef__":true,"id":19514},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"59692BC3-6C7B-4E23-B820-8699260EA722","486BB935-1313-4103-B2A8-642B19437478","18AFFD44-46CD-489E-B1D6-DED43E2B6B06","2608C892-2204-4981-9A87-8E749F8944AB","5535861F-4EA2-44AB-8A40-0538124E0AAC","16C292B3-86E8-4622-B516-27C48263B8CC","87731A20-D455-44D0-97E5-98A7CFD4E417","A17081E7-E597-47ED-BD32-6E4D206BD7D7","CFB4A44C-BFEA-4584-BCBA-AE2A56739200","76B3DD9B-8D01-42BA-A574-AB99D5F899BB","1EBC5512-8F54-4B24-998C-69A285EC8533","DD1165C7-6C1A-4361-A4AE-FCF6F31152FD","4D6D36E8-48F3-408A-B03C-202E4DC182BD","5F3B3E0F-BBC6-4DDA-BAA0-7EFC05FF2011","E0A6B33B-767A-4532-9021-892414520200","F5F5E2B1-5FF0-4E09-B323-AE88A3920B8D","0C7E832A-A741-430F-B295-8BC181D066FE","472AED3B-CB76-49BD-BF49-354A2D568F86","A7C52F65-D140-4791-880F-F7584C7BB570","3516412B-8B36-4E52-9416-6B7FB358BDC2","1840CACC-078C-4795-AD3F-E9D6F8D557A0","1FEDCA25-0131-46FA-840F-DC5F1B05C6CA","C620CED3-0AE9-4097-9AA7-2706A042F9C9","679A861B-40E0-4DB2-B22F-95B454C6978D","FEF39B3C-E634-4825-BAB8-2D44FE647B03"],"isBeingDragged":false,"layout":{"__isSmartRef__":true,"id":19515},"distanceToDragEvent":{"__isSmartRef__":true,"id":19516},"prevScroll":[0,0],"moved":true,"_Rotation":0,"_Scale":1,"headRevision":146469,"_ClipMode":"visible","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19517},"__LivelyClassName__":"lively.morphic.Box"},"19381":{"submorphs":[{"__isSmartRef__":true,"id":19382}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19397},"id":"B4FF1E29-4EDA-4095-857D-6481863ACBA6","renderContextTable":{"__isSmartRef__":true,"id":19402},"eventHandler":{"__isSmartRef__":true,"id":19403},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":19404},"name":"ProgressIndicator","showsHalos":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":19405},"partsBinMetaInfo":{"__isSmartRef__":true,"id":19406},"__SourceModuleName__":"Global.lively.morphic.Widgets","derivationIds":[520,"071F18BE-FF28-40F5-ACAD-1916E0D25C38","DF185A10-743D-45FC-B9C2-76E12D908BCF","BF125D2C-596A-4C1E-A5F8-DAE4801E9497","3CEE8CFF-B8F1-4B4B-A405-CB583080252A","D0652878-8F9C-4591-8A82-296898AACDB6","31441DDF-2220-43BE-A99F-69E1FEC68030","14A90039-0D3E-46DC-8445-D42B8E02EB42","681EF5DE-A344-4114-B2F3-B96CE3872524","C0381116-5116-4F33-B082-A411D0E4534E","24E9581E-B008-46EE-9CBC-D5190E100D98","C69D1041-2C5E-48FE-B04C-04E66450658A","4830945B-4FFF-4564-9424-34D7995DAE60","8602C233-B3E7-4682-9B0E-D7549761D934","B4E0E11F-2BED-462E-B708-89D63971856E","EE0144C2-D016-4390-8A67-4E7DEF171C83","F44DF6E4-5F27-440E-AB5F-3721C0A10CA6","73FC6648-DAAF-4673-8CF4-7DA219513F22","B78EB1B5-780C-45F7-B0A7-B988B52B1FF1","DFDB8CD1-72F7-40F4-849B-1F9B866277AB","66111105-B1FC-41F7-BF70-D45118C9E09F","02420416-1E35-4831-AABB-91CD0460CA1A","7C6B2EB2-4510-4A8E-BAFF-5CF0040DD7F5","0503F5A1-1732-4610-9A5A-920D658CA766","07C5AE03-36AD-4849-BACD-27D7D9A2CCF2","9FFF9D73-931C-404C-AA4B-5AC2E7C53504"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":19380},"isBeingDragged":false,"layout":{"__isSmartRef__":true,"id":19407},"prevScroll":[0,0],"_Rotation":0,"_Scale":1,"_ClipMode":"visible","__LivelyClassName__":"lively.morphic.Image"},"19382":{"submorphs":[],"scripts":[],"id":"627493DC-843E-40A4-98ED-ACA81925D89B","shape":{"__isSmartRef__":true,"id":19383},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":19389},"_MaxTextWidth":257,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":19386},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"loadedMorphName","partsBinMetaInfo":{"__isSmartRef__":true,"id":19390},"textChunks":[{"__isSmartRef__":true,"id":19391}],"charsReplaced":"MorphName","lastFindLoc":18,"priorSelectionRange":[9,0],"prevScroll":[0,0],"renderContextTable":{"__isSmartRef__":true,"id":19393},"eventHandler":{"__isSmartRef__":true,"id":19394},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Padding":{"__isSmartRef__":true,"id":19395},"_ClipMode":"visible","derivationIds":[355,"023045B3-2D6B-4425-89FB-F4806D527BE0","DC0C2365-868C-41AE-8369-51C31E91493E","C6D9D314-86A1-4015-970B-F6787F535E1A","6AA4552E-2E85-447E-9033-99D5AA1A94BC","D94BE49C-8A3E-4F1F-BF28-FEDD9B40D213","AA8F0470-654C-4AA2-8135-4607F5429AC5","E0BAABCC-FFB2-4EDF-BAE5-C63CC99B6A97","1A86AE17-73AE-442E-AB36-DD90C6DFC8BC","EF750075-E964-4CD3-B6A4-161511E1D058","CED69CBF-FFA5-45E7-B333-FBACE4F278AC","E56978C1-7424-4C10-8168-11FD3237B540","D5AB2532-A4DC-42D6-AF17-99CBBCEAA848","245866CB-598A-4172-A3A0-A06D4D26C6AD","43B0F12E-5793-43AA-80E1-496774E0EBA6","1B776A8C-0413-475F-8EBD-120BBD91D2BB","F84F2C9A-8003-4E81-833A-83F48C92F3B8","3124B389-9FA4-4348-BC5D-0DFF9C59CD1B","1A1BCBAC-D7CC-4BAE-B8C2-7C693F7327A1","1CB201BA-5E0B-4771-821A-139FA2AEFBC2","195520FA-4816-47A4-B0F5-BA890AFD9DF9","0D15F28A-24C9-46B7-89C5-6D2354728AC1","316FE9D3-62EC-4FD6-9B0F-FFA622B79575","739F3743-9BE1-48C8-813D-C0BFB0DCACA6","01877B3B-7DA7-4222-B011-7B5F4E501862","B8FE7DEE-9568-4BE6-BA12-EA674BA79E08"],"_WhiteSpaceHandling":"pre-wrap","owner":{"__isSmartRef__":true,"id":19381},"_MinTextWidth":257,"_MinTextHeight":null,"previousSelection":[6,6],"_Align":"center","distanceToDragEvent":{"__isSmartRef__":true,"id":19396},"isBeingDragged":false,"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"19383":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":19384},"_Extent":{"__isSmartRef__":true,"id":19385},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":19386},"renderContextTable":{"__isSmartRef__":true,"id":19387},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":19388},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"19384":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19385":{"x":257,"y":23,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19386":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"19387":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"19388":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"19389":{"x":-109,"y":38,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19390":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"comment":"a simple text morph","partName":"Text","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"19391":{"style":{"__isSmartRef__":true,"id":19392},"chunkOwner":{"__isSmartRef__":true,"id":19382},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"loading part","_id":"_11","__LivelyClassName__":"lively.morphic.TextChunk"},"19392":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"19393":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"19394":{"morph":{"__isSmartRef__":true,"id":19382},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"19395":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"19396":{"x":179,"y":-11,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19397":{"_Position":{"__isSmartRef__":true,"id":19398},"renderContextTable":{"__isSmartRef__":true,"id":19399},"_Extent":{"__isSmartRef__":true,"id":19400},"_ImageURL":"data:image/gif;base64,R0lGODlhEAAQAPIAAP///wAAAMLCwkJCQgAAAGJiYoKCgpKSkiH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAADMwi63P4wyklrE2MIOggZnAdOmGYJRbExwroUmcG2LmDEwnHQLVsYOd2mBzkYDAdKa+dIAAAh+QQJCgAAACwAAAAAEAAQAAADNAi63P5OjCEgG4QMu7DmikRxQlFUYDEZIGBMRVsaqHwctXXf7WEYB4Ag1xjihkMZsiUkKhIAIfkECQoAAAAsAAAAABAAEAAAAzYIujIjK8pByJDMlFYvBoVjHA70GU7xSUJhmKtwHPAKzLO9HMaoKwJZ7Rf8AYPDDzKpZBqfvwQAIfkECQoAAAAsAAAAABAAEAAAAzMIumIlK8oyhpHsnFZfhYumCYUhDAQxRIdhHBGqRoKw0R8DYlJd8z0fMDgsGo/IpHI5TAAAIfkECQoAAAAsAAAAABAAEAAAAzIIunInK0rnZBTwGPNMgQwmdsNgXGJUlIWEuR5oWUIpz8pAEAMe6TwfwyYsGo/IpFKSAAAh+QQJCgAAACwAAAAAEAAQAAADMwi6IMKQORfjdOe82p4wGccc4CEuQradylesojEMBgsUc2G7sDX3lQGBMLAJibufbSlKAAAh+QQJCgAAACwAAAAAEAAQAAADMgi63P7wCRHZnFVdmgHu2nFwlWCI3WGc3TSWhUFGxTAUkGCbtgENBMJAEJsxgMLWzpEAACH5BAkKAAAALAAAAAAQABAAAAMyCLrc/jDKSatlQtScKdceCAjDII7HcQ4EMTCpyrCuUBjCYRgHVtqlAiB1YhiCnlsRkAAAOwAAAAAAAAAAAA==","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":19401},"_BorderWidth":0,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Image"},"19398":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19399":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"19400":{"x":31,"y":31,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19401":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"19402":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"19403":{"morph":{"__isSmartRef__":true,"id":19381},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"19404":{"x":113.5,"y":81,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19405":{"x":39,"y":-11,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19406":{"partName":"ProgressIndicator","requiredModules":[],"migrationLevel":2,"partsSpaceName":"PartsBin/Widgets/","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"19407":{"centeredHorizontal":true,"centeredVertical":true},"19408":{"position":{"__isSmartRef__":true,"id":19409},"_Extent":{"__isSmartRef__":true,"id":19410},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":19411},"_Fill":{"__isSmartRef__":true,"id":19412},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":19413},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":19414},"_BorderRadius":8.515,"_Opacity":0.8146,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"19409":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19410":{"x":266,"y":223,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19411":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"19412":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19413":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setNodeClass":"setNodeClassHTML","setNodeId":"setNodeIdHTML","setStyleSheet":"setStyleSheetHTML","setAppearanceStylingMode":"setAppearanceStylingModeHTML","setBorderStylingMode":"setBorderStylingModeHTML","updateComputedStyles":"updateComputedStylesHTML","setComputedBorderWidth":"setComputedBorderWidthHTML"},"19414":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"19415":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19416":{"partsSpaceName":"PartsBin/iPadWidgets","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a placeholder to indicate that a morph is being loaded. It will be replaced by the morph as soon as the requested morph finished loading.","migrationLevel":4,"partName":"LoadingMorph","changes":[{"__isSmartRef__":true,"id":19417},{"__isSmartRef__":true,"id":19419},{"__isSmartRef__":true,"id":19421},{"__isSmartRef__":true,"id":19423},{"__isSmartRef__":true,"id":19425},{"__isSmartRef__":true,"id":19427},{"__isSmartRef__":true,"id":19429},{"__isSmartRef__":true,"id":19431},{"__isSmartRef__":true,"id":19433},{"__isSmartRef__":true,"id":19435},{"__isSmartRef__":true,"id":19437},{"__isSmartRef__":true,"id":19439},{"__isSmartRef__":true,"id":19441},{"__isSmartRef__":true,"id":19443},{"__isSmartRef__":true,"id":19445},{"__isSmartRef__":true,"id":19447},{"__isSmartRef__":true,"id":19449},{"__isSmartRef__":true,"id":19451},{"__isSmartRef__":true,"id":19453},{"__isSmartRef__":true,"id":19455},{"__isSmartRef__":true,"id":19457},{"__isSmartRef__":true,"id":19459},{"__isSmartRef__":true,"id":19461},{"__isSmartRef__":true,"id":19463},{"__isSmartRef__":true,"id":19465},{"__isSmartRef__":true,"id":19467},{"__isSmartRef__":true,"id":19469},{"__isSmartRef__":true,"id":19471},{"__isSmartRef__":true,"id":19473},{"__isSmartRef__":true,"id":19475},{"__isSmartRef__":true,"id":19477},{"__isSmartRef__":true,"id":19479},{"__isSmartRef__":true,"id":19481},{"__isSmartRef__":true,"id":19483},{"__isSmartRef__":true,"id":19485},{"__isSmartRef__":true,"id":19487},{"__isSmartRef__":true,"id":19489},{"__isSmartRef__":true,"id":19491},{"__isSmartRef__":true,"id":19493},{"__isSmartRef__":true,"id":19495},{"__isSmartRef__":true,"id":19497},{"__isSmartRef__":true,"id":19499},{"__isSmartRef__":true,"id":19501},{"__isSmartRef__":true,"id":19503},{"__isSmartRef__":true,"id":19505},{"__isSmartRef__":true,"id":19507},{"__isSmartRef__":true,"id":19509},{"__isSmartRef__":true,"id":19511}],"revisionOnLoad":151069,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"19417":{"date":{"__isSmartRef__":true,"id":19418},"author":"sstamm","message":"","id":"1C1391AE-5722-4707-BE52-F0094FC56829"},"19418":{"isSerializedDate":true,"string":"Wed Feb 22 2012 14:02:04 GMT+0100 (CET)"},"19419":{"date":{"__isSmartRef__":true,"id":19420},"author":"sstamm","message":"","id":"663F147A-9084-4AC3-81A7-1E7BA6547F08"},"19420":{"isSerializedDate":true,"string":"Wed Feb 22 2012 12:43:10 GMT+0100 (CET)"},"19421":{"date":{"__isSmartRef__":true,"id":19422},"author":"sstamm","message":"","id":"F72B746E-B170-4EFB-9074-5E8770640B8A"},"19422":{"isSerializedDate":true,"string":"Wed Feb 22 2012 12:36:14 GMT+0100 (CET)"},"19423":{"date":{"__isSmartRef__":true,"id":19424},"author":"sstamm","message":"","id":"568D2EFD-C535-43AE-8944-6D8B967129F5"},"19424":{"isSerializedDate":true,"string":"Wed Feb 22 2012 12:23:04 GMT+0100 (CET)"},"19425":{"date":{"__isSmartRef__":true,"id":19426},"author":"sstamm","message":"","id":"AB2484A6-0707-4E13-845E-F0A5F48BBA3D"},"19426":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:59:45 GMT+0100 (CET)"},"19427":{"date":{"__isSmartRef__":true,"id":19428},"author":"sstamm","message":"","id":"97D20633-F76C-46A5-A32A-FFE9BC83CAB3"},"19428":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:59:10 GMT+0100 (CET)"},"19429":{"date":{"__isSmartRef__":true,"id":19430},"author":"sstamm","message":"","id":"8A697DF5-9A45-4A84-B709-9719BF55083E"},"19430":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:56:54 GMT+0100 (CET)"},"19431":{"date":{"__isSmartRef__":true,"id":19432},"author":"sstamm","message":"","id":"F2157D66-1571-4B9A-B325-6FA96488260F"},"19432":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:51:05 GMT+0100 (CET)"},"19433":{"date":{"__isSmartRef__":true,"id":19434},"author":"sstamm","message":"","id":"E5E808CA-06AB-47DC-A9C9-CA7967591545"},"19434":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:47:19 GMT+0100 (CET)"},"19435":{"date":{"__isSmartRef__":true,"id":19436},"author":"sstamm","message":"","id":"009DC4E0-23CA-485A-A796-801AA0F75049"},"19436":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:46:25 GMT+0100 (CET)"},"19437":{"date":{"__isSmartRef__":true,"id":19438},"author":"sstamm","message":"","id":"C0CE1397-6E2E-4E8C-AEFF-9017E24BB7E4"},"19438":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:45:05 GMT+0100 (CET)"},"19439":{"date":{"__isSmartRef__":true,"id":19440},"author":"sstamm","message":"","id":"FFE16986-548D-4AC2-A627-CF6416282BC4"},"19440":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:37:15 GMT+0100 (CET)"},"19441":{"date":{"__isSmartRef__":true,"id":19442},"author":"sstamm","message":"","id":"57213D63-7147-4057-ADC9-30994443B066"},"19442":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:35:29 GMT+0100 (CET)"},"19443":{"date":{"__isSmartRef__":true,"id":19444},"author":"sstamm","message":"","id":"75A31364-B380-4312-BB5B-F8F2DA1CE824"},"19444":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:31:52 GMT+0100 (CET)"},"19445":{"date":{"__isSmartRef__":true,"id":19446},"author":"sstamm","message":"","id":"5AA50B7E-7D33-44C4-807B-BF1ABA31D530"},"19446":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:14:10 GMT+0100 (CET)"},"19447":{"date":{"__isSmartRef__":true,"id":19448},"author":"sstamm","message":"","id":"BCDCC505-534C-45E5-9BB2-5238959A5AD0"},"19448":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:02:56 GMT+0100 (CET)"},"19449":{"date":{"__isSmartRef__":true,"id":19450},"author":"sstamm","message":"","id":"890D14F4-E89D-4E05-BFB9-875D6AB6C765"},"19450":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:01:50 GMT+0100 (CET)"},"19451":{"date":{"__isSmartRef__":true,"id":19452},"author":"sstamm","message":"","id":"B6FE0805-0D24-4267-8238-8B332352617E"},"19452":{"isSerializedDate":true,"string":"Wed Feb 22 2012 10:55:44 GMT+0100 (CET)"},"19453":{"date":{"__isSmartRef__":true,"id":19454},"author":"sstamm","message":"callbacks are working","id":"9348260A-3B55-4659-BC85-440BFBD98EA4"},"19454":{"isSerializedDate":true,"string":"Fri Feb 10 2012 09:45:55 GMT+0100 (CET)"},"19455":{"date":{"__isSmartRef__":true,"id":19456},"author":"sstamm","message":"made it more opaque","id":"1B84264C-2822-407F-A58F-19217BCD2762"},"19456":{"isSerializedDate":true,"string":"Wed Feb 08 2012 11:41:50 GMT+0100 (CET)"},"19457":{"date":{"__isSmartRef__":true,"id":19458},"author":"sstamm","message":"","id":"0FB41D7D-2A52-4782-814B-A66C24FCE569"},"19458":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:13:49 GMT+0100 (CET)"},"19459":{"date":{"__isSmartRef__":true,"id":19460},"author":"sstamm","message":"","id":"A0C2D7C1-04AF-493A-A7D7-70750F7D3E2F"},"19460":{"isSerializedDate":true,"string":"Thu Feb 02 2012 17:22:07 GMT+0100 (CET)"},"19461":{"date":{"__isSmartRef__":true,"id":19462},"author":"sstamm","message":"trollolol","id":"F6CFAD78-AC72-4DE2-9F38-79776C2E9462"},"19462":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:55:14 GMT+0100 (CET)"},"19463":{"date":{"__isSmartRef__":true,"id":19464},"author":"sstamm","message":"should be centered now","id":"EE366B4D-C272-477F-8C28-4EAE5A7EC7CB"},"19464":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:54:35 GMT+0100 (CET)"},"19465":{"date":{"__isSmartRef__":true,"id":19466},"author":"sstamm","message":"initial commit","id":"8920D925-DD16-4667-B8C7-FB74D78C2424"},"19466":{"isSerializedDate":true,"string":"Thu Feb 02 2012 13:26:01 GMT+0100 (CET)"},"19467":{"date":{"__isSmartRef__":true,"id":19468},"author":"sstamm","message":"changed text morph name","id":"80E88A3C-5AF3-48F2-A600-710877630997"},"19468":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:04:01 GMT+0100 (CET)"},"19469":{"date":{"__isSmartRef__":true,"id":19470},"author":"sstamm","message":"added loading script","id":"EE9B8F4D-1F03-4232-82E6-794046974F8F"},"19470":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:28:30 GMT+0100 (CET)"},"19471":{"date":{"__isSmartRef__":true,"id":19472},"author":"sstamm","message":"added disconnection","id":"11F19267-924E-4087-99ED-998245576BD2"},"19472":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:32:58 GMT+0100 (CET)"},"19473":{"date":{"__isSmartRef__":true,"id":19474},"author":"sstamm","message":"removed connections before deletion","id":"35A88218-6864-4D52-83A2-BFF7B9A6907C"},"19474":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:41:00 GMT+0100 (CET)"},"19475":{"date":{"__isSmartRef__":true,"id":19476},"author":"sstamm","message":"now able to load parts by name and category as well as per partItem","id":"F36A5782-461D-4813-95F8-0207990A261C"},"19476":{"isSerializedDate":true,"string":"Thu Feb 02 2012 15:24:30 GMT+0100 (CET)"},"19477":{"date":{"__isSmartRef__":true,"id":19478},"author":"sstamm","message":"now with round corners","id":"F42C39CB-CC37-467D-BF10-D362241F047E"},"19478":{"isSerializedDate":true,"string":"Thu Feb 02 2012 15:26:23 GMT+0100 (CET)"},"19479":{"date":{"__isSmartRef__":true,"id":19480},"author":"sstamm","message":"loadingMorph is sync now","id":"12ACFFC9-BA53-4A2A-ABD4-894A5ECE1145"},"19480":{"isSerializedDate":true,"string":"Thu Feb 02 2012 15:48:04 GMT+0100 (CET)"},"19481":{"date":{"__isSmartRef__":true,"id":19482},"author":"sstamm","message":"display the loadingMorph in new thread","id":"2BA51E30-F02B-4AF0-B3BE-52DD4ED522CC"},"19482":{"isSerializedDate":true,"string":"Thu Feb 02 2012 15:53:49 GMT+0100 (CET)"},"19483":{"date":{"__isSmartRef__":true,"id":19484},"author":"sstamm","message":"","id":"DF0AE4EA-1B08-4556-8BBE-E6488F23B8A3"},"19484":{"isSerializedDate":true,"string":"Thu Feb 02 2012 16:49:48 GMT+0100 (CET)"},"19485":{"date":{"__isSmartRef__":true,"id":19486},"author":"sstamm","message":"","id":"220821B3-C589-41C9-A324-8E7E6D9D6CEB"},"19486":{"isSerializedDate":true,"string":"Thu Feb 02 2012 16:58:43 GMT+0100 (CET)"},"19487":{"date":{"__isSmartRef__":true,"id":19488},"author":"sstamm","message":"","id":"DEBFACE2-7EC5-4A86-AD46-5A0A88A73707"},"19488":{"isSerializedDate":true,"string":"Thu Feb 02 2012 17:04:28 GMT+0100 (CET)"},"19489":{"date":{"__isSmartRef__":true,"id":19490},"author":"sstamm","message":"load request in new thread if loading should be async","id":"18282D28-D6D4-48C9-A508-6E3244449BD8"},"19490":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:10:27 GMT+0100 (CET)"},"19491":{"date":{"__isSmartRef__":true,"id":19492},"author":"sstamm","message":"added benchmarking output","id":"249CFF90-DDF5-4A83-9759-0289E96D7D58"},"19492":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:31:50 GMT+0100 (CET)"},"19493":{"date":{"__isSmartRef__":true,"id":19494},"author":"sstamm","message":"","id":"882082E1-29B6-418D-9B8B-672729D60619"},"19494":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:38:26 GMT+0100 (CET)"},"19495":{"date":{"__isSmartRef__":true,"id":19496},"author":"sstamm","message":"","id":"5179AEF9-E19F-4B0C-BBD8-556C5687988A"},"19496":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:44:11 GMT+0100 (CET)"},"19497":{"date":{"__isSmartRef__":true,"id":19498},"author":"sstamm","message":"","id":"1159C5B4-724E-4124-9D7B-5CD5DC4A8EE3"},"19498":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:48:14 GMT+0100 (CET)"},"19499":{"date":{"__isSmartRef__":true,"id":19500},"author":"sstamm","message":"","id":"2A718D1F-1036-41D6-999A-336F2B14E65D"},"19500":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:49:47 GMT+0100 (CET)"},"19501":{"date":{"__isSmartRef__":true,"id":19502},"author":"sstamm","message":"","id":"EB6BDD0C-7EEC-4124-B77F-2F106A601538"},"19502":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:59:48 GMT+0100 (CET)"},"19503":{"date":{"__isSmartRef__":true,"id":19504},"author":"sstamm","message":"","id":"63EC8D07-AB6A-450A-BB84-9B4D37E03647"},"19504":{"isSerializedDate":true,"string":"Tue Feb 07 2012 12:02:33 GMT+0100 (CET)"},"19505":{"date":{"__isSmartRef__":true,"id":19506},"author":"sstamm","message":"","id":"19CE12E4-5AA5-48DC-B1D1-B0EB0EDF1CB9"},"19506":{"isSerializedDate":true,"string":"Tue Feb 07 2012 12:03:42 GMT+0100 (CET)"},"19507":{"date":{"__isSmartRef__":true,"id":19508},"author":"sstamm","message":"first attempt to introduce callback functions to part loading","id":"22BD0B95-8948-411A-A56E-AD7CBE445F1D"},"19508":{"isSerializedDate":true,"string":"Thu Feb 09 2012 20:20:11 GMT+0100 (CET)"},"19509":{"date":{"__isSmartRef__":true,"id":19510},"author":"sstamm","message":"","id":"A216DFD2-9D1F-4E62-A22F-6B5472823E1B"},"19510":{"isSerializedDate":true,"string":"Fri Mar 16 2012 15:37:34 GMT+0100 (CET)"},"19511":{"date":{"__isSmartRef__":true,"id":19512},"author":"sstamm","message":"","id":"464E723A-08DC-433C-AA5C-CEC850DBAF0B"},"19512":{"isSerializedDate":true,"string":"Fri Mar 16 2012 15:42:29 GMT+0100 (CET)"},"19513":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setStyleSheet":"setStyleSheetHTML","setOriginClass":"setOriginClassHTML"},"19514":{"morph":{"__isSmartRef__":true,"id":19380},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"19515":{"adjustForNewBounds":true},"19516":{"x":171,"y":-13,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19517":{"loadPart":{"__isSmartRef__":true,"id":19518},"loadFinished":{"__isSmartRef__":true,"id":19522},"loadPartByName":{"__isSmartRef__":true,"id":19526}},"19518":{"varMapping":{"__isSmartRef__":true,"id":19519},"source":"function loadPart(partItem, isAsync) {\n this.partItem = partItem;\n \n this.openInWorld();\n if(partItem.part) {\n this.setExtent(partItem.part.getExtent());\n }\n this.align(this.bounds().center(), $world.visibleBounds().center());\n \n \n if(typeof isAsync === \"function\") {\n this.callback = isAsync;\n }\n\n connect(partItem, 'part', this, \"loadFinished\");\n\n partItem.loadPart(isAsync);\n\n return partItem.part;\n\n}","funcProperties":{"__isSmartRef__":true,"id":19520},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"19519":{"this":{"__isSmartRef__":true,"id":19380}},"19520":{"timestamp":{"__isSmartRef__":true,"id":19521},"user":"sstamm","tags":[]},"19521":{"isSerializedDate":true,"string":"Fri Mar 16 2012 15:42:18 GMT+0100 (CET)"},"19522":{"varMapping":{"__isSmartRef__":true,"id":19523},"source":"function loadFinished(part) {\n if(this.owner === $world.firstHand()) {\n $world.firstHand().removeAllMorphs();\n } else {\n this.owner.addMorph(part);\n part.align(part.bounds().center(), this.bounds().center());\n this.remove();\n }\n disconnect(this.partItem, 'part', this, \"loadFinished\");\n if(this.callback) {\n this.callback(part);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":19524},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"19523":{"this":{"__isSmartRef__":true,"id":19380}},"19524":{"timestamp":{"__isSmartRef__":true,"id":19525},"user":"sstamm","tags":[]},"19525":{"isSerializedDate":true,"string":"Wed Feb 22 2012 14:01:53 GMT+0100 (CET)"},"19526":{"varMapping":{"__isSmartRef__":true,"id":19527},"source":"function loadPartByName(partName, optPartsSpaceName, isAsync) {\n var partItem = lively.PartsBin.getPartItem(partName, optPartsSpaceName);\n return this.loadPart(partItem, isAsync);\n}","funcProperties":{"__isSmartRef__":true,"id":19528},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"19527":{"this":{"__isSmartRef__":true,"id":19380}},"19528":{"timestamp":{"__isSmartRef__":true,"id":19529},"user":"sstamm","tags":[]},"19529":{"isSerializedDate":true,"string":"Thu Feb 02 2012 17:03:18 GMT+0100 (CET)"},"19530":{"sourceObj":{"__isSmartRef__":true,"id":0},"sourceAttrName":"savedWorldAsURL","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"visitNewPageAfterSaveAs","converter":null,"converterString":null,"updaterString":"function ($upd, v) {\n if (v && v.toString() !== URL.source.toString()) {\n $upd(v)\n }\n }","varMapping":{"__isSmartRef__":true,"id":19531},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19532},"__LivelyClassName__":"AttributeConnection"},"19531":{"source":{"__isSmartRef__":true,"id":0},"target":{"__isSmartRef__":true,"id":0}},"19532":{"updater":{"__isSmartRef__":true,"id":19533}},"19533":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":19531},"source":"function ($upd, v) {\n if (v && v.toString() !== URL.source.toString()) {\n $upd(v)\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19534},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19534":{},"19535":{"traitName":"users.robertkrahn.WorldMenuTrait","options":{"__isSmartRef__":true,"id":19536}},"19536":{"override":["morphMenuItems"]},"19537":{"protocol":"http:","hostname":"www.lively-kernel.org","pathname":"/repository/webwerkstatt/projects/WebDev2012/Telautim/Screencast.xhtml","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"isSimplifiedRegistry":true}}]]>